[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

Title:USG buildhelp questions/answers
Moderator:SMURF::FILTER
Created:Mon Apr 26 1993
Last Modified:Mon Jan 20 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2763
Total number of notes:5802

399.0. "gold build question" by SMURF::FILTER (Automatic Posting Software - mail to flume::puck) Fri Oct 29 1993 12:41

Date Of Receipt: 	29-OCT-1993 11:52:24.34
	Mon, 25 Oct 93 11:55:42 -0400
From: 	ALPHA::"[email protected]" "John Flanagan USG Test Johnf Tools Group  29-Oct-1993 1153"
	[email protected]
To: 	[email protected]
	[email protected]
CC: 	
	[email protected], [email protected]
Subj: 	gold build question
Return-Path: 	[email protected]
Received: 	by abyss.zk3.dec.com (5.65/DEC-USSG-ZK3-ULTRIX-09/27/91);
id AA27531; Mon, 25 Oct 1993 11: 	55:43 -0400
Message-Id: 	<[email protected]>
Subject: 	crt0.o, -lpthreads and gold.bl6
X-Mts: 	smtp

Hi, I'm a develper working on DFS and am having a problem when backed
to  goldos.bl6. My technical project leader, Ed Cande thought you might
be the person to contact with a goldos build problem. It seems that the
tools area of goldos.bl6 is not providing the right crt0.o when
creating executable programs that use pthreads.

User-space daemons built in my goldos.bl6 sandbox Seg fault. If I
compile the same programs in a user-shell on my bl6 platform they run. 

  cc -g  test.o \
  -L/usr/sandbox/bbn/dfs_smp/export/alpha_OSF1/usr/shlib
  -L/usr/shlib \
  -L/usr/lib \
  -o test test.o \
  -lpthreads -lmach -lbsd -lc_r

In my sandbox, the -v option to ld shows the following operation;

  /usr/sde/osf1/build/goldos.bl6/tools/alpha/cc/usr/lib/cmplrs/cc/ld 
  -o test
  -systype /usr/sde/osf1/build/goldos.bl6/tools/alpha/cc/ 
  -G 8 
  -L/usr/sandbox/bbn/dfs_smp/export/alpha_OSF1/usr/shlib 
  -L/usr/shlib
  -L/usr/lib 
  -g2 -O1 -call_shared -nocount      
  usr/sde/osf1/build/goldos.bl6/tools/alpha/cc/usr/lib/cmplrs/cc/crt0.o 
  -count 
  test.o 
  -lpthreads -lmach -lbsd -lc_r 
  -nocount -lc

In a user shell the link looks like;

  /usr/lib/cmplrs/cc/ld 
  -o test
  -G 8
  -L/usr/sandbox/bbn/dfs_smp/export/alpha_OSF1/usr/shlib
  -L/usr/shlib
  -L/usr/lib
  -g2 -O1 -call_shared -nocount   
  /usr/lib/cmplrs/cc/crt0.o
  -count
  test.o
  -lpthreads -lmach -lbsd -lc_r -lc 
  -nocount -lc

When I do an ls on the crt0.o's they are different 

# ls -l /usr/lib/cmplrs/cc/crt0.o
- - -r--r--r--   1 bin      bin         4808 Sep 30 19:45 
/usr/lib/cmplrs/cc/crt0.o
# ls -l /usr/sde/osf1/build/goldos.bl6/tools/alpha/cc/usr/lib/cmplrs/cc/crt0.o
- - -rw-r--r--   1 8887     10          4840 Nov 19 1992 
/usr/sde/osf1/build/goldos.bl6/tools/alpha/cc/usr/lib/cmplrs/cc/crt0.o


Why is this ? Is there a ld or ode flag to let me choose which crt0.o
gets used? Is the goldos.bl6 version suppose to be from nov. of 92.

Brad

- ------- End of Forwarded Message


------- End of Forwarded Message


T.RTitleUserPersonal
Name
DateLines