Bug#1081201: libc6-dev:amd64 : Breaks: libc6-dev-amd64-cross (< 2.40~) but 2.39-4cross1 is to be installed

2024-10-09 Thread Johannes Schauer Marin Rodrigues
Quoting James Addison (2024-10-09 11:32:14)
> On Wed, 9 Oct 2024 at 07:46, Johannes Schauer Marin Rodrigues
>  wrote:
> > I think you just missed a dinstall. I forked your repo and successfully ran 
> > all
> > the jobs from your pipeline:
> >
> > https://salsa.debian.org/josch/quadrilateralcowboy/-/pipelines/744459
> 
> Brilliant!  Thank you.  I'll be more patient next time :)

Well, the fundamental issue (see #1065416) was open since March, so I think
anybody can be forgiven for not having the patience. :)

signature.asc
Description: signature


Bug#1081201: libc6-dev:amd64 : Breaks: libc6-dev-amd64-cross (< 2.40~) but 2.39-4cross1 is to be installed

2024-10-09 Thread James Addison
On Wed, 9 Oct 2024 at 07:46, Johannes Schauer Marin Rodrigues
 wrote:
> I think you just missed a dinstall. I forked your repo and successfully ran 
> all
> the jobs from your pipeline:
>
> https://salsa.debian.org/josch/quadrilateralcowboy/-/pipelines/744459

Brilliant!  Thank you.  I'll be more patient next time :)



Bug#1081201: libc6-dev:amd64 : Breaks: libc6-dev-amd64-cross (< 2.40~) but 2.39-4cross1 is to be installed

2024-10-09 Thread Johannes Schauer Marin Rodrigues
Hi James,

I think you just missed a dinstall. I forked your repo and successfully ran all
the jobs from your pipeline:

https://salsa.debian.org/josch/quadrilateralcowboy/-/pipelines/744459

Thanks!

cheers, josch

