there is error "libtool: unrecognized option '-static' " when I run command "ninja -C out/Debug-iphoneosTest All" in platform Mac os / ios

675 views
Skip to first unread message

Dora

unread,
May 17, 2016, 5:33:53 AM5/17/16
to Chromium-dev
there is error "libtool: unrecognized option '-static' " when I run command "ninja -C out/Debug-iphoneosTest All"  in platform Mac os  / ios

Thiago Farina

unread,
May 17, 2016, 5:50:30 AM5/17/16
to quyan...@sina.com, Chromium-dev


On Tuesday, May 17, 2016, Dora <quyan...@sina.com> wrote:
there is error "libtool: unrecognized option '-static' " when I run command "ninja -C out/Debug-iphoneosTest All"  in platform Mac os  / ios
What is the version of Xcode do you have installed? Which Mac OS X are you trying to
build at?
 


--
Thiago Farina

Nico Weber

unread,
May 17, 2016, 9:05:56 AM5/17/16
to quyan...@sina.com, Chromium-dev

What's the output of `which libtool`?

My guess is that you're using homebrew, installed gnu libtool though it, and have that in your path in front of Xcode libtool.

On May 17, 2016 5:34 AM, "Dora" <quyan...@sina.com> wrote:
there is error "libtool: unrecognized option '-static' " when I run command "ninja -C out/Debug-iphoneosTest All"  in platform Mac os  / ios

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Dora

unread,
May 17, 2016, 9:13:42 PM5/17/16
to Chromium-dev, quyan...@sina.com
Thanks, Xcode version is 7.3  and  Mac os x version is 10.11.4. 
Yesterday, I found the reason that I have two suits libtool (one in path /usr/local/bin/, the other in path /usr/bin/ ).

在 2016年5月17日星期二 UTC+8下午5:50:30,Thiago Farina写道:

Dora

unread,
May 17, 2016, 9:23:03 PM5/17/16
to Chromium-dev, quyan...@sina.com
Thanks, using "which libtool", I found the current libtool path is "/usr/local/bin/". 
I renamed libtool in path /usr/local/bin/ ,  and using "which libtool " , the current libtool path change to "/usr/bin/".

haha, then run command "ninja -C out/Debug-iphoneos All" , compile finished.
在 2016年5月17日星期二 UTC+8下午9:05:56,Nico Weber写道:
Reply all
Reply to author
Forward
0 new messages