Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1189001 > unrolled thread

Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely

Started byMatthias Klose <doko@debian.org>
First post2024-03-04 09:00 +0100
Last post2024-03-05 07:50 +0100
Articles 7 — 3 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely Matthias Klose <doko@debian.org> - 2024-03-04 09:00 +0100
    Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely Bastian Blank <waldi@debian.org> - 2024-03-04 11:40 +0100
      Bug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely Matthias Klose <matthias.klose@canonical.com> - 2024-03-04 12:10 +0100
        Bug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely Bastian Blank <waldi@debian.org> - 2024-03-04 12:40 +0100
    Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely Matthias Klose <doko@debian.org> - 2024-03-04 12:30 +0100
    Bug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely Bastian Blank <waldi@debian.org> - 2024-03-04 23:10 +0100
      Bug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely Bastian Blank <waldi@debian.org> - 2024-03-05 07:50 +0100

#1189001 — Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely

FromMatthias Klose <doko@debian.org>
Date2024-03-04 09:00 +0100
SubjectBug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely
Message-ID<IeboS-ejA0-5@gated-at.bofh.it>
Package: linux-libc-dev
Version: 6.7.7-1
Severity: serious
Tags: sid trixie

linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it 
doesn't do that completely

Provides: linux-libc-dev-amd64-cross (= 6.7.7-1), ...

However the links in /usr/DEB_HOST_GNU_TYPE/include are missing.

Please stop providing the cross-packages, you don't even need a breaks, 
because the current cross packages continue to work.

Once that is done, I'll reduce the cross packages to some symlinks.

[toc] | [next] | [standalone]


#1189018

FromBastian Blank <waldi@debian.org>
Date2024-03-04 11:40 +0100
Message-ID<IedTH-el9P-5@gated-at.bofh.it>
In reply to#1189001
On Mon, Mar 04, 2024 at 08:53:11AM +0100, Matthias Klose wrote:
> However the links in /usr/DEB_HOST_GNU_TYPE/include are missing.

Please be a bit more precise, there are no symlinks in this directory.

| # dpkg -S /usr/alpha-linux-gnu/include/asm/a.out.h 
| linux-libc-dev-alpha-cross: /usr/alpha-linux-gnu/include/asm/a.out.h
| # find /usr/alpha-linux-gnu/include/ -type l
| #

Bastian

-- 
Those who hate and fight must stop themselves -- otherwise it is not stopped.
		-- Spock, "Day of the Dove", stardate unknown

[toc] | [prev] | [next] | [standalone]


#1189026 — Bug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely

FromMatthias Klose <matthias.klose@canonical.com>
Date2024-03-04 12:10 +0100
SubjectBug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely
Message-ID<IeemK-elAI-23@gated-at.bofh.it>
In reply to#1189018
On 04.03.24 11:29, Bastian Blank wrote:
> On Mon, Mar 04, 2024 at 08:53:11AM +0100, Matthias Klose wrote:
>> However the links in /usr/DEB_HOST_GNU_TYPE/include are missing.
> 
> Please be a bit more precise, there are no symlinks in this directory.
> 
> | # dpkg -S /usr/alpha-linux-gnu/include/asm/a.out.h
> | linux-libc-dev-alpha-cross: /usr/alpha-linux-gnu/include/asm/a.out.h
> | # find /usr/alpha-linux-gnu/include/ -type l
> | #

yes, that is the problem. the cross gcc expects these headers in 
/usr/alpha-linux-gnu/include, not in the header location for the host.

[toc] | [prev] | [next] | [standalone]


#1189029 — Bug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely

FromBastian Blank <waldi@debian.org>
Date2024-03-04 12:40 +0100
SubjectBug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely
Message-ID<IeePL-elKF-13@gated-at.bofh.it>
In reply to#1189026
On Mon, Mar 04, 2024 at 12:07:15PM +0100, Matthias Klose wrote:
> On 04.03.24 11:29, Bastian Blank wrote:
> > On Mon, Mar 04, 2024 at 08:53:11AM +0100, Matthias Klose wrote:
> > > However the links in /usr/DEB_HOST_GNU_TYPE/include are missing.
> > 
> > Please be a bit more precise, there are no symlinks in this directory.
> > | # dpkg -S /usr/alpha-linux-gnu/include/asm/a.out.h
> > | linux-libc-dev-alpha-cross: /usr/alpha-linux-gnu/include/asm/a.out.h
> > | # find /usr/alpha-linux-gnu/include/ -type l
> > | #
> yes, that is the problem. the cross gcc expects these headers in
> /usr/alpha-linux-gnu/include, not in the header location for the host.

Please show your problem with a log, my crystal ball is broken.

arm-linux-gnueabihf-cpp-13 tells me:

| #include <...> search starts here:
|  /usr/lib/gcc-cross/arm-linux-gnueabihf/13/include
|  /usr/lib/gcc-cross/arm-linux-gnueabihf/13/../../../../arm-linux-gnueabihf/include
|  /usr/include/arm-linux-gnueabihf
|  /usr/include
| End of search list.

