Relocations in generic ELF (EM: 40)
Today I added caching to my gitlab CI since i keep on running low on minutes. This was annoyly challening for a few reasons.
- Gitlab only caches data in the build directory, so if you want to cache
$HOME/.cargo
you can't. So you must redefine$CARGO_HOME
. - There's a bug in cargo where it uses the wrong linker that seemd to pop-up when redefining
$CARGO_HOME
and cross compiling.
The error I was recieving was the following for each compiled object.
Relocations in generic ELF (EM: 40)
Relocations in generic ELF (EM: 40)
Relocations in generic ELF (EM: 40)
Relocations in generic ELF (EM: 40)
Relocations in generic ELF (EM: 40)
...
error adding symbols: File in wrong format
Read More