Hi Rich, thanks for the link. I used these CFLAGS/CXXFLAGS, since I thought I had to use armv7l for the armv8 Raspberry Pi 4 CPU on a 32-bit system. I was actually under the impression armv6xx flags would not work on armv7x but clearly that's not the case.
export CFLAGS="gcc -march=armv7l -0s -pipe"
export CXXFLAGS="g++ -march=armv7l -0s -pipe"
but was configuring with only these tags:
--prefix=/usr/local --enable-languages=c,c++,fortran --disable-multilib --disable-bootstrap --with-system-zlib --libexecdir=/usr/local/lib
So I tried again with:
export CFLAGS="-O2 -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
export CXXFLAGS="-O2 -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp"
--prefix=/usr/local --libdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-clocale=gnu --enable-languages=c,c++,fortran --disable-multilib --disable-libstdcxx-pch --enable-cloog-backend=isl --with-isl=/usr --with-system-zlib --enable-frame-pointer --disable-bootstrap --enable-lto --with-pkgversion=piCore --with-arch=armv6zk --with-tune=arm1176jzf-s -with-fpu=vfp --with-float=hard --with-gxx-include-dir=/usr/include/c++/9.2.0
And make -j4 ran for about 20 minutes, then I lost SSH connection, CPU temp started to decrease, and it did not finish compiling (I left it idle for another hour before restarting)
Juanito, I saved the config.log from the root directory-- I did not for /libcpp/, admittedly I didn't realize each subfolder had it's own log and have since overwritten that build. I can try that ./configure again, but since the ./configure Rich referenced seems not to have the error I would guess I had simply not configured it appropriately.
Not sure how to diagnose a hard crash like this without an error. I do have the config.log files, but have not found anything that looks like an error yet. The CLI output from right before the crash was:
GENERIC decision tree has 3162 leafs, maximum depth 13 and a total number of 13042 nodes
removed 2119 duplicate tails
/bin/bash /mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/../move-if-change tmp-gimple-match.c gimple-match.c
/bin/bash /mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/../move-if-change tmp-generic-match.c generic-match.c
echo timestamp > s-match
g++ -std=gnu++98 -fno-PIE -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-n arrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long- long -Wno-variadic-macros -Wno-overlength-strings -fno-common -Wno-unused -DHAVE_CONFIG_H -I. -I. -I/mnt/mmcblk0p2/bu ild/gcc/gcc-10.2.0/gcc -I/mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/. -I/mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/../inclu de -I/mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/../libcpp/include -I/mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/../libdecnu mber -I/mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/mnt/mmcblk0p2/build/gcc/gcc-1 0.2.0/gcc/../libbacktrace -I/usr/include -o gimple-match.o -MT gimple-match.o -MMD -MP -MF ./.deps/gimple-match.TPo gimple-match.c
g++ -std=gnu++98 -fno-PIE -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-n arrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long- long -Wno-variadic-macros -Wno-overlength-strings -fno-common -Wno-unused -DHAVE_CONFIG_H -I. -I. -I/mnt/mmcblk0p2/bu ild/gcc/gcc-10.2.0/gcc -I/mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/. -I/mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/../inclu de -I/mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/../libcpp/include -I/mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/../libdecnu mber -I/mnt/mmcblk0p2/build/gcc/gcc-10.2.0/gcc/../libdecnumber/dpd -I../libdecnumber -I/mnt/mmcblk0p2/build/gcc/gcc-1 0.2.0/gcc/../libbacktrace -I/usr/include -o generic-match.o -MT generic-match.o -MMD -MP -MF ./.deps/generic-match.T Po generic-match.c
I am currently running headless but I'll try again with a display on it and see if I can get any additional error information. Looking at the piCore 12 aarch64 repo, looks like all the packages I care about are already there... so if I can't get any extra error info I'll try building on 12.x instead.