| Summary: | php coredumps upgrading nextcloud 28.0.1 to 28.0.2 because math/gmp needs to have CPU_OPTS off | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | dgilbert |
| Component: | Individual Port(s) | Assignee: | Alex Dupre <ale> |
| Status: | Closed Not A Bug | ||
| Severity: | Affects Many People | CC: | ale, diizzy |
| Priority: | --- | Flags: | linimon:
maintainer-feedback?
(ale) |
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
dgilbert
2024-02-06 22:51:08 UTC
Here's an interesting addendum from another user that had this problem... https://help.nextcloud.com/t/failed-to-install-update-apps/162650/4 ... saying that something in the chain was failing for optimization flags. > Illegal instruction
What hardware do you have (CPU)?
Is it VM (what virtualization) or baremetal?
Build all ports self? cat /etc/make.conf
math/gmp with CPU_OPTS on? pkg info math/gmp
(In reply to Vladimir Druzenko from comment #2) Compiled on Threadripper 1900; running on Xeon E5-2670 in a jail. math/gmp has: # This file is auto-generated by 'make config'. # Options for gmp-6.2.1 _OPTIONS_READ=gmp-6.2.1 _FILE_COMPLETE_OPTIONS_LIST=CPU_OPTS OPTIONS_FILE_SET+=CPU_OPTS [2:169:471]root@vr:/usr/local/etc/poudriere.d> cat make.conf DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 [2:14:314]root@ibex:~> pkg info math/gmp gmp-6.2.1 Name : gmp Version : 6.2.1 Installed on : Wed Apr 20 16:43:32 2022 EDT Origin : math/gmp Architecture : FreeBSD:13:amd64 Prefix : /usr/local Categories : math devel Licenses : LGPL3 Maintainer : ale@FreeBSD.org WWW : https://gmplib.org/ Comment : Free library for arbitrary precision arithmetic Options : CPU_OPTS : on Shared Libs provided: libgmpxx.so.4 libgmp.so.10 Annotations : FreeBSD_version: 1300139 cpe : cpe:2.3:a:gmplib:gmp:6.2.1:::::freebsd13:x64 Flat size : 2.59MiB Description : [description deleted] so... indeed math/gmp needs to have CPU_OPTS off. ^Triage: update Summary and assign to math/gmp maintainer. This is not a bug, it's because the feature (instruction) set is mismatched between the hardware and is determined during compile time. There's no runtime detection for gmp so it just tries to match the build box. Defining "CPUTYPE?=x86-64-v2" in make.conf should fix the issue without disabling CPU_OPTS given the target hardware. I cannot agree more with @diizzy. If you are enabling an OFF-by-default option that introduces CPU-specific optimizations and then you run the binary on another CPU you are just asking for troubles, there is no technical fix to apply. |