Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(107)

Issue 1408263002: mac: In component builds, link against libc++. (Closed)

Created:
5 years, 2 months ago by Nico
Modified:
5 years, 2 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, boliu
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mac: In component builds, link against libc++. Using libc++ this way requires OS X 10.7, but for component builds that's ok. (It's a developer-only config, we require, 10.8 for building already, and moving a component build to a 10.6 box for testing is very difficult already – so people testing stuff on 10.6 will do so with static library builds.) Since the deployment target is still 10.6, Xcode's clang would complain that libc++ requires 10.7 while the deployment target asks for 10.6. Open-source clang (and hence Chromium's clang) doesn't complain about this. (We haven't used Xcode's clang on Mac in 4 years.) For static library builds we'll have to do something else. I have a plan, but that's for a separate CL. I tried doing this change in gn too, but the gn/mac build is currently so broken that `gn gen` errors out on me without any local changes. I'll port this to gn in a follow-up. BUG=400091 R=mark@chromium.org Committed: https://crrev.com/f0fa84cdd8a2037059bec96df1bf6eb3d533ebf9 Cr-Commit-Position: refs/heads/master@{#354646}

Patch Set 1 #

Total comments: 2

Patch Set 2 : much nicer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M build/common.gypi View 1 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (2 generated)
Nico
This part was easier than expected.
5 years, 2 months ago (2015-10-16 22:31:26 UTC) #2
Mark Mentovai
https://codereview.chromium.org/1408263002/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1408263002/diff/1/build/common.gypi#newcode5307 build/common.gypi:5307: 'OTHER_LDFLAGS': [ '-lc++' ], I thought CLANG_CXX_LIBRARY would have ...
5 years, 2 months ago (2015-10-16 22:34:59 UTC) #3
Nico
https://codereview.chromium.org/1408263002/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1408263002/diff/1/build/common.gypi#newcode5307 build/common.gypi:5307: 'OTHER_LDFLAGS': [ '-lc++' ], Excellent question! I thought it ...
5 years, 2 months ago (2015-10-16 23:08:35 UTC) #4
Mark Mentovai
Yes, this makes much more sense, now. LGTM!
5 years, 2 months ago (2015-10-16 23:09:30 UTC) #5
Nico
Hm, works locally but one of the bot complains: FAILED: /b/build/goma/gomacc ../../third_party/llvm-build/Release+Asserts/bin/clang -Wl,-search_paths_first -Wl,-pie -lc++ ...
5 years, 2 months ago (2015-10-16 23:10:39 UTC) #6
Mark Mentovai
> ld: library not found for -lc++ Well that looks like the right -l. > ...
5 years, 2 months ago (2015-10-16 23:21:11 UTC) #7
Mark Mentovai
> ld: library not found for -lc++ Well that looks like the right -l. > ...
5 years, 2 months ago (2015-10-16 23:21:42 UTC) #8
Mark Mentovai
working from airplane = double messages
5 years, 2 months ago (2015-10-16 23:22:02 UTC) #9
Nico
On Fri, Oct 16, 2015 at 4:21 PM, <mark@chromium.org> wrote: > ld: library not found ...
5 years, 2 months ago (2015-10-16 23:25:10 UTC) #10
Nico
On 2015/10/16 23:25:10, Nico wrote: > On Fri, Oct 16, 2015 at 4:21 PM, <mailto:mark@chromium.org> ...
5 years, 2 months ago (2015-10-16 23:28:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408263002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408263002/20001
5 years, 2 months ago (2015-10-16 23:33:46 UTC) #13
Nico
Committed patchset #2 (id:20001) to pending queue manually as d33705e585f51a687969ffcb9977b5c2c955bb53 (presubmit successful).
5 years, 2 months ago (2015-10-17 00:04:37 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/f0fa84cdd8a2037059bec96df1bf6eb3d533ebf9 Cr-Commit-Position: refs/heads/master@{#354646}
5 years, 2 months ago (2015-10-17 00:05:09 UTC) #15
boliu
I think this is causing compile failures on mac_chromium_compile_dbg_ng, but only on some patches it ...
5 years, 2 months ago (2015-10-17 15:12:45 UTC) #16
Nico
Thanks, filed https://code.google.com/p/chromium/issues/detail?id=544531 for that. On Sat, Oct 17, 2015 at 8:12 AM, <boliu@chromium.org> wrote: ...
5 years, 2 months ago (2015-10-17 18:54:42 UTC) #17
Nico
5 years, 2 months ago (2015-10-17 19:15:06 UTC) #18
Message was sent while issue was closed.
Workaround to heal the bots: https://codereview.chromium.org/1410263002/

On Sat, Oct 17, 2015 at 11:54 AM, Nico Weber <thakis@chromium.org> wrote:

> Thanks, filed https://code.google.com/p/chromium/issues/detail?id=544531
> for that.
>
> On Sat, Oct 17, 2015 at 8:12 AM, <boliu@chromium.org> wrote:
>
>> I think this is causing compile failures on mac_chromium_compile_dbg_ng,
>> but
>> only on some patches it seems. cq is blocking those patches.
>>
>>
>>
http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...
>>
>> FAILED: /b/build/goma/gomacc
>> ../../third_party/llvm-build/Release+Asserts/bin/clang++ -bundle
>> -Wl,-search_paths_first -Wl,-ObjC -mmacosx-version-min=10.6 -isysroot
>>
>>
/Applications/Xcode5.1.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
>> -arch i386 -L. -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/../../..
>> -stdlib=libc++ -o arch/libremoting_host_prefpane.i386.prefPane
>> @remoting_host_prefpane.prefPane.i386.rsp
>> Undefined symbols for architecture i386:
>>   "std::__1::basic_istream<char, std::__1::char_traits<char> >&
>> std::__1::getline<char, std::__1::char_traits<char>,
>> std::__1::allocator<char>
>>
>>> (std::__1::basic_istream<char, std::__1::char_traits<char> >&,
>>>
>> std::__1::basic_string<char, std::__1::char_traits<char>,
>> std::__1::allocator<char> >&, char)", referenced from:
>>       Json::Reader::parse(std::__1::basic_istream<char,
>> std::__1::char_traits<char> >&, Json::Value&, bool) in
>> remoting_host_prefpane.json_reader.i386.o
>> ld: symbol(s) not found for architecture i386
>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>> ninja: build stopped: subcommand failed.
>>
>> https://codereview.chromium.org/1408263002/
>>
>
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698