makepkg.conf CFLAGS default misconfiguration for my hardware

This forum is for discussion about general software issues.

makepkg.conf CFLAGS default misconfiguration for my hardware

Postby mzan » Sat Mar 30, 2024 4:46 pm

Hello.

This is my first post, so please be patient.
I've been using archlinuxarm on an old Cubietruck SoC for a week now (congrats: nice distribution for this hardware nowadays!)
I am having a problem in the pacman package, specifically in the file /etc/makepkg.conf in the CFLAGS configuration: it contains the flag
-mno-omit-leaf-frame-pointer
which is not supported by gcc on my armv7l platform.

My fix: to be able to compile yay with "makepkg -si" I had to remove this flag from /etc/makepkg.conf.
I do not know if this problem only affects my CPU or if it is a general problem that also affects for example ARMv8 and AArch64. Depending on the answer, please consider whether to fix the file /etc/makepkg.conf or to insert this fix recommendation on the page dedicated to Cubietruck [url]https://archlinuxarm.org/platforms/armv7/allwinner/cubietruck[/url].

Thank you.
mzan
 
Posts: 1
Joined: Sat Mar 30, 2024 4:11 pm

Re: makepkg.conf CFLAGS default misconfiguration for my hard

Postby fireandfuel » Tue May 07, 2024 7:09 am

I simply removed it from the CFLAGS in /etc/makepkg.conf:

[code]CFLAGS="-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"[/code]

This is a bug in pacman 6.1.0-3 that affects [b]all[/b] armv7l platforms.

The line that introduced this bug ismake_clickable_callback(MAGIC_URL_FULL, '
', 'https://github.com/archlinuxarm/PKGBUILDs/commit/8a41d6b3c57eb64f24505df39b4ce15561658cc8#diff-2798108bdda7d5f3acadf5431ea114a1986927ff0ced20fdf83b389283d8a712R48', '', ' class="postlink"')

I'd guess that this was only meant to be included in aarch64 builds.
fireandfuel
 
Posts: 4
Joined: Tue Apr 26, 2016 2:09 pm


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest