So–I was able to modify and build ghc. ghc itself was setting up 16T of vm as hoped.
When building my app (phyg; git@github.com:amnh/PhyG.git), there was a link error (below).
Did I not fully build or configure correctly?
My compile line used “–with-compiler ~/home/ghc/_build/stage1/bin/ghc”
[62 of 62] Linking /home/ward/home/PhyG/dist-newstyle/build/x86_64-linux/ghc-9.9.20240101/PhyG-0.1.4/x/phyg/opt/build/phyg/phyg
/home/ward/.cabal/store/ghc-9.9.20240101/atomic-primops-0.8.4-4134d138778778a42a2da4976bc340844b2df4d5ee2bc70e095715fd5dcd5958/lib/libHSatomic-primops-0.8.4-4134d138778778a42a2da4976bc340844b2df4d5ee2bc70e095715fd5dcd5958.a(Atomics.o):function atomiczmprimopszm0zi8zi4zm4134d138778778a42a2da4976bc340844b2df4d5ee2bc70e095715fd5dcd5958_DataziAtomics_storeLoadBarrier_info: error: undefined reference to ‘store_load_barrier’
/home/ward/.cabal/store/ghc-9.9.20240101/atomic-primops-0.8.4-4134d138778778a42a2da4976bc340844b2df4d5ee2bc70e095715fd5dcd5958/lib/libHSatomic-primops-0.8.4-4134d138778778a42a2da4976bc340844b2df4d5ee2bc70e095715fd5dcd5958.a(Atomics.o):function atomiczmprimopszm0zi8zi4zm4134d138778778a42a2da4976bc340844b2df4d5ee2bc70e095715fd5dcd5958_DataziAtomics_loadLoadBarrier_info: error: undefined reference to ‘load_load_barrier’
/home/ward/.cabal/store/ghc-9.9.20240101/atomic-primops-0.8.4-4134d138778778a42a2da4976bc340844b2df4d5ee2bc70e095715fd5dcd5958/lib/libHSatomic-primops-0.8.4-4134d138778778a42a2da4976bc340844b2df4d5ee2bc70e095715fd5dcd5958.a(Atomics.o):function atomiczmprimopszm0zi8zi4zm4134d138778778a42a2da4976bc340844b2df4d5ee2bc70e095715fd5dcd5958_DataziAtomics_writeBarrier_info: error: undefined reference to ‘write_barrier’
collect2: error: ld returned 1 exit status
ghc: gcc' failed in phase
Linker’. (Exit code: 1)
Error: cabal: Failed to build exe:phyg from PhyG-0.1.4.
Thanks