On 9/21/2020 10:30 AM, John Frankish via blfs-support wrote:
[config.log] /usr/local/--enable-languages=c,c++/x86_64-pc-linux-gnu/sys-include -o conftest -g -O2 conftest.c >&5 configure:4031: $? = 0 configure:4038: ./conftest /usr/src/gcc-9.2.0/libgomp/configure: eval: line 1: ./conftest: not found configure:4042: $? = 127 configure:4049: error: in `/usr/src/gcc-9.2.0/build/x86_64-pc-linux-gnu/libgomp': configure:4051: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. I realise I could use the full multilib build, but this shorter add-on version seems like it would be more convenient..
You are probably the only person who has really tested that method in a couple of years. :-) I'm sure it's still doable, but how much time do you want to spend on making it work? My guess is that it's still not finding the 32bit libraries (based on 'not found' above). For that particular test, however, you may need to make the same munge until you are through Gcc (possibly also in CFLAGS rather than just in LDFLAGS being it's in configure or LD_LIBRARY_PATH or such). Also, now days, you might have to manually build 32bit mpfr, gmp, and mpc libs before GCC. Glibc should be self hosting once your GCC is built and /usr/lib32 is in /etc/ld.so.conf. If it's worth the effort for you to dig in and figure it out purely for the learning aspect, then by all means, please proceed. It should still be perfectly doable despite needing some minor changes. But, if you are not that far into your build, I'd personally suggest just starting over with the multilib book and moving to LFS-10. A fast regular LFS build via jhalfs takes ~3.25 hours at j10 on my build rig. I'd expect that to increase by (guessing) 1.5 hours for a multilib build.
--DJ -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
