Open Ulyness opened 10 years ago
I'm getting this problem too, 10.9.
Further investigation: looks like the configure script is getting confused and wants to build a 64 bit solution, but is referencing 32 bit libraries. Viz: configure:3458: checking whether the C++ compiler works configure:3480: g++ conftest.cpp >&5 ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/crt1.o, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/crt1.o (5 slices) ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/libSystem.dylib, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/libSystem.dylib (3 slices) ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/libc++.dylib, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/lib/libc++.dylib (3 slices) ld: dynamic main executables must link with libSystem.dylib for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
10.9 and XCode 6 same issue
I was able to get it to build for iPhone using the attached build script (renamed to .txt). I'm using XCode 7.3.1 and SDK version 9.3 for iPhone. Took me almost two days to get this to work properly, so hopefully it'll come in handy for others. build_iphone.txt
Hi. I've tried building ffts on my Mac, by running "build_iphone.sh" and failed. (OSX 10.8.5, Xcode 5.0.2, with iOS SDK 7.0 or 6.1(failed both). ffts is the newest release.)
The console message: """ checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes /Users/ulyness/Downloads/ffts-master/missing: Unknown '--is-lightweight' option Try '/Users/ulyness/Downloads/ffts-master/missing --help' for more information configure: WARNING: 'missing' script is too old or missing checking for arm-eabi-strip... no checking for strip... strip configure: WARNING: using cross tools not prefixed with host triplet checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... i386-apple-darwin12.5.0 checking host system type... arm-unknown-eabi checking for arm-eabi-g++... no checking for arm-eabi-c++... no checking for arm-eabi-gpp... no checking for arm-eabi-aCC... no checking for arm-eabi-CC... no checking for arm-eabi-cxx... no checking for arm-eabi-cc++... no checking for arm-eabi-cl.exe... no checking for arm-eabi-FCC... no checking for arm-eabi-KCC... no checking for arm-eabi-RCC... no checking for arm-eabi-xlC_r... no checking for arm-eabi-xlC... no checking for g++... g++ checking whether the C++ compiler works... no configure: error: in
/Users/ulyness/Downloads/ffts-master': configure: error: C++ compiler cannot create executables See
config.log' for more details make: * No rule to make target `clean'. Stop. make: ** No targets specified and no makefile found. Stop. make: No rule to make target`install'. Stop. """And in the config.log, I found warning messages like this: """ ld: warning: ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/crt1.o, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/crt1.o (4 slices)ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/libstdc++.dylib, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/libstdc++.dylib (2 slices) ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/libSystem.dylib, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/lib/libSystem.dylib (2 slices) ld: dynamic main executables must link with libSystem.dylib for architecture x86_64 """
I've google it, and found some detail. It seems like some problems occur when changing Xcode from older version to 5.0. But I can't find a better solution except delete Xcode 5.0 and go back to older version.
Any ideas or solutions?