What I think I want, still learning, is to build the nosys version of the newlib which is a series of stubs to satisfy the linker without providing any true implementation.
The newlib docs refer to an argument --srcdir is this an argument that should be provided to the gcc configure e.g.
../gcc-x.y.z/configure --target=$T prefix=$P --with-sysroot --disable-nls --enable-languages=c,c++ --srcdir=?
if this is the case what should I define this as? The root of the newlib directory under the gcc source tree, I have simple copied the entire newlib untarred distribution into a directory called newlib under the gcc source tree. Although the documents say that newlib will default to this I get the following error:
Code: Select all
make[3]: Leaving directory '/cygdrive/c/kabuta/cross/gnu/gcc-5.1.0.build/i686-elf/libgcc'
make[2]: Leaving directory '/cygdrive/c/kabuta/cross/gnu/gcc-5.1.0.build/i686-elf/libgcc'
Checking multilib configuration for newlib...
mkdir -p -- i686-elf/newlib
Configuring in i686-elf/newlib
configure: creating cache ./config.cache
configure: error: cannot run /bin/sh ../../../gcc-5.1.0/newlib/config.sub
Makefile:12478: recipe for target 'configure-target-newlib' failed
make[1]: *** [configure-target-newlib] Error 1
make[1]: Leaving directory '/cygdrive/c/kabuta/cross/gnu/gcc-5.1.0.build'
Makefile:878: recipe for target 'all' failed
Is this the case, and if so where should I point srcdir to correctly build nosys or am I well off the track?