public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Re: Cross-compile failure. yay.
@ 1999-07-09  0:10 Tony Mantler
  1999-07-31 23:33 ` Jeffrey A Law
  0 siblings, 1 reply; 5+ messages in thread
From: Tony Mantler @ 1999-07-09  0:10 UTC (permalink / raw)
  To: Brian Ford; +Cc: egcs-bugs

I wrote:
>At 10:21 AM -0500 7/8/99, Brian Ford wrote:
>>On Thu, 8 Jul 1999, Tony Mantler wrote:
>>
>>> Setup:
>>>
>>> ../egcs-1.1.2/configure \
>>> 	ppc-linux \
>>Use --target=ppc-linux
>
>can do.
>
>
>>> 	--with-cpu=603e \
>>> 	--host=i386-linux \
>>
>>You should almost never specify the host.  Let configure guess.
>
>last time I let it guess, it thought I was running _on_ ppc-linux, likely
>because of the earlier option.
>
>
>>> 	--with-headers=/usr/include
>>>
>>> make cross
>>>
>>>
>>> Results:
>>>
>>> [happy compiling stuff deleted]
>>>
>>> as: unrecognized option `-ppc'
>>> make[3]: *** [libgcc2.a] Error 1
>>>
>>xgcc is using the wrong as.  This may be a gcc Makefile bug that I have
>>seen before.  It works best if you do a one tree build with binutils in
>>the gcc tree.  See http://www.objsw.com/CrossGCC/ for details.
>
>I'd like to do that, but my budget doesn't include much HD space. I
>assumed from it's documentation that the debian binutils-multiarch package
>included a version of as/ar/ld and whatnot that is capable of handling
>files for all the architectures. I should probably double-check that, as
>it would be easy to leave out as.
>
>I'll see if I can free up some HD space and install the binutils tree.

binutils compiled and installed fine. (seperatley, due to HD space limitations)

However, egcs still won't compile.

After building and installing the binutils, I entered the egcs-bin
directory I created, did a '../egcs-1.1.2/configure --target=ppc-linux
--with-cpu=603e --with-headers=/usr/include', 'make clean' and 'make cross'
and got this:

