Skip to content

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

Open
@stappersg

Description

@stappersg

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
$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions