Opened 10 months ago

Last modified 10 months ago

#69078 new defect

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

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: i386, x86_64 Cc:
Port: gperftools

Description

: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.

Change History (1)

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

Looks like upstream already replaced this code in 2.14 so let's try updating the port.

Note: See TracTickets for help on using tickets.