New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building `all` target for tools/build.py currently fails #35631

Open
sstrickl opened this Issue Jan 11, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@sstrickl
Copy link
Contributor

sstrickl commented Jan 11, 2019

Currently, trying to build the all target (here, using the x64 architecture and release mode on Linux) fails:

$ tools/build.py -a x64 -m release all
Running python /usr/local/google/home/sstrickl/dart/sdk/tools/generate_buildfiles.py
using /run/user/365263/goma_sstrickl as tmpdir
Auto update is skipped because latest/MANIFEST was updated recently.
Using goma VERSION=166 (latest)
GOMA version db8bf9a040429ddaa923ee1005d7a1c38d4b441b@1542285133

goma is already running.

ninja -C out/ReleaseX64 -j1000 -l64 all
ninja: Entering directory `out/ReleaseX64'
[3871/4260] LINK ./zlib_bench
FAILED: zlib_bench exe.stripped/zlib_bench 
/usr/local/google/home/sstrickl/goma/gomacc ../../buildtools/linux-x64/clang/bin/clang++ -Wl,--fatal-warnings -m64 -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,--build-id=none -fPIC -pthread --sysroot=../../build/linux/debian_jessie_amd64-sysroot  -Wl,-O1 -Wl,--gc-sections -Wl,--icf=all -Wl,--as-needed -Wl,-rpath=\$ORIGIN/ -Wl,-rpath-link= -Wl,-z,origin -Wl,--disable-new-dtags -pie -o ./zlib_bench -Wl,--start-group @./zlib_bench.rsp  -Wl,--end-group    && ../../buildtools/linux-x64/clang/bin/llvm-objcopy --strip-all ./zlib_bench ./exe.stripped/zlib_bench
ld.lld: error: undefined symbol: dladdr
>>> referenced by libunwind.cpp
>>>               libunwind.cpp.o:(libunwind::UnwindCursor<libunwind::LocalAddressSpace, libunwind::Registers_x86_64>::getFunctionName(char*, unsigned long, unsigned long*)) in archive /usr/local/google/home/sstrickl/dart/sdk/buildtools/linux-x64/clang/lib/clang/8.0.0/x86_64-linux-gnu/lib/libc++.a
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
[3890/4260] ACTION //utils/dartdevc:dartdevc_kernel_sdk(//build/toolchain/linux:clang_x64)
ninja: build stopped: subcommand failed.
ninja -C out/ReleaseX64 -j1000 -l64 all done.

As requested, I'm reverting a previous change to the default in the build script and am filing this bug instead.

@sstrickl sstrickl added the area-build label Jan 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment