Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#71328 - [calc] 2.13.0.1-1 crashes immediately on first computation

Attached to Project: Community Packages
Opened by Naomi (naoph) - Tuesday, 22 June 2021, 02:16 GMT
Last edited by Antonio Rojas (arojas) - Tuesday, 22 June 2021, 06:33 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

To reproduce:

$ calc '2+2'
[1] 14031 illegal hardware instruction (core dumped) calc '2+2'
$ calc
C-style arbitrary precision calculator (version 2.13.0.1)
Calc is open software. For license details type: help copyright
[Type "exit" to exit, or "help" for help.]

; 2+2
[1] 14044 illegal hardware instruction (core dumped) calc

--

Issue occurs on:
- Arch package 2.13.0.1-1

Issue does not occur on:
- Arch package 2.12.7.1-2
- git master (compiled with default options using only `make` without arguments)
- git tag v2.13.0.1 (compiled the same way).

My kernel is 5.12.12-arch1-1, my hardware is a Thinkpad T430
This task depends upon

Closed by  Antonio Rojas (arojas)
Tuesday, 22 June 2021, 06:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  calc 2.13.0.1-2
Comment by Naomi (naoph) - Tuesday, 22 June 2021, 03:46 GMT
Update: Compiling 2.13.0.1-1 myself using the Arch repos' pkgbuild works fine, yet reinstalling the same version from the pacman cache causes the issue to happen again
Comment by loqs (loqs) - Tuesday, 22 June 2021, 05:07 GMT
The Makefile contains:
ARCH_CFLAGS= -march=native
It does not use CFLAGS and LDFLAGS environment variables so what instructions are used depends on the build host.

PKGBUILD.diff
Setting ARCH_CFLAGS to empty, EXTRA_CFLAGS to $CPPFLAGS $CFLAGS, EXTRA_LDFLAGS to $LDFLAGS LD_SHARE to empty DEBUG to empty
Use sed to add LDFLAGS to library linker rules.

Loading...