Package Details: arm-linux-gnueabihf-gcc 13.2.0-10

Git Clone URL: https://aur.archlinux.org/arm-linux-gnueabihf-gcc.git (read-only, click to copy)
Package Base: arm-linux-gnueabihf-gcc
Description: The GNU Compiler Collection
Upstream URL: https://gcc.gnu.org
Licenses: GPL, custom, LGPL, FDL
Conflicts: arm-linux-gnueabihf-gcc-stage1, arm-linux-gnueabihf-gcc-stage2
Provides: arm-linux-gnueabihf-gcc-stage1, arm-linux-gnueabihf-gcc-stage2
Replaces: arm-linux-gnueabihf-gcc-stage1, arm-linux-gnueabihf-gcc-stage2
Submitter: tavianator
Maintainer: wgottwalt
Last Packager: wgottwalt
Votes: 78
Popularity: 0.147916
First Submitted: 2015-09-14 15:41 (UTC)
Last Updated: 2024-02-11 05:09 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 Next › Last »

alzeha commented on 2020-06-23 15:03 (UTC) (edited on 2020-06-27 09:55 (UTC) by alzeha)

Hi,

does anyone else have something like this:

arm-linux-gnueabihf-gcc -O2 -Wall -Wextra -std=c99 -Iinc -I. -L. tst/test_loragw_spi.c -o test_loragw_spi -lloragw -lrt -lm
/usr/bin/arm-linux-gnueabihf-ld: warning: libpthread.so.0, needed by /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so, not found (try using -rpath or -rpath-link)
/usr/bin/arm-linux-gnueabihf-ld: /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so: undefined reference to `pthread_detach@GLIBC_2.4'
/usr/bin/arm-linux-gnueabihf-ld: /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so: undefined reference to `__pthread_barrier_wait@GLIBC_PRIVATE'
/usr/bin/arm-linux-gnueabihf-ld: /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so: undefined reference to `__pthread_barrier_init@GLIBC_PRIVATE'
/usr/bin/arm-linux-gnueabihf-ld: /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so: undefined reference to `pthread_create@GLIBC_2.4'
/usr/bin/arm-linux-gnueabihf-ld: /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so: undefined reference to `__pthread_unwind@GLIBC_PRIVATE'
/usr/bin/arm-linux-gnueabihf-ld: /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so: undefined reference to `pthread_attr_setstacksize@GLIBC_2.4'
/usr/bin/arm-linux-gnueabihf-ld: /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so: undefined reference to `pthread_cancel@GLIBC_2.4'
/usr/bin/arm-linux-gnueabihf-ld: /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so: undefined reference to `pthread_sigmask@GLIBC_2.4'
/usr/bin/arm-linux-gnueabihf-ld: /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so: undefined reference to `pthread_once@GLIBC_2.4'
/usr/bin/arm-linux-gnueabihf-ld: /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so: undefined reference to `__shm_directory@GLIBC_PRIVATE'
/usr/bin/arm-linux-gnueabihf-ld: /usr/lib/gcc/arm-linux-gnueabihf/10.1.0/../../../../arm-linux-gnueabihf/lib/librt.so: undefined reference to `__pthread_get_minstack@GLIBC_PRIVATE'

I do not see, what is happening here. I followed the order, given at the pinned comment.

EDIT:

[alzeha@flaptop ~]$ /usr/bin/arm-linux-gnueabihf-ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012
SEARCH_DIR("/usr/lib/binutils/arm-linux-gnueabihf")
SEARCH_DIR("=/usr/arm-linux-gnueabihf/lib")

This does not seem right, or? There is additional =?

tavianator commented on 2020-06-10 20:50 (UTC)

@volker.raschek: So yay just seems totally unable to resolve the dependency chain. That's too bad, I know it used to work. Try installing everything in the order from the pinned comment.

volker.raschek commented on 2020-06-10 20:44 (UTC)

@tavianator: I've set LC_ALL and tried to install the arm-linux-gnueabihf-gcc-stage2 package manually with yay. I attached links to screenshots of the yay parms and the error below

https://ibb.co/phRmbbf https://ibb.co/2sDWDHj

tavianator commented on 2020-06-10 20:33 (UTC)

@volker.raschek: Possibly a bug in yay? If you try installing arm-linux-gnueabihf-gcc-stage2 manually does it work?

@streblo: More important than the compiler version is the version of the system libraries. I'm not sure what the relevant versions are for Debian, but you'd probably have more luck asking a Debian community.

volker.raschek commented on 2020-05-30 21:10 (UTC) (edited on 2020-05-30 21:11 (UTC) by volker.raschek)

Failed to build the package with yay. Missing dependency arm-linux-gnueabihf-gcc-stage2.

(2/2) Keep the last cache and the currently installed.
==> no candidate packages found for pruning
==> Erstelle Paket: arm-linux-gnueabihf-glibc 2.31-3.1 (Sa 30 Mai 2020 23:07:56 CEST)
==> Prüfe Laufzeit-Abhängigkeiten...
==> Prüfe Buildtime-Abhängigkeiten...
==> Fehlende Abhängigkeiten:
  -> arm-linux-gnueabihf-gcc-stage2
==> FEHLER: Konnte nicht alle Abhängigkeiten auflösen.
Error making: arm-linux-gnueabihf-glibc

Can anybody fix the error?

streblo commented on 2020-05-28 21:25 (UTC)

If I want a 8.3 toolchain for Debian buster is there an easy way to chase down which version of this package I need? Or can the host compiler be ahead of the target you are compiling for?

tavianator commented on 2020-05-15 19:46 (UTC)

@felipebalbi: I just updated everything. I credited you for the binutils patch since I took your solution to the conflicting files.

felipebalbi commented on 2020-05-13 05:49 (UTC)

@tavianator the reason I went with 10.1 is twofold:

  1. AARCH64 is already in 10.1 (see https://www.archlinux.org/packages/community/x86_64/aarch64-linux-gnu-gcc/)

  2. If I was already updating, might as well update to the latest :-p

Anyway here are all commits which I've pushed to github mirrors of your AUR repositories:

  1. https://github.com/felipebalbi/arm-linux-gnueabihf-binutils/commit/a9155a826e5516629e95037cb43b384c7a30bfdb
  2. https://github.com/felipebalbi/arm-linux-gnueabihf-gcc-stage1/commit/ed06b071689303dcc310fefb5a4d23826c789970
  3. https://github.com/felipebalbi/arm-linux-gnueabihf-linux-api-headers/commit/0e0d710aeefdff4bc3f3ff82dae4d34142c4ce4b
  4. https://github.com/felipebalbi/arm-linux-gnueabihf-glibc-headers/commit/e828eb4bacbc428b820a27b20fb445a160dcd018
  5. https://github.com/felipebalbi/arm-linux-gnueabihf-gcc-stage2/commit/a505dd9d25f119548501b76105fa614ea47e7e41
  6. https://github.com/felipebalbi/arm-linux-gnueabihf-glibc/commit/2e67b8513ee0f4463f76a11b8b90c51228893f38
  7. https://github.com/felipebalbi/arm-linux-gnueabihf-gcc/commit/2bbb16d1545b54e845652c400ef3ea67878b869b

cheers

tavianator commented on 2020-05-13 01:55 (UTC)

@felipebalbi Sure, post the patches somewhere and I'll at least take a look.

Generally I try to follow the non-cross versions of these packages, which means taking changes from https://github.com/archlinuxarm/PKGBUILDs/blob/master/core/gcc and friends. Since Arch isn't at 10.1 yet, neither is this package.