On Saturday, 24 September 2022 at 23:05:28 UTC, teverett wrote:
Hello, I am following the instructions here:
https://wiki.dlang.org/Building_LDC_runtime_libraries
I'm on OSX and need a ELF D RTL for i386.
I've used HomeBrew to install x86_64-elf-gcc, ninja and cmake.
The command I'm issuing is:
`CC=/usr/local/Cellar/x86_64-elf-gcc/12.2.0/bin/x86_64-elf-gcc
ldc-build-runtime --ninja --dFlags="-mtriple=i386-none-elf"
`
Hi,
I assume that this is for the [ldc
group](https://forum.dlang.org/group/ldc) instead of gdc.
Generically, building druntime should be fine, you'll need a
sufficiently old enough version of osx to run 32-bit binaries - I
forget when they dropped multilib support, around 10.9? - which
means that there might be some missing symbols reported when
building Phobos (posix_memalign might be one).