Subject: Re: cross compile with Linux host fails with nbmake Illegal instruction
To: None <tech-toolchain@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-toolchain
Date: 02/06/2005 00:28:55
So I reinstalled glibc. The system had been working fine[*] since June,
but had not been used for doing any development.
Now the host_alias for configure was not needed. I did:
host_alias=i386-pc-linux-gnu HOST_CC=/usr/gcc3/bin/cc ./build.sh -m i386
-U tools
Ended with:
/usr/gcc3/bin/cc -O -o nbmake *.o
nbmake: illegal argument to d option -- e
Usage: nbmake [-Beiknqrst] [-D variable] [-d flags] [-f makefile ]
[-I directory] [-j max_jobs] [-m directory] [-V variable]
[variable=value] [target ...]
nbmake: illegal argument to d option -- e
Usage: nbmake [-Beiknqrst] [-D variable] [-d flags] [-f makefile ]
...
(The above error was repeated several times.)
I wonder if that is this part from build.sh:
MAKEFLAGS="-de -m ${TOP}/share/mk ${MAKEFLAGS}
MKOBJDIRS=${MKOBJDIRS-yes}"
export MAKEFLAGS MACHINE MACHINE_ARCH
I will have to look more later. Good night!
(Please CC me on replies. Thank you.)
Jeremy C. Reed
[*] It was amazingly slow though. Maybe this is related. Maybe it will be
quicker now :)