I enabled "foc_imx53" option in "create_builddir" and afte "make" the output as follows were generated:
Skip target test/gpio_drv because it requires omap4
Skip target test/python because it requires x86
Skip target test/rm_nested because it requires experimental
Skip target test/timer_accuracy because it requires linux
Skip target test/vmm_utils because it requires nova
Skip target test/xev_track because it requires host x11 xtest xdamage
var/libdeps:2243: warning: overriding commands for target `vmlinux.prg'
var/libdeps:2199: warning: ignoring old commands for target `vmlinux.prg'
var/libdeps:4785: warning: overriding commands for target `.prg'
var/libdeps:2307: warning: ignoring old commands for target `.prg'
All build tools checked ok.
Creating build directory "/sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/"...
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --oldconfig /sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/Kconfig.generated
#
# configuration written to .kconfig
#
scripts/kconfig/conf --silentoldconfig /sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/Kconfig.generated
All build tools checked ok.
gcc -fPIC -Wall -pedantic -g -m64 -c /sda1/home/tteikhua/Downloads/genode-14.11/contrib/foc-3456a52b6603b16c9f157c9b3e2045e0984028c0/src/kernel/foc/l4/tool/gendep/deptrack.c -o /sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/tool/gendep/deptrack.64.o
gcc -fPIC -Wall -pedantic -g -m64 -c /sda1/home/tteikhua/Downloads/genode-14.11/contrib/foc-3456a52b6603b16c9f157c9b3e2045e0984028c0/src/kernel/foc/l4/tool/gendep/syscall.c -o /sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/tool/gendep/syscall.64.o
mkdir -p /sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/tool/gendep/64
gcc -m64 -shared -Wl,--no-as-needed -Wl,-soname,/sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/tool/gendep/64/libgendep.so -ldl -o /sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/tool/gendep/64/libgendep.so /sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/tool/gendep/deptrack.64.o /sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/tool/gendep/syscall.64.o
ERROR: ld.so: object 'libgendep.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libgendep.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object 'libgendep.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
make[8]: *** [Makeconf.bid.local-internal-names] Error 1
make[7]: *** [Makeconf.bid.local-helper] Error 2
make[6]: *** [DROPSCONF_CONFIG_MK_POST_HOOK] Error 1
make[5]: *** [/sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/.config.all] Error 2
make[4]: *** [oldconfig] Error 2
make[3]: *** [all] Error 2
make[2]: *** [/sda1/home/tteikhua/Downloads/genode-14.11/tool/build_foc_imx53/l4/.kconfig] Error 2
make[1]: *** [platform.lib] Error 2
make: *** [gen_deps_and_build_targets] Error 2
And somewhere under the tool directory is found the libgendep.so file:
/home/tteikhua/Downloads/genode-14.11>find .|grep gendep
./tool/build_foc_imx53/l4/tool/gendep
./tool/build_foc_imx53/l4/tool/gendep/64
./tool/build_foc_imx53/l4/tool/gendep/64/libgendep.so
./tool/build_foc_imx53/l4/tool/gendep/Makefile
./tool/build_foc_imx53/l4/tool/gendep/syscall.64.o
./tool/build_foc_imx53/l4/tool/gendep/deptrack.64.o
What is the cause of the error, and how to resolve it?