-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gcc is not finding newlib's stdio.h #20
Comments
What platform are you on? I'm guessing a 32-bit linux? There should probably be stdio.h files in the following subdirectories of the prefix:
|
On Tue, 2012-02-28 at 17:12 -0800, James Snyder wrote:
Yes, the files are there, but wouldn't you expect gcc to pick them up |
Yep, I suppose it's for some reason not looking in the correct paths. certainly something like this should work: test.c:
#include <stdio.h>
void main( void )
{
printf("Hello world!\n");
} then:
I get the following output:
It's not going to link without some missing functions, an entry point, and at least stubs for functions that would normally be taken care of by an OS, but it should at least compile as above. |
Extracted tarball and compiled with
PREFIX=/mnt/data/s/gcc install-cross
Other information:
$ gcc --version
gcc (32-bit ARM EABI Toolchain JBS-2011.09-69-v2011.09-69-12-g2867909) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
Target: arm-none-eabi
Configured with: ../../gcc-4.6-2011.09/configure --prefix=/mnt/data/s/gcc --with-pkgversion='32-bit ARM EABI Toolchain JBS-2011.09-69-v2011.09-69-12-g2867909' --with-bugurl=https://github.com/jsnyder/arm-eabi-toolchain --target=arm-none-eabi --enable-languages=c,c++ --with-gnu-ld --with-gnu-as --with-newlib --disable-nls --disable-libssp --disable-shared --enable-threads --with-headers=yes --disable-libmudflap --disable-libgomp --enable-lto --disable-libstdcxx-pch --enable-poison-system-directories --with-sysroot=/mnt/data/s/gcc/arm-none-eabi --with-build-time-tools=/mnt/data/s/gcc/arm-none-eabi/bin --enable-extra-sgxxlite-multilibs --with-specs='%{save-temps: -fverbose-asm} -D__CS_SOURCERYGXX_MAJ__=2011 -D__CS_SOURCERYGXX_MIN__=09 -D__CS_SOURCERYGXX_REV__=69 %{O2:%{!fno-remove-local-statics: -fremove-local-statics}} %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics: -fremove-local-statics}}}'
Thread model: single
gcc version 4.6.1 (32-bit ARM EABI Toolchain JBS-2011.09-69-v2011.09-69-12-g2867909)
Anybody seen this? Any ideas what I should do?
Thanks in advance,
Dale
The text was updated successfully, but these errors were encountered: