Package Details: gcc-go-11 11.1.0-2

Git Clone URL: https://aur.archlinux.org/gcc-11.git (read-only, click to copy)
Package Base: gcc-11
Description: Go front-end for GCC
Upstream URL: https://gcc.gnu.org
Licenses: GPL, custom, LGPL, FDL
Conflicts: gcc-go, go
Provides: gcc-go=11.1.0-2, gcc-go-multilib=11.1.0-2, go=1.12.2
Submitter: ptr1337
Maintainer: ptr1337
Last Packager: ptr1337
Votes: 6
Popularity: 4.82
First Submitted: 2021-04-27 15:08
Last Updated: 2021-05-06 16:44

Required by (1000)

Sources (30)

Pinned Comments

ptr1337 commented on 2021-05-07 10:53

Be sure to install/reinstall following packages before compiling:

sudo pacman -S glibc lib32-glibc binutils linux-api-headers

Then change your /etc/makepkg.conf to following:

-- Compiler and Linker Flags
CPPFLAGS=""

CFLAGS="-march=native -O2 -pipe -fno-plt -fexceptions \ -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS \ -fstack-clash-protection -fcf-protection"

-Wformat -Werror=format-security

CXXFLAGS="$CFLAGS" LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"

RUSTFLAGS="-C opt-level=2"
-- Make Flags: change this for DistCC/SMP systems

MAKEFLAGS="-j13"

Edit @ MAKEFLAGS="-j13" to your threads.

I have also added now a variable for patches, that the compile is compiling successfully. Be sure after installing the GCC11 Package to recompile binutils glibc and libtool

With following: yay -G binutils yay -G glibc yay -G libtool

then:

cd binutils makepkg -si cd .. cd glibc makepkg -si cd .. cd libtool nano PKGBUILD # change your GCC Version to 11.1.0 here. makepkg -si

Then youre done with the build! I also recommend you to recompile clang/llvm and mesa on AMD Systems.

You can also use my compiled packages if you want, i compiled them with Generic:

https://ptr1337.dev/?dir=Archlinux%20Packages/gcc11.1-with-patches-generic

ptr1337 commented on 2021-04-27 18:32

My compile is successfully done. Only gcc-ada don't wanted to compile, need to fix it these days. If you want you can use my gcc build. If you use them, please compile after linux-api-headers-git --> binutils --> glibc

https://repo.ptr1337.dev/?dir=Archlinux%20Packages/gcc11.1

ptr1337 commented on 2021-04-27 15:12

Building GCC 11

If you want to build gcc11 before it will be released from archlinux themself, you can try to build with my aur packages.

Be sure to run the following toolchain buildorder!!!:

toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc

Also i have got problems with the new makepkg.conf, just revert it to your old makepkg.conf then every build should work.

Good luck.

Latest Comments

ptr1337 commented on 2021-05-07 10:53

Be sure to install/reinstall following packages before compiling:

sudo pacman -S glibc lib32-glibc binutils linux-api-headers

Then change your /etc/makepkg.conf to following:

-- Compiler and Linker Flags
CPPFLAGS=""

CFLAGS="-march=native -O2 -pipe -fno-plt -fexceptions \ -Wp,-D_FORTIFY_SOURCE=2,-D_GLIBCXX_ASSERTIONS \ -fstack-clash-protection -fcf-protection"

-Wformat -Werror=format-security

CXXFLAGS="$CFLAGS" LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"

RUSTFLAGS="-C opt-level=2"
-- Make Flags: change this for DistCC/SMP systems

MAKEFLAGS="-j13"

Edit @ MAKEFLAGS="-j13" to your threads.

I have also added now a variable for patches, that the compile is compiling successfully. Be sure after installing the GCC11 Package to recompile binutils glibc and libtool

With following: yay -G binutils yay -G glibc yay -G libtool

then:

cd binutils makepkg -si cd .. cd glibc makepkg -si cd .. cd libtool nano PKGBUILD # change your GCC Version to 11.1.0 here. makepkg -si

Then youre done with the build! I also recommend you to recompile clang/llvm and mesa on AMD Systems.

You can also use my compiled packages if you want, i compiled them with Generic:

https://ptr1337.dev/?dir=Archlinux%20Packages/gcc11.1-with-patches-generic

ptr1337 commented on 2021-05-06 16:26

@metak

PKGBUILD is updated. You can now build it without problems. ISL 0.24 also working.

Also inclueded patches, you can disable them at the top of the PKGBUILD jsut remove the _use_patches=y to _use_patches=

I will later write in the reddit post more.

regards.

ptr1337 commented on 2021-05-06 15:50

Thanks for info, ill update them.

Ive also tested some patches and the compiles with it went much better than without them. I will add them, add a variable in the PKGBUILD if aomeone wnats to use them.

regards.

metak commented on 2021-05-06 15:45

@ptr1337 Hi, as I mentioned in this reddit thread you forgot to revert isl tarball checksum along with version. (0.24->0.23)

ptr1337 commented on 2021-04-27 18:32

My compile is successfully done. Only gcc-ada don't wanted to compile, need to fix it these days. If you want you can use my gcc build. If you use them, please compile after linux-api-headers-git --> binutils --> glibc

https://repo.ptr1337.dev/?dir=Archlinux%20Packages/gcc11.1

ptr1337 commented on 2021-04-27 15:12

Building GCC 11

If you want to build gcc11 before it will be released from archlinux themself, you can try to build with my aur packages.

Be sure to run the following toolchain buildorder!!!:

toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc

Also i have got problems with the new makepkg.conf, just revert it to your old makepkg.conf then every build should work.

Good luck.