https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125129
Gaius Mulley <gaius at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gaius at gcc dot gnu.org
--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> ---
Created attachment 64538
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64538&action=edit
Work in progress proposed patch v3
Here is a proposed work in progress patch.
It still needs a small amount of work to build the documentation from the built
library files. It also needs to fix the link error below. Though I'm not sure
if it is related to this PR? Posted here for comments/evaluation.
In summary the patch checks the target support within gcc and only generates
library procedure functions which are supported by gcc.
A new build tool mktargetsrc.py replaces makeSystem, if python3 is available.
mktargetsrc builds a target supported Builtins.{def,mod} and the ISO
[Long|Short]ComplexMath.{def,mod} sources.
If python3 is not available then it defaults conservatively.
The result is that any application using ctan and friends will fail at compile
time on freebsd rather than at link time. I've bootstrapped the patch under
freebsd. make check-m2 fails with:
relocation R_X86_64_32 against symbol `__gxx_personality_v0@@CXXABI_1.3' can
not be used when making a PDE object; recompile with -fPIE
in the testsuite/gm2/gm2.log
make install works and hello world builds after install.