Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed building Samples #208

Open
T0T4R4 opened this issue May 26, 2023 · 0 comments
Open

Failed building Samples #208

T0T4R4 opened this issue May 26, 2023 · 0 comments

Comments

@T0T4R4
Copy link

T0T4R4 commented May 26, 2023

Hi all,

Desperately seeking some help here, as I can't figure out why building samples fails...

~/_dev/Retro68-build/build-target/Samples/HelloWorld$ make
Consolidate compiler generated dependencies of target RetroConsole
[ 25%] Built target RetroConsole
Consolidate compiler generated dependencies of target retrocrt
[ 83%] Built target retrocrt
[ 91%] Building C object Samples/HelloWorld/CMakeFiles/HelloWorld.dir/hello.c.obj
[100%] Linking CXX executable HelloWorld.code.bin
collect2: fatal error: ld terminated with signal 6 [Aborted]
compilation terminated.
/home/myuser/_dev/Retro68-build/toolchain/lib/gcc/m68k-apple-macos/9.1.0/../../../../m68k-apple-macos/bin/ld.real: warning: HelloWorld.code.bin.gdb has a LOAD segment with RWX permissions
/home/myuser/_dev/Retro68-build/toolchain/lib/gcc/m68k-apple-macos/9.1.0/../../../../m68k-apple-macos/bin/ld.real: warning: HelloWorld.code.bin.gdb has a LOAD segment with RWX permissions
ld: /home/myuser/_dev/Retro68/Elf2Mac/Object.cc:101: Object::Object(std::string): Assertion `sections.find(progbitsName) != sections.end()' failed.
make[2]: *** [Samples/HelloWorld/CMakeFiles/HelloWorld.dir/build.make:98: Samples/HelloWorld/HelloWorld.code.bin] Error 1
make[1]: *** [CMakeFiles/Makefile2:527: Samples/HelloWorld/CMakeFiles/HelloWorld.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

My configuration :

Ubuntu 22.04.1 running on WSL2 
binutils v2.38
gcc / g++ 11.3.0
cmake 3.22.1
bison 3.8.2
ruby 3.0.2p107
flex 2.6.4
texinfo not installed
libboost 1.74

I have noticed that the ld-new binary created in Retro68-build/binutils-build/ld/ is v2.39 ... but when rebuilding the samples, I do not think it is this version that gets used, but instead the one installed globally v2.38... not sure if that is related.

Please note that I did not alter the path to include any local folder from Retro68. The binaries quoted above are available straight from the command line on boot.

Thanks in advance !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant