Skip to content

Instantly share code, notes, and snippets.

@lqd
Last active September 20, 2018 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lqd/f204d50a61b8753e3a9c2238b4d9d039 to your computer and use it in GitHub Desktop.
Save lqd/f204d50a61b8753e3a9c2238b4d9d039 to your computer and use it in GitHub Desktop.
lqd@oxygen:rust$ rm -r ./build/x86_64-unknown-linux-gnu/test/
lqd@oxygen:rust$ ./x.py test src/test/ui/ --test-args extern-const
Updating only changed submodules
Submodules updated in 0.15 seconds
Finished dev [unoptimized] target(s) in 0.36s
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.38s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.28s
Copying stage0 test from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.47s
Copying stage0 rustc from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 codegen artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu, llvm)
Finished release [optimized] target(s) in 0.29s
Assembling stage1 compiler (x86_64-unknown-linux-gnu)
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.33s
Copying stage1 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.28s
Copying stage1 test from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.40s
Copying stage1 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage1 codegen artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu, llvm)
Finished release [optimized] target(s) in 0.29s
Assembling stage2 compiler (x86_64-unknown-linux-gnu)
Uplifting stage1 std (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage2 std from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Uplifting stage1 test (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Copying stage2 test from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 tool compiletest (x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.34s
Check compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
running 1 test
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 6789 filtered out
Check compiletest suite=ui mode=ui compare_mode=nll (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
running 1 test
.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 6789 filtered out
finished in 2.057
finished in 4.477
Build completed successfully in 0:00:10
lqd@oxygen:rust$ "./build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "./src/test/ui/extern/extern-const.fixed" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a" "-Crpath" "-Zunstable-options" "-Lnative=./build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-Z" "continue-parse-after-error" "-L" "./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/auxiliary"
{"message":"linking with `cc` failed: exit code: 1","code":null,"level":"error","spans":[],"children":[{"message":"\"cc\" \"-Wl,--as-needed\" \"-Wl,-z,noexecstack\" \"-m64\" \"-L\" \"/home/lqd/work/rust/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.0.rcgu.o\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.1.rcgu.o\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.2.rcgu.o\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.3.rcgu.o\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.4.rcgu.o\" \"-o\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a\" \"-Wl,--gc-sections\" \"-pie\" \"-Wl,-zrelro\" \"-Wl,-znow\" \"-nodefaultlibs\" \"-L\" \"./build/x86_64-unknown-linux-gnu/native/rust-test-helpers\" \"-L\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/auxiliary\" \"-L\" \"/home/lqd/work/rust/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"-Wl,--start-group\" \"-L\" \"/home/lqd/work/rust/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"-lstd-3b3f19fed2959ae6\" \"-Wl,--end-group\" \"-Wl,-Bstatic\" \"/home/lqd/work/rust/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-26b428365c56e77c.rlib\" \"-Wl,-Bdynamic\" \"-ldl\" \"-lrt\" \"-lpthread\" \"-lgcc_s\" \"-lc\" \"-lm\" \"-lrt\" \"-lpthread\" \"-lutil\" \"-lutil\" \"-Wl,-rpath,$ORIGIN/../../../../stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"-Wl,-rpath,/home/lqd/work/rust/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"-Wl,--enable-new-dtags\"","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.2.rcgu.o: In function `extern_const::main::hbff16dcccc4c621d':\nextern_const.7rcbfp3g-cgu.2:(.text._ZN12extern_const4main17hbff16dcccc4c621dE+0x7): undefined reference to `C'\ncollect2: error: ld returned 1 exit status\n","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: linking with `cc` failed: exit code: 1\n |\n = note: \"cc\" \"-Wl,--as-needed\" \"-Wl,-z,noexecstack\" \"-m64\" \"-L\" \"/home/lqd/work/rust/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.0.rcgu.o\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.1.rcgu.o\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.2.rcgu.o\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.3.rcgu.o\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.4.rcgu.o\" \"-o\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a\" \"-Wl,--gc-sections\" \"-pie\" \"-Wl,-zrelro\" \"-Wl,-znow\" \"-nodefaultlibs\" \"-L\" \"./build/x86_64-unknown-linux-gnu/native/rust-test-helpers\" \"-L\" \"./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/auxiliary\" \"-L\" \"/home/lqd/work/rust/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"-Wl,--start-group\" \"-L\" \"/home/lqd/work/rust/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"-lstd-3b3f19fed2959ae6\" \"-Wl,--end-group\" \"-Wl,-Bstatic\" \"/home/lqd/work/rust/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-26b428365c56e77c.rlib\" \"-Wl,-Bdynamic\" \"-ldl\" \"-lrt\" \"-lpthread\" \"-lgcc_s\" \"-lc\" \"-lm\" \"-lrt\" \"-lpthread\" \"-lutil\" \"-lutil\" \"-Wl,-rpath,$ORIGIN/../../../../stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"-Wl,-rpath,/home/lqd/work/rust/rust/lib/rustlib/x86_64-unknown-linux-gnu/lib\" \"-Wl,--enable-new-dtags\"\n = note: ./build/x86_64-unknown-linux-gnu/test/ui/extern/extern-const/a.extern_const.7rcbfp3g-cgu.2.rcgu.o: In function `extern_const::main::hbff16dcccc4c621d':\n extern_const.7rcbfp3g-cgu.2:(.text._ZN12extern_const4main17hbff16dcccc4c621dE+0x7): undefined reference to `C'\n collect2: error: ld returned 1 exit status\n \n\n"}
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment