tingox / msp430-test-f5529

Apache License 2.0
0 stars 0 forks source link

win10 - linking fails #1

Open tingox opened 1 year ago

tingox commented 1 year ago

code seems to build, but linking fails

[C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529] $ cargo build
   Compiling compiler_builtins v0.1.85
   Compiling core v0.0.0 (C:\Users\torfinn.ingolfsen\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core)
   Compiling proc-macro2 v1.0.50
   Compiling unicode-ident v1.0.6
   Compiling quote v1.0.23
   Compiling rand_core v0.6.4
   Compiling syn v1.0.107
   Compiling msp430-rt v0.3.1
   Compiling msp430-rt v0.4.0
   Compiling msp430f5529 v0.2.0
   Compiling rand v0.8.5
   Compiling rand_xoshiro v0.6.0
   Compiling msp430-rt-macros v0.3.1
   Compiling msp430-rt-macros v0.4.0
   Compiling rustc-std-workspace-core v1.99.0 (C:\Users\torfinn.ingolfsen\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\rustc-std-workspace-core)
   Compiling bare-metal v1.0.0
   Compiling critical-section v1.1.1
   Compiling vcell v0.1.3
   Compiling msp430 v0.3.0
   Compiling msp430 v0.4.1
   Compiling panic-msp430 v0.4.0
   Compiling msp430-test-f5529 v0.1.0 (C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529)
