This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/21943] New: O32 libffi.so fails to link on IRIX 6


Building the O32 libffi on IRIX 6.5 fails, thus we get a bootstrap failure
with --enable-libgcj:

/bin/ksh ./libtool --mode=link /.vol/gcc/obj/gcc-4.0.0-20050414/6.5-gcc-java/gcc/xgcc -B/.vol/gcc/obj/gcc-4.0.0-20050414/6.5-gcc-java/gcc/ -B/.vol/gcc/share/mips-sgi-irix6.5/bin/ -B/.vol/gcc/share/mips-sgi-irix6.5/lib/ -isystem /.vol/gcc/share/mips-sgi-irix6.5/include -isystem /.vol/gcc/share/mips-sgi-irix6.5/sys-include  -mabi=32 -Wall -g -fexceptions -O2 -g -O2  -mabi=32  -mabi=32 -o libffi.la -rpath /.vol/gcc/lib/../lib -version-info `grep -v '^#' /.vol/gcc/src/gcc-4.0-branch-dist/libffi/libtool-version` src/debug.lo src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/mips/ffi.lo src/mips/o32.lo src/mips/n32.lo                    
/.vol/gcc/obj/gcc-4.0.0-20050414/6.5-gcc-java/gcc/xgcc -B/.vol/gcc/obj/gcc-4.0.0-20050414/6.5-gcc-java/gcc/ -B/.vol/gcc/share/mips-sgi-irix6.5/bin/ -B/.vol/gcc/share/mips-sgi-irix6.5/lib/ -isystem /.vol/gcc/share/mips-sgi-irix6.5/include -isystem /.vol/gcc/share/mips-sgi-irix6.5/sys-include  -mabi=32 -shared  src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/mips/.libs/ffi.o src/mips/.libs/o32.o src/mips/.libs/n32.o  -lc  -Wl,-soname -Wl,libffi.so.5 `test -n "sgi5.0:sgi5.1" && echo -Wl,-set_version -Wl,sgi5.0:sgi5.1` -Wl,-update_registry -Wl,.libs/so_locations -o .libs/libffi.so.5.1
ld: FATAL   45 : Non-PIC (src/mips/.libs/o32.o) used in shared/call_shared link.
collect2: ld returned 4 exit status
make[8]: *** [libffi.la] Error 1

Obviously the new O32 closure support isn't PIC code, causing the link
failure above.

This is a regression from 3.4.

Environment:
System: IRIX64 columba 6.5 10120104 IP27


	
host: mips-sgi-irix6.5
build: mips-sgi-irix6.5
target: mips-sgi-irix6.5
configured with: /.vol/gcc/src/gcc-4.0-branch-dist/configure --prefix=/.vol/gcc --with-local-prefix=/.vol/gcc --disable-nls --enable-libgcj --with-gmp-dir=/.vol/gcc/obj/gmp-4.1.3 --with-mpfr-dir=/.vol/gcc/obj/gmp-4.1.3 --with-gnu-as --with-as=/homes/ro/bin/gas-2.15

How-To-Repeat:
Bootstrap on mips-sgi-irix6.5 with --enable-libgcj.
------- Additional Comments From ro at techfak dot uni-bielefeld dot de  2005-06-06 23:04 -------
Fix:
Omit --enable-libgcj for now.

-- 
           Summary: O32 libffi.so fails to link on IRIX 6
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at techfak dot uni-bielefeld dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: mips-sgi-irix6.5
  GCC host triplet: mips-sgi-irix6.5
GCC target triplet: mips-sgi-irix6.5


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]