Discussion:
Can no longer compile to s390x
(too old to reply)
Ivan Warren
2004-09-20 15:40:04 UTC
Permalink
...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
--
To UNSUBSCRIBE, email to debian-s390-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Bastian Blank
2004-09-20 15:40:09 UTC
Permalink
Post by Ivan Warren
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.
Install lib64gcc1.

Bastian
--
No one can guarantee the actions of another.
-- Spock, "Day of the Dove", stardate unknown
Ivan Warren
2004-09-20 15:40:13 UTC
Permalink
Fixed !

Million thanks :)

--Ivan
-----Original Message-----
Sent: Monday, September 20, 2004 5:35 PM
Subject: Re: Can no longer compile to s390x
Post by Ivan Warren
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.
Install lib64gcc1.
Bastian
--
No one can guarantee the actions of another.
-- Spock, "Day of the Dove", stardate unknown
--
To UNSUBSCRIBE, email to debian-s390-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Matthias Urlichs
2004-09-20 16:00:15 UTC
Permalink
Hi,
Post by Bastian Blank
Post by Ivan Warren
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.
Install lib64gcc1.
... and report a bug. That should be in gcc-3.4's dependency.
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | ***@smurf.noris.de
Loading...