[compiling stuff done, runtime lib stuff started]
Configuring in ppc-linux/libio
Appending ../../../egcs-1.1.2/libio/config/linux.mt to target-mkfrag
Appending ../../../egcs-1.1.2/libio/config/mtsafe.mt to target-mkfrag
Created "Makefile" in /usr/src/egcs-bin/ppc-linux/libio using "target-mkfrag"
Appending ../../../../egcs-1.1.2/libio/config/linux.mt to target-mkfrag
Appending ../../../../egcs-1.1.2/libio/config/mtsafe.mt to target-mkfrag
Created "Makefile" in /usr/src/egcs-bin/ppc-linux/nof/libio using
"target-mkfrag"
Configuring in ppc-linux/libiberty
creating cache ./config.cache
checking host system type... powerpc-unknown-linux-gnu
checking build system type... i486-pc-linux-gnu
checking for ppc-linux-ar... ppc-linux-ar
checking for ppc-linux-ranlib... ppc-linux-ranlib
checking for gcc... /usr/src/egcs-bin/gcc/xgcc -B/usr/src/egcs-bin/gcc/
checking whether we are using GNU C... yes
checking whether /usr/src/egcs-bin/gcc/xgcc -B/usr/src/egcs-bin/gcc/
accepts -g... yes
checking for POSIXized ISC... no
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... /usr/src/egcs-bin/gcc/xgcc
-B/usr/src/egcs-bin/gcc/ -E
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking whether the C compiler (/usr/src/egcs-bin/gcc/xgcc
-B/usr/src/egcs-bin/gcc/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
make[1]: *** [configure-target-libiberty] Error 1
make[1]: Leaving directory `/usr/src/egcs-bin'
make: *** [cross] Error 2


Fudge.

TIA - Tony


--
Tony Mantler         Renaissance Nerd Extraordinaire         eek@escape.ca
Winnipeg, Manitoba, Canada                       http://www.escape.ca/~eek



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

* Re: Cross-compile failure. yay.
  1999-07-31 23:33 ` Jeffrey A Law
@ 1999-07-31 23:33   ` Tony Mantler
  0 siblings, 0 replies; 5+ messages in thread
From: Tony Mantler @ 1999-07-31 23:33 UTC (permalink / raw)
  To: law; +Cc: Brian Ford, egcs-bugs

At 2:12 AM -0500 7/9/99, Jeffrey A Law wrote:
>  In message < v04003a02b3ab4be5b353@[216.81.20.217] >you write:
>  > However, egcs still won't compile.
>  >
>  > After building and installing the binutils, I entered the egcs-bin
>  > directory I created, did a '../egcs-1.1.2/configure --target=ppc-linux
>  > --with-cpu=603e --with-headers=/usr/include', 'make clean' and 'make
>cross'
>  > and got this:
>You need to provide target libraries (ie libc) so that the target configure
>will work.

Well, I just extracted the libraries out of the ppc libc6-dev 2.1.1-12.3
debian package, and pointed the configure script at them. They were copied
into the appropriate place etc and it looks as though all went well.

I did a 'make cross' and it died at the same spot with the same error. Fudge.

Should I obtain and add the c++ libs and try again, or am I dealing with a
different problem?

I certainly hope the configuration script isn't trying to compile something
with the cross-gcc and then run it to see if it works, as doing so wouldn't
be terribly productive.

TIA - Tony


--
Tony Mantler         Renaissance Nerd Extraordinaire         eek@escape.ca
Winnipeg, Manitoba, Canada                       http://www.escape.ca/~eek



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

* Re: Cross-compile failure. yay.
  1999-07-09  0:10 Cross-compile failure. yay Tony Mantler
@ 1999-07-31 23:33 ` Jeffrey A Law
  1999-07-31 23:33   ` Tony Mantler
  0 siblings, 1 reply; 5+ messages in thread
From: Jeffrey A Law @ 1999-07-31 23:33 UTC (permalink / raw)
  To: Tony Mantler; +Cc: Brian Ford, egcs-bugs

  In message < v04003a02b3ab4be5b353@[216.81.20.217] >you write:
  > However, egcs still won't compile.
  > 
  > After building and installing the binutils, I entered the egcs-bin
  > directory I created, did a '../egcs-1.1.2/configure --target=ppc-linux
  > --with-cpu=603e --with-headers=/usr/include', 'make clean' and 'make cross'
  > and got this:
You need to provide target libraries (ie libc) so that the target configure
will work.
jeff


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

* Re: Cross-compile failure. yay.
       [not found] <v04003a02b3aa03669108@[216.81.6.124]>
@ 1999-07-31 23:33 ` Brian Ford
  1999-07-08 13:24   ` Tony Mantler
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Ford @ 1999-07-31 23:33 UTC (permalink / raw)
  To: Tony Mantler; +Cc: egcs-bugs

On Thu, 8 Jul 1999, Tony Mantler wrote:

> Setup:
> 
> ../egcs-1.1.2/configure \
> 	ppc-linux \
Use --target=ppc-linux

> 	--with-cpu=603e \
> 	--host=i386-linux \

You should almost never specify the host.  Let configure guess.
> 	--with-headers=/usr/include
> 
> make cross
> 
> 
> Results:
> 
> [happy compiling stuff deleted]
> 
> as: unrecognized option `-ppc'
> make[3]: *** [libgcc2.a] Error 1
> 
xgcc is using the wrong as.  This may be a gcc Makefile bug that I have
seen before.  It works best if you do a one tree build with binutils in
the gcc tree.  See http://www.objsw.com/CrossGCC/ for details.

--
Brian Ford
Software Engineer
Vital Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444



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

* Re: Cross-compile failure. yay.
  1999-07-31 23:33 ` Brian Ford
@ 1999-07-08 13:24   ` Tony Mantler
  0 siblings, 0 replies; 5+ messages in thread
From: Tony Mantler @ 1999-07-08 13:24 UTC (permalink / raw)
  To: Brian Ford; +Cc: egcs-bugs

At 10:21 AM -0500 7/8/99, Brian Ford wrote:
>On Thu, 8 Jul 1999, Tony Mantler wrote:
>
>> Setup:
>>
>> ../egcs-1.1.2/configure \
>> 	ppc-linux \
>Use --target=ppc-linux

can do.


>> 	--with-cpu=603e \
>> 	--host=i386-linux \
>
>You should almost never specify the host.  Let configure guess.

last time I let it guess, it thought I was running _on_ ppc-linux, likely
because of the earlier option.


>> 	--with-headers=/usr/include
>>
>> make cross
>>
>>
>> Results:
>>
>> [happy compiling stuff deleted]
>>
>> as: unrecognized option `-ppc'
>> make[3]: *** [libgcc2.a] Error 1
>>
>xgcc is using the wrong as.  This may be a gcc Makefile bug that I have
>seen before.  It works best if you do a one tree build with binutils in
>the gcc tree.  See http://www.objsw.com/CrossGCC/ for details.

I'd like to do that, but my budget doesn't include much HD space. I assumed
from it's documentation that the debian binutils-multiarch package included
a version of as/ar/ld and whatnot that is capable of handling files for all
the architectures. I should probably double-check that, as it would be easy
to leave out as.

I'll see if I can free up some HD space and install the binutils tree.

Thanks - Tony


--
Tony Mantler         Renaissance Nerd Extraordinaire         eek@escape.ca
Winnipeg, Manitoba, Canada                       http://www.escape.ca/~eek



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

end of thread, other threads:[~1999-07-31 23:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-09  0:10 Cross-compile failure. yay Tony Mantler
1999-07-31 23:33 ` Jeffrey A Law
1999-07-31 23:33   ` Tony Mantler
     [not found] <v04003a02b3aa03669108@[216.81.6.124]>
1999-07-31 23:33 ` Brian Ford
1999-07-08 13:24   ` Tony Mantler

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).