libtool
[Top][All Lists]
Advanced

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

Re: How to resolve the x86 build issue on Mac


From: Václav Zeman
Subject: Re: How to resolve the x86 build issue on Mac
Date: Fri, 09 Jan 2015 18:16:13 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

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



Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]