-
Notifications
You must be signed in to change notification settings - Fork 88
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
jimtcl fails with stdlib.h not found #54
Comments
The /opt/mine/lib parts seem to be from an SVN include somewhere for OOCD... not sure it ought to be there. Nevertheless, it's not likely your issue though I removed it from my version. Here's what I have found so far... Open: summon-arm-toolchain/openocd-0.6.1/jimtcl/autosetup/cc.tcl
|
You are building on darwin, targetting darwin. Host System...x86_64-apple-darwin11.4.2 Which cc are you using? It should support -gstabs. |
What does need to be in the path? |
I wonder if you are pulling in cc from somewhere else, not the host cc. Can you provide the config.log? |
It looks like clang doesn't support -gstabs, but llvm-gcc does. So if your CC points to clang, it's no go. nv-rbarris-mbp:~ rbarris$ CC -v nv-rbarris-mbp:~ rbarris$ CC -gstabs nv-rbarris-mbp:~ rbarris$ llvm-gcc --version -gstabs nv-rbarris-mbp:~ rbarris$ llvm-gcc -gstabs |
Not sure why you are testing CC (the C++ compiler). Test cc (the C compiler) instead. |
Same really - 'cc' maps to clang by default, and clang doesn't support gstabs. This is Xcode 4.6.1 with the latest command line tools package. nv-rbarris-mbp:~ rbarris$ which cc nv-rbarris-mbp:~ rbarris$ cc --version nv-rbarris-mbp:~ rbarris$ cc -gstabs |
OK. This must be a recent change. I'll come up with a check for this. |
The patch works. |
I'm still running into this issue with the patch applied. |
@Tylerflick you will need to provide your config.log if you want me to investigate this further |
Are you sure this is the same issue? The OP was building on macosx, but you look like you are building on msys. If it is different, please open a separate ticket. |
ok,sorry!,delete it! |
Summoning fails for me:
=== configuring in jimtcl (/Users/ksjogo/arm/summon-arm-toolchain/build/jimtcl) configure: running /bin/sh ../../openocd-0.6.1/jimtcl/configure.gnu --disable-option-checking '--prefix=/Users/ksjogo/sat' '--enable-maintainer-mode' '--disable-werror' '--enable-dummy' '--enable-ft2232_libftdi' '--enable-usb_blaster_libftdi' '--enable-ep93xx' '--enable-at91rm9200' '--enable-presto_libftdi' '--enable-usbprog' '--enable-jlink' '--enable-vsllink' '--enable-rlink' '--enable-arm-jtag-ew' '--enable-stlink' 'CFLAGS= -I/opt/mine/include -I/usr/local/include' 'LDFLAGS= -L/opt/mine/lib -L/usr/local/lib' --cache-file=/dev/null --srcdir=../../openocd-0.6.1/jimtcl Host System...x86_64-apple-darwin11.4.2 Build System...x86_64-apple-darwin11.4.2 C compiler... cc -I/opt/mine/include -I/usr/local/include C++ compiler... c++ -I/opt/mine/include -I/usr/local/include Build C compiler...cc Checking for stdlib.h...not found Error: Compiler does not work. See config.log Try: 'configure --help' for options configure: error: ../../openocd-0.6.1/jimtcl/configure.gnu failed for jimtcl
Anyone to fix this?
What are the /opt/mine/lib parts? They are hardcoded in the script but not present on everyones mac.
The text was updated successfully, but these errors were encountered: