[MacPorts] #59172: lensfun fails to compile with clang-8
MacPorts
noreply at macports.org
Sat Oct 5 07:53:04 UTC 2019
#59172: lensfun fails to compile with clang-8
----------------------+---------------------
Reporter: rmottola | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: lensfun
----------------------+---------------------
With the switch to clang-8.0, lensfun fails to compile:
{{{
[ 16%] Building CXX object libs/lensfun/CMakeFiles/lensfun.dir/mod-color-
sse2.cpp.o
cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build/libs/lensfun
&& /opt/local/bin/clang++-mp-8.0 -Dlensfun_EXPORTS
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/build
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/lensfun-0.3.2/include/lensfun
-isystem /opt/local/include/glib-2.0 -isystem
/opt/local/lib/glib-2.0/include -pipe -Os -DNDEBUG -I/opt/local/include
-stdlib=libc++ -arch x86_64 -mmacosx-version-min=10.6 -fPIC
-DCONF_SYMBOL_VISIBILITY -o CMakeFiles/lensfun.dir/mod-color-sse2.cpp.o -c
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/lensfun-0.3.2/libs/lensfun
/mod-color-sse2.cpp
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/lensfun-0.3.2/libs/lensfun/cpuid.cpp:95:18:
error: invalid suffix on literal; C++11 requires a space between literal
and identifier [-Wreserved-user-defined-literal]
"push %%"R_BX"\n" \
^
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_lensfun/lensfun/work/lensfun-0.3.2/libs/lensfun/cpuid.cpp:97:17:
error: invalid suffix on literal; C++11 requires a space between literal
and identifier [-Wreserved-user-defined-literal]
"pop %%"R_BX"\n" \
^
2 errors generated.
make[2]: *** [libs/lensfun/CMakeFiles/lensfun.dir/cpuid.cpp.o] Error 1
}}}
Forcing an older compiler (5.0)
{{{
configure.compiler=macports-clang-5.0
}}}
Yields a succesfull build
--
Ticket URL: <https://trac.macports.org/ticket/59172>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list