poppler and leopard - LegacySupport issues

Kenneth F. Cunningham ken.cunningham.webuse at gmail.com
Thu Aug 15 15:09:54 UTC 2019


> [  1%] Building CXX object CMakeFiles/poppler.dir/goo/gbasename.cc.o
> /opt/local/bin/clang++-mp-5.0  -Dpoppler_EXPORTS 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.79.0 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.79.0/fofi 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.79.0/goo 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.79.0/poppler 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build/poppler 
> -I/opt/local/include -I/opt/local/include/freetype2 
> -I/opt/local/include/openjpeg-2.3  -Wall -Wextra -Wpedantic 
> -Wno-unused-parameter -Wcast-align -Wformat-security 
> -Wframe-larger-than=65536 -Wmissing-format-attribute -Wnon-virtual-dtor 
> -Woverloaded-virtual -Wmissing-declarations -Wundef 
> -Wzero-as-null-pointer-constant -Wshadow -pipe -Os -std=c++14 
> -D_GLIBCXX_USE_CXX11_ABI=0 -DNDEBUG -I/opt/local/include/LegacySupport 
> -I/opt/local/include/LegacySupport -stdlib=macports-libstdc++ -arch 
> x86_64 -mmacosx-version-min=10.5 -fPIC   -std=c++14 -o 
> CMakeFiles/poppler.dir/goo/gbasename.cc.o -c 
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.79.0/goo/gbasename.cc
> /opt/local/bin/clang++-mp-5.0  -Dpoppler_EXPORTS 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.79.0 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.79.0/fofi 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.79.0/goo 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.79.0/poppler 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build 
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/build/poppler 
> -I/opt/local/include -I/opt/local/include/freetype2 
> -I/opt/local/include/openjpeg-2.3  -Wall -Wextra -Wpedantic 
> -Wno-unused-parameter -Wcast-align -Wformat-security 
> -Wframe-larger-than=65536 -Wmissing-format-attribute -Wnon-virtual-dtor 
> -Woverloaded-virtual -Wmissing-declarations -Wundef 
> -Wzero-as-null-pointer-constant -Wshadow -pipe -Os -std=c++14 
> -D_GLIBCXX_USE_CXX11_ABI=0 -DNDEBUG -I/opt/local/include/LegacySupport 
> -I/opt/local/include/LegacySupport -stdlib=macports-libstdc++ -arch 
> x86_64 -mmacosx-version-min=10.5 -fPIC   -std=c++14 -o 
> CMakeFiles/poppler.dir/goo/gbase64.cc.o -c 
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.79.0/goo/gbase64.cc
> In file included from 
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_poppler/poppler/work/poppler-0.79.0/goo/gbasename.cc:46:
> /opt/local/include/LegacySupport/stdlib.h:44:14: error: conflicting asm 
> label
> extern char *realpath(const char * __restrict, char * __restrict)
>               ^
> /usr/include/stdlib.h:226:60: note: previous declaration is here
> char    *realpath(const char * __restrict, char * __restrict) 
> __DARWIN_EXTSN(realpath);
>                                                                ^
> /usr/include/sys/cdefs.h:365:36: note: expanded from macro '__DARWIN_EXTSN'
> #define __DARWIN_EXTSN(sym)             __asm("_" __STRING(sym) 
> __DARWIN_SUF_EXTSN)
>                                                ^
> 1 error generated.
> make[2]: *** [CMakeFiles/poppler.dir/goo/gbasename.cc.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> 
> 
> Am I missing some other "trick" ?
> 
> 
> Thank you,
> 
> Riccardo

Ah, this looks similar to  the error you reported for cmake, now.

I think you are seeing this because you are trying to build poppler as 64bit on 10.5 Intel. 

You are quite possibly the only one on Earth who has tried to do that :> You probably realize that this pathway (64bit on 10.5 Intel) is almost completely untested by anyone -- many errors are likely to show up as you break new ground in this wilderness.

At this moment, it looks like realpath is getting confused -- the resolved cdefs.h definition after the macro substitutions looks off to me. You'll have to see exactly what it says on line 365 in cdefs.h to see why it might be getting confused.

I am not building much at all as 64bit on 10.5, by the way. I only use 10.5 at all as a bridge to bringing clang/libc++ to PPC (which peaks out at 10.5). And that project hasn't been getting much of my attention lately, as Iain Sandoe has also taken it on, and is way ahead of the ABI fixes needed compared to where I was (being a compiler genius helps :> ).

So you might need to become part of the solution to this problem, Riccardo, as you're the only one building this way. What do you see as a possible fix?

Ken


More information about the macports-users mailing list