On 10 January 2015 at 09:26, rokaku <rokak...@yahoo.com.tw> wrote: > Hi There, > > Here is the config.log file. > Please let me know if anything needs to be provided. > Thanks in advance. > -------------------------------------------- > 15/1/10,Václav Zeman <vhais...@gmail.com> wrote: > > On 9.1.2015 13:04, rokaku > wrote: > > I'm newbie for the build, > now I'm trying to build libtool-2.4.4 for iOS-simulator > (not iOS) on Mac. > > Here is my script: > > > > > export ARCH="i386-apple-darwin11" > > export > SDKVER="7.1" > > > export > DEVROOT="/Applications/Xcode.app/Contents/Developer" > > export > > SDKROOT="$DEVROOT/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$SDKVER.sdk" > > export > PREFIX="~/libtool-x86" > > > > export > CPP="$DEVROOT/usr/bin/gcc -E" > > export > CC="$DEVROOT/usr/bin/gcc" > > > export CXX="$DEVROOT/usr/bin/g++" > > export > LD="$DEVROOT/usr/bin/ld" > > > > export > CPPFLAGS="-arch i386 -isysroot $SDKROOT > -I$PREFIX/include" > > > export CFLAGS="$CPPFLAGS -m32 -std=c99 > -pipe -no-cpp-precomp" > > > export CXXFLAGS="$CPPFLAGS -pipe > -no-cpp-precomp" > > > export LDFLAGS="-arch i386 -m32 -isysroot > $SDKROOT -L$PREFIX/lib" > > > > ./configure \ > > > --prefix="$PREFIX" \ > > > --build="$ARCH" \ > > --enable-static > \ > > > --disable-shared $@ > > > > > > And here are the > console output: > > > > > ## ------------------------- ## > > ## Configuring libtool > 2.4.4 ## > > ## > ------------------------- ## > > > > checking for a > BSD-compatible install... /usr/bin/install -c > > checking whether build > environment is sane... yes > > > checking for a thread-safe mkdir -p... > build-aux/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 whether make supports nested > variables... (cached) yes > > > checking build system type... > i386-apple-darwin11 > > > checking host system type... > i386-apple-darwin11 > > > configure: autobuild project... GNU Libtool > > configure: autobuild > revision... 2.4.4 > > > configure: autobuild hostname... > luhs-MBP.local > > > configure: autobuild mode... default > > configure: autobuild > timestamp... 20150109T114036Z > > > checking for gcc... > /Applications/Xcode.app/Contents/Developer/usr/bin/gcc > > checking whether the C > compiler works... no > > > configure: error: in > `/Users/charles/Documents/Astrotek/pTP/libtool-2.4.4': > > configure: error: C > compiler cannot create executables > > > See `config.log' for more details > > As the message says, check the > config.log for details. > > > > > I have checked that the gcc is there, but > not sure why the C compiler does not works. > > I also check the file config.log, and I > found this: clang: error: argument to '-V' is > missing (expected 1 value) > > But it seems > to be that I can't add -V parameter in CC. > > Is anybody give me some hints? > > Thanks so much! > > If even after checking the config.log you > cannot resolve the issue, > maybe attach and > post the config.log here. > > -- > VZ >
This looks like a setup issue or issue with the way you have configured the package. configure:3812: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -I/usr/local/gphoto2-iOS7.1-x86/include -m32 -std=c99 -pipe -no-cpp-precomp -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -I/usr/local/gphoto2-iOS7.1-x86/include -arch i386 -m32 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/usr/local/gphoto2-iOS7.1-x86/lib conftest.c >&5 ld: warning: directory not found for option '-L/usr/local/gphoto2-iOS7.1-x86/lib' ld: building for MacOSX, but linking against dylib built for iOS Simulator file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libSystem.dylib' for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:3816: $? = 1 configure:3854: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU Libtool" | #define PACKAGE_TARNAME "libtool" | #define PACKAGE_VERSION "2.4.4" | #define PACKAGE_STRING "GNU Libtool 2.4.4" | #define PACKAGE_BUGREPORT "bug-libt...@gnu.org" | #define PACKAGE_URL "http://www.gnu.org/software/libtool/" | #define PACKAGE "libtool" | #define VERSION "2.4.4" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3859: error: in `/Users/charleslu/Documents/Astrotek/libtool-2.4.4': configure:3861: error: C compiler cannot create executables -- VZ _______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool