1.10 build error (iPhone simulator)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Everybody,

attempting to build Version 1.10 on a new MacBook (freshly setup, updated to 10.6.7, xcode 4.02 just installed), I encounter the following error during configuration for the iOS simulator, (while the configuration and compilation for both, iOS-devices as well as Mac OSX went flawlessly):

--------------------------------------------------------------------------------------------------------------------------------------------------------------
macBook:pjproject thomas$  export DEVPATH=/Developer/Platforms/iPhoneSimulator.platform/Developer
macBook:pjproject thomas$  export CC=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
macBook:pjproject thomas$ ./configure-iphone
configure-iphone: IPHONESDK is not specified, choosing iPhoneSimulator4.3.sdk
configure-iphone: CXX is not specified, using /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++
configure-iphone: calling ./aconfigure with env vars:
 CC = /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
 CXX = /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++
 SDKPATH = /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
 CFLAGS = -O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneSimulator4.3.sdk\""  -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk
 LDFLAGS = -O2  -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -framework AudioToolbox -framework Foundation
 AR = /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool -static -o
 RANLIB = echo ranlib
aconfigure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i386-apple-darwin10.7.0
checking host system type... arm-apple-darwin9
checking target system type... arm-apple-darwin9
checking for arm-apple-darwin9-gcc... /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
checking whether the C compiler works... no
aconfigure: error: in `/Users/thomas/Projects/pjLibs/Simulator/pjproject':
aconfigure: error: C compiler cannot create executables
See `config.log' for more details.
macBook:pjproject thomas$ 
---------------------------------------------------------------------------------------------------------------------------------------------------------------

The config_site.h looks like this:

#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>

#undef __MAC_OS_X_VERSION_MIN_REQUIRED
#undef __MAC_OS_X_VERSION_MAX_ALLOWED
#define __MAC_OS_X_VERSION_MIN_REQUIRED __MAC_OS_X_VERSION_10_4
#define __MAC_OS_X_VERSION_MAX_ALLOWED __MAC_OS_X_VERSION_10_5

---------------------------------------------------------------------------------------------------------------------------------------------------------------

As always, looking forward to a hint ...

Thanks in advance!

-Thomas


ps: The interesting part of the config.log seems to be the following:

aconfigure:2703: $? = 0
aconfigure:2692: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~123/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
aconfigure:2703: $? = 0
aconfigure:2692: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -V >&5
gcc-4.2: argument to `-V' is missing
aconfigure:2703: $? = 1
aconfigure:2692: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -qversion >&5
i686-apple-darwin10-gcc-4.2.1: no input files
aconfigure:2703: $? = 1
aconfigure:2723: checking whether the C compiler works
aconfigure:2745: /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -O2 -Wno-unused-label -DPJ_SDK_NAME="\"iPhoneSimulator4.3.sdk\""  -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk  -O2  -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -framework AudioToolbox -framework Foundation conftest.c  >&5
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks//AudioToolbox.framework/AudioToolbox, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks//Foundation.framework/Foundation, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: ignoring file /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib/libSystem.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64)
ld: warning: symbol dyld_stub_binder not found, normally in libSystem.dylib
Undefined symbols for architecture x86_64:
  "_exit", referenced from:
      start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
aconfigure:2749: $? = 1
aconfigure:2787: result: no
aconfigure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "pjproject"
| #define PACKAGE_TARNAME "pjproject"
| #define PACKAGE_VERSION "1.x"
| #define PACKAGE_STRING "pjproject 1.x"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
aconfigure:2792: error: in `/Users/thomas/Projects/pjLibs/Simulator/pjproject':
aconfigure:2796: error: C compiler cannot create executables
See `config.log' for more details.






[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux