Re: Problems building gcc4.5.0 fortran compiler when gold is enabled

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

 



Peter Elmer <Peter.Elmer@xxxxxxx> writes:

> /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/x86_64-unknown-linux-gnu/bin/ld: /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/tmp/ppl/lib/libppl_c.a(ppl_c_implementation_common.o): in function ppl_io_asprint_variable:ppl_c_implementation_common.cc:2004: error: undefined reference to '__cxa_begin_catch'

PPL uses C++ and exceptions.  This means that if you link against PPL
configured with --disable-shared you need to also link with -lstdc++.
It may work to configure gcc with the --with-host-libstdcxx option.

The installation docs say:

--with-host-libstdcxx=linker-args
    If you are linking with a static copy of PPL, you can use this
    option to specify how the linker should find the standard C++
    library used internally by PPL. Typical values of linker-args
    might be `-lstdc++' or `-Wl,-Bstatic,-lstdc++,-Bdynamic -lm'. If
    you are linking with a shared copy of PPL, you probably do not
    need this option; shared library dependencies will cause the
    linker to search for the standard C++ library automatically.

Ian

[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