Package Details: gdb-multiarch 14.1-1

Git Clone URL: (read-only, click to copy)
Package Base: gdb-multiarch
Description: The GNU Debugger for all gdb supported architectures (i386/arm/mips...)
Upstream URL:
Licenses: GPL3
Submitter: aviel
Maintainer: aviel
Last Packager: aviel
Votes: 25
Popularity: 0.60
First Submitted: 2017-11-08 12:09 (UTC)
Last Updated: 2024-01-25 14:28 (UTC)

Latest Comments

1 2 3 4 Next › Last »

flydanofly commented on 2024-02-22 06:38 (UTC) (edited on 2024-02-22 06:41 (UTC) by flydanofly)

Hello! The build fails for me as well, adding !lto fixed it.

Here's the first few build errors

  CC       m32r/nrun.o
  CCLD     m32r/run
../../sim/m32r/traps.c:115:43: error: type of 'm32r2f_h_psw_get' does not match original declaration [-Werror=lto-type-mismatch]
  115 |           m32r2f_h_bpsw_set (current_cpu, m32r2f_h_psw_get (current_cpu));
      |                                           ^
../../sim/m32r/cpu2.c:130:1: note: return value type mismatch
  130 | m32r2f_h_psw_get (SIM_CPU *current_cpu)
      | ^
../../sim/m32r/cpu2.c:130:1: note: type 'UQI' should match type 'int'
../../sim/m32r/cpu2.c:130:1: note: 'm32r2f_h_psw_get' was previously declared here
../../sim/m32r/traps.c:110:43: error: type of 'm32rxf_h_psw_get' does not match original declaration [-Werror=lto-type-mismatch]
  110 |           m32rxf_h_bpsw_set (current_cpu, m32rxf_h_psw_get (current_cpu));
      |                                           ^
../../sim/m32r/cpux.c:130:1: note: return value type mismatch
  130 | m32rxf_h_psw_get (SIM_CPU *current_cpu)
      | ^
../../sim/m32r/cpux.c:130:1: note: type 'UQI' should match type 'int'
../../sim/m32r/cpux.c:130:1: note: 'm32rxf_h_psw_get' was previously declared here

Build ended with

lto1: all warnings being treated as errors
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:3755: m32r/run] Error 1
make[4]: Leaving directory '--redacted home dir--/.cache/yay/gdb-multiarch/src/gdb-14.1/build/sim'
make[3]: *** [Makefile:4208: all-recursive] Error 1
make[3]: Leaving directory '--redacted home dir--/.cache/yay/gdb-multiarch/src/gdb-14.1/build/sim'
make[2]: *** [Makefile:3021: all] Error 2
make[2]: Leaving directory '--redacted home dir--/.cache/yay/gdb-multiarch/src/gdb-14.1/build/sim'
make[1]: *** [Makefile:9436: all-sim] Error 2
make[1]: Leaving directory '--redacted home dir--/.cache/yay/gdb-multiarch/src/gdb-14.1/build'
make: *** [Makefile:1021: all] Error 2
==> ERROR: A failure occurred in build().
 -> error making: gdb-multiarch-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
gdb-multiarch - exit status 4

This fixed it...

  • Found the cache directory at ~/.cache/yay/gdb-multiarch
  • Edited the PKGBUILD file
    • Changed options=(!emptydirs) to options=(!emptydirs !lto)
  • Ran these commands:
    • updpkgsums (I'm not sure if that is necessary)
    • makepkg -si PKGBUILD
  • After a long long time it worked!

Version details



Latest git commit

commit 48cbc609287808cca9e263766e66c0928568126a (HEAD -> master, origin/master, origin/HEAD)
Author: **REDACTED**
Date:   Thu Jan 25 16:28:29 2024 +0200

    upgpkg: gdb-multiarch 14.1-1

EJam commented on 2024-02-20 06:51 (UTC)

Hi! Build fails for me too, fixed with options=(!lto). I did not build in chroot.

VorpalWay commented on 2024-01-26 10:53 (UTC)

@aviel Sorry, didn't notice your reply (didn't have notifications turned on for this package).

As far as I know I don't do anything super-unusual. In makepkg.conf I have the following changes:

CFLAGS="-march=x86-64-v3 -mtune=generic [the rest are standard]"
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)

I build AUR packages in a chroot with aurutils, so perhaps that I'm using a chrooted build makes a difference?

Kevinjil commented on 2023-08-28 17:38 (UTC) (edited on 2023-08-28 17:39 (UTC) by Kevinjil)

Can confirm build fails in chroot without options=(!lto)

aviel commented on 2023-07-31 13:54 (UTC) (edited on 2023-07-31 13:55 (UTC) by aviel)

Hi @VorpalWay! I have never had any issues with the lto option, and it seems like you were the only one who ever posted about that. Do you do anything differently?

VorpalWay commented on 2023-07-31 11:53 (UTC)

Hi! options=(!lto) still seems to be needed, and hasn't been added. I pointed this out almost a year ago in the comments below. I assume you missed it?

abend commented on 2023-07-22 22:09 (UTC)

PKGBUILD version from PabloTomsEscobar worked perfectly fine but unlike version 13.1, the new version required texinfo installed:

Should it be added as dependency?

PabloTomsEscobar commented on 2023-07-22 20:15 (UTC)

I edited the PKGBUILD with the newer version:

# Maintainer: Aviel Warschawski <>

pkgdesc='The GNU Debugger for all gdb supported architectures (i386/arm/mips...)'
arch=(i686 x86_64)
depends=(xz ncurses expat python guile gdb-common=$pkgver)
validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker <>

prepare() {
  cd gdb-$pkgver
  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure

build() {
  cd gdb-$pkgver

  mkdir -p build && cd build
  ../configure \
    --enable-targets=all \
    --prefix=/build \
    --enable-languages=all \
    --enable-multilib \
    --enable-interwork \
    --with-system-readline \
    --disable-nls \
    --with-python=/usr/bin/python \


package() {
  cd gdb-$pkgver/build

  make DESTDIR="$pkgdir" install

  # Following files conflict with 'gdb' package
  mkdir -p "$pkgdir"/usr/bin
  mv "$pkgdir"/build/bin/gdb "$pkgdir"/usr/bin/gdb-multiarch
  rm -r "$pkgdir"/build

jcelerier commented on 2022-12-28 17:41 (UTC)

Build currently fails:

  CC     machs.o
In function ‘bfin_otp_transfer’,
    inlined from ‘bfin_otp_read_page’ at /home/jcelerier/.cache/yay/gdb-multiarch/src/gdb-12.1/build/sim/../../sim/bfin/dv-bfin_otp.c:77:3,
    inlined from ‘bfin_otp_io_write_buffer’ at /home/jcelerier/.cache/yay/gdb-multiarch/src/gdb-12.1/build/sim/../../sim/bfin/dv-bfin_otp.c:145:4:
/home/jcelerier/.cache/yay/gdb-multiarch/src/gdb-12.1/build/sim/../../sim/bfin/dv-bfin_otp.c:71:17: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
   71 |       dst[bidx] = src[bidx];
      |       ~~~~~~~~~~^~~~~~~~~~~