[Toybox] GNU autotools are not working
Brian Mayer
bleemayer at gmail.com
Tue Oct 29 11:53:29 PDT 2024
Hi.
I'm trying to compile GNU make v3.79 using toybox and tcc, but it
fails on the configure part.
I tested the c compiler and it works, so it may be something related
to how GNU autotools interact with toybox or the compiler.
The errors are hard to follow, but it seems to be related with the
confdefs.h and .c files, after a lot of sed and cat commands.
The idea is to bootstrap the build tools, i.e. compile make without
make or other tools that depend on make.
This is the output of the command:
# ./configure
creating cache ./config.cache
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... ./configure[795]: can't create
temporary file : No such file or directory
no
./configure[814]: can't create temporary file : No such file or directory
./configure[818]: can't create temporary file : No such file or directory
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking host system type... Invalid configuration
`x86_64-pc-linux-gnuoldld': machine `x86_64-pc' not recognized
checking whether make sets ${MAKE}... (cached) no
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc ) works... ./configure[1079]:
can't create temporary file : No such file or directory
no
configure: error: installation or configuration problem: C compiler
cannot create executables.
After editing the configure script and not letting it remove temporary
test files I was able to check the conftest.c file
that is used to test the C compiler, and the file is empty. Don't know
if this is expected.
Can someone point me in the right direction?
Thanks.
More information about the Toybox
mailing list