public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Stage1 gengenrtl fails on sparc RH 4.2
@ 1998-02-08 12:07 Jeff Johnson
  1998-02-08 13:45 ` H.J. Lu
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jeff Johnson @ 1998-02-08 12:07 UTC (permalink / raw)
  To: egcs

Hi --

Running sparc-redhat-linux-gnu with binutils-2.8.1.0.20.

Top of stack (2/8/98 ~9 am) egcs through remote CVS.

Configuration:
../egcs/configure \
	--prefix=/usr \
	--local-prefix=/usr/local \
	--gxx-include-dir=/usr/include/g++ \
	--with-gnu-ld \
	--with-gnu-as \
	--enable-haifa \
	--enable-shared \
	--enable-threads \
	sparc-redhat-linux

stage1/xgcc -Bstage1/  -DIN_GCC    -O2 -g -O2  -DHAVE_CONFIG_H -DHAIFA  -o gengenrtl \
 gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
./gengenrtl tmp-genrtl.h tmp-genrtl.c
make[2]: ./gengenrtl: Command not found
make[2]: *** [stamp-genrtl] Error 127
make[2]: Leaving directory `/K/h/jbj/src/egcs-sparc-redhat-linux/gcc'
make[1]: *** [bootstrap-lean] Error 2
make[1]: Leaving directory `/K/h/jbj/src/egcs-sparc-redhat-linux/gcc'
[1]+  Exit 2                  make bootstrap-lean 1>&mklog
make: *** [bootstrap-lean] Error 2

bash$ file gengenrtl
gengenrtl: ELF 32-bit MSB executable, SPARC, version 1, dynamically linked, not stripped

No idea how to proceed here. Doing the commands manually gives same
result.

Any help appreciated.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@jbj.org
Gaithersburg, MD

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stage1 gengenrtl fails on sparc RH 4.2
  1998-02-08 12:07 Stage1 gengenrtl fails on sparc RH 4.2 Jeff Johnson
  1998-02-08 13:45 ` H.J. Lu
  1998-02-08 13:45 ` Jeffrey A Law
@ 1998-02-08 13:45 ` Ian Lance Taylor
  2 siblings, 0 replies; 7+ messages in thread
From: Ian Lance Taylor @ 1998-02-08 13:45 UTC (permalink / raw)
  To: jbj; +Cc: egcs

   From: Jeff Johnson <jbj@jbj.org>
   Date: Sun, 8 Feb 1998 15:07:18 -0500 (EST)

   stage1/xgcc -Bstage1/  -DIN_GCC    -O2 -g -O2  -DHAVE_CONFIG_H -DHAIFA  -o gengenrtl \
    gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
   ./gengenrtl tmp-genrtl.h tmp-genrtl.c
   make[2]: ./gengenrtl: Command not found

   bash$ file gengenrtl
   gengenrtl: ELF 32-bit MSB executable, SPARC, version 1, dynamically linked, not stripped

   No idea how to proceed here. Doing the commands manually gives same
   result.

This normally means that gengertl was linked to use the wrong dynamic
linker.  That normally means gcc passed the wrong -dynamic-linker
option to ld.  On Linux, that normally means that you passed the wrong
argument to configure.

I see that you passed sparc-redhat-linux to configure.  On Linux, it's
best not to pass anything.  Let the configure script work it out for
itself.

Ian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stage1 gengenrtl fails on sparc RH 4.2
  1998-02-08 12:07 Stage1 gengenrtl fails on sparc RH 4.2 Jeff Johnson
  1998-02-08 13:45 ` H.J. Lu
@ 1998-02-08 13:45 ` Jeffrey A Law
  1998-02-08 13:45 ` Ian Lance Taylor
  2 siblings, 0 replies; 7+ messages in thread
From: Jeffrey A Law @ 1998-02-08 13:45 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: egcs

  In message < 199802082007.PAA02750@barnstable.jbj.org >you write:
  > stage1/xgcc -Bstage1/  -DIN_GCC    -O2 -g -O2  -DHAVE_CONFIG_H -DHAIFA  -o 
  > gengenrtl \
  >  gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" i
  > n ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
  > ./gengenrtl tmp-genrtl.h tmp-genrtl.c
  > make[2]: ./gengenrtl: Command not found
  > make[2]: *** [stamp-genrtl] Error 127
  > make[2]: Leaving directory `/K/h/jbj/src/egcs-sparc-redhat-linux/gcc'
  > make[1]: *** [bootstrap-lean] Error 2
  > make[1]: Leaving directory `/K/h/jbj/src/egcs-sparc-redhat-linux/gcc'
  > [1]+  Exit 2                  make bootstrap-lean 1>&mklog
  > make: *** [bootstrap-lean] Error 2
  > 
  > bash$ file gengenrtl
  > gengenrtl: ELF 32-bit MSB executable, SPARC, version 1, dynamically linked,
  >  not stripped
  > 
  > No idea how to proceed here. Doing the commands manually gives same
  > result.
Real weird -- any chance this is a system error -- the file exists and is
obviously an elf executable, but the system is refusing to run it....

jeff

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stage1 gengenrtl fails on sparc RH 4.2
  1998-02-08 12:07 Stage1 gengenrtl fails on sparc RH 4.2 Jeff Johnson
@ 1998-02-08 13:45 ` H.J. Lu
  1998-02-08 13:45 ` Jeffrey A Law
  1998-02-08 13:45 ` Ian Lance Taylor
  2 siblings, 0 replies; 7+ messages in thread
From: H.J. Lu @ 1998-02-08 13:45 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: egcs

