Cross compiler for AIX won't build with recent GCC code.

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

 



Hi, everyone.

I've used a GCC 4.8 cross compiler on Ubuntu for AIX 5.3 with binutils
2.24. I feel it is time to update to the latest GCC and binutils, so
I'm trying to build them.

However, with pre-built binutils 2.24, GCC won't build with both
gcc-5-branch and gcc-6-branch. By bisecting commits, I found compiling
GCC fails after r227906 (git: 552a60d32) and r227937 (git: 67fd4fcc0)
commits, which related to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54601 .

Error log are follows:
make[4]: Entering directory
'/home/leebc/gcc_build/gcc-build/powerpc-ibm-aix5.3.0.0/pthread/libgcc'
Makefile:959: warning: overriding recipe for target 'libunwind.a'
Makefile:896: warning: ignoring old recipe for target 'libunwind.a'
/tmp/cc1UPoiQ.o:/tmp/ccnlEgJu.c:(.pr+0x16): undefined reference to
`__gcc_unwind_dbase'
/tmp/cc1UPoiQ.o:/tmp/ccnlEgJu.c:(.tc+0x0): undefined reference to
`__gcc_unwind_dbase'
collect2: error: ld returned 1 exit status
powerpc-ibm-aix5.3.0.0-ar: ./shr.o: No such file or directory

Similarly, gcc-5-branch won't build after 2r29949 (git: 427ffb934) commit.

Error log are follows:
make[4]: Entering directory
'/home/leebc/gcc_build/gcc-build/powerpc-ibm-aix5.3.0.0/pthread/libgcc'
Makefile:961: warning: overriding recipe for target 'libunwind.a'
Makefile:895: warning: ignoring old recipe for target 'libunwind.a'
atexit_s.o:/home/leebc/gcc_build/gcc/../gcc/libgcc/config/rs6000/atexit.c:(.pr+0x6):
undefined reference to `__dso_handle'
atexit_s.o:/home/leebc/gcc_build/gcc/../gcc/libgcc/config/rs6000/atexit.c:(.tc+0x0):
undefined reference to `__dso_handle'
collect2: error: ld returned 1 exit status
powerpc-ibm-aix5.3.0.0-ar: ./shr.o: No such file or directory
mv: cannot stat './tmp-libgcc_s.a': No such file or directory

There is another issue on the binutils 2.25, (
https://sourceware.org/bugzilla/show_bug.cgi?id=19153 and
https://gcc.gnu.org/ml/gcc-help/2016-10/msg00106.html ) but my
attempts are using binutils 2.24, so these are not related, I think.

I have little knowledge on GCC internals, but seems like there are
workaround for this issues. (I have a AIX 7.1 box, so I can test them
immediately.)

Any advice, insight, corrections, words of wisdom would be helpful.



[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