Re: [Lnx-bbc-bugs] bug#410: binutils wont build

Paul Gray <[email protected]>
Newsgroups gmane.linux.bbc.devel
Message-ID <[email protected]>
On Tue, 14 Oct 2003, Nadav Rotem wrote:

>
> I am on a redhat box. I let it build over the night. you think that the
> system decided to delete it over night?
[snip]
>
>  > Package: binutils
>  > -L//tmp/build/lib/gcc-lib/i386-lnxbbc-linux/3.2.3 ) works... no
>  > configure: error: installation or configuration problem: C compiler
> cannot


Including your build information on bug reports is essential, including
the OS, cvs branch (HEAD or STABLE), your glibc version (output from
`/lib/libc.so.6 | head -1` would work), and the gcc that you're using to
build.

It looks as if the binutils is still using the host's build gcc on your
box:

 checking whether the C compiler (gcc -Os
 -I//tmp/build/staging/singularity/image//include
 -L//tmp/build/staging/singularity/image//lib
 -I//tmp/build/staging/singularity/image//lib/gcc-lib/i386-lnxbbc-linux/3.2.3/include
 -I//tmp/build/lib/gcc-lib/i386-lnxbbc-linux/3.2.3/include
 -L//tmp/build/staging/singularity/image//lib/gcc-lib/i386-lnxbbc-linux/3.2.3
 -L//tmp/build/lib/gcc-lib/i386-lnxbbc-linux/3.2.3 ) works... no

This should be the build compiler, although the CFLAGS seem to have stuck.

Try adding this to the Makefile for binutils:

CONFIGURE_ENV = CC=$(CC) CFLAGS="$(CFLAGS)"
BUILD_ENV = CC=$(CC) CFLAGS="$(CFLAGS)"

  cd back into gar/meta/lnx-bbc
  issue make -C ../../utils/binutils clean
  then resume, with make build

Paul Gray                                         -o)
323 Wright Hall                                   /\\
University of Northern Iowa                      _\_V
  Message void if penguin violated ...  Don't mess with the penguin
  No one ever says "Hey, I can't read that ASCII e-mail ya sent me."
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.