FS#74188 - [gcc] gcc-debug contains bogus /build dir

Attached to Project: Arch Linux
Opened by Toolybird (Toolybird) - Tuesday, 22 March 2022, 06:28 GMT
Last edited by freswa (frederik) - Sunday, 30 April 2023, 00:35 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Giancarlo Razzolini (grazzolini)
freswa (frederik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

gcc-debug seems to contain a stray /build dir (in addition to the expected stuff under /usr).

I haven't fully got my head around debug pkgs yet but surely this cannot be correct?

It means the gcc-debug pkg is not installable in the build chroot immediately after a completed build due to file conflicts (many errors of type "blah exists in filesystem").
This task depends upon

Closed by  freswa (frederik)
Sunday, 30 April 2023, 00:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  If not already fixed with gcc 12.2.1, it will be gone with the upcoming gcc 13.1
Comment by Allan McRae (Allan) - Tuesday, 22 March 2022, 07:24 GMT
Looking at the package, it is the go and d language source files. The distro makepkg needs backports to support languages other than C or C++...
Comment by Toolybird (Toolybird) - Tuesday, 22 March 2022, 07:26 GMT
(edit: Allan beat me to the punch :)

Looking deeper, this is likely a pacman issue, and it might already be fixed by:

https://gitlab.archlinux.org/pacman/pacman/-/commit/ae2f506d

Comment by Allan McRae (Allan) - Tuesday, 22 March 2022, 07:47 GMT
Or we could drop gcc-go and gcc-d... No-one needs these anyway :)
Comment by Toolybird (Toolybird) - Tuesday, 22 March 2022, 07:53 GMT
Funny you should say that.. I've been working on some bootstrapping issues and guess where the pain points are?

In fact, gcc-d is about to become harder to build in gcc-12. Similar to the gcc-ada situation, in gcc-12 gcc-d is required to bootstrap gcc-d.
Comment by John Brooks (Frogging101) - Monday, 05 September 2022, 17:03 GMT
There are actually a lot of packages that drop stuff in /build. Just look at the output of `pacman -Fx '^build/' | sed -r 's/.*is owned by (\S+).*/\1/' | sort | uniq`.

I built extra/dolphin 22.08.0-1 locally and could not install its dolphin-debug package due to:
error: failed to commit transaction (conflicting files)
dolphin-debug: /build/glibc/src/glibc/sysdeps/x86_64/crti.S exists in filesystem (owned by glibc-debug)
dolphin-debug: /build/glibc/src/glibc/sysdeps/x86_64/crtn.S exists in filesystem (owned by glibc-debug)
dolphin-debug: /build/glibc/src/glibc/sysdeps/x86_64/start.S exists in filesystem (owned by glibc-debug)

Somehow the build provided by the repos does not have this problem
Comment by freswa (frederik) - Tuesday, 06 September 2022, 09:56 GMT
I guess this is related to  FS#74941  and it may be fixed with  FS#75092 

Loading...