On Tue, 2008-09-16 at 21:05 +0200, Paul Zimmermann wrote:
> > Hello,
> > I'm currently trying to bootstrap on gcc31 (because I want to test a
> > fortran patch on a machine with REAL(KIND=3D16), and hitting this error:
> > /usr/bin/ld: skipping incompatible /opt/cfarm/mpfr-2.3.1/lib/libmpfr.a when 
> > searching for -lmpfr
> > Any ideas?
> 
> Debian's sparc port has a 32-bit userspace, so configure gcc with
> --host=sparc-linux-gnu --build=sparc-linux-gnu (instead of sparc64 as
> autodetected).
> 
> indeed, this archive contains 32-bit objects:
> 
> [EMAIL PROTECTED]:~$ ar x /opt/cfarm/mpfr-2.3.1/lib/libmpfr.a get_patches.o
> [EMAIL PROTECTED]:~$ file get_patches.o 
> get_patches.o: ELF 32-bit MSB relocatable, SPARC, version 1 (SYSV), not 
> stripped

On gcc31 I configure GCC with --with-cpu=v8 to match what debian does
(/usr/bin/gcc -v), with this, flags --host and --build are not needed.

Laurent

PS: the Ada RTS multilibed build ICE for the 64 bits variant
on some insn issue, is this familiar to someone?

[EMAIL PROTECTED]:~/build03/gcc/ada/rts_64$ /home/guerby/build03/./gcc/xgcc -v 
-v -B/home/guerby/build03/./gcc/ 
-B/n/31/guerby/install03/sparc64-unknown-linux-gnu/bin/ 
-B/n/31/guerby/install03/sparc64-unknown-linux-gnu/lib/ -isystem 
/n/31/guerby/install03/sparc64-unknown-linux-gnu/include -isystem 
/n/31/guerby/install03/sparc64-unknown-linux-gnu/sys-include -c -g -O2 -m64 
-fPIC  -W -Wall -gnatpg -m64  s-fore.adb -o s-fore.o
Reading specs from /home/guerby/build03/./gcc/specs
Target: sparc64-unknown-linux-gnu
Configured with: ../trunk/configure --prefix=/n/31/guerby/install03 
--enable-languages=c,ada --enable-__cxa_atexit --disable-nls 
--enable-threads=posix --with-mpfr=/opt/cfarm/mpfr-2.3.1 --with-cpu=v8
Thread model: posix
gcc version 4.4.0 20080913 (experimental) [ revision ] (GCC) 
COLLECT_GCC_OPTIONS='-v' '-v' '-B/home/guerby/build03/./gcc/' 
'-B/n/31/guerby/install03/sparc64-unknown-linux-gnu/bin/' 
'-B/n/31/guerby/install03/sparc64-unknown-linux-gnu/lib/' '-isystem' 
'/n/31/guerby/install03/sparc64-unknown-linux-gnu/include' '-isystem' 
'/n/31/guerby/install03/sparc64-unknown-linux-gnu/sys-include' '-c' '-g' '-O2' 
'-m64' '-fPIC' '-W' '-Wall' '-gnatpg' '-m64' '-o' 's-fore.o'
 /home/guerby/build03/./gcc/gnat1 -gnatwa -quiet -dumpbase s-fore.adb -O2 -W 
-Wall -fPIC -g -m64 -gnatpg -m64 -mptr64 -mstack-bias -mlong-double-128 
-mcpu=ultrasparc -mvis -gnatO s-fore.o s-fore.adb -o /tmp/ccFhK4wY.s
s-fore.adb: In function 'System.Fore.Fore':
s-fore.adb:57: error: unrecognizable insn:
(insn 9 8 10 2 s-fore.adb:41 (set (reg:CCFPE 96 %fcc0)
        (compare:CCFPE (reg/v:TF 108 [ t ])
            (reg:TF 113))) -1 (nil))
+===========================GNAT BUG DETECTED==============================+
| 4.4.0 20080913 (experimental) [ revision ] (sparc64-unknown-linux-gnu) GCC 
error:|
| in extract_insn, at recog.c:2027                                         |
| Error detected around s-fore.adb:57                                      |

(gdb) bt
#0  error (gmsgid=0x9bdf78 "%s") at ../../trunk/gcc/diagnostic.c:595
#1  0x00512388 in _fatal_insn (msgid=0x973880 "unrecognizable insn:", 
insn=0xf7c508c0, file=0x971aa0 "../../trunk/gcc/recog.c", line=2027, 
function=0x971ba8 "extract_insn")
    at ../../trunk/gcc/rtl-error.c:105
#2  0x005123e4 in _fatal_insn_not_found (insn=0xf7c508c0, file=0x971aa0 
"../../trunk/gcc/recog.c", line=2027, function=0x971ba8 "extract_insn") at 
../../trunk/gcc/rtl-error.c:120
#3  0x004d8020 in extract_insn (insn=0xf7c508c0) at ../../trunk/gcc/recog.c:2027
#4  0x00424304 in instantiate_virtual_regs () at ../../trunk/gcc/function.c:1375
#5  0x004b6938 in execute_one_pass (pass=0xa7d880) at 
../../trunk/gcc/passes.c:1279
#6  0x004b6bb4 in execute_pass_list (pass=0xa7d880) at 
../../trunk/gcc/passes.c:1327
#7  0x004b6bd8 in execute_pass_list (pass=0xab19a0) at 
../../trunk/gcc/passes.c:1328
#8  0x005cd3a8 in tree_rest_of_compilation (fndecl=0xf7c4a980) at 
../../trunk/gcc/tree-optimize.c:418
#9  0x0073db54 in cgraph_expand_function (node=0xf7bb7000) at 
../../trunk/gcc/cgraphunit.c:1038
#10 0x0073fe40 in cgraph_optimize () at ../../trunk/gcc/cgraphunit.c:1097
#11 0x00033908 in gnat_write_global_declarations () at 
../../trunk/gcc/ada/gcc-interface/utils.c:4747
#12 0x00576698 in toplev_main (argc=<value optimized out>, argv=<value 
optimized out>) at ../../trunk/gcc/toplev.c:979
#13 0xf7dc7a48 in __libc_start_main () from /lib/libc.so.6
#14 0x000129d4 in _start ()



_______________________________________________
Gcc-cfarm-users mailing list
Gcc-cfarm-users@gna.org
https://mail.gna.org/listinfo/gcc-cfarm-users

Reply via email to