From: Adam J Richter (adam@soda.berkeley.edu)
Date: 08/31/92


From: adam@soda.berkeley.edu (Adam J Richter)
Subject: ld always gets segmentation fault
Date: 31 Aug 1992 06:00:42 GMT


        Please excuse my ignorance if I'm overlooking something
really obvious. I'm still kind of new to Linux.

        I'm trying to install GCC 2.2.2d from the binaries in
ftp.dfv.rwth-aachen.de:/pub/linux/GCC. The compiler seems to
work okay, but the /usr/bin/ld (from the binutils.tar.Z file)
gets a segmentation fault when I run it. ldd does not print
anything when I run it on /usr/bin/ld, so I infer that /usr/bin/ld
does not need any shared libraries.

        Also, uncompress gets a segmentation fault when I attempt
to uncompress binutils.tar.Z. I had to untar the file on a another
system and upload the binary for ld (through kermit--yes, I used binary
mode).

        When I try to run an earlier version of ld that I had, I get
"cannot execute binary file," even though it is executable and
/usr/bin/file claims that it is "demand paged executable." Oddly,
/usr/bin/file claims that the version of ld that runs but core
dumps is "data." I guess Linux a.out files must be somehow different
from BSD a.out files.

        Anyhow, if anybody knows what I'm doing wrong, I'd appreciate
hearing about it. I'd really like to get the C compiler working already.

-- 
Adam J. Richter                         409 Evelyn Avenue, Apt. 312
richter@cerf.net                        Albany, CA 94706
                                        (510)528-3209
Another member of the League for Programming Freedom (league@prep.ai.mit.edu).