Package Details: arm-linux-gnueabihf-gcc-stage1 11.2.0-2

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: 38
Popularity: 0.000288
First Submitted: 2015-09-14 15:30
Last Updated: 2021-10-09 08:31

Pinned Comments

fabian-ang commented on 2021-05-06 16:45

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

Latest Comments

1 2 Next › Last »

moonaru commented on 2021-10-13 08:07

@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

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

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

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

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

@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

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

tavianator commented on 2016-05-16 22:36

@teozkr: I have updated this package to GCC 6.1.1-1, which seems to fix everything without having to change CXXFLAGS. Hopefully it works for you!

teozkr commented on 2016-05-15 21:07

This doesn't build anymore with GCC 6.
Changing line 59 from:

CXXFLAGS=${CXXFLAGS/-pipe/}

to

CXXFLAGS="${CXXFLAGS/-pipe/} --std=gnu++03"

seems to fix it.

tavianator commented on 2016-03-24 20:52

@blippy: This repo may help you with that: https://github.com/tavianator/arch-rpi-cross

install.sh will build everything in the right order.