🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #554

Ld Got Bus Error When Building G++ 1.39.1 and Libg++ 1.39.0 ONAT386 Running AT&T SVR3.2.2

#554
From: Hongjiu Lu
Date: Mon, 10 Jun 1991 05:04
33 lines
2013 bytes
In my previous article I sent, I forgot mentioning the machine I am 
trying to build g++ 1.39.1 and libg++ 1.39.0 on, which is an AT386 and
running AT&T UNIX System V/386 Release 3.2.2. I am using the native
assembler and linker come with the system.

I finaly managed to compile everthing. After playing around for
serveral days I finally passed all the tests of libg++. Also it works
fine now, I still have somethngs I don't understand.

It seems that the output of ld -r cannot be used with the later ld run
everytime. Some of them will produce the error message "Bus error - core
dumped" during the final ld run to create the executable file. Here is
the example of a ld run.

g++ -v -o tPQ tPQ.o -L. -L../src -ltest -lg++ -lm -lc_s

g++ version 1.39.1 (based on GCC 1.39)
 ld -r -o /usr/tmp/cca00467.R /lib/crt1.o -L. -L../src tPQ.o -ltest -lg++ -lm -lc_s -lg++ /usr/local/lib/gcc-gnulib -lc /lib/crtn.o
 /usr/local/lib/gcc-collect -o /usr/tmp/cca00467.s /usr/tmp/cca00467.R
 as /usr/tmp/cca00467.s -o /usr/tmp/cca00467.O
 ld -o ttt /usr/tmp/cca00467.R /usr/tmp/cca00467.O
g++: Program ld got fatal signal 10.

I was wondering under what condition ld will cause the bus error when
doing a 
	ld -o xxx xxx.o xxx.o
Could anyone give me a hint? I got around this by relink everything.
But I still want to know why I have to do this.

Thanks in advance.


H.J. Lu
Technical Details
Message-ID: <1991Jun10.050406.5746@serval.net.wsu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!raven.alaska.edu!milton!serval!yoda.eecs.wsu.edu!hlu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!bionet!raven.alaska.edu!milton!serval!yoda.eecs.wsu.edu!hlu
From: hlu@yoda.eecs.wsu.edu (Hongjiu Lu)
Newsgroups: gnu.g++.help,comp.bugs.misc,comp.bugs.sys5,comp.unix.wizards,comp.unix.sysv386,comp.unix.questions
Subject: Ld Got Bus Error When Building G++ 1.39.1 and Libg++ 1.39.0 ONAT386 Running AT&T SVR3.2.2
Message-ID: <1991Jun10.050406.5746@serval.net.wsu.edu>
Date: 10 Jun 91 05:04:06 GMT
Sender: news@serval.net.wsu.edu (USENET News System)
Organization: Washington State University
Lines: 33
Originator: hlu@yoda.eecs.wsu.edu