On Mon, Jun 08, 2020 at 12:52:36PM +0200, Matthias Klose wrote: > GCC and glibc need to agree on the install location for math-vector-fortran.h. > Currently it is installed into > > /usr/include/finclude/math-vector-fortran.h > > However the file is architecture specific, currently only having variants for > x86_64-*-gnu, x86_64-*-gnux32, and a generic variant. This creates problems > when the file is contained in a Debian package which is marked as Multi-Arch: > same, also it should create problems installing the i386 and amd64 rpm's on > the > the same system. How to solve this issue? > > - The header file currently seems to be completely conditionalized. > Is it safe to assume that the x86 variant is still considered empty > for any other architecture? Will it stay this way? In this case > this variant could be installed everywhere, or better, glibc could > stop maintaining the variant at all. > > - Move the file to an architecture specific location. For multiarch that > could be > > /usr/include/<multiarch>/finclude/math-vector-fortran.h > > GCC would need patching to look at this location as an alternative. > Are other tools need patching as well? What would be the > solution for co-installable i386/amd64 packages?
The file should be where gfortran looks for it. For multi-arch, it is up to you, that is a Debian/Ubuntu specific thing and if you get upstreamed something into both glibc and gcc, fine. But you could also just look for where gfortran is looking for it ATM and pick up a more suitable location for glibc. For non-multiarch, I believe it works fine as is. Jakub