New issue
Advanced search Search tips

Issue 776313 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 775547



Sign in to add a comment

[jumbo] ios-imulator builders fail to compile base when jumbo is enabled

Project Member Reported by brat...@opera.com, Oct 19 2017

Issue description

The ios-simulator builder has some problems with base after adding support for jumbo there. Maybe similar to the cross compiling problems we had with nacl. 
Failing build: https://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/320643

[6939/33986] LINK obj/base/x64/base_perftests
FAILED: obj/base/x64/base_perftests 
export DEVELOPER_DIR=/b/build/slave/ios-simulator/build/src/build/ios_files/Xcode.app;  TOOL_VERSION=1504925436 ../../build/toolchain/mac/linker_driver.py ../../third_party/llvm-build/Release+Asserts/bin/clang++  -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker obj/base/base_perftests.xcent -arch x86_64 -Werror -isysroot /b/build/slave/ios-simulator/build/src/build/ios_files/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk -stdlib=libc++ -mios-simulator-version-min=9.0 -Wl,-ObjC -o "obj/base/x64/base_perftests" -Wl,-filelist,"obj/base/x64/base_perftests.rsp"  -framework UIKit -framework CoreFoundation -framework CoreGraphics -framework CoreText -framework Foundation
Undefined symbols for architecture x86_64:
  "base::allocator::g_replaced_default_zone", referenced from:
      base::allocator::IsAllocatorInitialized() in libbase.a(base_jumbo_1.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
  File "../../build/toolchain/mac/linker_driver.py", line 229, in <module>
    Main(sys.argv)
  File "../../build/toolchain/mac/linker_driver.py", line 79, in Main
    subprocess.check_call(compiler_driver_args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../../third_party/llvm-build/Release+Asserts/bin/clang++', '-Xlinker', '-rpath', '-Xlinker', '@executable_path/Frameworks', '-Xlinker', '-objc_abi_version', '-Xlinker', '2', '-Xlinker', '-sectcreate', '-Xlinker', '__TEXT', '-Xlinker', '__entitlements', '-Xlinker', 'obj/base/base_perftests.xcent', '-arch', 'x86_64', '-Werror', '-isysroot', '/b/build/slave/ios-simulator/build/src/build/ios_files/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk', '-stdlib=libc++', '-mios-simulator-version-min=9.0', '-Wl,-ObjC', '-o', 'obj/base/x64/base_perftests', '-Wl,-filelist,obj/base/x64/base_perftests.rsp', '-framework', 'UIKit', '-framework', 'CoreFoundation', '-framework', 'CoreGraphics', '-framework', 'CoreText', '-framework', 'Foundation']' returned non-zero exit status 1
[6940/33986] LIBTOOL-STATIC obj/ui/gfx/range/librange.a
[6941/33986] ACTION //ui/gfx/mojo:mojo__generator(//build/toolchain/mac:ios_clang_x64)
[6942/33986] LINK obj/base/x64/base_i18n_perftests
FAILED: obj/base/x64/base_i18n_perftests 
export DEVELOPER_DIR=/b/build/slave/ios-simulator/build/src/build/ios_files/Xcode.app;  TOOL_VERSION=1504925436 ../../build/toolchain/mac/linker_driver.py ../../third_party/llvm-build/Release+Asserts/bin/clang++  -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker obj/base/base_i18n_perftests.xcent -arch x86_64 -Werror -isysroot /b/build/slave/ios-simulator/build/src/build/ios_files/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk -stdlib=libc++ -mios-simulator-version-min=9.0 -Wl,-ObjC -o "obj/base/x64/base_i18n_perftests" -Wl,-filelist,"obj/base/x64/base_i18n_perftests.rsp"  -framework UIKit -framework CoreFoundation -framework CoreGraphics -framework CoreText -framework Foundation
Undefined symbols for architecture x86_64:
  "base::allocator::g_replaced_default_zone", referenced from:
      base::allocator::IsAllocatorInitialized() in libbase.a(base_jumbo_1.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Traceback (most recent call last):
  File "../../build/toolchain/mac/linker_driver.py", line 229, in <module>
    Main(sys.argv)
  File "../../build/toolchain/mac/linker_driver.py", line 79, in Main
    subprocess.check_call(compiler_driver_args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['../../third_party/llvm-build/Release+Asserts/bin/clang++', '-Xlinker', '-rpath', '-Xlinker', '@executable_path/Frameworks', '-Xlinker', '-objc_abi_version', '-Xlinker', '2', '-Xlinker', '-sectcreate', '-Xlinker', '__TEXT', '-Xlinker', '__entitlements', '-Xlinker', 'obj/base/base_i18n_perftests.xcent', '-arch', 'x86_64', '-Werror', '-isysroot', '/b/build/slave/ios-simulator/build/src/build/ios_files/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.0.sdk', '-stdlib=libc++', '-mios-simulator-version-min=9.0', '-Wl,-ObjC', '-o', 'obj/base/x64/base_i18n_perftests', '-Wl,-filelist,obj/base/x64/base_i18n_perftests.rsp', '-framework', 'UIKit', '-framework', 'CoreFoundation', '-framework', 'CoreGraphics', '-framework', 'CoreText', '-framework', 'Foundation']' returned non-zero exit status 1

ios-simulator is not an important platform for most developers so the right thing to do might be to not even try to support jumbo for it.
 

Comment 1 by brat...@opera.com, Oct 27 2017

 Issue 779081  has been merged into this issue.
Project Member

Comment 2 by bugdroid1@chromium.org, Oct 27 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/c9ad30ef695b731b1ba54674c18c3e5691faaccd

commit c9ad30ef695b731b1ba54674c18c3e5691faaccd
Author: Daniel Bratell <bratell@opera.com>
Date: Fri Oct 27 19:20:37 2017

Disable //base jumbo for iOS

Something with allocators goes wrong in iOS (similar to nacl) and
not having a good way to debug it, and not very mich interest for
jumbo on iOS, it's easiest to just disable it.

Bug:  776313 
Change-Id: Ifc8c77fd19aa6fc5bcd790cc8c7056fd8a57640a
Reviewed-on: https://chromium-review.googlesource.com/741804
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Daniel Bratell <bratell@opera.com>
Cr-Commit-Position: refs/heads/master@{#512263}
[modify] https://crrev.com/c9ad30ef695b731b1ba54674c18c3e5691faaccd/base/BUILD.gn

Components: Build

Comment 4 by brat...@opera.com, Nov 20 2017

Owner: brat...@opera.com
Status: Fixed (was: Untriaged)
The workaround will have to be enough. Closing as fixed.
Blogger: Kanda/Dinda - Rediger indlæg
182 bytes View Download

Sign in to add a comment