Skip to content
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

Linker does not support -no-pie command line option. #42

Open
stappersg opened this issue Jun 8, 2022 · 0 comments
Open

Linker does not support -no-pie command line option. #42

stappersg opened this issue Jun 8, 2022 · 0 comments

Comments

@stappersg
Copy link
Member

This issue is to report that

WARN rustc_codegen_ssa::back::link Linker does not support -no-pie command line option. Retrying without.

is a known warning.

And this issue to tell how a succesfull build looks.

stappers@myhost:~/src/rust/RustAVR/blink
$ cargo clean ; cargo version ; rustc --version
cargo 1.63.0-nightly (38472bc19 2022-05-31)
rustc 1.63.0-nightly (fee3a459d 2022-06-05)
stappers@myhost:~/src/rust/RustAVR/blink
$ cargo build --release
   Compiling proc-macro2 v1.0.39
   Compiling unicode-ident v1.0.0
   Compiling compiler_builtins v0.1.73
   Compiling syn v1.0.96
   Compiling json v0.12.4
   Compiling core v0.0.0 (/home/stappers/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling xml-rs v0.8.4
   Compiling lazy_static v1.4.0
   Compiling target-cpu-fetch v0.1.3
   Compiling xmltree v0.10.3
   Compiling target-cpu-macro v0.1.3
   Compiling avr-mcu v0.3.5
   Compiling quote v1.0.18
   Compiling ruduino v0.4.0 (https://github.com/avr-rust/ruduino?branch=master#a33d38a7)
   Compiling const_env_impl--value v0.1.2
   Compiling const_env--value v0.1.2
   Compiling rustc-std-workspace-core v1.99.0
     (/home/stappers/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling avr-config v2.0.1
   Compiling avr-std-stub v1.0.3
   Compiling avr_delay v0.4.0 (https://github.com/avr-rust/delay#cfe9848f)
   Compiling blink v0.1.0 (/home/stappers/src/rust/RustAVR/blink)
WARN rustc_codegen_ssa::back::link Linker does not support -no-pie command line option. Retrying without.
    Finished release [optimized] target(s) in 7.12s
stappers@myhost:~/src/rust/RustAVR/blink
$ file target/avr-atmega328p/release/blink.elf 
target/avr-atmega328p/release/blink.elf: ELF 32-bit LSB executable, Atmel AVR 8-bit, version 1 (SYSV),
  statically linked, with debug_info, not stripped
stappers@myhost:~/src/rust/RustAVR/blink
$ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant