<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.freebsd.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.freebsd.org/bugzilla/"
          
          maintainer="bugmeister@FreeBSD.org"
>

    <bug>
          <bug_id>299091</bug_id>
          
          <creation_ts>2026-10-03 12:17:30 +0000</creation_ts>
          <short_desc>misc/astc-encoder: fails to build on non-x86</short_desc>
          <delta_ts>2026-10-16 02:41:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Ports &amp; Packages</product>
          <component>Individual Port(s)</component>
          <version>Latest</version>
          <rep_platform>Any</rep_platform>
          <op_sys>Any</op_sys>
          <bug_status>Closed</bug_status>
          <resolution>Overcome By Events</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>Affects Only Me</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Clausecker">fuz</reporter>
          <assigned_to name="Yuri Victorovich">yuri</assigned_to>
          
          

      

      

      <flag name="maintainer-feedback"
          id="102528"
          type_id="3"
          status="?"
          setter="bugzilla"
          requestee="yuri"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1447689</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Clausecker">fuz</who>
    <bug_when>2026-10-03 12:17:30 +0000</bug_when>
    <thetext>The port is set up to always be built with SSE2, which is only available on x86 targets.  i386 targets should also not use SSE as it&apos;s not guaranteed to be supported.  Here is a build error on aarch64, with similar errors on powerpc64le and armv7:

FAILED: [code=1] Source/CMakeFiles/astcenc-sse2.dir/astcenccli_platform_dependents.cpp.o
/usr/bin/c++ -DASTCENC_AVX=0 -DASTCENC_F16C=0 -DASTCENC_NEON=0 -DASTCENC_POPCNT=0 -DASTCENC_SSE=20 -DASTCENC_SVE=0 -
DASTCENC_X86_GATHERS=0 -I/home/ports/main.ports/misc/astc-encoder/work/.build/Source -I/home/ports/main.ports/misc/a
stc-encoder/work/astc-encoder-5.7.0/Source -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack
-protector-strong -fno-strict-aliasing    -DNDEBUG -std=c++14 -flto -Wall -Wextra -Wpedantic -Werror -Wshadow -Wdoub
le-promotion -Wdocumentation -Wno-unknown-warning-option -Wno-c++98-compat-pedantic -Wno-c++98-c++11-compat-pedantic
 -Wno-float-equal -Wno-deprecated-declarations -Wno-atomic-implicit-seq-cst -Wno-overriding-option -Wno-cast-align -
Wno-sign-conversion -Wno-implicit-int-conversion -Wno-shift-sign-overflow -Wno-format-nonliteral -Wno-reserved-ident
ifier -Wno-cast-function-type -fno-unsafe-math-optimizations -ffp-contract=off -fno-math-errno -msse2 -mno-sse4.1 -W
no-unused-command-line-argument -MD -MT Source/CMakeFiles/astcenc-sse2.dir/astcenccli_platform_dependents.cpp.o -MF 
Source/CMakeFiles/astcenc-sse2.dir/astcenccli_platform_dependents.cpp.o.d -o Source/CMakeFiles/astcenc-sse2.dir/astc
enccli_platform_dependents.cpp.o -c /home/ports/main.ports/misc/astc-encoder/work/astc-encoder-5.7.0/Source/astcencc
li_platform_dependents.cpp
c++: error: unsupported option &apos;-msse2&apos; for target &apos;aarch64-unknown-freebsd16.0&apos;
c++: error: unsupported option &apos;-mno-sse4.1&apos; for target &apos;aarch64-unknown-freebsd16.0&apos;


Please fix the port.  I recommend wiring SSE support into port options that are only available on x86.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1449694</commentid>
    <comment_count>1</comment_count>
    <who name="Yuri Victorovich">yuri</who>
    <bug_when>2026-10-16 02:41:07 +0000</bug_when>
    <thetext>This has been fixed several days ago by someone else.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>