aix crosscompiler

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

 



Hi,

I'm still trying to build crosscompiler for AIX (build on Solaris 11
for AIX 4.3). I'm building binutils using the following:

../../src/binutils-2.22/configure --prefix=/opt/xgcc/aix-4.3/binutils
--target=rs6000-ibm-aix4.3 --with-sysroot=/root/xcomp/src/sysroot/

and gcc using:

../../src/gcc-trunk-2012-01-23/configure
--prefix=/opt/xgcc/aix-4.3/gcc-4.7 --enable-static --disable-multilib
--disable-nls --disable-shared
--with-build-sysroot=/root/xcomp/src/sysroot/
--with-headers=/root/xcomp/src/sysroot/usr/include/ --with-gnu-as
--with-gnu-ld --enable-languages=c,c++ --target=rs6000-ibm-aix4.3
--with-cpu=powerpc

Since 4.6.1 and 4.6.2 fail to build on AIX due to bug that was
apparently (according to comments in unassigned ticket in bugzilla
that I can't found right now) fixed in recent development versions of
gcc, I'm building revision 183402.

Compilation fails with the following:

gmake[4]: Entering directory
`/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include'
mkdir -p ./rs6000-ibm-aix4.3/bits/stdc++.h.gch
/root/xcomp/build/gcc-trunk-20120123/./gcc/xgcc -shared-libgcc
-B/root/xcomp/build/gcc-trunk-20120123/./gcc -nos
tdinc++ -L/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/src
-L/root/xcomp/build/gcc-trunk-
20120123/rs6000-ibm-aix4.3/libstdc++-v3/src/.libs
-B/opt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/bin/ -B/opt/xgcc
/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/lib/ -isystem
/opt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/include -isystem /o
pt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/sys-include
--sysroot=/root/xcomp/src/sysroot/   -x c++-header -nostdi
nc++ -g -O2 -I/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include/rs6000-ibm-aix4.3
-I/r
oot/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include
-I/root/xcomp/src/gcc-trunk-2012-01-23
/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x
/root/xcomp/src/gcc-trunk-2012-01-23/libstdc++-v3/include/precompile
d/stdc++.h \
        -o rs6000-ibm-aix4.3/bits/stdc++.h.gch/O2ggnu++0x.gch
In file included from
/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include/bits/atomic_ba
se.h:37:0,
                 from
/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include/atomic:41,
                 from
/root/xcomp/src/gcc-trunk-2012-01-23/libstdc++-v3/include/precompiled/stdc++.h:100:
/root/xcomp/build/gcc-trunk-20120123/./gcc/include/stdint.h:72:29:
error: conflicting declaration 'typedef short
 int int_fast16_t'
In file included from
/root/xcomp/build/gcc-trunk-20120123/./gcc/include-fixed/sys/types.h:64:0,
                 from
/opt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/sys-include/sys/lc_core.h:36,
                 from
/opt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/sys-include/sys/localedef.h:43,
                 from
/root/xcomp/build/gcc-trunk-20120123/./gcc/include-fixed/ctype.h:131,
                 from
/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include/cctype:44,
                 from
/root/xcomp/src/gcc-trunk-2012-01-23/libstdc++-v3/include/precompiled/stdc++.h:36:
/opt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/sys-include/sys/inttypes.h:143:18:
error: 'int_fast16_t' has a previous declaration as 'typedef int32_t
int_fast16_t'
In file included from
/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include/bits/atomic_base.h:37:0,
                 from
/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include/atomic:41,
                 from
/root/xcomp/src/gcc-trunk-2012-01-23/libstdc++-v3/include/precompiled/stdc++.h:100:
/root/xcomp/build/gcc-trunk-20120123/./gcc/include/stdint.h:75:29:
error: conflicting declaration 'typedef unsigned char uint_fast8_t'
In file included from
/root/xcomp/build/gcc-trunk-20120123/./gcc/include-fixed/sys/types.h:64:0,
                 from
/opt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/sys-include/sys/lc_core.h:36,
                 from
/opt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/sys-include/sys/localedef.h:43,
                 from
/root/xcomp/build/gcc-trunk-20120123/./gcc/include-fixed/ctype.h:131,
                 from
/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include/cctype:44,
                 from
/root/xcomp/src/gcc-trunk-2012-01-23/libstdc++-v3/include/precompiled/stdc++.h:36:
/opt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/sys-include/sys/inttypes.h:145:18:
error: 'uint_fast8_t' has a previous declaration as 'typedef uint32_t
uint_fast8_t'
In file included from
/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include/bits/atomic_base.h:37:0,
                 from
/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include/atomic:41,
                 from
/root/xcomp/src/gcc-trunk-2012-01-23/libstdc++-v3/include/precompiled/stdc++.h:100:
/root/xcomp/build/gcc-trunk-20120123/./gcc/include/stdint.h:76:30:
error: conflicting declaration 'typedef short unsigned int
uint_fast16_t'
In file included from
/root/xcomp/build/gcc-trunk-20120123/./gcc/include-fixed/sys/types.h:64:0,
                 from
/opt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/sys-include/sys/lc_core.h:36,
                 from
/opt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/sys-include/sys/localedef.h:43,
                 from
/root/xcomp/build/gcc-trunk-20120123/./gcc/include-fixed/ctype.h:131,
                 from
/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include/cctype:44,
                 from
/root/xcomp/src/gcc-trunk-2012-01-23/libstdc++-v3/include/precompiled/stdc++.h:36:
/opt/xgcc/aix-4.3/gcc-4.7/rs6000-ibm-aix4.3/sys-include/sys/inttypes.h:146:18:
error: 'uint_fast16_t' has a previous declaration as 'typedef uint32_t
uint_fast16_t'
gmake[4]: *** [rs6000-ibm-aix4.3/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1
gmake[4]: Leaving directory
`/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3/include'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/root/xcomp/build/gcc-trunk-20120123/rs6000-ibm-aix4.3/libstdc++-v3'
gmake[1]: *** [all-target-libstdc++-v3] Error 2
gmake[1]: Leaving directory `/root/xcomp/build/gcc-trunk-20120123'
gmake: *** [all] Error 2

My understanding is that configure failed to pick these definitions
from sysroot? Is this caused by missing switch in configure invocation
or some more profound problem? What can I do to fix it? I'm not even
sure what should I provide as "preprocessed sources" (or any kind of
attachment)  if I wanted to report bug.
-- 
Jędrzej Dudkiewicz

I really hate this damn machine, I wish that they would sell it.
It never does just what I want, but only what I tell it.



[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