Uh oh!
There was an error while loading. Please reload this page.
RFC-2841: add codegen flag export symbols from executable - #85673
Conversation
This comment has been minimized.
This comment has been minimized.
crlf0710
commented
Jun 11, 2021
@csmoe Ping from triage, CI is still red here. Would you mind fixing that? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nikomatsakis
left a comment
There was a problem hiding this comment.
Hmm, do we have any tests for symbol visibility? Maybe in the run-make folder? It'd be good to have a test for this.
crlf0710
commented
Jul 9, 2021
@csmoe Ping from triage, would you mind adding the tests? |
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
79e3b3d to
6b14c11CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@bjorn3 Need more help to move on 😿 |
bjorn3
commented
Sep 12, 2021
Are you on Linux or macOS? What is the full linker invocation? |
"cc" "-Wl,--version-script=/repo/rust/./rustcqC1COd/list" "-m64" "main.main.cbc7ddee-cgu.0.rcgu.o" "main.main.cbc7ddee-cgu.1.rcgu.o" "main.main.cbc7ddee-cgu.10.rcgu.o" "main.main.cbc7ddee-cgu.11.rcgu.o" "main.main.cbc7ddee-cgu.12.rcgu.o" "main.main.cbc7ddee-cgu.13.rcgu.o" "main.main.cbc7ddee-cgu.14.rcgu.o" "main.main.cbc7ddee-cgu.15.rcgu.o" "main.main.cbc7ddee-cgu.2.rcgu.o" "main.main.cbc7ddee-cgu.3.rcgu.o" "main.main.cbc7ddee-cgu.4.rcgu.o" "main.main.cbc7ddee-cgu.5.rcgu.o" "main.main.cbc7ddee-cgu.6.rcgu.o" "main.main.cbc7ddee-cgu.7.rcgu.o" "main.main.cbc7ddee-cgu.8.rcgu.o" "main.main.cbc7ddee-cgu.9.rcgu.o" "main.4kqwyhdgeomtzpxx.rcgu.o" "-Wl,--as-needed" "-L" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-ea06e5b9ebe84ef4.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-608126472e4595bf.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-96b872de832ae456.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-c96f7126ed0a8243.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-d4333fc5a8e6acd5.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-286e391a7bef4a33.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-9b3b5b41ef9d89ac.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-a01624f3c4d2f24b.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-606d386967062702.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-9fec6174a0598006.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-612142634ae08506.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-8a18ecd4776dc12c.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-11234a29b766d417.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-5c49a6fde622d4a9.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-01242e2bb437fc18.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-a1d9b6c563f72c92.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-5a76a6f677cfd881.rlib" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-99c01d738b9e1246.rlib" "-Wl,--end-group" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-8ee0ab4b35b97256.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/repo/rust/build/x86_64-unknown-linux-gnu/stage1/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "main" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" @bjorn3 linux, cc args as above. |
bjorn3
commented
Sep 13, 2021
Could you compile with |
Maybe
|
csmoe
commented
Sep 14, 2021
@bjorn3 version-script: 08:40 $ cat rustcXKEpHW/list
{
global:
exported_symbol;
main;
rust_eh_personality;
local:
*;
};
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Maybe use crate_type != Executable || !export_executable_symbols?
bjorn3
commented
Jul 20, 2022
I am not entirely confident in |
csmoe
commented
Jul 20, 2022
I tested locally in a small crate with #[no_mangle]#[test]pubfntest_foo(){ ...}the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
bjorn3
commented
Jul 21, 2022
@bors r+ |
bors
commented
Jul 21, 2022
📌 Commit 419e62fa4bad3447421437d96053d2bbe27fe92a has been approved by It is now in the queue for this repository. |
bors
commented
Jul 21, 2022
☔ The latest upstream changes (presumably #98162) made this pull request unmergeable. Please resolve the merge conflicts. |
bjorn3
commented
Jul 21, 2022
@bors r+ |
bors
commented
Jul 21, 2022
📌 Commit 4ae6ff3e91ba8f62049667fc960791f0c342f145 has been approved by It is now in the queue for this repository. |
bors
commented
Jul 21, 2022
⌛ Testing commit 4ae6ff3e91ba8f62049667fc960791f0c342f145 with merge 00bddad26f9229d8db1983b7ebf87fec998dd206... |
bors
commented
Jul 21, 2022
💔 Test failed - checks-actions |
bjorn3
commented
Jul 21, 2022
The test needs to be ignored on nvptx64-nvidia-cuda. Maybe an |
This comment has been minimized.
This comment has been minimized.
|
bjorn3
commented
Jul 22, 2022
👍 Could you please squash? I noticed that one of the commits introduced merge conflict markers which another solves again. And besides, this is pretty much an atimic change. r=me after squashing |
csmoe
commented
Jul 25, 2022
bors
commented
Jul 25, 2022
@csmoe: 🔑 Insufficient privileges: Not in reviewers |
bjorn3
commented
Jul 25, 2022
@bors r+ |
bors
commented
Jul 25, 2022
bors
commented
Jul 25, 2022
bors
commented
Jul 25, 2022
☀️ Test successful - checks-actions |
bjorn3
commented
Jul 25, 2022
That only took 10 tries... |
rust-timer
commented
Jul 25, 2022
Finished benchmarking commit (dc2d232): comparison url. Instruction count
Max RSS (memory usage)Results
CyclesResults
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
Closes#84161
r? @nikomatsakis@Mark-Simulacrum