So clearly /usr/include/arm-linux-gnueabihf is used.

Regards,
Bastian

-- 
It would be illogical to assume that all conditions remain stable.
		-- Spock, "The Enterprise Incident", stardate 5027.3

[toc] | [prev] | [next] | [standalone]


#1189028

FromMatthias Klose <doko@debian.org>
Date2024-03-04 12:30 +0100
Message-ID<IeeG5-elH9-9@gated-at.bofh.it>
In reply to#1189001
Control: unmerge 1059786 -1
Control: reassign -1 linux-libc-dev
Control: found -1 6.7.7-1
Control: severity -1 serious

On 04.03.24 11:22, Bastian Blank wrote:
> Control: reassign -1 cross-toolchain-base
> Control: forcemerge 1059786 -1
> 
> On Mon, Mar 04, 2024 at 08:53:11AM +0100, Matthias Klose wrote:
>> linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't
>> do that completely
> 
> This is #1059786.  This lacks a response from you.  So I'm merging
> those.

No it is not. Re-assigning and resetting the severity.

Without the headers available at the /usr/<triplet>/include location, I 
consider this a hijack of the linux-libc-dev-cross-* packages.

I'll reply to the c-t-b issue separately.

Matthias

[toc] | [prev] | [next] | [standalone]


#1189096 — Bug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely

FromBastian Blank <waldi@debian.org>
Date2024-03-04 23:10 +0100
SubjectBug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely
Message-ID<IeoFr-erMG-17@gated-at.bofh.it>
In reply to#1189001
On Mon, Mar 04, 2024 at 01:49:24PM +0100, Helmut Grohne wrote:
> The packaged gcc cross toolchain uses a sysroot during its own build
> still. As it is implemented now, it searches /usr/<triplet>/include, but
> not /usr/include/<multiarch>. So quite fundamentally, the Provides that
> we two agreed do break the build of cross toolchains right now.

Okay, so this problem is about the build of the toolchain, _not_ for
everything that comes after.

> Arguably, a cross toolchain build should probably search
> /usr/include/<multiarch>. I went back and forth a bit with Matthias
> about whether we could add this and did not fully understand his
> reasons, but there is one technical reason we want to avoid it for now.
> We can have both libc6-dev:TARGET and libc6-dev-TARGET-cross installed
> and these packages can have differing versions. When that happens and we
> search both /usr/<triplet>/include and /usr/include/<multiarch>, we'd
> mix two glibc versions with usually bad results (been there).

But this is a search path.  If a file exists in one, the second one is
not found.  So nothing can happen even from version skew.

> The other aspect here is that it is not sufficient to add
> /usr/include/<multiarch> to the search path as you also need
> /usr/include to get a complete linux kernel headers experience. We
> definitely do not want to add /usr/include, because that is known to
> misguide configure tests performed for the target architecture.

We are talking about the toolchain itself.  What configure tests could
that be?  Or is that premature optimization of the gcc build?

> So at least for now, I am convinced that we will need
> /usr/<triplet>/include to be provided by the package providing
> linux-libc-dev-arch-cross.

You just said that the search path used during the build of the
toolchain and the one for everything else are unrelated.  So you are
free to create $BUILD/tmp-include with symlinks for asm, asm-generic,
linux.

The toolchain as installed already finds all headers.  So I still don't
see why we need this in the final system.

> That still leaves the question of which package would have to build that
> new linux-libc-dev-cross. The two obvious answers are linux and
> cross-toolchain-base. Do you have a preference here?

No, the gcc build itself, because it is the only part that needs it from
what you said here.

> I hope this all makes more sense now.

At least to show where it breaks.

Bastian

-- 
Each kiss is as the first.
		-- Miramanee, Kirk's wife, "The Paradise Syndrome",
		   stardate 4842.6

[toc] | [prev] | [next] | [standalone]


#1189128 — Bug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely

FromBastian Blank <waldi@debian.org>
Date2024-03-05 07:50 +0100
SubjectBug#1065416: [Cross-toolchain-base-devs] Bug#1065416: linux-libc-dev claims to provide linux-libc-dev-ARCH-cross, but it doesn't do that completely
Message-ID<IewMF-ewFm-1@gated-at.bofh.it>
In reply to#1189096
On Mon, Mar 04, 2024 at 11:04:23PM +0100, Bastian Blank wrote:
> At least to show where it breaks.

And I actually tried it and can not show the expected breakage from
missing /usr/include in the search path.  gcc-13-cross builds fine with
only linux-libc-dev/6.7.7-1.

| -rw-r--r-- 1 bastian bastian 38157 Mar  5 06:40 ../gcc-13-cross_14_amd64.changes

Bastian

-- 
You're too beautiful to ignore.  Too much woman.
		-- Kirk to Yeoman Rand, "The Enemy Within", stardate unknown

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web