Hi,
I'm not sure if something have changed regarding the conflicts
declarations with the packaging of gcc-15. I now have these gcc-15
packages installed, with no complaints about conflicts:
$ dpkg -l '*gcc-15*' |grep ^i
ii gcc-15 15.3.0-2 amd64 GNU C
compiler
ii gcc-15-base:amd64 15.3.0-2 amd64 GCC, the
GNU Compiler Collection (base package)
ii gcc-15-cross-base 15.3.0-2cross1 all GCC, the
GNU Compiler Collection (library base package)
ii gcc-15-multilib 15.3.0-2 amd64 GNU C
compiler (multilib support)
ii gcc-15-s390x-linux-gnu 15.3.0-2cross1 amd64 GNU C
compiler for the s390x-linux-gnu architecture
ii gcc-15-s390x-linux-gnu-base:amd64 15.3.0-2cross1 amd64 GCC, the
GNU Compiler Collection (base package)
ii gcc-15-x86-64-linux-gnu 15.3.0-2 amd64 GNU C
compiler for the x86_64-linux-gnu architecture
ii lib32gcc-15-dev 15.3.0-2 amd64 GCC support
library (32 bit development files)
ii libgcc-15-dev:amd64 15.3.0-2 amd64 GCC support
library (development files)
ii libgcc-15-dev-s390x-cross 15.3.0-2cross1 all GCC support
library (development files)
ii libx32gcc-15-dev 15.3.0-2 amd64 GCC support
library (x32 development files)
I looks like there are still conflict declarations regarding the
gcc-multilib dependency package, which I avoided by instead installing
the intermediate dependency package gcc-15-multilib.
The curious thing is that it now seems to work fine to compile and run a
program like
#include <stdio.h>
#include <stdlib.h>
int
main (void)
{
printf("hello!\n");
#if 0
return 0;
#else
exit (0);
#endif
}
with gcc -m32 hello.c. But if I let the main function return (change
"#if 0" above to "#if 1"), I get
$ gcc -Wall -g -m32 hello.c
$ ./a.out
hello!
Segmentation fault
I would hope this selection of packages is expected to work (since there
are no declared conflicts), and there's some bug (e.g., might be related
to linking the correct startup code) that needs fixing?
Finally, I can check that the cross-compile setup appear to also be in
working shape,
$ s390x-linux-gnu-gcc-15 hello.c
$ QEMU_LD_PREFIX=/usr/s390x-linux-gnu qemu-s390x ./a.out
hello!
Regards,
/Niels
--
Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677.
Internet email is subject to wholesale government surveillance.