This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

2nd problem



I've got my native sh-4 compiler built, with my cross-compiler.
It was built with:
../gcc-3.0.1/configure --target=$TARGET --prefix=$PREFIX --disable-shared
--host=$TARGET -build=i386-slackware-linux --enable-languages=c,cpp
where $TARGET=sh4-linux

the only modification made at all was on the LDFLAGS line of the make
file:
LDFLAGS = -all-static

I'm getting errors trying to re-compiler the native sh-4 on the sh-4 
machine now, as well as my bin-utils.
which are also built with the exact same flags.
my errors are looking like this:

/bin/../lib/gcc-lib/sh4-linux/3.0.1/../../../../sh4-linux/bin/ld: cannot
open crt1.o: No such file or directory
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest    conftest.c' failed.
*** You must set the environment variable CC to a working compiler.


ex:

bash-2.05# cat /blah.c
int main ()

  {

  }

bash-2.05# gcc /blah.c
/bin/../lib/gcc-lib/sh4-linux/3.0.1/../../../../sh4-linux/bin/ld: cannot
open crt1.o: No such file or directory
collect2: ld returned 1 exit status

where did I go wrong this time?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]