[Bug libgomp/49986] New: Compilation of cross GCC (Linux -> AIX) fails

basil at list dot ru gcc-bugzilla@gcc.gnu.org
Fri Aug 5 08:33:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49986

           Summary: Compilation of cross GCC (Linux -> AIX) fails
           Product: gcc
           Version: 4.5.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: basil@list.ru


Created attachment 24920
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24920
libgomp config log

I tried to build GCC 4.5.3 on linux x86-64 with target powerpc-ibm-aix5.2.0.0.
Compilation of libgomp failed 

********* Output ************
libtool: link: /emc/sukhav/cross/aix/temp453/./gcc/xgcc
-B/emc/sukhav/cross/aix/temp453/./gcc/
-B/emc/sukhav/cross/aix/powerpc-ibm-aix5.2.0.0/bin/
-B/emc/sukhav/cross/aix/powerpc-ibm-aix5.2.0.0/lib/ -isystem
/emc/sukhav/cross/aix/powerpc-ibm-aix5.2.0.0/include -isystem
/emc/sukhav/cross/aix/powerpc-ibm-aix5.2.0.0/sys-include    -shared -o
.libs/libgomp.so.1  .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/env.o
.libs/error.o .libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/loop_ull.o
.libs/ordered.o .libs/parallel.o .libs/sections.o .libs/single.o .libs/task.o
.libs/team.o .libs/work.o .libs/lock.o .libs/mutex.o .libs/proc.o .libs/sem.o
.libs/bar.o .libs/ptrlock.o .libs/time.o .libs/fortran.o .libs/affinity.o   -lc
-Wl,-bnoentry  -pthread -Wl,-O1 -Wl,--version-script
-Wl,../../../../gcc-4.5.3/libgomp/libgomp.map   -Wl,-bE:.libs/libgomp.exp
-Wl,-bernotok
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x4d8): undefined
reference to `.__emutls_get_address'
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x588): undefined
reference to `.__emutls_get_address'
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x640): undefined
reference to `.__emutls_get_address'
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x6c8): undefined
reference to `.__emutls_get_address'
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x770): undefined
reference to `.__emutls_get_address'
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x800): more undefined
references to `.__emutls_get_address' follow
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0xf38): undefined
reference to `.__udivdi3'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0xac): undefined
reference to `.__emutls_get_address'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0xc8): undefined
reference to `.__emutls_get_address'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0x16c): undefined
reference to `.__emutls_get_address'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0x1a0): undefined
reference to `.__emutls_get_address'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0x1d0): undefined
reference to `.__emutls_get_address'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0x1f0): more undefined
references to `.__emutls_get_address' follow
collect2: ld returned 1 exit status
********* end of output ************

Gcc was configured with:

../../gcc-4.5.3/configure --with-gnu-ld --with-gnu-as
--target=powerpc-ibm-aix5.2.0.0 --prefix=/emc/sukhav/cross/aix
--with-sysroot=/emc/sukhav/cross/aix/sysroot --enable-languages=c,c++


The same error occurs if I build for AIX 5.3.



More information about the Gcc-bugs mailing list