Closed tdz closed 7 years ago
Without this patch, I get
arm-none-eabi-gcc
failed: exit code: 1
|
= note: "arm-none-eabi-gcc" "-L" "/home/mozilla/.xargo/lib/rustlib/thumbv7em-none-eabi/lib" "/home/mozilla/Projects/mozilla/src/sensorweb/cc3200-rs/target/thumbv7em-none-eabi/debug/examples/blinky-ce91a2e301dff79c.0.o" "-o" "/home/mozilla/Projects/mozilla/src/sensorweb/cc3200-rs/target/thumbv7em-none-eabi/debug/examples/blinky-ce91a2e301dff79c" "-Wl,--gc-sections" "-nodefaultlibs" "-L" "/home/mozilla/Projects/mozilla/src/sensorweb/cc3200-rs/target/thumbv7em-none-eabi/debug/deps" "-L" "/usr/lib/gcc/arm-none-eabi/5.2.0/../../../../arm-none-eabi/lib/armv7e-m" "-L" "/usr/lib/gcc/arm-none-eabi/5.2.0/armv7e-m" "-L" "/home/mozilla/Projects/mozilla/src/sensorweb/cc3200-rs/target/thumbv7em-none-eabi/debug/build/cc3200-sys-ee63265db79cbae8/out" "-L" "/home/mozilla/Projects/mozilla/src/sensorweb/cc3200-rs/target/thumbv7em-none-eabi/debug/build/freertos_alloc-22dd2fdcf313befc/out" "-L" "/home/mozilla/.xargo/lib/rustlib/thumbv7em-none-eabi/lib" "-Wl,-Bstatic" "-Wl,-Bdynamic" "/home/mozilla/Projects/mozilla/src/sensorweb/cc3200-rs/target/thumbv7em-none-eabi/debug/deps/libcc3200-ce91a2e301dff79c.rlib" "/home/mozilla/Projects/mozilla/src/sensorweb/cc3200-rs/target/thumbv7em-none-eabi/debug/deps/libcc3200_sys-a71d070c65a66465.rlib" "/home/mozilla/Projects/mozilla/src/sensorweb/cc3200-rs/target/thumbv7em-none-eabi/debug/deps/liblog-33c54ffe775563fd.rlib" "/home/mozilla/Projects/mozilla/src/sensorweb/cc3200-rs/target/thumbv7em-none-eabi/debug/deps/libfreertos_rs-9355b9a390b957e8.rlib" "/home/mozilla/.xargo/lib/rustlib/thumbv7em-none-eabi/lib/libcollections-1718004b6a7c1793.rlib" "/home/mozilla/.xargo/lib/rustlib/thumbv7em-none-eabi/lib/librustc_unicode-ff8038ab305aade5.rlib" "/home/mozilla/.xargo/lib/rustlib/thumbv7em-none-eabi/lib/liballoc-50e62a59fac490b7.rlib" "/home/mozilla/Projects/mozilla/src/sensorweb/cc3200-rs/target/thumbv7em-none-eabi/debug/deps/libfreertos_alloc-4d4a8cf07b7244e7.rlib" "/home/mozilla/.xargo/lib/rustlib/thumbv7em-none-eabi/lib/libcore-eea6cb1944b243cd.rlib" "-l" "m" "-l" "c" "-l" "gcc" "-l" "board" "-l" "freertos_alloc" "-Tlayout.ld" "-nostartfiles" "-Wl,-Map=firmware.map"
= note: /home/mozilla/.xargo/lib/rustlib/thumbv7em-none-eabi/lib/libcore-eea6cb1944b243cd.rlib(core-eea6cb1944b243cd.0.o): In function core::fmt::num::GenericRadix::fmt_int<core::fmt::num::UpperHex,u32>': /home/mozilla/.multirust/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/fmt/num.rs:61: undefined reference to
__aeabi_memclr4'
collect2: error: ld returned 1 exit statuserror: aborting due to previous error
error: Could not compile cc3200
.
Could this be because you use a gcc 5.0.2 and not the 4.9.3 that is set up on automation (and also what I get locally on ubuntu) ?
This did not happen with earlier versions of cc3200-rs. But maybe they simply didn't call this function. My gcc is:
gcc --version gcc (GCC) 6.2.1 20160916 (Red Hat 6.2.1-2)
It seems that the patch doesn't break Travis with its old gcc. Can we merge it?
arm-none-eabi-gcc --version arm-none-eabi-gcc (Fedora 5.2.0-4.fc24) 5.2.0
This patch adds the function __aeabi_memclr4(), which is requried by core::fmt::num::GenericRadix::fmt_int<core::fmt::num::UpperHex,u32>.