Help g++ library build for cross compiler target powerpc
Xiaopeng Gong
pgong@integralaccess.com
Tue Jan 23 09:33:00 GMT 2001
Hello,
Help!!!
The cross compiler build failed to build libstdc++ for powerpc . Any
help will be greatly appreciated!
I am trying to build the cross compiler GCC on Red Hat 6.2 target to
powerpc embeded system.
The source I have downloaded are:
binutils 2.10.1
GCC-core 2.95.2
GCC-g++ 2.95.2
I have successfully build and installed the C compiler and tested the Hello
World program, however, the C++ compiler was built, but the libstdc++ was
unsuccessful, thus I got a C++ compiler can generate object code, but the
link needs to link to the library -- which failed to build.
I have tried in the GCC directory just build the library ..
ie: in the GCC source directory
GCC/gcc-2.95.2/libstdc++
GCC/gcc-2.95.2/mklibstdc++
cd GCC/gcc-2.95.2/mklibstdc++,
../configure --target=powwerpc-unknown-eabi --prefix=/tools --with-gnu-as --
with-gnu-ld
make
Now it gives me the error of
In file included from ../../libstdc++/bits/basic_string.h:38,
from ../../libstdc++/bits/std_string.h:43,
from ../../libstdc++/bits/localefwd.h:39,
from ../../libstdc++/bits/std_ios.h:42,
from ../../libstdc++/bits/basic_file.h:38,
from c++io.cc:34:
../../libstdc++/config/cpu/powerpc/atomicity.h: In function `int
exchange_and_add(volatile uint32_t *, int)':
[message truncated]
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list