Quoting James Addison (2024-10-08 18:33:13)
> Package: libc6-dev-amd64-cross
> Followup-For: Bug #1081201
> X-Debbugs-Cc: jo...@debian.org, d...@debian.org
> 
> Hi Josch, Matthias,
> 
> I noticed that cross-toolchain-base (72) has landed in unstable today, and I
> was quietly hoping that that would resolve what I believe is the same build
> problem during Salsa-CI for an ITP package I'm working on.
> 
> In particular[1]:
> 
> > /usr/lib/ccache/aarch64-linux-gnu-gcc   -g -O2 
> > -Werror=implicit-function-declaration 
> > -ffile-prefix-map=/builds/jayaddison/quadrilateralcowboy/debian/output/source_dir=.
> >  -fstack-protector-strong -fstack-clash-protection -Wformat 
> > -Werror=format-security -mbranch-protection=standard -Wdate-time 
> > -D_FORTIFY_SOURCE=2  -o CMakeFiles/cmTC_2ae10.dir/testCCompiler.c.o -c 
> > /builds/jayaddison/quadrilateralcowboy/debian/output/source_dir/obj-aarch64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-tJY3pO/testCCompiler.c
> > ccache: error: execute_noreturn of /usr/bin/aarch64-linux-gnu-gcc 
> > failed: Exec format error
> 
> If the answer to this is simply a case of waiting for upload of other 
> toolchain
> dependencies, then my apologies for this added distraction.  On balance I feel
> it's probably better for me to mention (and to provide another sample case)
> than to say nothing and assume it'll go away.
> 
> FWIW: my limited understanding of crossbuilding is that it should be possible
> to build a compiler that runs natively on a host architecture (amd64 for this
> runner) yet targets a different architecture (arm64 for this build) -- and so
> the "exec format" error is surprising to me (I recognize it instead from
> situations where a native binary from a _different_ architecture attempts to
> run on a machine; sometimes mitigatable by using qemu-static / binfmt tricks,
> but at the kind of performance cost we shouldn't accept during builds).
> 
> Regards,
> James
> 
> [1] - 
> https://salsa.debian.org/jayaddison/quadrilateralcowboy/-/jobs/6397131#L2458

signature.asc
Description: signature


Bug#1081201: libc6-dev:amd64 : Breaks: libc6-dev-amd64-cross (< 2.40~) but 2.39-4cross1 is to be installed

2024-10-08 Thread James Addison
Package: libc6-dev-amd64-cross
Followup-For: Bug #1081201
X-Debbugs-Cc: jo...@debian.org, d...@debian.org

Hi Josch, Matthias,

I noticed that cross-toolchain-base (72) has landed in unstable today, and I
was quietly hoping that that would resolve what I believe is the same build
problem during Salsa-CI for an ITP package I'm working on.

In particular[1]:

> /usr/lib/ccache/aarch64-linux-gnu-gcc   -g -O2 
> -Werror=implicit-function-declaration 
> -ffile-prefix-map=/builds/jayaddison/quadrilateralcowboy/debian/output/source_dir=.
>  -fstack-protector-strong -fstack-clash-protection -Wformat 
> -Werror=format-security -mbranch-protection=standard -Wdate-time 
> -D_FORTIFY_SOURCE=2  -o CMakeFiles/cmTC_2ae10.dir/testCCompiler.c.o -c 
> /builds/jayaddison/quadrilateralcowboy/debian/output/source_dir/obj-aarch64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-tJY3pO/testCCompiler.c
> ccache: error: execute_noreturn of /usr/bin/aarch64-linux-gnu-gcc failed: 
> Exec format error

If the answer to this is simply a case of waiting for upload of other toolchain
dependencies, then my apologies for this added distraction.  On balance I feel
it's probably better for me to mention (and to provide another sample case)
than to say nothing and assume it'll go away.

FWIW: my limited understanding of crossbuilding is that it should be possible
to build a compiler that runs natively on a host architecture (amd64 for this
runner) yet targets a different architecture (arm64 for this build) -- and so
the "exec format" error is surprising to me (I recognize it instead from
situations where a native binary from a _different_ architecture attempts to
run on a machine; sometimes mitigatable by using qemu-static / binfmt tricks,
but at the kind of performance cost we shouldn't accept during builds).

Regards,
James

[1] - 
https://salsa.debian.org/jayaddison/quadrilateralcowboy/-/jobs/6397131#L2458



Bug#1081201: libc6-dev:amd64 : Breaks: libc6-dev-amd64-cross (< 2.40~) but 2.39-4cross1 is to be installed

2024-09-09 Thread Johannes Schauer Marin Rodrigues
Package: libc6-dev-amd64-cross
Version: 2.39-4cross1
Severity: serious
X-Debbugs-Cc: debian-cr...@lists.debian.org

Hi,

while trying to cross-build the next upload of my source package pico-sdk for
amd64 on my arm64 box in a clean unstable chroot with sbuild, I ran into the
following problem:

Install main build dependencies (apt-based resolver)


Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
Execute external solver...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6-dev:amd64 : Breaks: libc6-dev-amd64-cross (< 2.40~) but 2.39-4cross1 is 
to be installed
E: Broken packages
apt-get failed.
E: Package installation failed


On salsa-ci, the problem is even more weird. The test-crossbuild-arm64 job ends
up installing the native architecture compilers:

The following NEW packages will be installed:
  binutils-aarch64-linux-gnu:arm64 binutils-common:arm64
  cpp-14-aarch64-linux-gnu:arm64 cpp-aarch64-linux-gnu cross-config
  crossbuild-essential-arm64 dpkg-cross file g++-14-aarch64-linux-gnu:arm64
  g++-aarch64-linux-gnu gcc-14-aarch64-linux-gnu:arm64 gcc-14-base:arm64
  gcc-aarch64-linux-gnu libasan8:arm64 libatomic1:arm64 libbinutils:arm64
  libc6:arm64 libc6-dev:arm64 libcc1-0:arm64 libconfig-auto-perl
  libconfig-inifiles-perl libcrypt-dev:arm64 libcrypt1:arm64
  libctf-nobfd0:arm64 libctf0:arm64 libdebian-dpkgcross-perl
  libfile-homedir-perl libfile-which-perl libgcc-14-dev:arm64 libgcc-s1:arm64
  libgmp10:arm64 libgomp1:arm64 libgprofng0:arm64 libhwasan0:arm64 libicu72
  libio-string-perl libisl23:arm64 libitm1:arm64 libjansson4:arm64
  liblocale-gettext-perl liblsan0:arm64 libmagic-mgc libmagic1t64
  libmpc3:arm64 libmpfr6:arm64 libsframe1:arm64 libstdc++-14-dev:arm64
  libstdc++6:arm64 libtsan2:arm64 libubsan1:arm64 libxml-libxml-perl
  libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-perl
  libxml-simple-perl libxml2 libyaml-perl libzstd1:arm64 sensible-utils ucf
  zlib1g:arm64

This means that the build later fails with:

/usr/lib/ccache/aarch64-linux-gnu-g++   -g -O2 
-ffile-prefix-map=/builds/debian/pico-sdk/debian/output/source_dir=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time 
-D_FORTIFY_SOURCE=2  -o CMakeFiles/cmTC_e5da0.dir/testCXXCompiler.cxx.o -c 
/builds/debian/pico-sdk/debian/output/source_dir/pioasm-obj-aarch64-linux-gnu/CMakeFiles/CMakeScratch/TryCompile-fi0q8w/testCXXCompiler.cxx
ccache: error: execute_noreturn of /usr/bin/aarch64-linux-gnu-g++ failed: 
Exec format error

Because obviously, the compiler binary from g++-14-aarch64-linux-gnu:arm64
cannot be executed on amd64.

Full log here: https://salsa.debian.org/debian/pico-sdk/-/jobs/6250227/raw

The problem does not seem to be limited to my package pico-sdk, hence the 
severity.

Thanks!

cheers, josch