Package Details: arm-linux-gnueabi-gcc 10.2.0-1

Git Clone URL: https://aur.archlinux.org/arm-linux-gnueabi-gcc.git (read-only, click to copy)
Package Base: arm-linux-gnueabi-gcc
Description: The GNU Compiler Collection - cross compiler for ARM GNU EABI little-endian target
Upstream URL: http://gcc.gnu.org/
Licenses: GPL, LGPL, FDL
Submitter: Megver83
Maintainer: Megver83
Last Packager: Megver83
Votes: 4
Popularity: 0.000011
First Submitted: 2018-05-05 22:58
Last Updated: 2021-03-13 23:56

Pinned Comments

Megver83 commented on 2019-06-14 19:52

Notes about this package:
  • For building it, you first need arm-linux-gnueabi-binutils
  • This cross compiler is built without libc, meaning that if you need it with glibc/newlib, you'll have to modify it accordingly (see this template for instance). However, it can work as your first compiler for building libc
  • If you need help for anything that's not related about the package or its building process (e.g. technical issues related to GCC), please visit their forums and mailing lists. You'll probably find no help here in the comments.

Latest Comments

tchelovek commented on 2021-10-03 22:39

While running makepkg some errors turned up

libcpp/expr.c:804:38: error: format not a string literal and no format arguments [-Werror=format-security] 804 | cpp_pedwarning_with_line (pfile, CPP_W_LONG_LONG, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 805 | virtual_location, 0, message);

To overcome remove -Werror=format-security from /etc/makepkg.conf, see

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100207

202110040038

tchelovek commented on 2021-10-03 22:14

The Source http://isl.gforge.inria.fr/isl-0.22.tar.bz2 seems to be broken for good, alternatively use http://mirror.sobukus.de/files/src/isl/isl-0.22.tar.bz2

20211004 t.

LyuFifi commented on 2021-06-11 03:30

Build error:

gcc-10.2.0/libcpp/expr.c:801:35: error: format not a string literal and no format arguments [-Werror=format-security]

Solution:

step1. Temporarily remove the line from /etc/makepkg.conf,

"-Wformat -Werror=format-security \"

step2. rebuild package and successful.

frojnd commented on 2021-05-27 09:54

Hi Megver83, thank you for this package. I first installed arm-linux-gnueabi-binutils, pacman -Q arm-linux-gnueabi-binutils 2.36.1-1

But when trying to install arm-linux-gnueabi-gcc I get compilation error:

/home/frojnd/.cache/yay/arm-linux-gnueabi-gcc/src/gcc-10.2.0/libcpp/expr.c: In function ‘unsigned int cpp_classify_number(cpp_reader*, const cpp_token*, const char**, location_t)’: /home/frojnd/.cache/yay/arm-linux-gnueabi-gcc/src/gcc-10.2.0/libcpp/expr.c:801:35: error: format not a string literal and no format arguments [-Werror=format-security] 801 | cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 802 | 0, message); | ~~~~~~~~~~~ /home/frojnd/.cache/yay/arm-linux-gnueabi-gcc/src/gcc-10.2.0/libcpp/expr.c:804:38: error: format not a string literal and no format arguments [-Werror=format-security] 804 | cpp_pedwarning_with_line (pfile, CPP_W_LONG_LONG, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 805 | virtual_location, 0, message); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: some warnings being treated as errors make[1]: *** [Makefile:224: expr.o] Error 1

Megver83 commented on 2019-06-14 19:52

Notes about this package:
  • For building it, you first need arm-linux-gnueabi-binutils
  • This cross compiler is built without libc, meaning that if you need it with glibc/newlib, you'll have to modify it accordingly (see this template for instance). However, it can work as your first compiler for building libc
  • If you need help for anything that's not related about the package or its building process (e.g. technical issues related to GCC), please visit their forums and mailing lists. You'll probably find no help here in the comments.

xantares commented on 2019-03-20 10:34

I cannot seem to build a simple example:

$ echo "int main(){return 0;}" > main.c

$ arm-linux-gnueabi-gcc main.c

/usr/lib/gcc/arm-linux-gnueabi/8.2.0/../../../../arm-linux-gnueabi/bin/ld: cannot find crt1.o: No such file or directory ...

/usr/lib/gcc/arm-linux-gnueabi/8.2.0/../../../../arm-linux-gnueabi/bin/ld: cannot find -lgcc

...

collect2: error: ld returned 1 exit status

The command '/bin/sh -c arm-linux-gnueabi-gcc main.c' returned a non-zero code: 1

gmelchett commented on 2019-03-03 07:35

Compiling fails:

g++ -c -march=x86-64 -mtune=generic -O2 -fno-plt -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -DGENERATOR_FILE -fno-PIE -I. -Ibuild -I/home/jonas/Downloads/arch/arm-linux-gnueabi-gcc/src/gcc-8.2.0/gcc -I/home/jonas/Downloads/arch/arm-linux-gnueabi-gcc/src/gcc-8.2.0/gcc/build -I/home/jonas/Downloads/arch/arm-linux-gnueabi-gcc/src/gcc-8.2.0/gcc/../include -I/home/jonas/Downloads/arch/arm-linux-gnueabi-gcc/src/gcc-8.2.0/gcc/../libcpp/include -D_FORTIFY_SOURCE=2 \ -o build/genmodes.o /home/jonas/Downloads/arch/arm-linux-gnueabi-gcc/src/gcc-8.2.0/gcc/genmodes.c /usr/arm-linux-gnueabi/bin/as: unrecognized option '--64' make[1]: *** [Makefile:2670: build/genmodes.o] Error 1 -- It looks like it tries to use the cross-compile for the host.

billypilgrim commented on 2019-02-25 16:40

Hi. I'm trying to use this package to do some cross compiling, but I keep getting errors that seem to show that the headers for the stdlib aren't being included, so e.g. #include <vector> doesn't work. Any ideas?