Opened 17 months ago

Last modified 15 months ago

#63229 new defect

libsndfile @1.0.31_1: error: immintrin.h: No such file or directory

Reported by: kencu (Ken) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: leopard tiger Cc: evanmiller (Evan Miller)
Port: libsndfile

Description

build fails on Mac OS X 10.5 (darwin/9.8.0) arch i386 trying to use SIMD instructions with gcc-4.2:

:info:build In file included from src/common.c:36:
:info:build src/common.h:43:23: error: immintrin.h: No such file or directory

if the older gcc-4.2 is blacklisted (on Intel) then the build succeeds with the next compiler, clang-7.0:

$ port -v installed libsndfile
The following ports are currently installed:
  libsndfile @1.0.28_1 platform='darwin 9' archs='i386' date='2020-12-06T19:43:45-0800'
  libsndfile @1.0.31_1 (active) platform='darwin 9' archs='i386' date='2021-07-07T19:21:46-0700'

I dont know at present if gcc-4.2 builds libsndfile on PowerPC or not. It might.

Attachments (1)

libsndfile-fail-leopard-intel.log (45.3 KB) - added by kencu (Ken) 17 months ago.

Download all attachments as: .zip

Change History (3)

Changed 17 months ago by kencu (Ken)

comment:1 Changed 15 months ago by evanmiller (Evan Miller)

Builds OK here with gcc-4.2 on PPC. It looks like there are/were similar issues with libsdl2_net and friends. Right now the auxiliary SDL2 libraries completely blacklist GCC (see commit 65a407c6d754f20c0972fdd8f43f6af093757771), which isn't too helpful on PPC.

I wonder if this would be a candidate for a CompilerSelection flag to correctly handle the logic across compilers and platforms (blacklist gcc3/4 on Intel/universal, clang < 211, and nothing on PPC). compiler.intrinsics yes or something like that.

comment:2 Changed 15 months ago by evanmiller (Evan Miller)

Cc: evanmiller added
Note: See TracTickets for help on using tickets.