Le 31/12/2019 à 07:50, Alan Feuerbacher a écrit : > I'm trying to build LFS Version 20191222-systemd on a Fedora 31 host, > which has gcc-9.2.1 installed. I'm getting errors from > 5.5. GCC-9.2.0 - Pass 1. Configure seems to run ok; the > config.log file ends with "configure: exit 0". But I seem > to be getting some sort of error with make, whose output end with this: > > ########## > checking for gawk... gawk > checking for x86_64-lfs-linux-gnu-ar... /tools/x86_64-lfs-linux- > gnu/bin/ar > checking for x86_64-lfs-linux-gnu-lipo... x86_64-lfs-linux-gnu-lipo > checking for x86_64-lfs-linux-gnu-nm... /mnt/lfs/sources/gcc- > 9.2.0/build/./gcc/nm > checking for x86_64-lfs-linux-gnu-ranlib... /tools/x86_64-lfs-linux- > gnu/bin/ranlib > checking for x86_64-lfs-linux-gnu-strip... /tools/x86_64-lfs-linux- > gnu/bin/strip > checking whether ln -s works... yes > checking for x86_64-lfs-linux-gnu-gcc... /mnt/lfs/sources/gcc- > 9.2.0/build/./gcc/xgcc -B/mnt/lfs/sources/gcc-9.2.0/build/./gcc/ > -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ > -isystem /tools/x86_64-lfs-linux-gnu/include -isystem /tools/x86_64- > lfs-linux-gnu/sys-include > checking for suffix of object files... configure: error: in > `/mnt/lfs/sources/gcc-9.2.0/build/x86_64-lfs-linux-gnu/libgcc': > configure: error: cannot compute suffix of object files: cannot compile > See `config.log' for more details > make[1]: *** [Makefile:12427: configure-target-libgcc] Error 1 > make[1]: Leaving directory '/mnt/lfs/sources/gcc-9.2.0/build' > make: *** [Makefile:940: all] Error 2 > ########## > > I don't know enough to say whether there's a real error, or just an > apparent error that can be safely ignored.
No, the build topped at some point and is not complete... But the "config.log" you should look at is somewhat complicated to find: the gcc build system is somewhat complicated, and "make" runs "configure" in several subdirectories. IN this case, ti seems the configure run in directory /mnt/lfs/sources/gcc-9.2.0/build/x86_64-lfs-linux-gnu/libgcc failed. So try to look at config.log in that directory. > > I any case, when I then run make install, I again get an apparent > error: > > ########## > libtool: install: /bin/install -c .libs/libcp1plugin.lai > /tools/lib/gcc/x86_64-lfs-linux-gnu/9.2.0/plugin/libcp1plugin.la > libtool: finish: PATH="/tools/bin:/bin:/usr/bin:/sbin" ldconfig -n > /tools/lib/gcc/x86_64-lfs-linux-gnu/9.2.0/plugin > ---------------------------------------------------------------------- > Libraries have been installed in: > /tools/lib/gcc/x86_64-lfs-linux-gnu/9.2.0/plugin > > If you ever happen to want to link against installed libraries > in a given directory, LIBDIR, you must either use libtool, and > specify the full pathname of the library, or use the `-LLIBDIR' > flag during linking and do at least one of the following: > - add LIBDIR to the `LD_LIBRARY_PATH' environment variable > during execution > - add LIBDIR to the `LD_RUN_PATH' environment variable > during linking > - use the `-Wl,-rpath -Wl,LIBDIR' linker flag > - have your system administrator add LIBDIR to `/etc/ld.so.conf' > > See any operating system documentation about shared libraries for > more information, such as the ld(1) and ld.so(8) manual pages. > ---------------------------------------------------------------------- > make[3]: Leaving directory '/mnt/lfs/sources/gcc-9.2.0/build/libcc1' > make[2]: Leaving directory '/mnt/lfs/sources/gcc-9.2.0/build/libcc1' > make[2]: Entering directory '/mnt/lfs/sources/gcc-9.2.0/build/x86_64- > lfs-linux-gnu/libgcc' > make[2]: *** No rule to make target 'install'. Stop. > make[2]: Leaving directory '/mnt/lfs/sources/gcc-9.2.0/build/x86_64- > lfs-linux-gnu/libgcc' > make[1]: *** [Makefile:12580: install-target-libgcc] Error 2 > make[1]: Leaving directory '/mnt/lfs/sources/gcc-9.2.0/build' > make: *** [Makefile:2321: install] Error 2 > ########## > > So are these error messages real? Or can I ignore them? They are real: when you type make install, "make" tries to complete the compile step first, and fails at the same place... > > I noted one possibility: Somewhere in the LFS book I read that > compiling with gcc above 9.2.0 mightbe a problem because it's not > been tested. The Fedora 31 I'm using has 9.2.1. > A possible problem? I do not think so: x.y.1 releases are not upstream releases, the .1 is added by distros to mention that they have patched the package. Pierre -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
