[MacPorts] #69078: gperftools @2.10 does not build as +universal on Intel: getpc.h: error: expected unqualified-id

MacPorts noreply at macports.org
Tue Jan 9 12:06:05 UTC 2024


#69078: gperftools @2.10 does not build as +universal on Intel: getpc.h: error:
expected unqualified-id
--------------------------+------------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.8.1
 Keywords:  i386, x86_64  |       Port:  gperftools
--------------------------+------------------------
 {{{
 :info:build make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/build'
 :info:build [ 35%] Building CXX object
 CMakeFiles/profiler.dir/src/profiler.cc.o
 :info:build /opt/local/bin/clang++-mp-16 -Dprofiler_EXPORTS
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/build
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/gperftools-2.10
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/gperftools-2.10/src
 -pipe -Os -Wno-deprecated-declarations -Wno-error=unknown-warning-option
 -Wno-unknown-warning-option -DNDEBUG -I/opt/local/include -stdlib=libc++
 -std=gnu++17 -arch x86_64 -arch i386 -mmacosx-version-min=10.8 -fPIC -Wno-
 unused-result -MD -MT CMakeFiles/profiler.dir/src/profiler.cc.o -MF
 CMakeFiles/profiler.dir/src/profiler.cc.o.d -o
 CMakeFiles/profiler.dir/src/profiler.cc.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/gperftools-2.10/src/profiler.cc
 :info:build In file included from
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/gperftools-2.10/src/profiler.cc:38:
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/gperftools-2.10/src/getpc.h:189:49:
 error: expected unqualified-id
 :info:build   return (void*)signal_ucontext.PC_FROM_UCONTEXT;   // defined
 in config.h
 :info:build                                                 ^
 :info:build [ 36%] Building CXX object
 CMakeFiles/tcmalloc_internal_object.dir/src/malloc_hook.cc.o
 :info:build /opt/local/bin/clang++-mp-16 -DENABLE_EMERGENCY_MALLOC
 -DNDEBUG -DNO_HEAP_CHECK
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/build
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/gperftools-2.10
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/gperftools-2.10/src
 -pipe -Os -Wno-deprecated-declarations -Wno-error=unknown-warning-option
 -Wno-unknown-warning-option -DNDEBUG -I/opt/local/include -stdlib=libc++
 -std=gnu++17 -arch x86_64 -arch i386 -mmacosx-version-min=10.8 -fPIC -Wno-
 unused-result -MD -MT
 CMakeFiles/tcmalloc_internal_object.dir/src/malloc_hook.cc.o -MF
 CMakeFiles/tcmalloc_internal_object.dir/src/malloc_hook.cc.o.d -o
 CMakeFiles/tcmalloc_internal_object.dir/src/malloc_hook.cc.o -c
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/gperftools-2.10/src/malloc_hook.cc
 :info:build 1 error generated.
 :info:build make[2]: *** [CMakeFiles/profiler.dir/src/profiler.cc.o] Error
 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_gperftools/gperftools/work/build'
 :info:build make[1]: *** [CMakeFiles/profiler.dir/all] Error 2
 :info:build make[1]: *** Waiting for unfinished jobs...
 }}}

 This only happens with `+universal`, or at least x86_64-only build
 succeeds on the same 10.8.5 system.

-- 
Ticket URL: <https://trac.macports.org/ticket/69078>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list