NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Fwd: after binutils - ld: cannot find -lgcc
Thanks
rainbow# ls -l /usr/lib/libgcc*
-r--r--r-- 1 root wheel 113258 Dec 16 2007 /usr/lib/libgcc.a
-r--r--r-- 1 root wheel 44746 Dec 16 2007 /usr/lib/libgcc_eh.a
-r--r--r-- 1 root wheel 49004 Dec 16 2007 /usr/lib/libgcc_eh_p.a
-r--r--r-- 1 root wheel 36596 Dec 16 2007 /usr/lib/libgcc_eh_pic.a
-r--r--r-- 1 root wheel 120638 Dec 16 2007 /usr/lib/libgcc_p.a
-r--r--r-- 1 root wheel 122902 Dec 16 2007 /usr/lib/libgcc_pic.a
lrwxr-xr-x 1 root wheel 15 Dec 16 2007 /usr/lib/libgcc_s.so ->
libgcc_s.so.1.0
lrwxr-xr-x 1 root wheel 15 Dec 16 2007 /usr/lib/libgcc_s.so.1 ->
libgcc_s.so.1.0
-r--r--r-- 1 root wheel 72962 Dec 16 2007 /usr/lib/libgcc_s.so.1.0
rainbow# gcc -dumpspecs
*asm:
%{fpic|fPIC|fpie|fPIE:-K PIC} %{V} %{v:%{!V:-V}} %{mlittle-endian:-EL}
%(asm_cpu) %(asm_arch) %(asm_relax)
*asm_debug:
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
*asm_final:
*asm_options:
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
*invoke_as:
%{!S:-o %|.s |
as %(asm_options) %|.s %A }
*cpp:
%(cpp_cpu) %(cpp_arch) %(cpp_endian) %(cpp_subtarget)
*cpp_options:
%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w}
%{f*} %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} %{undef}
%{save-temps:-fpch-preprocess}
*cpp_debug_options:
%{d*}
*cpp_unique_options:
%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!Q:-quiet}
%{nostdinc*} %{C} %{CC} %{v} %{I*&F*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}}
%{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*}
%{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} %{remap} %{g3:-dD} %{H} %C
%{D*&U*&A*} %{i*} %Z %i %{fmudflap:-D_MUDFLAP -include mf-runtime.h}
%{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h} %{E|M|MM:%W{o*}}
*trad_capable_cpp:
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}
*cc1:
%{sun4:} %{target:} %{mcypress:-mcpu=cypress} %{msparclite:-mcpu=sparclite}
%{mf930:-mcpu=f930} %{mf934:-mcpu=f934} %{mv8:-mcpu=v8}
%{msupersparc:-mcpu=supersparc} %{m32:%{m64:%emay not use both -m32 and
-m64}} %{m32: -mptr32 -mno-stack-bias
%{!mlong-double-128:-mlong-double-64} %{!mcpu*: %{!mcypress:
%{!msparclite: %{!mf930: %{!mf934: %{!mv8*:
%{!msupersparc:-mcpu=cypress}}}}}}}}%{cxx-isystem}
*cc1_options:
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1
%{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip
%*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w}
%{std*&ansi&trigraphs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef}
%{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help}
%{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*}
%{fmudflap|fmudflapth:-fno-builtin -fno-merge-constants}
%{coverage:-fprofile-arcs -ftest-coverage}
*cc1plus:
%{cxx-isystem}
*link_gcc_c_sequence:
%G %L %G %L
*link_ssp:
%{fstack-protector:}
*endfile:
%{!shared:crtend%O%s} %{shared:crtendS%O%s} %:if-exists(crtn%O%s)
*link:
%(link_arch) %{!mno-relax:%{!r:-relax}} %(netbsd_link_spec)
*lib:
%{pthread: %{!p:
%{!pg:-lpthread}} %{p:-lpthread_p}
%{pg:-lpthread_p}} %{posix: %{!p:
%{!pg:-lposix}} %{p:-lposix_p}
%{pg:-lposix_p}} %{!shared: %{!symbolic:
%{!p: %{!pg:-lc}}
%{p:-lc_p} %{pg:-lc_p}}}
*mfwrap:
%{static: %{fmudflap|fmudflapth: --wrap=malloc --wrap=free --wrap=calloc
--wrap=realloc --wrap=mmap --wrap=munmap --wrap=alloca} %{fmudflapth:
--wrap=pthread_create}} %{fmudflap|fmudflapth: --wrap=main}
*mflib:
%{fmudflap|fmudflapth: -export-dynamic}
*libgcc:
%{static: -lgcc -lgcc_eh}%{static-libgcc: %{!shared:-lgcc
-lgcc_eh}%{shared:-lgcc_pic
-lgcc_eh_pic}}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-lgcc
-lgcc_eh}%{shared-libgcc:-lgcc_s -lgcc}}%{shared:%{shared-libgcc:-lgcc_s}
-lgcc_pic}}}
*startfile:
%{!shared: %{pg:gcrt0%O%s} %{!pg:
%{p:gcrt0%O%s} %{!p:crt0%O%s}}}
%:if-exists(crti%O%s) %{static:%:if-exists-else(crtbeginT%O%s
crtbegin%O%s)} %{!static: %{!shared:crtbegin%O%s}
%{shared:crtbeginS%O%s}}
*switches_need_spaces:
*cross_compile:
0
*version:
4.1.2
*multilib:
. ;
*multilib_defaults:
m64
*multilib_extra:
*multilib_matches:
*multilib_exclusions:
*multilib_options:
*linker:
collect2
*link_libgcc:
%D
*md_exec_prefix:
*md_startfile_prefix:
*md_startfile_prefix_1:
*startfile_prefix_spec:
*sysroot_spec:
--sysroot=%R
*sysroot_suffix_spec:
*sysroot_hdrs_suffix_spec:
*cpp_cpu:
%{msoft-float:-D_SOFT_FLOAT} %{mcypress:} %{msparclite:-D__sparclite__}
%{mf930:-D__sparclite__} %{mf934:-D__sparclite__} %{mv8:-D__sparc_v8__}
%{msupersparc:-D__supersparc__ -D__sparc_v8__} %{mcpu=sparclet:-D__sparclet__}
%{mcpu=tsc701:-D__sparclet__} %{mcpu=sparclite:-D__sparclite__}
%{mcpu=f930:-D__sparclite__} %{mcpu=f934:-D__sparclite__}
%{mcpu=v8:-D__sparc_v8__} %{mcpu=supersparc:-D__supersparc__ -D__sparc_v8__}
%{mcpu=hypersparc:-D__hypersparc__ -D__sparc_v8__}
%{mcpu=sparclite86x:-D__sparclite86x__} %{mcpu=v9:-D__sparc_v9__}
%{mcpu=ultrasparc:-D__sparc_v9__} %{mcpu=ultrasparc3:-D__sparc_v9__}
%{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:%(cpp_cpu_default)}}}}}}}
*cpp_cpu_default:
%{m32:} %{!m32:-D__sparc_v9__}
*cpp_arch32:
*cpp_arch64:
-D__arch64__
*cpp_arch_default:
-D__arch64__
*cpp_arch:
%{m32:%(cpp_arch32)} %{m64:%(cpp_arch64)} %{!m32:%{!m64:%(cpp_arch_default)}}
*cpp_endian:
%{mlittle-endian:-D__LITTLE_ENDIAN__}
%{mlittle-endian-data:-D__LITTLE_ENDIAN_DATA__}
*cpp_subtarget:
%(netbsd_cpp_spec)
*asm_cpu:
%{mcpu=sparclet:-Asparclet} %{mcpu=tsc701:-Asparclet} %{msparclite:-Asparclite}
%{mf930:-Asparclite} %{mf934:-Asparclite} %{mcpu=sparclite:-Asparclite}
%{mcpu=sparclite86x:-Asparclite} %{mcpu=f930:-Asparclite}
%{mcpu=f934:-Asparclite} %{mv8plus:-Av8plus} %{mcpu=v9:-Av9}
%{mcpu=ultrasparc:%{!mv8plus:-Av9a}} %{mcpu=ultrasparc3:%{!mv8plus:-Av9b}}
%{!mcpu*:%{!mcypress:%{!msparclite:%{!mf930:%{!mf934:%{!mv8:%{!msupersparc:%(asm_cpu_default)}}}}}}}
*asm_cpu_default:
%{m32:} %{!m32:-Av9a}
*asm_arch32:
-32
*asm_arch64:
-64 -no-undeclared-regs
*asm_relax:
%{!mno-relax:-relax}
*asm_arch_default:
-64 -no-undeclared-regs
*asm_arch:
%{m32:%(asm_arch32)} %{m64:%(asm_arch64)} %{!m32:%{!m64:%(asm_arch_default)}}
*link_arch32:
-m elf32_sparc
*link_arch64:
-m elf64_sparc
*link_arch_default:
-m elf64_sparc
*link_arch:
%{m32:%(link_arch32)} %{m64:%(link_arch64)}
%{!m32:%{!m64:%(link_arch_default)}}
*netbsd_cpp_spec:
%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT -D_PTHREADS}
*netbsd_link_spec:
%{assert*} %{R*} %{rpath*} %{shared:-shared} %{symbolic:-Bsymbolic}
%{!shared: -dc -dp %{!nostdlib: %{!r*: %{!e*:-e
%(netbsd_entry_point)}}} %{!static: %{rdynamic:-export-dynamic}
%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}}
%{static:-static}}
*netbsd_entry_point:
__start
*link_command:
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %{pie:-pie} %X %{o*}
%{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z}
%{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(mfwrap)
%(link_libgcc) %o %(mflib)
%{fprofile-arcs|fprofile-generate|coverage:-lgcov}
%{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}
%{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
-------- Original-Nachricht --------
> Datum: Fri, 24 Oct 2008 14:10:08 +0000 (UTC)
> Von: christos%astron.com@localhost
> An: netbsd-users%netbsd.org@localhost
> Betreff: Re: Fwd: after binutils - ld: cannot find -lgcc
> In article <20081024125203.152740%gmx.net@localhost>,
> Caloro Maurizio <mauric%gmx.ch@localhost> wrote:
> >Please help...
>
> ls -l /usr/lib/libgcc*
>
> gcc -dumpspecs
>
> christos
> >
> >
> >>Hello
> >>
> >>Yesterday i have compiled from PKGSRC "Binutils-2.17" and its run
> >>without errors, today stop every compiling job with this message
> >>
> >>ld: cannot find -lgcc
> >>or... ld: cannot find -lgcc_pic
> >>
> >>its possible that binutils had change any files on my netbsd 4.0 machine
> ?
> >>for further information i'am Happy
> >>
> >>best regards
> >>MC
> >>
> >>rainbow# gcc -v
> >>Using built-in specs.
> >>Target: sparc64--netbsd
> >>Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc4/configure
> >--enable-long-long --disable-multilib
> >>--enable-threads --disable-symvers --build=i386-unknown-netbsdelf4.99.3
> >--host=sparc64--netbsd
> >>--target=sparc64--netbsd
> >>Thread model: posix
> >>gcc version 4.1.2 20061021 prerelease (NetBSD nb3 20061125)
> >>
> >>rainbow# ldd /usr/bin/gcc
> >>/usr/bin/gcc:
> >> -lc.12 => /usr/lib/libc.so.12
> >>rainbow# ldd /usr/bin/ld
> >>/usr/bin/ld:
> >> -lc.12 => /usr/lib/libc.so.12
> >>rainbow# ldd /usr/bin/as
> >>/usr/bin/as:
> >> -lintl.0 => /usr/lib/libintl.so.0
> >> -lopcodes.2 => /usr/lib/libopcodes.so.2
> >> -lbfd.8 => /usr/lib/libbfd.so.8
> >> -lc.12 => /usr/lib/libc.so.12
> >>
> >--
> >Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> >Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> >
>
>
--
-----------------------------------------------------------
--- say NO to Html in mail -------------- Maurizio Caloro
----------------------------------------- <mauric%gmx.ch@localhost>
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
Home |
Main Index |
Thread Index |
Old Index