Closed mpeschel10 closed 4 months ago
I suppose this is a relict from the cuda version of this package. I am also replacing this with an old GCC version, 11 worked for me last time. If 12 works that would be more optimal, since it's packaged.
The /opt/cuda/bin/gcc
is definitely wrong, since the package does not depend on cuda and it shouldn't for a symlink.
This is not a patch anymore, as the fix is proper. Therefore closing the issue. Note: upstream piggy backs off of NVCC_CCBIN and uses
export GCC_HOST_COMPILER_PATH="${NVCC_CCBIN/++/cc}"
The line
export GCC_HOST_COMPILER_PATH=/opt/cuda/bin/gcc
causes this error:However, I definitely have cc1plus on my system:
I suspect the problem is that
/opt/cuda/bin/gcc
is a symlink:When I replace the line with
export GCC_HOST_COMPILER_PATH=/usr/bin/gcc-12
, I can continue the build.Now,
/opt/cuda/bin/gcc
comes from the upstream PKGBUILD. We know it works for them since they buildtensorflow-cuda
for the repositories. I have no idea what I'm missing. Does this work for anyone else? The arch4edu build swaps it out for gcc-11, so clearly some people have trouble with it. The commit that introduced the change unfortunately does not clarify how it should work.If nobody has a better idea, I will wait until pull #55 is closed before opening a pull request with the resolved symlink.