Opened 3 months ago

Last modified 3 months ago

#70531 assigned defect

clew @20170324: error: unknown type name 'AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER'

Reported by: barracuda156 Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: tiger, leopard, snowleopard, powerpc Cc:
Port: clew

Description

This probably cannot build on < 10.7.

--->  Building clew
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build" && /usr/bin/make -j6 -w all VERBOSE=ON 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build'
/opt/local/bin/cmake -S/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867 -B/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build/CMakeFiles /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build//CMakeFiles/progress.marks
/usr/bin/make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build'
/usr/bin/make  -f src/CMakeFiles/clew.dir/build.make src/CMakeFiles/clew.dir/depend
/usr/bin/make  -f src/CMakeFiles/clew_static.dir/build.make src/CMakeFiles/clew_static.dir/depend
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/src /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build/src /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build/src/CMakeFiles/clew.dir/DependInfo.cmake "--color="
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build'
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/src /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build/src /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build/src/CMakeFiles/clew_static.dir/DependInfo.cmake "--color="
Dependencies file "src/CMakeFiles/clew.dir/clew.c.o.d" is newer than depends file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build/src/CMakeFiles/clew.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target clew
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build'
/usr/bin/make  -f src/CMakeFiles/clew.dir/build.make src/CMakeFiles/clew.dir/build
Dependencies file "src/CMakeFiles/clew_static.dir/clew.c.o.d" is newer than depends file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build/src/CMakeFiles/clew_static.dir/compiler_depend.internal".
Consolidate compiler generated dependencies of target clew_static
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build'
/usr/bin/make  -f src/CMakeFiles/clew_static.dir/build.make src/CMakeFiles/clew_static.dir/build
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build'
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build'
[ 12%] Building C object src/CMakeFiles/clew.dir/clew.c.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build/src && /usr/bin/gcc-4.2 -DCL_USE_DEPRECATED_OPENCL_1_1_APIS -Dclew_EXPORTS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include -pipe -Os -DNDEBUG -I/opt/local/include -fPIC -Wall -arch ppc -mmacosx-version-min=10.6 -fPIC -MD -MT src/CMakeFiles/clew.dir/clew.c.o -MF CMakeFiles/clew.dir/clew.c.o.d -o CMakeFiles/clew.dir/clew.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/src/clew.c
[ 25%] Building C object src/CMakeFiles/clew_static.dir/clew.c.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/build/src && /usr/bin/gcc-4.2 -DCL_USE_DEPRECATED_OPENCL_1_1_APIS -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include -pipe -Os -DNDEBUG -I/opt/local/include -fPIC -Wall -arch ppc -mmacosx-version-min=10.6 -MD -MT src/CMakeFiles/clew_static.dir/clew.c.o -MF CMakeFiles/clew_static.dir/clew.c.o.d -o CMakeFiles/clew_static.dir/clew.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/src/clew.c
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/src/clew.c:9:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1820: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/src/clew.c:9:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1820: warning: expected [error|warning|ignored] after ‘#pragma GCC diagnostic’
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1821: warning: unknown option after ‘#pragma GCC diagnostic’ kind
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1821: warning: unknown option after ‘#pragma GCC diagnostic’ kind
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1857: warning: ‘weak_import’ attribute ignored
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1860: warning: ‘weak_import’ attribute ignored
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1863: warning: ‘weak_import’ attribute ignored
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1857: warning: ‘weak_import’ attribute ignored
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1860: warning: ‘weak_import’ attribute ignored
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1863: warning: ‘weak_import’ attribute ignored
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1933: warning: ‘weak_import’ attribute ignored
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_clew/clew/work/OpenCLWrangler-clew-27a6867/include/clew.h:1941: warning: ‘weak_import’ attribute ignored

Also fails with gcc14.

  1. S. OpenCL was introduced in 10.6, only for Intel, and became usable in 10.7 (at least MacPorts typically enables it on 10.7+).

Attachments (1)

main.log (109.5 KB) - added by barracuda156 3 months ago.

Download all attachments as: .zip

Change History (3)

Changed 3 months ago by barracuda156

Attachment: main.log added

comment:1 Changed 3 months ago by ryandesign (Ryan Carsten Schmidt)

Summary: clew fails to build on old systems: needs a platform restrictionclew @20170324: error: unknown type name 'AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER'

The error in the log is:

error: unknown type name 'AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER'; did you mean 'AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER'?

Maybe try using the 10.7 SDK.

comment:2 in reply to:  1 Changed 3 months ago by barracuda156

Replying to ryandesign:

The error in the log is:

error: unknown type name 'AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER'; did you mean 'AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER'?

Maybe try using the 10.7 SDK.

That will not work for ppc (including on 10.6.8 Rosetta, of course), but even ignoring that, platform restriction should be there. Perhaps for Intel 10.7 SDK is to be used, like you suggest, with a hack from libsdl2-snowleopard. I cannot test it though.

Last edited 3 months ago by barracuda156 (previous) (diff)
Note: See TracTickets for help on using tickets.