Hi. I'm trying to create a cross compiler for raspberry pi.
I followed the instructions I found on wiki to build runtime and phobos.
It seems to works. It create a binary but it won't run on raspberry.
./wall2: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by ./wall2)
It seems that libc on my raspberry is v2.28 rather than 2.29:
libc6 | 2.28-10+rpi1 | http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
I think this is the problem. How can I solve this?
ldc -v helloworld.d. At the end, you'll see the commandline that is passed to GCC. On that commandline you will see how to pass druntime and phobos to gcc to link to a static library written in D. Make sure you initialize the druntime. See: https://email@example.com
Linking... LINK : warning LNK4098: defaultlib 'libcmt' conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib 'libvcruntime' conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
-mscrtlib=msvcrtflag, but it still complain
-flto=thin -defaultlib=phobos2-ldc-lto,druntime-ldc-ltoflags and getting failures to find libraries. This is when using the Arch Linux LDC distribution. It works when building with the packages provided on the GitHub releases page. I'm guessing the Arch Linux may simply not include the LTO versions of these libraries, but I'm not an Arch Linux user, so not sure.
ldc2.confissue. The user might need to add
-link-defaultlib-shared=falseif it defaults to true in the config.
Is there some way I could select a specific GCC for using with LDC? I remember people saying about D and C binary compatibility but I can't seem to find it:
I have tried inputting some thing onto ldc conf as:
switches = [
rpath = "";
I know it is a very old arm, (arm3 or 4, dont remember right now), even testing it with the "arm" as the system, I keep getting "File format not recognized", what I'm misssing?