You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to build rustc target for thumbv7a-pc-windows-msvc locally, with a patch to compiler-builtins from this PR rust-lang/compiler-builtins#293, also hacked panic_unwind for thumbv7a similar to what we have for aarch64, https://github.com/rust-lang/rust/blob/master/src/libtest/lib.rs#L45, and I was able to build the target thumbv7a-pc-windows-msvc successfully, with below build command, c:\python27\python.exe x.py build --host x86_64-pc-windows-msvc --build x86_64-pc-windows-msvc --target thumbv7a-pc-windows-msvc --verbose
After the build I tried to use my private tool chain to build some other rust projects, e.g. iotedged-eventlog-messages, I received below build errors. I used a few different ways to merge artifacts from different stages
use only stage1, does not even recognize thumbv7a
copy stage2 over stage1, overwrite anything with same name that exists in stage1, I got below error
I did some rough check in the thumbv7a liballoc library, interestingly, the name mangling for EMPTY_ROOT_NODE is different than most of others. The symbol wanted is __imp__ZN5alloc11collections5btree4node15EMPTY_ROOT_NODE17h486b4088caeaa846E, however the one that I have in the thumbv7a lib is __imp___ZN5alloc11collections5btree4node15EMPTY_ROOT_NODE17h486b4088caeaa846E, note there are 2 underscores in the wanted symbol and 3 underscores in the actual symbol. that's because I have this symbol _ZN5alloc11collections5btree4node15EMPTY_ROOT_NODE17h486b4088caeaa846E which already starts with an underscore
Looking at other symbols in the same lib, none of them start with a single underscore, e,g, anon.6bd877021c225a724ec59609200b96d6.6.llvm.13430696783672607638 and __imp__anon.6bd877021c225a724ec59609200b96d6.2.llvm.13430696783672607638.
I have no idea why the toolchain is looking for __imp__ for EMPTY_ROOT_NODE instead of looking for __imp___
Hello
I was trying to build rustc target for thumbv7a-pc-windows-msvc locally, with a patch to compiler-builtins from this PR rust-lang/compiler-builtins#293, also hacked panic_unwind for thumbv7a similar to what we have for aarch64, https://github.com/rust-lang/rust/blob/master/src/libtest/lib.rs#L45, and I was able to build the target thumbv7a-pc-windows-msvc successfully, with below build command,
c:\python27\python.exe x.py build --host x86_64-pc-windows-msvc --build x86_64-pc-windows-msvc --target thumbv7a-pc-windows-msvc --verboseAfter the build I tried to use my private tool chain to build some other rust projects, e.g. iotedged-eventlog-messages, I received below build errors. I used a few different ways to merge artifacts from different stages
I did some rough check in the thumbv7a liballoc library, interestingly, the name mangling for EMPTY_ROOT_NODE is different than most of others. The symbol wanted is
__imp__ZN5alloc11collections5btree4node15EMPTY_ROOT_NODE17h486b4088caeaa846E, however the one that I have in the thumbv7a lib is__imp___ZN5alloc11collections5btree4node15EMPTY_ROOT_NODE17h486b4088caeaa846E, note there are 2 underscores in the wanted symbol and 3 underscores in the actual symbol. that's because I have this symbol_ZN5alloc11collections5btree4node15EMPTY_ROOT_NODE17h486b4088caeaa846Ewhich already starts with an underscoreLooking at other symbols in the same lib, none of them start with a single underscore, e,g,
anon.6bd877021c225a724ec59609200b96d6.6.llvm.13430696783672607638and__imp__anon.6bd877021c225a724ec59609200b96d6.2.llvm.13430696783672607638.I have no idea why the toolchain is looking for
__imp__for EMPTY_ROOT_NODE instead of looking for__imp___Thoughts?