tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc-4.5: cups build problem



On Sun, Aug 14, 2011 at 10:27:10PM +0200, Joerg Sonnenberger wrote:
> The real question is how ld is ultimately called. wrapper log could
> help, otherwise add -v to the cmd line.

<.> /usr/pkgobj/print/cups/work/.gcc/bin/g++ -Wl,-R/usr/pkg/lib 
-Wl,-R/usr/X11R7/lib -pie -fPIE -Wall -Wno-format-y2k -fPIC -Os -g -o 
.libs/ppdc ppdc.o -L/usr/pkgobj/print/cups/work/cups-1.4.6/cups/.libs 
-L/usr/pkgobj/print/cups/work/cups-1.4.6/cgi-bin 
-L/usr/pkgobj/print/cups/work/cups-1.4.6/cups 
-L/usr/pkgobj/print/cups/work/cups-1.4.6/filter 
-L/usr/pkgobj/print/cups/work/cups-1.4.6/ppdc 
-L/usr/pkgobj/print/cups/work/cups-1.4.6/scheduler 
-L/usr/pkgobj/print/cups/work/.buildlink/lib 
-L/usr/pkgobj/print/cups/work/.x11-buildlink/lib ../ppdc/.libs/libcupsppdc.so 
../cups/.libs/libcups.so -Wl,-rpath,/usr/pkg/lib 
-I/usr/pkgobj/print/cups/work/.buildlink/include -lcups -lgssapi -lheimntlm 
-lkrb5 -lhx509 -lcom_err -lasn1 -lwind -lroken -lpthread -lz -lssl -lcrypt 
-lcrypto -ldns_sd -lm

and this results in:

Using built-in specs.
COLLECT_GCC=/usr/pkgobj/print/cups/work/.gcc/bin/g++
Target: x86_64--netbsd
Configured with: /usr/src2/tools/gcc/../../external/gpl3/gcc/dist/configure 
--target=x86_64--netbsd --enable-long-long --enable-threads 
--with-bugurl=http://www.NetBSD.org/Misc/send-pr.html --with-pkgversion='NetBSD 
nb1 20110620' --enable-__cxa_atexit --with-tune=nocona 
--with-mpc=/var/obj/amd64/usr/src2/destdir.amd64/usr 
--with-mpfr=/var/obj/amd64/usr/src2/destdir.amd64/usr 
--with-gmp=/var/obj/amd64/usr/src2/destdir.amd64/usr --disable-multilib 
--disable-symvers --disable-libstdcxx-pch --build=x86_64-unknown-netbsd5.99.54 
--host=x86_64--netbsd
Thread model: posix
gcc version 4.5.3 (NetBSD nb2 20110806) 
COMPILER_PATH=/usr/libexec/
LIBRARY_PATH=/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-pie' '-fPIE' '-Wall' '-Wno-format-y2k' '-fPIC' '-Os' 
'-g' '-o' '.libs/ppdc' '-L/usr/pkgobj/print/cups/work/cups-1.4.6/cups/.libs' 
'-L/usr/pkgobj/print/cups/work/cups-1.4.6/cgi-bin' 
'-L/usr/pkgobj/print/cups/work/cups-1.4.6/cups' 
'-L/usr/pkgobj/print/cups/work/cups-1.4.6/filter' 
'-L/usr/pkgobj/print/cups/work/cups-1.4.6/ppdc' 
'-L/usr/pkgobj/print/cups/work/cups-1.4.6/scheduler' 
'-L/usr/pkgobj/print/cups/work/.buildlink/lib' 
'-L/usr/pkgobj/print/cups/work/.x11-buildlink/lib' 
'-I/usr/pkgobj/print/cups/work/.buildlink/include' '-mtune=nocona' 
'-march=x86-64'
 ld --eh-frame-hdr -dc -dp -e _start -dynamic-linker /usr/libexec/ld.elf_so 
-pie -o .libs/ppdc /usr/lib/crt0.o /usr/lib/crti.o /usr/lib/crtbegin.o 
-L/usr/pkgobj/print/cups/work/cups-1.4.6/cups/.libs 
-L/usr/pkgobj/print/cups/work/cups-1.4.6/cgi-bin 
-L/usr/pkgobj/print/cups/work/cups-1.4.6/cups 
-L/usr/pkgobj/print/cups/work/cups-1.4.6/filter 
-L/usr/pkgobj/print/cups/work/cups-1.4.6/ppdc 
-L/usr/pkgobj/print/cups/work/cups-1.4.6/scheduler 
-L/usr/pkgobj/print/cups/work/.buildlink/lib 
-L/usr/pkgobj/print/cups/work/.x11-buildlink/lib -R/usr/pkg/lib 
-R/usr/X11R7/lib ppdc.o ../ppdc/.libs/libcupsppdc.so ../cups/.libs/libcups.so 
-rpath /usr/pkg/lib -lcups -lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lasn1 
-lwind -lroken -lpthread -lz -lssl -lcrypt -lcrypto -ldns_sd -lstdc++ -lm -lgcc 
-lgcc_eh -lc -lgcc -lgcc_eh /usr/lib/crtend.o /usr/lib/crtn.o
ld: /usr/lib/libgcc_eh.a(unwind-dw2.o): relocation R_X86_64_32S against `a 
local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libgcc_eh.a: could not read symbols: Bad value


Martin


Home | Main Index | Thread Index | Old Index