help with missing library..

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

 



Hello,
   I'm trying to profile an application. I get the following error:

/usr/bin/ld: cannot find -lgcc_eh_p
*** Error code 1

Could someone provide some leads?

Thanks,
Vinod

I've attached "ls -lrt /usr/lib/libgcc*" and "gcc -dumpspecs" in case
this information is helpful..

-bash-2.05b$ ls -lrt /usr/lib/libgcc*
-r--r--r--    1 root     wheel      124878 Feb  4  2007 /usr/lib/libgcc_pic.a
-r--r--r--    1 root     wheel      133972 Feb  4  2007 /usr/lib/libgcc_p.a
-r--r--r--    1 root     wheel       44390 Dec  2  2007 /usr/lib/libgcc_eh.a
-r--r--r--    1 root     wheel      117408 Dec  2  2007 /usr/lib/libgcc.a
lrwxrwxrwx    1 root     wheel          18 Feb 15  2008
/usr/lib/libgcc_s.so -> /lib/libgcc_s.so.1

gcc -dumpspecs

%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}

*invoke_as:
%{!S:-o %|.s |
 as %(asm_options) %m.s %A }

*cpp:
                                                          %(cpp_cpu)
                          %(cpp_arch)

%{!ansi:%{!std=c89:%{!std=iso9899.1990:%{!std=iso9899.199409:-D_LONGLONG}}}}
  %{posix:-D_POSIX_SOURCE}

*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:
%(cc1_cpu) %{profile:-p}

*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:
*endfile:
  %{!shared:crtend.o%s}   %{shared:crtendS.o%s}   crtn.o%s

*link:
%{!static:--eh-frame-hdr}   %{m32:-m elf_i386_fbsd}   %{v:-V}
%{assert*} %{R*} %{rpath*} %{defsym*}   %{shared:-Bshareable %{h*}
%{soname*}}     %{!shared:       %{!static:
%{rdynamic:-export-dynamic}
     %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }}
%{static:-Bstatic}}   %{symbolic:-Bsymbolic}

*lib:
                                                          %{!shared:
                            %{!pg: %{pthread:-lpthread} -lc}
                             %{pg:  %{pthread:-lpthread_p} -lc_p}}
                                 %{shared:
                                    %{pthread:-lpthread} -lc}


*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}

*link_gomp:


*libgcc:
%{pg:%{pg: -lgcc_p;:-lgcc} %{pg: -lgcc_eh_p;:-lgcc_eh}}
%{!pg:%{static|static-libgcc|pg:%{pg: -lgcc_p;:-lgcc} %{pg:
-lgcc_eh_p;:-lgcc_eh}}%{!static:%{!static-libgcc:%{!shared-libgcc:%{pg:
-lgcc_p;:-lgcc} --as-needed -lgcc_s
--no-as-needed}%{shared-libgcc:-lgcc_s%{!shared: %{pg:
-lgcc_p;:-lgcc}}}}}}

*startfile:
  %{!shared:     %{pg:gcrt1.o%s}     %{!pg:       %{p:gcrt1.o%s}
%{!p:    %{profile:gcrt1.o%s}    %{!profile:crt1.o%s}}}}   crti.o%s
%{static:crtbeginT.o%s;shared:crtbeginS.o%s;:crtbegin.o%s}

*switches_need_spaces:


*cross_compile:
0

*version:
4.2.1

*multilib:
. ;

*multilib_defaults:


*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:
/usr/lib/

*sysroot_spec:
--sysroot=%R

*sysroot_suffix_spec:


*sysroot_hdrs_suffix_spec:


*cc1_cpu:
%{!mtune*: %{m386:mtune=i386 %n`-m386' is deprecated. Use
`-march=i386' or `-mtune=i386' instead.
} %{m486:-mtune=i486 %n`-m486' is deprecated. Use `-march=i486' or
`-mtune=i486' instead.
} %{mpentium:-mtune=pentium %n`-mpentium' is deprecated. Use
`-march=pentium' or `-mtune=pentium' instead.
} %{mpentiumpro:-mtune=pentiumpro %n`-mpentiumpro' is deprecated. Use
`-march=pentiumpro' or `-mtune=pentiumpro' instead.
} %{mcpu=*:-mtune=%* %n`-mcpu=' is deprecated. Use `-mtune=' or
'-march=' instead.
}} %<mcpu=* %{mintel-syntax:-masm=intel %n`-mintel-syntax' is
deprecated. Use `-masm=intel' instead.
} %{mno-intel-syntax:-masm=att %n`-mno-intel-syntax' is deprecated.
Use `-masm=att' instead.
}%{march=native:%<march=native %:local_cpu_detect(arch)
%{!mtune=*:%<mtune=native %:local_cpu_detect(tune)}}
%{mtune=native:%<mtune=native %:local_cpu_detect(tune)}

*fbsd_dynamic_linker:
/libexec/ld-elf.so.1

*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    %{fopenmp: -lgomp} %(mflib)
%{fprofile-arcs|fprofile-generate|coverage:-lgcov}
%{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}
%{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux