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

Can no longer compile to s390x



...Maybe off topic...

While compiling a simple program for a s390x target :

Sample program foo.c :
int main()
{
	exit(0);
}

Gcc-3.0 gives :

gcc-3.0 -m64 foo.c -o foo
/tmp/ccBNrYZC.s: Assembler messages:
/tmp/ccBNrYZC.s:16: Error: Unrecognized opcode: `stmg'
/tmp/ccBNrYZC.s:17: Error: Unrecognized opcode: `larl'
/tmp/ccBNrYZC.s:23: Error: Unrecognized opcode: `lgr'
/tmp/ccBNrYZC.s:24: Error: Unrecognized opcode: `aghi'
/tmp/ccBNrYZC.s:25: Error: Unrecognized opcode: `stg'
/tmp/ccBNrYZC.s:26: Error: Unrecognized opcode: `lgr'
/tmp/ccBNrYZC.s:27: Error: Unrecognized opcode: `lghi'
/tmp/ccBNrYZC.s:28: Error: Unrecognized opcode: `brasl'
/tmp/ccBNrYZC.s:29: Error: Unrecognized opcode: `lg'
/tmp/ccBNrYZC.s:30: Error: Unrecognized opcode: `lmg'

Using gcc-3.3 :

gcc-3.3 -m64 foo.c -o foo
/usr/bin/ld: cannot find -lgcc_s_64
collect2: ld returned 1 exit status

Using gcc-3.4 :

gcc-3.4 -m64 foo.c -o foo
/usr/bin/ld: cannot find -lgcc_s_64
collect2: ld returned 1 exit status

Note : libc6-s390x and libc6-s390x-dev are installed.

The last 2 are a bit suprising as there is a libgcc_s_64.so, at least in
"/usr/lib/gcc/linux-s390/3.4.2"

Also.. This used to work.. (compiling for 64 bit target)

Any ideas ? Or maybe ideas as to where to file an eventual report (if
applicable) ? (gcc, binutils, glibc - debian or upstream..)

Thanks,

--Ivan



Reply to: