On 2020/10/29 20:25, Aisha Tammy wrote: > I'm trying to port OpenBLAS to the tree and am currently getting > some weird assembler errors (port makefile is attached at end math/openblas)
not that weird, the source code has inline asm, it is passed to /usr/bin/as which is pretty old and pre-dates support for this being added > Presumably this is happening due to the assembler being used is > the one from base as we don't build the ports egcc with gas for > anything except aarch64 and arm. > I'm kind of stumped here as it seems like using gfortran sets the > compiler to egcc (compiling the above file with cc works). > Is it possible to mix gfortran with base-clang C compiler? > Another (possible) solution would be to build egcc all archs with > the new gas assembler, but that sounds a lot more dangerous and I > don't know enough to know if that is possible/or even a good idea/ > or if it will even work :-/ I think ports/lang/gcc should start using the newer version of gas from ports on i386 and amd64. On these archs it doesn't affect many ports (fortran things, asterisk, seabios [vmm-firmware], maybe one or two others). For other archs there is higher risk as large parts of the ports tree use ports-gcc on most of these. But there's probably less need for the newer assembler on those too.