[Libclc-dev] Compilation problems on Slackware 14.2 32-bit

Zbigniew via Libclc-dev libclc-dev at lists.llvm.org
Mon Feb 5 03:51:03 PST 2018


Could anyone let me know, how can I finish compilation (well, linking
actually)? It all was quite cumbersome, simplistic "configure.py" script
neither is able to find within system the files needed for compilation,
nor allows parameters which could suggest their locations - it's barely of
any use, I had to modify "Makefile" by hand afterwards - but when finally
I almost did it, I met a problem very difficult to solve: it stopped whole
process near (I believe) finish, complaining:

#v+
LINK utils/prepare-builtins
/usr/bin/ld: cannot find -lgcc
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
#v-

What do I do to complete it? Of course I have entire GCC package installed,
in Slackware there is no separation into "compiler" itself and "development"
package:

#v+
gcc -v

Reading specs from /usr/lib/gcc/i586-slackware-linux/5.3.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i586-slackware-linux/5.3.0/lto-wrapper
Target: i586-slackware-linux
Configured with: ../gcc-5.3.0/configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --with-python-dir=/lib/python2.7/site-packages --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=gcc4-compatible --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --disable-install-libiberty --with-gnu-ld --verbose --enable-java-home --with-java-home=/usr/lib/jvm/jre --with-jvm-root-dir=/usr/lib/jvm --with-jvm-jar-dir=/usr/lib/jvm/jvm-exports --with-arch-directory=i386 --with-antlr-jar=/root/slackware-current/source/d/gcc/antlr-runtime-3.4.jar --enable-java-awt=gtk --disable-gtktest --with-arch=i586 --target=i586-slackware-linux --build=i586-slackware-linux --host=i586-slackware-linux
Thread model: posix
gcc version 5.3.0 (GCC) 
#v-

Since I have everything installed, this time I have no idea what it's
complaining about. I believe it's another fault of "configure.py", which
was unable to locate some file/directory, and in effect to generate Makefile
properly. How could I fix it and finish package preparation at last? Here's
relevant part of Makefile:


#v+
all::

ifndef VERBOSE
  Verb = @
endif

utils/prepare-builtins.o: ./utils/prepare-builtins.cpp
	@echo CXX utils/prepare-builtins.o
	$(Verb) /usr/bin/clang++ -MMD -MF utils/prepare-builtins.o.d -I/usr/include -O2 -march=i586 -mtune=i686 -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -DLLVM_BUILD_GLOBAL_ISEL -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fno-exceptions -fno-rtti -DHAVE_LLVM=0x0500 -c -o utils/prepare-builtins.o ./utils/prepare-builtins.cpp
-include utils/prepare-builtins.o.d

utils/prepare-builtins: utils/prepare-builtins.o
	@echo LINK utils/prepare-builtins
	$(Verb) /usr/bin/clang++ -o utils/prepare-builtins utils/prepare-builtins.o -lLLVM-5.0  -L/usr/lib -Wl,-rpath /usr/lib
[..]
#v-

-- 
regards,
Zbigniew


More information about the Libclc-dev mailing list