Package Details: gdb-multiarch 15.1-1

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: 32
Popularity: 1.47
First Submitted: 2017-11-08 12:09 (UTC)
Last Updated: 2024-07-14 17:46 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

scyllinice commented on 2024-07-27 04:40 (UTC) (edited on 2024-07-27 04:51 (UTC) by scyllinice)

The .SRCINFO file is still pointing to 14.2 so it also needs an update.

If the PKGBUILD could also be updated to add --disable-sim to the configure parameters, that would also be greatly appreciated.

The following diffs will get a package that will build and install with makepkg --skippgpcheck --install

diff --git a/.SRCINFO b/.SRCINFO
index 79de740..cc4c2d4 100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -26,15 +26,15 @@ pkgbase = gdb-multiarch
        depends = xz
        depends = mpfr
        depends = source-highlight
-       depends = gdb-common=14.2
+       depends = gdb-common=15.1
        depends = readline
        depends = libreadline.so
        depends = guile
        depends = python
        depends = libelf
        options = !emptydirs !lto
-       source = https://ftp.gnu.org/gnu/gdb/gdb-14.2.tar.xz
-       source = https://ftp.gnu.org/gnu/gdb/gdb-14.2.tar.xz.sig
+       source = https://ftp.gnu.org/gnu/gdb/gdb-15.1.tar.xz
+       source = https://ftp.gnu.org/gnu/gdb/gdb-15.1.tar.xz.sig
        validpgpkeys = F40ADB902B24264AA42E50BF92EDB04BFF325CF3
        sha256sums = 38254eacd4572134bca9c5a5aa4d4ca564cbbd30c369d881f733fb6b903354f2
        sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 22367d0..f735769 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -34,6 +34,7 @@ build() {
     --enable-interwork \
     --with-system-readline \
     --disable-nls \
+    --disable-sim \
     --with-python=/usr/bin/python \
     --with-system-gdbinit=/etc/gdb/gdbinit

starch2021 commented on 2024-07-17 19:57 (UTC)

I'm getting an error when upgrading,

$ yay -Syu
[...]
error: failed to prepare transaction (could not satisfy dependencies)
:: installing gdb-common (15.1-1) breaks dependency 'gdb-common=14.2' required by gdb-multiarch
 -> error installing repo packages
$ yay -Sy gdb-multiarch
[...]
=> Missing dependencies:
  -> gdb-common=15.1
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
 -> error making: gdb-multiarch-exit status 8
 -> Failed to install the following packages. Manual intervention is required:
gdb-multiarch - exit status 8

Here it says it wants gdb-common 15.1, above yay reports gdb-common 14.2...some ideas?

simonzack commented on 2024-07-16 04:21 (UTC)

The latest version v15.1 uses the $SHELL environment variable. E.g. in ~/.cache/paru/clone/gdb-multiarch/src/gdb-15.1/sim/cris/local.mk.

Shells incompatible with Bourne Shell will fail to build. So $SHELL should be set to something appropriate. The following works, but maybe sh works too and will be simpler:

$ SHELL=bash pacinst gdb-multiarch --assume-installed gdb-common=14.2

ncicek commented on 2024-05-15 19:25 (UTC) (edited on 2024-05-15 19:27 (UTC) by ncicek)

@ivanzkos Alternately, adding --disable-sim as a configure flag makes the incompatible pointer type warnings go away. I don't know what this flag does, but it seems to be recommended by upstream build docs: https://sourceware.org/gdb/wiki/BuildingNatively

PLuS commented on 2024-05-15 06:03 (UTC)

@ivanzkos I've found this patch fixing the incompatible pointer types: https://sourceware.org/pipermail/gdb-patches/2023-December/205492.html

But ran into another compiler error. Didn't have the time yet to look into it.

ivanzkos commented on 2024-05-14 10:41 (UTC)

LTO is now disabled, but the build for 14.2-2 fails for me with:

../../sim/frv/sem.c:24344:41: error: passing argument 2 of ‘sim_queue_fn_di_write’ from incompatible pointer type [-Wincompatible-pointer-types]
24344 |     sim_queue_fn_di_write (current_cpu, frvbf_h_acc40U_set, FLD (f_ACC40Uk), opval);
      |                                         ^~~~~~~~~~~~~~~~~~
      |                                         |
      |                                         void (*)(SIM_CPU *, UINT,  UDI) {aka void (*)(struct _sim_cpu *, unsigned int,  long unsigned int)}
In file included from ../../sim/common/cgen-cpu.h:25,
                 from ../../sim/common/sim-cpu.h:32,
                 from ../../sim/common/sim-base.h:90,
                 from ../../sim/frv/sim-main.h:41,
                 from ../../sim/frv/sem.c:28:
../../sim/common/cgen-par.h:195:47: note: expected ‘void (*)(SIM_CPU *, UINT,  DI)’ {aka ‘void (*)(struct _sim_cpu *, unsigned int,  long int)’} but argument is of type ‘void (*)(SIM_CPU *, UINT,  UDI)’ {aka ‘void (*)(struct _sim_cpu *, unsigned int,  long unsigned int)’}
  195 | extern void sim_queue_fn_di_write (SIM_CPU *, void (*)(SIM_CPU *, UINT, DI), UINT, DI);
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../sim/frv/sem.c:24355:41: error: passing argument 2 of ‘sim_queue_fn_di_write’ from incompatible pointer type [-Wincompatible-pointer-types]
24355 |     sim_queue_fn_di_write (current_cpu, frvbf_h_acc40U_set, FLD (f_ACC40Uk), opval);
      |                                         ^~~~~~~~~~~~~~~~~~
      |                                         |
      |                                         void (*)(SIM_CPU *, UINT,  UDI) {aka void (*)(struct _sim_cpu *, unsigned int,  long unsigned int)}
...

Any ideas on how to fix it?

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?