Opened 20 months ago

Last modified 10 months ago

#62619 assigned defect

aom @3.0.0: ppc_cpudetect.c:15:10: fatal error: asm/cputable.h: No such file or directory

Reported by: kencu (Ken) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Leopard PowerPC Cc:
Port: aom

Description

first error, at least:

aom_ports/ppc_cpudetect.c:15:10: fatal error: asm/cputable.h: No such file or directory
 #include <asm/cputable.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.

Attachments (1)

aom-fail-leopard-ppc.log (200.3 KB) - added by kencu (Ken) 20 months ago.

Download all attachments as: .zip

Change History (7)

Changed 20 months ago by kencu (Ken)

Attachment: aom-fail-leopard-ppc.log added

comment:1 Changed 20 months ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

I am afraid I cannot even get to this error.
The only way I can test PPC builds is by setting build_arch to ppc on an Intel virtual machine running Mac OS X 10.5.
Needless to say, it is not a perfect solution.
I run into the following error before I get to the missing header file, and I have no idea how to fix it.

[ 18%] Building C object CMakeFiles/aom_av1_common_vsx_intrinsics.dir/av1/common/ppc/cfl_ppc.c.o
/opt/local/bin/gcc-mp-7  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/aom-3.0.0/third_party/googletest/src/googletest/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/aom-3.0.0/third_party/googletest/src/googletest -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/aom-3.0.0 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/build -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/aom-3.0.0/apps -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/aom-3.0.0/common -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/aom-3.0.0/examples -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/aom-3.0.0/stats -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/aom-3.0.0/third_party/libyuv/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/aom-3.0.0/third_party/libwebm -pipe -Os -DNDEBUG -I/opt/local/include  -std=c99 -Wall -Wdisabled-optimization -Wextra -Wfloat-conversion -Wimplicit-function-declaration -Wlogical-op -Wpointer-arith -Wsign-compare -Wtype-limits -Wuninitialized -Wunused -Wvla -Wstack-usage=100000 -Wshadow -Wundef -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -arch ppc -mmacosx-version-min=10.5 -fPIC -mvsx -maltivec -o CMakeFiles/aom_av1_common_vsx_intrinsics.dir/av1/common/ppc/cfl_ppc.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/aom-3.0.0/av1/common/ppc/cfl_ppc.c
{standard input}:25:Invalid mnemonic 'xxspltw'
{standard input}:26:Invalid mnemonic 'lxvw4x'
{standard input}:40:Invalid mnemonic 'lxvw4x'
{standard input}:42:Invalid mnemonic 'lxvw4x'
{standard input}:45:Invalid mnemonic 'lxvw4x'
{standard input}:47:Invalid mnemonic 'lxvw4x'
{standard input}:50:Invalid mnemonic 'lxvw4x'
{standard input}:52:Invalid mnemonic 'lxvw4x'
{standard input}:54:Invalid mnemonic 'lxvw4x'
{standard input}:56:Invalid mnemonic 'lxvw4x'
{standard input}:66:Invalid mnemonic 'lxvw4x'
{standard input}:75:Invalid mnemonic 'lxvw4x'
{standard input}:91:Invalid mnemonic 'lxvw4x'
{standard input}:93:Invalid mnemonic 'stxvw4x'
{standard input}:94:Invalid mnemonic 'lxvw4x'
{standard input}:96:Invalid mnemonic 'stxvw4x'
{standard input}:97:Invalid mnemonic 'lxvw4x'
{standard input}:99:Invalid mnemonic 'stxvw4x'
{standard input}:100:Invalid mnemonic 'lxvw4x'
{standard input}:102:Invalid mnemonic 'stxvw4x'
{standard input}:104:Invalid mnemonic 'lxvw4x'
{standard input}:106:Invalid mnemonic 'stxvw4x'
{standard input}:107:Invalid mnemonic 'lxvw4x'
{standard input}:109:Invalid mnemonic 'stxvw4x'
{standard input}:110:Invalid mnemonic 'lxvw4x'
{standard input}:112:Invalid mnemonic 'stxvw4x'
{standard input}:113:Invalid mnemonic 'lxvw4x'
{standard input}:115:Invalid mnemonic 'stxvw4x'
{standard input}:117:Invalid mnemonic 'lxvw4x'
{standard input}:119:Invalid mnemonic 'stxvw4x'
{standard input}:120:Invalid mnemonic 'lxvw4x'
{standard input}:122:Invalid mnemonic 'stxvw4x'
{standard input}:123:Invalid mnemonic 'lxvw4x'
{standard input}:125:Invalid mnemonic 'stxvw4x'
{standard input}:126:Invalid mnemonic 'lxvw4x'
{standard input}:128:Invalid mnemonic 'stxvw4x'
{standard input}:129:Invalid mnemonic 'lxvw4x'
{standard input}:131:Invalid mnemonic 'stxvw4x'
{standard input}:132:Invalid mnemonic 'lxvw4x'
{standard input}:134:Invalid mnemonic 'stxvw4x'
{standard input}:135:Invalid mnemonic 'lxvw4x'
{standard input}:137:Invalid mnemonic 'stxvw4x'
{standard input}:138:Invalid mnemonic 'lxvw4x'
{standard input}:140:Invalid mnemonic 'stxvw4x'

comment:2 Changed 20 months ago by kencu (Ken)

Thanks, Marcus -- I don't actually expect you to personally fix these :>

I just put this here more for an explanation about why we need to disable this dep for libheif on PPC, pending me (or someone like me) fixing it someday.

comment:3 Changed 20 months ago by bryancn

cc me

comment:4 Changed 20 months ago by kencu (Ken)

In d706b73e3832dbaebd6229e77fe6cec35815de7f/macports-ports (master):

libheif: avoid aom on < 10.6

see: #62619

comment:5 in reply to:  4 Changed 12 months ago by barracuda156

Replying to kencu:

In d706b73e3832dbaebd6229e77fe6cec35815de7f/macports-ports (master):

libheif: avoid aom on < 10.6

see: #62619

Thank you, this was very helpful suggestion.

comment:6 Changed 10 months ago by barracuda156

For the record, it also fails on 10.6.8 Rosetta in the same way:

:15:10: fatal error: asm/cputable.h: No such file or directory
 #include <asm/cputable.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/aom_ports.dir/aom_ports/ppc_cpudetect.c.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/build'
make[1]: *** [CMakeFiles/aom_ports.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  2%] Built target generate_exports
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/build'
[  2%] Built target aom_version_check
[  2%] Linking CXX static library libaom_gtest.a
/opt/local/bin/cmake -P CMakeFiles/aom_gtest.dir/cmake_clean_target.cmake
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/aom_gtest.dir/link.txt --verbose=ON
/opt/local/bin/ar qc libaom_gtest.a CMakeFiles/aom_gtest.dir/third_party/googletest/src/googletest/src/gtest-all.cc.o
/opt/local/bin/ranlib libaom_gtest.a
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/build'
[  2%] Built target aom_gtest
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/build'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/build'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/work/build" && /usr/bin/make -j4 -w all VERBOSE=ON 
Exit code: 2
Error: Failed to build aom: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_aom/aom/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a
bug.
Error: Processing of port aom failed
Note: See TracTickets for help on using tickets.