On Tue, 2018-01-23 at 21:03 +0100, Sergei Antonov wrote: > Hi! > I tried to build Cups-2.2.6 per > http://linuxfromscratch.org/blfs/view/svn/pst/cups.html > I've got clang installed and, despite using "CC=gcc ./configure ...", > the script found clang: > > checking for clang++... clang++ > checking whether we are using the GNU C++ compiler... yes > checking whether clang++ accepts -g... yes > > and later 'make' failed with: > > Linking libcupsppdc.so.1... > /usr/bin/ld: cannot find crtbeginS.o: Datei oder Verzeichnis nicht > gefunden > clang-5.0: error: linker command failed with exit code 1 (use -v to > see invocation) > make[1]: *** [Makefile:325: libcupsppdc.so.1] Fehler 1 > make: *** [Makefile:38: all] Fehler 1 > > I fixed the problem by passing 'CXX=g++' in addition to 'CC=gcc' to > ./configure. Perhaps, the BLFS book needs to be modified this way.
That's one fix, yes. But the issue should be fixed in clang as well. Does your clang -v output contain something like: Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux- gnu/7.2.0 Selected GCC installation: /usr/bin/../lib/gcc/x86_64-pc-linux- gnu/7.2.0 The files that can't be found above are located in that directory on my system. -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
