[MacPorts] #66801: audacity @3.0.2.129: xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
MacPorts
noreply at macports.org
Thu Feb 2 02:49:20 UTC 2023
#66801: audacity @3.0.2.129: xmmintrin.h:14:2: error: "This header is only meant to
be used on x86 and x64 architecture"
-----------------------+----------------------
Reporter: kwolcott | Owner: RJVB
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: arm64
Port: audacity |
-----------------------+----------------------
Comment (by kencu):
This port is currently broken by the base update to 2.8.1, so to get it to
start building, I did this to unset the setting of worksrcdir:
{{{
- worksrcdir audacity-${version}
+
+# setting this breaks the build with the new base 2.8.1 extract changes
+# worksrcdir audacity-${version}
}}}
then you get the SSE errors. The part of the build that is using this is
really ancient, so to prevent the build from using SSE on an ARM system,
the easiest way was to just turn off SSE completely. This is probably just
fine, as the port disables the universal variant anyway. To do that, you
do this in the Portfile, for example:
{{{
@@ -298,7 +301,8 @@ if {${os.arch} ne "arm"} {
} else {
configure.args-append \
-D${_OPT}use_mad=off \
- -D${_OPT}use_id3tag=off
+ -D${_OPT}use_id3tag=off \
+ -DHAVE_SSE=no
}
if {${subport} eq ${name}} {
# using port:sqlite3 leads to unstable behaviour?!
}}}
and then it builds through as an arm build. But that is not all, there is
some kind of an error with the librariies when you check the links after:
{{{
---> Cleaning audacity
---> Removing work directory for audacity
---> Updating database of binaries
---> Scanning binaries for linking errors
Could not open /opt/local/var/macports/build
/_opt_macportsofficial_macports-
ports_audio_audacity/audacity/work/build/lib/libwx_baseu-3.1.dylib: Error
opening or reading file (referenced from
/Applications/MacPorts/Audacity.app/Contents/modules/mod-script-pipe.so)
Could not open /opt/local/var/macports/build
/_opt_macportsofficial_macports-
ports_audio_audacity/audacity/work/build/lib/libwx_baseu_xml-3.1.dylib:
Error opening or reading file (referenced from
/Applications/MacPorts/Audacity.app/Contents/modules/mod-script-pipe.so)
Could not open /opt/local/var/macports/build
/_opt_macportsofficial_macports-
ports_audio_audacity/audacity/work/build/lib/libwx_osx_cocoau_core-3.1.dylib:
Error opening or reading file (referenced from
/Applications/MacPorts/Audacity.app/Contents/modules/mod-script-pipe.so)
Could not open /opt/local/var/macports/build
/_opt_macportsofficial_macports-
ports_audio_audacity/audacity/work/build/lib/libwx_osx_cocoau_qa-3.1.dylib:
Error opening or reading file (referenced from
/Applications/MacPorts/Audacity.app/Contents/modules/mod-script-pipe.so)
Could not open /opt/local/var/macports/build
/_opt_macportsofficial_macports-
ports_audio_audacity/audacity/work/build/lib/libwx_baseu_net-3.1.dylib:
Error opening or reading file (referenced from
/Applications/MacPorts/Audacity.app/Contents/modules/mod-script-pipe.so)
Could not open /opt/local/var/macports/build
/_opt_macportsofficial_macports-
ports_audio_audacity/audacity/work/build/lib/libwx_osx_cocoau_html-3.1.dylib:
Error opening or reading file (referenced from
/Applications/MacPorts/Audacity.app/Contents/modules/mod-script-pipe.so)
Could not open /opt/local/var/macports/build
/_opt_macportsofficial_macports-
ports_audio_audacity/audacity/work/build/lib/libwx_osx_cocoau_adv-3.1.dylib:
Error opening or reading file (referenced from
/Applications/MacPorts/Audacity.app/Contents/modules/mod-script-pipe.so)
---> Found 7 broken files, matching files to ports
---> Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: audacity @3.0.2.129
}}}
Looks like something is not being moved around as it should. This Portfile
has a lot of complicated jockeying around of stuff, so some digging into
that might fix this I guess. I did try to use the "+wxsystem" variant to
see if I could just use the system's libraries, but that variant is just
broken:
{{{
% sudo port -v install +wxsystem
Error: invalid parameter for wxWidgets.use; use one of:
wxWidgets-2.8/wxGTK-2.8/wxWidgets-3.0/wxGTK-3.0/wxPython-3.0/wxWidgets-3.2
Error: Unable to open port: can't set "depends_lib": invalid depspec:
port:
}}}
So I finally figured out that to make that start, you had to do this:
{{{
% sudo port -v install +wxsystem +wx32
}}}
but that failed quickly anyway:
{{{
-- Found Python3: /opt/local/bin/python3.11 (found version "3.11.1") found
components: Interpreter
-- ========== Configuring wxwidgets ==========
wxWidgets_LIBRARIES=general;-L/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.1/lib;general;-framework
IOKit;general;-framework Carbon;general;-framework
Cocoa;general;-framework QuartzCore;general;-framework
AudioToolbox;general;-framework System;general;-framework
OpenGL;general;-lwx_baseu-3.1;general;-lwx_osx_cocoau_core-3.1;general;-lwx_osx_cocoau_html-3.1;general;-lwx_baseu_net-3.1;general;-lwx_osx_cocoau_qa-3.1;general;-lwx_baseu_xml-3.1
wxWidgets_LIBRARY_DIRS=/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.1/lib
CMake Error at
/opt/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230
(message):
Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES)
Call Stack (most recent call first):
/opt/local/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594
(_FPHSA_FAILURE_MESSAGE)
cmake-proxies/cmake-modules/FindwxWidgets.cmake:1072
(find_package_handle_standard_args)
cmake-proxies/wxWidgets/CMakeLists.txt:22 (find_package)
-- Configuring incomplete, errors occurred!
}}}
So still work to be done...
--
Ticket URL: <https://trac.macports.org/ticket/66801#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list