Menu

#1 C++ Build Errors

open
compiler (2)
3
2012-09-14
2006-04-18
No

Using XFLAT and gcc-3.4.5, there is a build failure
when building gcc-3.4.5-final. If the C++ compiler is
being built (BR2_INSTALL_LIBSTDCPP=y in
buildroot.config), then the build fails with a
configuration error.

The following steps can be used to work around this error:

cd buildroot/toolchain_build_[]
cd gcc-3.4.5-final/armeb-linux-uclibc/libiberty

Edit config.h so that:

#define HAVE_PSIGNAL 1

then resume the build:

cd <development-dir>/buildroot
make</development-dir>

The cause of the configuration error is a failure to
build a test program in the script
gcc-3.4.5/libiberty/configure. A uClibc related error
occurs when attempting to link the test program because
a GCC hidden function is referenced from uClibc.

This error can be eliminated by (1) not build C++ and
libstdc++, or (2) adding --disable-shared to the GCC
configure command line. This latter fix causes
additional problems, however, since it also stops
building libstdc++_pic.a. At present, editting the
config.h file is recommended.

Discussion

  • Gregory Nutt

    Gregory Nutt - 2006-04-28

    Logged In: YES
    user_id=737834

    The fix is more complex that it is worth. This problem
    might just go away if we enable shared uClibc -- which just
    feels wrong aesthetically.

     
  • Gregory Nutt

    Gregory Nutt - 2006-05-04

    Logged In: YES
    user_id=737834

    The error is an attempt to access a hidden symbol
    (_stdio_term) from libc.a. I suspect that the problem could
    also be eliminated by building the ELF shared libc -- even
    if it is not used.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB