Closed dckc closed 3 years ago
goa build
works, but goa run
fails with:
Genode 20.02-1-gac1b2ec24e
17592186044415 MiB RAM and 8997 caps assigned to init
[init -> genode-js-xs] Error: LD: ELF without DYNAMIC segment appears to be statically linked (ld="no")
[init -> genode-js-xs] Error: LD: exception during program load: 'Linker::Incompatible'
[init -> genode-js-xs] Error: Uncaught exception of type 'Linker::Incompatible'
[init -> genode-js-xs] Warning: abort called - thread: ep
even though...
$ file var/build/x86_64/bin/genode/debug/hello/hello
var/build/x86_64/bin/genode/debug/hello/hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter ld.lib.so, with debug_info, not stripped
The link command is:
/usr/local/genode/tool/current/bin/genode-x86-gcc -nostdinc -I/home/connolly/projects/genode-js-xs/var/depot/nfeske/api/base/2020-02-27/include/spec/x86_64 -I/home/connolly/projects/genode-js-xs/var/depot/nfeske/api/base/2020-02-27/include/spec/x86 -I/home/connolly/projects/genode-js-xs/var/depot/nfeske/api/base/2020-02-27/include/spec/64bit -I/home/connolly/projects/genode-js-xs/var/depot/nfeske/api/base/2020-02-27/include -I/home/connolly/projects/genode-js-xs/var/depot/nfeske/api/libc/2020-02-19/include/spec/x86_64 -I/home/connolly/projects/genode-js-xs/var/depot/nfeske/api/libc/2020-02-19/include/spec/x86 -I/home/connolly/projects/genode-js-xs/var/depot/nfeske/api/libc/2020-02-19/include -I/usr/local/genode/tool/19.05/lib/gcc/x86_64-pc-elf/8.3.0/include -I/home/connolly/projects/genode-js-xs/var/depot/nfeske/api/libc/2020-02-19/include/libc -I/home/connolly/projects/genode-js-xs/var/depot/nfeske/api/libc/2020-02-19/include/libc-genode -I/home/connolly/projects/genode-js-xs/var/depot/nfeske/api/libc/2020-02-19/include/spec/x86/libc -I/home/connolly/projects/genode-js-xs/var/depot/nfeske/api/libc/2020-02-19/include/spec/x86_64/libc -Wl,-melf_x86_64 -Wl,-gc-sections -Wl,-z -Wl,max-page-size=0x1000 -Wl,-Ttext=0x01000000 -Wl,--dynamic-linker=ld.lib.so -Wl,--dynamic-list=/home/connolly/projects/goa/share/goa/ld/genode_dyn.dl -Wl,--eh-frame-hdr -Wl,-rpath-link=. -Wl,-T -Wl,/home/connolly/projects/goa/share/goa/ld/genode_dyn.ld -nostdlib /usr/local/genode/tool/19.05/lib/gcc/x86_64-pc-elf/8.3.0/64/libgcc.a -L/home/connolly/projects/genode-js-xs/var/abi/x86_64 -l:ld.lib.so -l:libm.lib.so -l:libc.lib.so -l:posix.lib.so -Wl,-melf_x86_64 -Wl,-gc-sections -Wl,-z -Wl,max-page-size=0x1000 -Wl,-Ttext=0x01000000 -Wl,--dynamic-linker=ld.lib.so -Wl,--dynamic-list=/home/connolly/projects/goa/share/goa/ld/genode_dyn.dl -Wl,--eh-frame-hdr -Wl,-rpath-link=. -Wl,-T -Wl,/home/connolly/projects/goa/share/goa/ld/genode_dyn.ld /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/genode.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/wasm_xs.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsAll.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsAPI.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsArguments.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsArray.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsAtomics.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsBigInt.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsBoolean.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsCode.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsCommon.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsDataView.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsDate.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsDebug.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsError.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsFunction.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsGenerator.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsGlobal.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsJSON.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsLexical.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsMapSet.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsMarshall.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsMath.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsMemory.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsModule.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsNumber.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsObject.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsPlatforms.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsProfile.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsPromise.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsProperty.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsProxy.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsRegExp.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsRun.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsScope.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsScript.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsSourceMap.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsString.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsSymbol.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsSyntaxical.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsTree.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsType.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsdtoa.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsmc.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/lib/xsre.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/hello/mc.xs.c.o /home/connolly/projects/genode-js-xs/var/build/x86_64/tmp/genode/debug/hello/mc.resources.c.o -nostdlib /usr/local/genode/tool/19.05/lib/gcc/x86_64-pc-elf/8.3.0/64/libgcc.a -L/home/connolly/projects/genode-js-xs/var/abi/x86_64 -l:ld.lib.so -l:libm.lib.so -l:libc.lib.so -l:posix.lib.so -o /home/connolly/projects/genode-js-xs/var/build/x86_64/bin/genode/debug/hello/hello
fixes #6 fixes #8 fixes #9