> 
> Hi --
> 
> Running sparc-redhat-linux-gnu with binutils-2.8.1.0.20.
> 
> Top of stack (2/8/98 ~9 am) egcs through remote CVS.
> 
> Configuration:
> ../egcs/configure \
> 	--prefix=/usr \
> 	--local-prefix=/usr/local \
> 	--gxx-include-dir=/usr/include/g++ \
> 	--with-gnu-ld \
> 	--with-gnu-as \
> 	--enable-haifa \
> 	--enable-shared \
> 	--enable-threads \
> 	sparc-redhat-linux
> 
> stage1/xgcc -Bstage1/  -DIN_GCC    -O2 -g -O2  -DHAVE_CONFIG_H -DHAIFA  -o gengenrtl \
>  gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
> ./gengenrtl tmp-genrtl.h tmp-genrtl.c
> make[2]: ./gengenrtl: Command not found

Unless I am wrong, RedHat 4.2 is not sparc-redhat-linux-gnu.
xxxxx-linux-gnu is for Linux systems which use glibc 2.0 or
above. Please try to configure it as sparc-redhat-linux-gnulibc1.


H.J.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stage1 gengenrtl fails on sparc RH 4.2
  1998-02-10  9:57 Jeff Johnson
  1998-02-10 12:11 ` Ian Lance Taylor
@ 1998-02-10 14:45 ` H.J. Lu
  1 sibling, 0 replies; 7+ messages in thread
From: H.J. Lu @ 1998-02-10 14:45 UTC (permalink / raw)
  To: Jeff Johnson; +Cc: egcs

> either explicit "sparc-redhat-linux-gnulibc1" or implicit omission of
> target. The explicit variant worked for me.
> 
> However, that means that the configure script is too stupid to correctly
> figure out what library is present ...

It is intentional. Sometimes I want to do that :-).

> 
> There's also another minor bugture/featlet:
> 
> make[1]: Leaving directory `/K/h/jbj/src/egcs-sparc-redhat-linux/libraries/libg++'
> Configuring in libraries/libf2c
> configure: error: --local-prefix=/usr/local: invalid option; use --help to show usage
> make: *** [configure-target-libf2c] Error 1
> 
> Manually configuring libf2c w/o --local-prefix worked for me.
> 

It has been changed to --with-local-prefix=/usr/local. Don't
ask me why.

H.J.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stage1 gengenrtl fails on sparc RH 4.2
  1998-02-10  9:57 Jeff Johnson
@ 1998-02-10 12:11 ` Ian Lance Taylor
  1998-02-10 14:45 ` H.J. Lu
  1 sibling, 0 replies; 7+ messages in thread
From: Ian Lance Taylor @ 1998-02-10 12:11 UTC (permalink / raw)
  To: jbj; +Cc: egcs

   From: Jeff Johnson <jbj@jbj.org>
   Date: Tue, 10 Feb 1998 11:38:55 -0500 (EST)

   As pointed out by H.J. Lu & Ian Lance Taylor, the configure requires
   either explicit "sparc-redhat-linux-gnulibc1" or implicit omission of
   target. The explicit variant worked for me.

   However, that means that the configure script is too stupid to correctly
   figure out what library is present ...

Are you saying that omitting the host name did not work correctly?
That would indicate a bug in the config.guess script.  What does
config.guess print on your system?

If you choose to explicitly provide the host name, then configure
assumes you know what you want.

Ian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Stage1 gengenrtl fails on sparc RH 4.2
@ 1998-02-10  9:57 Jeff Johnson
  1998-02-10 12:11 ` Ian Lance Taylor
  1998-02-10 14:45 ` H.J. Lu
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Johnson @ 1998-02-10  9:57 UTC (permalink / raw)
  To: egcs

Hi --

> Running sparc-redhat-linux-gnu with binutils-2.8.1.0.20.
> 

Wishful thinking here, platform is actually sparc-redhat-linux-gnulibc1.

> Top of stack (2/8/98 ~9 am) egcs through remote CVS.
> 
> Configuration:
> ../egcs/configure \
> 	--prefix=/usr \
> 	--local-prefix=/usr/local \
> 	--gxx-include-dir=/usr/include/g++ \
> 	--with-gnu-ld \
> 	--with-gnu-as \
> 	--enable-haifa \
> 	--enable-shared \
> 	--enable-threads \
> 	sparc-redhat-linux
> 

As pointed out by H.J. Lu & Ian Lance Taylor, the configure requires
either explicit "sparc-redhat-linux-gnulibc1" or implicit omission of
target. The explicit variant worked for me.

However, that means that the configure script is too stupid to correctly
figure out what library is present ...

There's also another minor bugture/featlet:

make[1]: Leaving directory `/K/h/jbj/src/egcs-sparc-redhat-linux/libraries/libg++'
Configuring in libraries/libf2c
configure: error: --local-prefix=/usr/local: invalid option; use --help to show usage
make: *** [configure-target-libf2c] Error 1

Manually configuring libf2c w/o --local-prefix worked for me.

Thanks for the help.

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@jbj.org
Gaithersburg, MD

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1998-02-10 14:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-08 12:07 Stage1 gengenrtl fails on sparc RH 4.2 Jeff Johnson
1998-02-08 13:45 ` H.J. Lu
1998-02-08 13:45 ` Jeffrey A Law
1998-02-08 13:45 ` Ian Lance Taylor
1998-02-10  9:57 Jeff Johnson
1998-02-10 12:11 ` Ian Lance Taylor
1998-02-10 14:45 ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).