Bug 254234 - multimedia/arcan: fix build on aarch64
Summary: multimedia/arcan: fix build on aarch64
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL: http://ampere2.nyi.freebsd.org/data/m...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-12 08:12 UTC by Mikael Urankar
Modified: 2021-03-12 10:38 UTC (History)
0 users

See Also:
jbeich: maintainer-feedback+
jbeich: merge-quarterly+


Attachments
v0 (1.05 KB, patch)
2021-03-12 08:12 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Urankar freebsd_committer freebsd_triage 2021-03-12 08:12:10 UTC
Created attachment 223201 [details]
v0

Remove march=native compiler flag as it breaks building on aarch64:

error:
pkg-static: Unable to access file /wrkdirs/usr/ports/multimedia/arcan/work/stage/usr/local/bin/afsrv_encode:No such file or directory

due to (make configure): (encode) disabled, lzma not found

In CMakeError.log: 
Determining if the function lzma_auto_decoder exists in the /usr/lib/liblzma.so failed with the following output:
c++: error: the clang compiler does not support '-march=native'
Comment 1 Jan Beich freebsd_committer freebsd_triage 2021-03-12 10:35:27 UTC
Comment on attachment 223201 [details]
v0

Thanks for tracking down the cause. However, dropping -march=native breaks SSE 4.2 detection on amd64 and i386.

--- CMakeCache.txt	before
+++ CMakeCache.txt	after
@@ -1093,11 +1093,9 @@ SQLite3_INCLUDE_DIR-ADVANCED:INTERNAL=1
 //ADVANCED property for variable: SQLite3_LIBRARY
 SQLite3_LIBRARY-ADVANCED:INTERNAL=1
 //Test SSE_42_DETECTED
-SSE_42_DETECTED:INTERNAL=1
+SSE_42_DETECTED:INTERNAL=
 //Result of TRY_COMPILE
-SSE_42_DETECTED_COMPILED:INTERNAL=TRUE
-//Result of TRY_RUN
-SSE_42_DETECTED_EXITCODE:INTERNAL=0
+SSE_42_DETECTED_COMPILED:INTERNAL=FALSE
 Tesseract_CFLAGS:INTERNAL=-I/usr/local/include;-I/usr/local/include/leptonica
 Tesseract_CFLAGS_I:INTERNAL=
 Tesseract_CFLAGS_OTHER:INTERNAL=
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-03-12 10:36:01 UTC
A commit references this bug:

Author: jbeich
Date: Fri Mar 12 10:35:31 UTC 2021
New revision: 568164
URL: https://svnweb.freebsd.org/changeset/ports/568164

Log:
  multimedia/arcan: unbreak on aarch64

  (encode) disabled, lzma not found
  [...]
  Determining if the function lzma_auto_decoder exists in the /usr/lib/liblzma.so failed with the following output:
  c++: error: the clang compiler does not support '-march=native'
  [...]
  ===> Checking for items in pkg-plist which are not in STAGEDIR
  Error: Missing: bin/afsrv_encode

  PR:		254234
  Reported by:	mikael

Changes:
  head/multimedia/arcan/Makefile
  head/multimedia/arcan/distinfo
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-03-12 10:38:02 UTC
A commit references this bug:

Author: jbeich
Date: Fri Mar 12 10:37:43 UTC 2021
New revision: 568165
URL: https://svnweb.freebsd.org/changeset/ports/568165

Log:
  MFH: r568164

  multimedia/arcan: unbreak on aarch64

  (encode) disabled, lzma not found
  [...]
  Determining if the function lzma_auto_decoder exists in the /usr/lib/liblzma.so failed with the following output:
  c++: error: the clang compiler does not support '-march=native'
  [...]
  ===> Checking for items in pkg-plist which are not in STAGEDIR
  Error: Missing: bin/afsrv_encode

  PR:		254234
  Reported by:	mikael

Changes:
_U  branches/2021Q1/
  branches/2021Q1/multimedia/arcan/Makefile
  branches/2021Q1/multimedia/arcan/distinfo