Please help me build libunwind-1.7.2 for RPi 2 armv7h

Problems with packages? Post here, using [tags] of the package name.

Please help me build libunwind-1.7.2 for RPi 2 armv7h

Postby t_h_x_1138 » Mon Mar 10, 2025 9:37 pm

Hi,

could someone help me build an older version of a package: libunwind-1.7.2 ?

It seems that libunwind-1.8.1 breaks startx / xinit on a few boards that run armv7h, including my fresh armv7h install for Raspberry Pi 2. I would like to downgrade to libunwind-1.7.2 but didn't find it anywhere and my install or /var/cache/pacman/pkg is too new.
My post and another older post from 1 year ago describe a similar error.
https://archlinuxarm.org/forum/viewtopic.php?t=17219
and
https://archlinuxarm.org/forum/viewtopic.php?t=16823

I fetched the PKGBUILD for libunwind from
https://gitlab.archlinux.org/archlinux/packaging/packages/libunwind/

I adapted it this way:
--------------------------------------------------------------------------------
pkgname=libunwind
pkgver=1.7.2
pkgrel=1
pkgdesc="Determine and manipulate the call-chain of a program"
url="https://www.nongnu.org/libunwind/"
arch=('armv7h')
license=(MIT)
depends=(
glibc
xz
zlib
)
makedepends=(texlive-binextra)
provides=(
libunwind-{coredump,ptrace,setjmp,arm}.so
libunwind.so
)
source=(
https://github.com/libunwind/libunwind/releases/download/v$pkgver/libunwind-$p kgver.tar.gz{,.asc}
)
b2sums=('519570a02d06ce4a174ca226941e493499054112de1c92938434e9fb56fabc8446f699a 886ea8beee672ac5e28acd03d16169257a43e2ee1bab084fb331ef4cf'
'SKIP')
--------------------------------------------------------------------------------

Skipped the pgpcheck because I couldn't figure it out:

libunwind-main]$ makepkg -sri --skippgpcheck
==> Making package: libunwind 1.7.2-1 (Mon Mar 10 05:51:02 2025)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found libunwind-1.7.2.tar.gz
-> Found libunwind-1.7.2.tar.gz.asc
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with b2sums...
libunwind-1.7.2.tar.gz ... Passed
libunwind-1.7.2.tar.gz.asc ... Skipped
==> Extracting sources...
-> Extracting libunwind-1.7.2.tar.gz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking target system type... armv7l-unknown-linux-gnueabihf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/jnftr/abs/libunwind-main/src/libunwind-1.7.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
==> ERROR: A failure occurred in build().
Aborting...

--------------------------------------------------------------------------------

an extract from config.log:

uname -m = armv7l
uname -r = 6.12.17-2-rpi
uname -s = Linux
uname -v = #1 SMP Thu Mar 10 12:51:23 MST 2025

gcc (GCC) 14.2.1 20250207
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3959: $? = 0
configure:3948: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/14.2.1/lto-wrapper
Target: armv7l-unknown-linux-gnueabihf
Configured with: /build/gcc/src/gcc/configure --enable-languages=c,c++,d,fortran,go,lto,m2,objc,obj-c++,rust --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-linker-build-id --enable-lto --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-multilib --disable-werror --host=armv7l-unknown-linux-gnueabihf --build=armv7l-unknown-linux-gnueabihf --with-arch=armv7-a --with-float=hard --with-fpu=neon
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.1 20250207 (GCC)
configure:3959: $? = 0
configure:3948: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3959: $? = 1
configure:3948: gcc -qversion >&5
gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:3959: $? = 1
configure:3979: checking whether the C compiler works
configure:4001: gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs conftest.c >&5
gcc: error: unrecognized command-line option '-mno-omit-leaf-frame-pointer'; did you mean '-fno-omit-frame-pointer'?
configure:4005: $? = 1
configure:4043: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libunwind"
| #define PACKAGE_TARNAME "libunwind"
| #define PACKAGE_VERSION "1.7.2"
| #define PACKAGE_STRING "libunwind 1.7.2"
| #define PACKAGE_BUGREPORT "libunwind-devel@nongnu.org"
| #define PACKAGE_URL ""
| #define PACKAGE "libunwind"
| #define VERSION "1.7.2"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4048: error: in `/home/jnftr/abs/libunwind-main/src/libunwind-1.7.2':
configure:4050: error: C compiler cannot create executables


## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "libunwind"
#define PACKAGE_TARNAME "libunwind"
#define PACKAGE_VERSION "1.7.2"
#define PACKAGE_STRING "libunwind 1.7.2"
#define PACKAGE_BUGREPORT "libunwind-devel@nongnu.org"
#define PACKAGE_URL ""
#define PACKAGE "libunwind"
#define VERSION "1.7.2"

configure: exit 77


I skipped some of the config.log
t_h_x_1138
 
Posts: 2
Joined: Mon Mar 10, 2025 8:13 pm

Return to Packages

Who is online

Users browsing this forum: No registered users and 7 guests