Package Details: arm-linux-gnueabihf-gcc-stage1 12.1.0-1

Git Clone URL: https://aur.archlinux.org/arm-linux-gnueabihf-gcc-stage1.git (read-only, click to copy)
Package Base: arm-linux-gnueabihf-gcc-stage1
Description: The GNU Compiler Collection. Stage 1 for toolchain building (arm-linux-gnueabihf)
Upstream URL: https://gcc.gnu.org
Licenses: GPL, custom, LGPL, FDL
Submitter: tavianator
Maintainer: razykov
Last Packager: razykov
Votes: 37
Popularity: 0.000000
First Submitted: 2015-09-14 15:30 (UTC)
Last Updated: 2022-06-09 22:15 (UTC)

Latest Comments

1 2 Next › Last »

onurbbr commented on 2021-10-13 08:07 (UTC) (edited on 2021-10-13 08:07 (UTC) by onurbbr)

@xiretza Makefiles still contain the -Wformat and -Werror=format-security command. That's why you're getting an error. I gave a temporary fix below.

Those who get a compilation error should add the following before the "make all-gcc all-target-libgcc" command in the build part of the PKGBUILD file

sed -i 's/Wformat/Wno-format/g' $(grep -lr "Wformat" | grep Makefile)

sed -i 's/Werror=format-security/Wno-format-security/g' $(grep -lr "Werror=format-security" | grep Makefile)

This is the instant solution. There is no problem in compiling at the moment. If I find another solution I will share it.

xiretza commented on 2021-09-18 11:38 (UTC) (edited on 2021-09-18 11:42 (UTC) by xiretza)

Would probably be best to just apply this patch from core/gcc: https://github.com/archlinux/svntogit-packages/blob/c0c9a945c11d1868af6d4dbcef985319ee153ea3/trunk/gcc11-Wno-format-security.patch

Edit: nevermind, that's already being applied. I'll have to investigate why my build is still failing.

starquake commented on 2021-06-07 08:41 (UTC) (edited on 2021-06-07 08:44 (UTC) by starquake)

If you want to build this but want to keep the default makepkg CFLAGS and CXXFLAGS add this to the top of the prepare part in PKGBUILD:

CFLAGS="${CFLAGS/ -Werror=format-security/}"

CXXFLAGS="${CXXFLAGS/ -Werror=format-security/}"

Maybe the mainter can add this?

starquake commented on 2021-06-07 05:04 (UTC)

The default makepkg.conf now includes "-Werror=format-security". Can the package be made to work with that default?

fabian-ang commented on 2021-05-06 16:45 (UTC)

To anyone having issues building this, ensure that your makepkg.conf doesn't include "-Werror=format-security" in cflags. This caused my build to fail

su.sung commented on 2016-08-05 18:57 (UTC)

@tavianator: arm-linux-gnueabihf-gcc-stage1 6.1.1-3 on x86_64 makepkg build failure with: /usr/bin/arm-linux-gnueabihf-as: unrecognized option '--64'

teozkr commented on 2016-05-18 22:18 (UTC)

@tavianator: Great, thanks! The CXXFLAGS thing was just a workaround in the meantime.