Package Details: gdb-multiarch 14.2-2

Git Clone URL: https://aur.archlinux.org/gdb-multiarch.git (read-only, click to copy)
Package Base: gdb-multiarch
Description: The GNU Debugger for all gdb supported architectures (i386/arm/mips...)
Upstream URL: http://www.gnu.org/software/gdb/
Licenses: GPL3
Submitter: aviel
Maintainer: aviel
Last Packager: aviel
Votes: 28
Popularity: 1.96
First Submitted: 2017-11-08 12:09 (UTC)
Last Updated: 2024-03-04 16:56 (UTC)

Latest Comments

1 2 3 4 Next › Last »

simonzack commented on 2024-03-04 15:51 (UTC) (edited on 2024-03-04 15:54 (UTC) by simonzack)

Thanks for the update. The latest update gdb-multiarch 14.2-1, also fails to build using Paru. Setting options=(!emptydirs !lto) fixed it.

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().
    Aborting...
 -> 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

From PKGBUILD

pkgname=gdb-multiarch
pkgver=14.1
pkgrel=1

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:

https://archlinux.org/packages/core/x86_64/texinfo/

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 <mail@aviel.org>

pkgname=gdb-multiarch
pkgver=13.2
pkgrel=1
pkgdesc='The GNU Debugger for all gdb supported architectures (i386/arm/mips...)'
arch=(i686 x86_64)
url='http://www.gnu.org/software/gdb/'
license=(GPL3)
depends=(xz ncurses expat python guile gdb-common=$pkgver)
options=(!emptydirs)
source=(https://ftp.gnu.org/gnu/gdb/gdb-13.2.tar.xz{,.sig})
sha256sums=('fd5bebb7be1833abdb6e023c2f498a354498281df9d05523d8915babeb893f0a'
            'SKIP')
validpgpkeys=('F40ADB902B24264AA42E50BF92EDB04BFF325CF3') # Joel Brobecker <brobecker@adacore.com>

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 \
    --with-system-gdbinit=/etc/gdb/gdbinit

  make
}

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
}