[MacPorts] #62091: libjpeg-turbo 2.0.6 +universal: fails to build on arm64

MacPorts noreply at macports.org
Tue Jan 19 07:14:08 UTC 2021


#62091: libjpeg-turbo 2.0.6 +universal: fails to build on arm64
----------------------------+----------------------
  Reporter:  MaddTheSane    |      Owner:  larryv
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.6.4
Resolution:                 |   Keywords:  arm64
      Port:  libjpeg-turbo  |
----------------------------+----------------------

Comment (by kencu):

 I think the issue here is a MacPorts issue. It's trying to compile the
 x86_64 assembly with clang, and AFAICT, libjpeg-turbo must use NASM to do
 that:
 {{{
 :info:build Scanning dependencies of target simd
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64'
 :info:build /Library/Developer/CommandLineTools/usr/bin/make  -f
 simd/CMakeFiles/simd.dir/build.make simd/CMakeFiles/simd.dir/build
 :info:build make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64'
 :info:build [  1%] Building C object md5/CMakeFiles/md5cmp.dir/md5.c.o
 :info:build [  1%] Building C object CMakeFiles/wrjpgcom.dir/wrjpgcom.c.o
 :info:build cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64/md5 && /usr/bin/clang
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6 -pipe -Os -DNDEBUG -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch
 x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
 -mmacosx-version-min=11.1 -o CMakeFiles/md5cmp.dir/md5.c.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6/md5/md5.c
 :info:build /usr/bin/clang
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6 -pipe -Os -DNDEBUG -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch
 x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
 -mmacosx-version-min=11.1 -o CMakeFiles/wrjpgcom.dir/wrjpgcom.c.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6/wrjpgcom.c
 :info:build [  1%] Building C object md5/CMakeFiles/md5cmp.dir/md5cmp.c.o
 :info:build [  2%] Building C object
 simd/CMakeFiles/simd.dir/arm64/jsimd.c.o
 :info:build [  2%] Building ASM object
 simd/CMakeFiles/simd.dir/arm64/jsimd_neon.S.o
 :info:build cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64/simd && /usr/bin/clang
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6 -pipe -Os -DNDEBUG -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch
 x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
 -mmacosx-version-min=11.1 -fPIC -o CMakeFiles/simd.dir/arm64/jsimd.c.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6/simd/arm64/jsimd.c
 :info:build cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64/simd &&
 /Library/Developer/CommandLineTools/usr/bin/clang
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6 -pipe -Os -DNDEBUG -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk  -arch
 x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
 -mmacosx-version-min=11.1 -fPIC -o
 CMakeFiles/simd.dir/arm64/jsimd_neon.S.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6/simd/arm64/jsimd_neon.S
 :info:build [  3%] Building C object CMakeFiles/rdjpgcom.dir/rdjpgcom.c.o
 :info:build cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64/md5 && /usr/bin/clang
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6 -pipe -Os -DNDEBUG -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch
 x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
 -mmacosx-version-min=11.1 -o CMakeFiles/md5cmp.dir/md5cmp.c.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6/md5/md5cmp.c
 :info:build [  3%] Building C object md5/CMakeFiles/md5cmp.dir/md5hl.c.o
 :info:build /usr/bin/clang
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6 -pipe -Os -DNDEBUG -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch
 x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
 -mmacosx-version-min=11.1 -o CMakeFiles/rdjpgcom.dir/rdjpgcom.c.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6/rdjpgcom.c
 :info:build cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64/md5 && /usr/bin/clang
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/build-x86_64
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6 -pipe -Os -DNDEBUG -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch
 x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
 -mmacosx-version-min=11.1 -o CMakeFiles/md5cmp.dir/md5hl.c.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/libjpeg-turbo-2.0.6/md5/md5hl.c
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/.tmp/jsimd_neon-87dc01.s:257:20: error: unexpected token in
 argument list
 :info:build     DCT_TABLE .req x0
 :info:build                    ^
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_graphics_libjpeg-turbo/libjpeg-
 turbo/work/.tmp/jsimd_neon-87dc01.s:258:21: error: unexpected token in
 argument list
 :info:build     COEF_BLOCK .req x1
 :info:build                     ^
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/62091#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list