Michael Shriver Senior Computer Specialist - College of the Environment

Strange Errors Building Older Software With GCC11

gcc and g++ version 11 sometimes will fail to compile older software as some compiler conventions have changed. To use an older compiler for a package, prepend the following environment variables:

e.g. for gcc 10:

CC=gcc-10 CXX=g++-10 makepkg -si

or

CC=gcc-10 CXX=g++-10 make install

for clang:

CC=clang CXX=clang++ makepkg -si

or

CC=clang CXX=clang++ make install

Update:

For many packages, adding the option -fcommon to the CARGS line will resolve this issue.