Cross compile for ARM

Hello.
I have a problem with cross-compile for arm-linux pratform.

script build.sh :

#!/bin/bash

SYSROOT=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux

shopt -s expand_aliases
source /opt/etos/3.1.1/environment-setup-armv7at2hf-neon-etos-linux-gnueabi

export PKG_CONFIG_PATH=${SYSROOT}/usr/lib/pkgconfig
export PKG_CONFIG_LIBDIR=${SYSROOT}/usr/lib/pkgconfig:${SYSROOT}/usr/share/pkgconfig
export PKG_CONFIG_SYSROOT_DIR=${SYSROOT}
export PKG_CONFIG_ALLOW_CROSS=1

cargo build

Error:

error: failed to run custom build command for `libudev-sys v0.1.4`

Caused by:
  process didn't exit successfully: `/home/gitlab-runner/builds/iWLgNQq6/0/ekm3/drivers/transparent/target/debug/build/libudev-sys-7b970b314f869522/build-script-build` (exit code: 101)
  --- stdout
  cargo:rerun-if-env-changed=LIBUDEV_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=LIBUDEV_STATIC
  cargo:rerun-if-env-changed=LIBUDEV_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"libudev\"` did not exit successfully: exit code: 1\n--- stderr\nPackage libudev was not found in the pkg-config search path.\nPerhaps you should add the directory containing `libudev.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'libudev\' found\n"', /home/gitlab-runner/.cargo/registry/src/github.com-1ecc6299db9ec823/libudev-sys-0.1.4/build.rs:38:41
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

printenv:

OE_QMAKE_INCDIR_QT=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi/usr/include
AS=arm-etos-linux-gnueabi-as 
LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
AR=arm-etos-linux-gnueabi-ar
OECORE_TARGET_SYSROOT=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
OE_QMAKE_QDBUSXML2CPP=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin/qdbusxml2cpp
TARGET_PREFIX=arm-etos-linux-gnueabi-
M4=m4
OE_CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX=
OE_CMAKE_TOOLCHAIN_FILE=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/share/cmake/OEToolchainConfig.cmake
SHELL=/bin/bash
TERM=xterm-256color
NM=arm-etos-linux-gnueabi-nm
OE_QMAKE_CXX=arm-etos-linux-gnueabi-g++  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
OECORE_DISTRO_VERSION=3.1.1
CPPFLAGS=
OE_QMAKE_CXXFLAGS= -O2 -pipe -g -feliminate-unused-debug-types 
OECORE_SDK_VERSION=3.1.1
GDB=arm-etos-linux-gnueabi-gdb
USER=gitlab-runner
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
SUDO_USER=mhanusek
SUDO_UID=1005
PKG_CONFIG_SYSROOT_DIR=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
CXXFLAGS= -O2 -pipe -g -feliminate-unused-debug-types 
CONFIG_SITE=/opt/etos/3.1.1/site-config-armv7at2hf-neon-etos-linux-gnueabi
USERNAME=root
OE_QMAKE_UIC=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin/uic
OE_QMAKE_RCC=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin/rcc
CPP=arm-etos-linux-gnueabi-gcc -E  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
OE_QMAKE_AR=arm-etos-linux-gnueabi-ar
MAIL=/var/mail/gitlab-runner
PATH=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin:/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin:/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/sbin:/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/bin:/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/sbin:/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin/../x86_64-etossdk-linux/bin:/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin/arm-etos-linux-gnueabi:/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin/arm-etos-linux-musl:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
OE_QMAKE_PATH_HOST_BINS=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin
LD=arm-etos-linux-gnueabi-ld  --sysroot=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
OE_QMAKE_STRIP=arm-etos-linux-gnueabi-strip
PWD=/home/gitlab-runner/builds/iWLgNQq6/0/ekm3/drivers/transparent
STRIP=arm-etos-linux-gnueabi-strip
LANG=pl_PL.UTF-8
OE_QMAKE_LINK=arm-etos-linux-gnueabi-g++  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
QMAKESPEC=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi/usr/lib/mkspecs/linux-oe-g++
QT_CONF_PATH=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin/qt.conf
OECORE_TARGET_ARCH=arm
OECORE_NATIVE_SYSROOT=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux
CONFIGURE_FLAGS=--target=arm-etos-linux-gnueabi --host=arm-etos-linux-gnueabi --build=x86_64-linux --with-libtool-sysroot=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
OE_QMAKE_QT_CONFIG=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi/usr/lib/mkspecs/qconfig.pri
OE_QMAKE_CC=arm-etos-linux-gnueabi-gcc  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
KCFLAGS=--sysroot=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
CXX=arm-etos-linux-gnueabi-g++  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
OBJCOPY=arm-etos-linux-gnueabi-objcopy
OECORE_TARGET_OS=linux-gnueabi
OECORE_BASELIB=lib
SHLVL=1
SUDO_COMMAND=/bin/su gitlab-runner
HOME=/home/gitlab-runner
OPENSSL_CONF=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/lib/ssl-1.1/openssl.cnf
CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types 
LOGNAME=gitlab-runner
OE_QMAKE_MOC=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin/moc
OE_QMAKE_QDBUSCPP2XML=/opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/bin/qdbuscpp2xml
OECORE_ACLOCAL_OPTS=-I /opt/etos/3.1.1/sysroots/x86_64-etossdk-linux/usr/share/aclocal
PKG_CONFIG_PATH=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi/usr/lib/pkgconfig:/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi/usr/share/pkgconfig
LESSOPEN=| /usr/bin/lesspipe %s
ARCH=arm
RANLIB=arm-etos-linux-gnueabi-ranlib
OE_QMAKE_CFLAGS= -O2 -pipe -g -feliminate-unused-debug-types 
CROSS_COMPILE=arm-etos-linux-gnueabi-
CC=arm-etos-linux-gnueabi-gcc  -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard --sysroot=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
SUDO_GID=1005
READELF=arm-etos-linux-gnueabi-readelf
OE_QMAKE_LIBDIR_QT=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi/usr/lib
OBJDUMP=arm-etos-linux-gnueabi-objdump
LESSCLOSE=/usr/bin/lesspipe %s %s
OE_QMAKE_LDFLAGS=-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
SDKTARGETSYSROOT=/opt/etos/3.1.1/sysroots/armv7at2hf-neon-etos-linux-gnueabi
_=/usr/bin/printenv

You need to install the libudev-dev package for arm.

1 Like

That looks like an x86_64 sysroot. You need to set sysroot to an ARM one.

I have other problem with cross compile for arm:

Log:

     Running `CARGO=/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_BIN_NAME=libiec61850_rs CARGO_CRATE_NAME=libiec61850_rs CARGO_MANIFEST_DIR=/home/mhanusek/work/VersionControl/jpe-iec61850 CARGO_PKG_AUTHORS='Michał Hanusek <mhanusek@energotest.com.pl>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=Closed CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libiec61850_rs CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/home/mhanusek/work/VersionControl/jpe-iec61850/target/debug/deps:/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' rustc --crate-name libiec61850_rs --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=490515dfdb9baef9 -C extra-filename=-490515dfdb9baef9 --out-dir /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps --target arm-unknown-linux-gnueabihf -C incremental=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/incremental -L dependency=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps -L dependency=/home/mhanusek/work/VersionControl/jpe-iec61850/target/debug/deps --extern chrono=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libchrono-3c78da3f8c1a92eb.rlib --extern libc=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/liblibc-c467eb4d1b776c2a.rlib --extern libiec61850_rs=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_rs-afc6665708f2a5e8.rlib --extern libiec61850_sys=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib --extern serde=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libserde-d32a5ba04f4e3978.rlib --extern serde_derive=/home/mhanusek/work/VersionControl/jpe-iec61850/target/debug/deps/libserde_derive-121d73e953e3b059.so --extern serde_json=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libserde_json-103861b2106ed31b.rlib -L native=/home/mhanusek/work/VersionControl/jpe-iec61850/stack/lib`
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-L" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1401pmsgflhg8r7f.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.147gv7dz395fx5lz.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.15zi6fdzixswazhq.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.185vx2l36pje49xt.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.18cu8tz4isxfrlwq.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.18dmcrkmo3zs11db.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.18px2xmmff7wq41s.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1a02o437wkmay4ae.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1ajn6rby2pdcg8o6.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1c89zdpgat839ivu.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1cr6d31ff3tpm20x.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1crux201syw38l6y.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1eyi9kr7wyxjic7o.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1mdfbf8m4g28ehii.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1p1w4gzvu6dhd9xy.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1y56j3jsyqscq8vo.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.21tiqjbcwmdmhphu.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.221uqbtrf66t8p6z.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.25t1jvl64hxzwedc.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.27dl23hiko5izbzs.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2b79wky3gg7sry34.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2c70n5yfc7bew0hx.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2crrbkfc1grvd0cy.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2eaw2s6tgx0juq48.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2p6dchwtoj845p2j.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2qtlu198pvlifkma.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2re9z8ipc1u6p5ds.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2x23viaife9ksx4e.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2z732kfnb0sj32qm.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2zvlq9d1tafztb2k.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.39jtaf681k5l8p2e.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3a0s7jwqeakor2gt.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3a2f0dq0k05n2vgc.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3em8vzv6pmw7f6s9.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3ozzd4xq1r7qi8lw.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3wqxd01m4318w65y.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3zm4t67pdwjo1ice.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.42mgd14jzmrz5bdv.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.434ri8ylsab8g9vm.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.442g0uebxlnj3fxp.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.44x549milwgu33vb.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.45p7w18xcupdj0z5.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4bem3o0z3orr71fr.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4cjywprqx8o2bz1v.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4d5qlcng7ov0su8j.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4erpdtp57dr0urq5.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4gp1od1dmj9czdl7.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4m76fowmebgnr2l1.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4s4riml54k6lw564.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4sdr5bfdgwel84d1.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4ur4n2luhkp0etg9.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.518ywz8cwlc907td.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.524r04gpc12a9rer.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.54m130jfr3m6augz.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.55t5mh9gswe21emy.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.5aeaeuqpfcq5z5m1.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.5ccnxvh0dodcpoi6.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.5d2nszr3rjhmii1x.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.5qh0zte1m9vgtbb.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.8rbrc9yjyb6tz1i.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.hnnaasbt59ne77w.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.md6sksmvayoj8gi.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.mus7rlld9cc4y49.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.oc459j7rujscgbz.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.q1uflvq6weofsza.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.qfnsmk2y56ol79q.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.r1bb9n5x2ch50f.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.snkyd31ynr2nn78.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.spglh4hrtetqm9u.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.sy7zm2h4ez3dhv4.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.x0yxhh0df5kcx5j.rcgu.o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.z50oaz5b9vox570.rcgu.o" "-o" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4zp2vc8boqzx2q7i.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps" "-L" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/debug/deps" "-L" "/home/mhanusek/work/VersionControl/jpe-iec61850/stack/lib" "-L" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "-Wl,-Bstatic" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_rs-afc6665708f2a5e8.rlib" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libserde-d32a5ba04f4e3978.rlib" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib" "/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/liblibc-c467eb4d1b776c2a.rlib" "-Wl,--start-group" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libstd-e95d7f3d2aa1ab3e.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libpanic_unwind-82870c6233444763.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libminiz_oxide-fdac811fa28208e9.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libadler-f3e054737911ca70.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libobject-c877c3a450da08f4.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libaddr2line-88d10d9ab30daf8b.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libgimli-1f46e2101e307f73.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/librustc_demangle-84e12244fac33331.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libhashbrown-6ffd4a7def6cd4be.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/librustc_std_workspace_alloc-06ace4fe8e58988f.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libunwind-3155d87c49fc31e4.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcfg_if-726dc0b20cfa1c4f.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/liblibc-1e60758a8e764278.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/liballoc-ac7906d1f3ff0735.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/librustc_std_workspace_core-3fc3cb579cb39cd4.rlib" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcore-fc039b52f4b0e0d9.rlib" "-Wl,--end-group" "/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcompiler_builtins-3436a1fa526e5af3.rlib" "-Wl,-Bdynamic" "-lstdc++" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-lutil"
  = note: /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /usr/bin/ld: /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: Relocations in generic ELF (EM: 40)
          /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o: error adding symbols: File in wrong format
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: could not compile `libiec61850_rs`

