Package: gcc-riscv64-unknown-elf
Version: 12.2.0-14+11+b1
Severity: important

Dear Maintainer,

When building for softfloat targets, riscv64-unknown-elf-gcc can pick
the wrong multilib crtbegin.o and libgcc.a, etc.

Compare:
  $ riscv64-unknown-elf-gcc -march=rv64imac -mabi=lp64 --print-file-name 
crtbegin.o
  /usr/lib/gcc/riscv64-unknown-elf/12.2.0/rv64imac/lp64/crtbegin.o

with
  $ riscv64-unknown-elf-gcc -march=rv64imac_zicsr_zfencei -mabi=lp64 
--print-file-name crtbegin.o
  /usr/lib/gcc/riscv64-unknown-elf/12.2.0/crtbegin.o

The second and first should be the same, as the base architecture is
the same.

Symptom is:
   
/usr/lib/gcc/riscv64-unknown-elf/12.2.0/../../../riscv64-unknown-elf/bin/ld: 
/usr/lib/gcc/riscv64-unknown-elf/12.2.0/crtbegin.o: can't link double-float 
modules with soft-float modules

This appears to have been fixed before version 14 upstream.

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf, i386

Kernel: Linux 6.5.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gcc-riscv64-unknown-elf depends on:
ii  binutils-riscv64-unknown-elf  2.41-4+6
ii  libc6                         2.37-11
ii  libgcc-s1                     13.2.0-4
ii  libgmp10                      2:6.3.0+dfsg-2
ii  libisl23                      0.26-3
ii  libmpc3                       1.3.1-1
ii  libmpfr6                      4.2.1-1
ii  libstdc++6                    13.2.0-4
ii  zlib1g                        1:1.2.13.dfsg-3

gcc-riscv64-unknown-elf recommends no packages.

gcc-riscv64-unknown-elf suggests no packages.

-- no debconf information

Reply via email to