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


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
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][/url].

Thank you.
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 \

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, '
', '', '', ' class="postlink"')

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

Return to General

Who is online

Users browsing this forum: No registered users and 9 guests