Caused by:
  process didn't exit successfully: `CARGO=/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo CARGO_BIN_NAME=libiec61850_rs CARGO_CRATE_NAME=libiec61850_rs CARGO_MANIFEST_DIR=/home/mhanusek/work/VersionControl/jpe-iec61850 CARGO_PKG_AUTHORS='Michał Hanusek <mhanusek@energotest.com.pl>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=Closed CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libiec61850_rs CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/home/mhanusek/work/VersionControl/jpe-iec61850/target/debug/deps:/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib:/home/mhanusek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib' rustc --crate-name libiec61850_rs --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=490515dfdb9baef9 -C extra-filename=-490515dfdb9baef9 --out-dir /home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps --target arm-unknown-linux-gnueabihf -C incremental=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/incremental -L dependency=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps -L dependency=/home/mhanusek/work/VersionControl/jpe-iec61850/target/debug/deps --extern chrono=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libchrono-3c78da3f8c1a92eb.rlib --extern libc=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/liblibc-c467eb4d1b776c2a.rlib --extern libiec61850_rs=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_rs-afc6665708f2a5e8.rlib --extern libiec61850_sys=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib --extern serde=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libserde-d32a5ba04f4e3978.rlib --extern serde_derive=/home/mhanusek/work/VersionControl/jpe-iec61850/target/debug/deps/libserde_derive-121d73e953e3b059.so --extern serde_json=/home/mhanusek/work/VersionControl/jpe-iec61850/target/arm-unknown-linux-gnueabihf/debug/deps/libserde_json-103861b2106ed31b.rlib -L native=/home/mhanusek/work/VersionControl/jpe-iec61850/stack/lib` (exit code: 1)

You'll need to install and configure an ARM linker. There are some instructions here:

I did.

~/.cargo/config

[target.arm-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

arm-linux-gnueabihf-gcc:

# arm-linux-gnueabihf-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc-cross/arm-linux-gnueabihf/7/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-multiarch --enable-multilib --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --disable-werror --enable-multilib --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-linux-gnueabihf --program-prefix=arm-linux-gnueabihf- --includedir=/usr/arm-linux-gnueabihf/include
Thread model: posix
gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 

output:

error: linking with `arm-linux-gnueabihf-gcc` failed: exit code: 1
  |
  = note: "arm-linux-gnueabihf-gcc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-Wl,--eh-frame-hdr" "-L" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.13f1l1prn9av3kk3.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1401pmsgflhg8r7f.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.147gv7dz395fx5lz.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.15zi6fdzixswazhq.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.185vx2l36pje49xt.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.18cu8tz4isxfrlwq.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.18dmcrkmo3zs11db.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.18px2xmmff7wq41s.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1a02o437wkmay4ae.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1ajn6rby2pdcg8o6.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1c89zdpgat839ivu.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1cr6d31ff3tpm20x.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1crux201syw38l6y.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1eyi9kr7wyxjic7o.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1mdfbf8m4g28ehii.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1p1w4gzvu6dhd9xy.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.1y56j3jsyqscq8vo.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.21tiqjbcwmdmhphu.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.221uqbtrf66t8p6z.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.25t1jvl64hxzwedc.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.27dl23hiko5izbzs.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2b79wky3gg7sry34.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2c70n5yfc7bew0hx.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2crrbkfc1grvd0cy.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2eaw2s6tgx0juq48.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2p6dchwtoj845p2j.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2qtlu198pvlifkma.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2re9z8ipc1u6p5ds.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2x23viaife9ksx4e.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2z732kfnb0sj32qm.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.2zvlq9d1tafztb2k.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.39jtaf681k5l8p2e.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3a0s7jwqeakor2gt.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3a2f0dq0k05n2vgc.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3em8vzv6pmw7f6s9.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3ozzd4xq1r7qi8lw.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3wqxd01m4318w65y.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.3zm4t67pdwjo1ice.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.42mgd14jzmrz5bdv.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.434ri8ylsab8g9vm.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.442g0uebxlnj3fxp.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.44x549milwgu33vb.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.45p7w18xcupdj0z5.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4bem3o0z3orr71fr.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4cjywprqx8o2bz1v.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4d5qlcng7ov0su8j.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4erpdtp57dr0urq5.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4gp1od1dmj9czdl7.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4m76fowmebgnr2l1.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4s4riml54k6lw564.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4sdr5bfdgwel84d1.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4ur4n2luhkp0etg9.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.518ywz8cwlc907td.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.524r04gpc12a9rer.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.54m130jfr3m6augz.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.55t5mh9gswe21emy.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.5aeaeuqpfcq5z5m1.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.5ccnxvh0dodcpoi6.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.5d2nszr3rjhmii1x.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.5qh0zte1m9vgtbb.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.8rbrc9yjyb6tz1i.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.hnnaasbt59ne77w.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.md6sksmvayoj8gi.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.mus7rlld9cc4y49.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.oc459j7rujscgbz.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.q1uflvq6weofsza.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.qfnsmk2y56ol79q.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.r1bb9n5x2ch50f.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.snkyd31ynr2nn78.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.spglh4hrtetqm9u.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.sy7zm2h4ez3dhv4.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.x0yxhh0df5kcx5j.rcgu.o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.z50oaz5b9vox570.rcgu.o" "-o" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9" "/target/arm-unknown-linux-gnueabihf/debug/deps/libiec61850_rs-490515dfdb9baef9.4zp2vc8boqzx2q7i.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/target/arm-unknown-linux-gnueabihf/debug/deps" "-L" "/target/debug/deps" "-L" "/project/stack/lib" "-L" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "-Wl,-Bstatic" "/target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_rs-afc6665708f2a5e8.rlib" "/target/arm-unknown-linux-gnueabihf/debug/deps/libserde-d32a5ba04f4e3978.rlib" "/target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib" "/target/arm-unknown-linux-gnueabihf/debug/deps/liblibc-c467eb4d1b776c2a.rlib" "-Wl,--start-group" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libstd-e95d7f3d2aa1ab3e.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libpanic_unwind-82870c6233444763.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libminiz_oxide-fdac811fa28208e9.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libadler-f3e054737911ca70.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libobject-c877c3a450da08f4.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libaddr2line-88d10d9ab30daf8b.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libgimli-1f46e2101e307f73.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/librustc_demangle-84e12244fac33331.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libhashbrown-6ffd4a7def6cd4be.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/librustc_std_workspace_alloc-06ace4fe8e58988f.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libunwind-3155d87c49fc31e4.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcfg_if-726dc0b20cfa1c4f.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/liblibc-1e60758a8e764278.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/liballoc-ac7906d1f3ff0735.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/librustc_std_workspace_core-3fc3cb579cb39cd4.rlib" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcore-fc039b52f4b0e0d9.rlib" "-Wl,--end-group" "/rust/lib/rustlib/arm-unknown-linux-gnueabihf/lib/libcompiler_builtins-3436a1fa526e5af3.rlib" "-Wl,-Bdynamic" "-lstdc++" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-lutil"
  = note: /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(IEC61850_lib_c.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CGenServer.o): relocation R_ARM_THM_MOVW_ABS_NC against `_ZN10CGenServer10p_instanceE' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CLogicalDevice.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CDataSet.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CGenLogicalNode.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CLgos.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CGenDataObject.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CAbstractGenDataAttribute.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CGenConstructedAttribute.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CObjectReference.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(asn1.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CAnalogueValue.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CValWithTrans.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CGenControlBlock.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CGooseCB.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CReportCB.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(MmsServer.o): relocation R_ARM_THM_MOVW_ABS_NC against `_ZN10CMmsServer5p_mmsE' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(Connection.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(Cotp.o): relocation R_ARM_THM_MOVW_ABS_NC against `_ZN5CCotp4bRunE' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(IEC_session.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(IEC_presentation.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(Utils.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(IEC61850_hal.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(IEC61850_hal_nvm.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(tinyxml.o): relocation R_ARM_THM_MOVW_ABS_NC against `_ZN9TiXmlBase6entityE' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(tinyxmlparser.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(HAL_tm.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CtrlModel.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CGenComCB.o): relocation R_ARM_THM_MOVW_ABS_NC against `_ZN9CGenComCB13deviceMacAddrE' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(CGenEventCB.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: /target/arm-unknown-linux-gnueabihf/debug/deps/liblibiec61850_sys-6ba05f41bd094c44.rlib(IEC61850_lib_c.o)(.text+0xbe): unresolvable R_ARM_THM_CALL relocation against symbol `printf@@GLIBC_2.4'
          /usr/arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/8.3.0/../../../../arm-linux-gnueabihf/bin/ld: final link failed: nonrepresentable section on output
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: could not compile `libiec61850_rs`

Command (not working)

cross build --target=arm-unknown-linux-gnueabihf

Command (working)

cargo build --target=arm-unknown-linux-gnueabihf