error: linking with `msp430-elf-gcc` failed: exit code: 1
  |
  = note: "msp430-elf-gcc" "C:\\Users\\TORFIN~1.ING\\AppData\\Local\\Temp\\rustcA0QEwy\\symbols.o" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\msp430_test_f5529-86a0fdf4ef654c22.49gfa2h23ey5lpbh.rcgu.o" "-L" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps" "-L" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\debug\\deps" "-L" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\build\\msp430-rt-e4837849695a5178\\out" "-L" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\build\\msp430f5529-ffde0034467d1171\\out" "-L" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\build\\msp430-rt-b953496aada687eb\\out" "-L" "C:\\Users\\torfinn.ingolfsen\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\msp430-none-elf\\lib" "-Wl,-Bstatic" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\libmsp430f5529-30ab68f5ad5eabbf.rlib" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\libvcell-75d629977897d950.rlib" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\libmsp430_rt-813fa0416fa327a2.rlib" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\libmsp430-f9b07b7f1955aba5.rlib" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\libbare_metal-34b9cd6b628f4b4a.rlib" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\libmsp430_rt-81b1b6ab4d8a87ab.rlib" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\libpanic_msp430-05e6413d1ec79a2e.rlib" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\libmsp430-4b1e066d2184c51c.rlib" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\libcritical_section-96c96ff7585a30f8.rlib" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\librustc_std_workspace_core-d189d6ef5597a167.rlib" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\libcore-0d5e79c439c97b38.rlib" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\libcompiler_builtins-4b7734987d075df6.rlib" "-Wl,-Bdynamic" "-L" "C:\\Users\\torfinn.ingolfsen\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\msp430-none-elf\\lib" "-o" "C:\\Users\\torfinn.ingolfsen\\OneDrive - Inventas AS\\Documents\\Inventas\\0_faglig\\utvikling\\rust\\embedded\\msp430-test-f5529\\target\\msp430-none-elf\\debug\\deps\\msp430_test_f5529-86a0fdf4ef654c22" "-nodefaultlibs" "-Tlink.x" "-nostartfiles" "-mcpu=msp430" "-lmul_none" "-lgcc"
  = note: c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x52): undefined reference to `RTC'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x54): undefined reference to `PORT2'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x56): undefined reference to `TIMER2_A1'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x58): undefined reference to `TIMER2_A0'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x5a): undefined reference to `USCI_B1'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x5c): undefined reference to `USCI_A1'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x5e): undefined reference to `PORT1'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x60): undefined reference to `TIMER1_A1'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x62): undefined reference to `TIMER1_A0'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x64): undefined reference to `DMA'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x66): undefined reference to `USB_UBM'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x68): undefined reference to `TIMER0_A1'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x6a): undefined reference to `TIMER0_A0'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x6c): undefined reference to `ADC12'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x6e): undefined reference to `USCI_B0'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x70): undefined reference to `USCI_A0'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x72): undefined reference to `WDT'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x74): undefined reference to `TIMER0_B1'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x76): undefined reference to `TIMER0_B0'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x78): undefined reference to `COMP_B'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x7a): undefined reference to `UNMI'
          c:/ti/msp430-gcc/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld.exe: C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-f5529\target\msp430-none-elf\debug\deps\libmsp430f5529-30ab68f5ad5eabbf.rlib(msp430f5529-30ab68f5ad5eabbf.msp430f5529.85d63f65-cgu.0.rcgu.o):(.vector_table.interrupts+0x7c): undefined reference to `SYSNMI'
          collect2.exe: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
error: could not compile `msp430-test-f5529` due to previous error

not sure why.

tingox commented 1 year ago

The default example (G2553 mcu) compiles without problems.

[C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-g2553] $ cargo build
   Compiling compiler_builtins v0.1.85
   Compiling core v0.0.0 (C:\Users\torfinn.ingolfsen\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core)
   Compiling proc-macro2 v1.0.50
   Compiling unicode-ident v1.0.6
   Compiling quote v1.0.23
   Compiling syn v1.0.107
   Compiling rand_core v0.6.4
   Compiling msp430-rt v0.4.0
   Compiling msp430g2553 v0.4.0
   Compiling rand v0.8.5
   Compiling rand_xoshiro v0.6.0
   Compiling msp430-rt-macros v0.4.0
   Compiling rustc-std-workspace-core v1.99.0 (C:\Users\torfinn.ingolfsen\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\rustc-std-workspace-core)
   Compiling critical-section v1.1.1
   Compiling vcell v0.1.3
   Compiling msp430 v0.4.1
   Compiling panic-msp430 v0.4.0
   Compiling msp430-test-g2553 v0.1.0 (C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\msp430-test-g2553)
    Finished dev [unoptimized + debuginfo] target(s) in 8.35s
tingox commented 1 year ago

F5529 example fails on FreeBSD too

tingo@kg-core1:~/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529 $ cargo build
    Updating git repository `https://github.com/kvinwang/fixed-macro`
    Updating crates.io index
    Updating git repository `https://github.com/cr1901/i2c-server`
  Downloaded bare-metal v1.0.0
  Downloaded msp430-rt v0.3.1
  Downloaded msp430-rt-macros v0.3.1
  Downloaded msp430 v0.3.0
  Downloaded msp430f5529 v0.2.0
  Downloaded 5 crates (325.2 KB) in 1.72s
   Compiling compiler_builtins v0.1.91
   Compiling core v0.0.0 (/usr/home/tingo/.rustup/toolchains/nightly-x86_64-unknown-freebsd/lib/rustlib/src/rust/library/core)
   Compiling proc-macro2 v1.0.58
   Compiling unicode-ident v1.0.8
   Compiling quote v1.0.27
   Compiling syn v1.0.109
   Compiling rand_core v0.6.4
   Compiling rand_xoshiro v0.6.0
   Compiling rand v0.8.5
   Compiling msp430-rt v0.3.1
   Compiling msp430-rt v0.4.0
   Compiling msp430f5529 v0.2.0
   Compiling msp430-rt-macros v0.3.1
   Compiling msp430-rt-macros v0.4.0
   Compiling rustc-std-workspace-core v1.99.0 (/usr/home/tingo/.rustup/toolchains/nightly-x86_64-unknown-freebsd/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling critical-section v1.1.1
   Compiling bare-metal v1.0.0
   Compiling msp430 v0.4.1
   Compiling msp430 v0.3.0
   Compiling vcell v0.1.3
   Compiling panic-msp430 v0.4.0
   Compiling msp430-test-f5529 v0.1.0 (/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529)
error: linking with `msp430-elf-gcc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/usr/home/tingo/.rustup/toolchains/nightly-x86_64-unknown-freebsd/lib/rustlib/x86_64-unknown-freebsd/bin:/usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin:/home/tingo/.cargo/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/tingo/bin:/home/tingo/.local/bin" VSLANG="1033" "msp430-elf-gcc" "/tmp/rustcr5R4E5/symbols.o" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/msp430_test_f5529-d2b222c2f4f6d759.4msus5vmiidahk4u.rcgu.o" "-L" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps" "-L" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/debug/deps" "-L" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/build/msp430-rt-0614665ae42b8a89/out" "-L" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/build/msp430f5529-d2205c224b3b2262/out" "-L" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/build/msp430-rt-ced76c6b9dc2837e/out" "-L" "/usr/home/tingo/.rustup/toolchains/nightly-x86_64-unknown-freebsd/lib/rustlib/msp430-none-elf/lib" "-Wl,-Bstatic" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libvcell-a45631ec15afa2b5.rlib" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430_rt-4298e8efe14aa63c.rlib" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430-6158652659711340.rlib" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libbare_metal-31e60e424c8ce620.rlib" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430_rt-5730ca6799a3b378.rlib" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libpanic_msp430-da67dfc918513b7a.rlib" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430-446a3e45e60368d9.rlib" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libcritical_section-b7c184ec8d6cfc50.rlib" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/librustc_std_workspace_core-dfd615212b40fa87.rlib" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libcore-1eaa749c7bec7ac8.rlib" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libcompiler_builtins-d8607f6666c2f4ae.rlib" "-Wl,-Bdynamic" "-L" "/usr/home/tingo/.rustup/toolchains/nightly-x86_64-unknown-freebsd/lib/rustlib/msp430-none-elf/lib" "-o" "/zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/msp430_test_f5529-d2b222c2f4f6d759" "-nodefaultlibs" "-Tlink.x" "-nostartfiles" "-mcpu=msp430" "-lmul_none" "-lgcc"
  = note: /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x52): undefined reference to `RTC'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x54): undefined reference to `PORT2'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x56): undefined reference to `TIMER2_A1'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x58): undefined reference to `TIMER2_A0'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x5a): undefined reference to `USCI_B1'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x5c): undefined reference to `USCI_A1'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x5e): undefined reference to `PORT1'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x60): undefined reference to `TIMER1_A1'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x62): undefined reference to `TIMER1_A0'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x64): undefined reference to `DMA'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x66): undefined reference to `USB_UBM'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x68): undefined reference to `TIMER0_A1'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x6a): undefined reference to `TIMER0_A0'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x6c): undefined reference to `ADC12'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x6e): undefined reference to `USCI_B0'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x70): undefined reference to `USCI_A0'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x72): undefined reference to `WDT'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x74): undefined reference to `TIMER0_B1'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x76): undefined reference to `TIMER0_B0'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x78): undefined reference to `COMP_B'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x7a): undefined reference to `UNMI'
          /usr/local/gcc-msp430-ti-toolchain-9.3.1.2/bin/../lib/gcc/msp430-elf/9.3.1/../../../../msp430-elf/bin/ld: /zs/tingo/personal/projects/2023/rust/embedded/msp430/msp430-test-f5529/target/msp430-none-elf/debug/deps/libmsp430f5529-a949a0db168339c5.rlib(msp430f5529-a949a0db168339c5.msp430f5529.144c75cde0eba883-cgu.0.rcgu.o):(.vector_table.interrupts+0x7c): undefined reference to `SYSNMI'
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)

error: could not compile `msp430-test-f5529` (bin "msp430-test-f5529") due to previous error