Opened 13 years ago

Closed 13 years ago

#30869 closed defect (fixed)

texlive-bin won't build correctly with clang

Reported by: mike-savory Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Clang Cc:
Port: texlive-bin

Description (last modified by mf2k (Frank Schima))

I had a different issue with #30849: libzzip won't build correctly with clang

Clang on Lion (Clean install of Lion, MacPorts 2.0.1 from dmg, and Xcode 4.2 (4D151a)

First Error seems to be

/Developer/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I./w2c  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-20110705-source-stripped/texk -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-20110705-source-stripped/texk  -I/opt/local/include/libpng14   -DPOPPLER_VERSION=\"0.16.6\" -I/opt/local/include/poppler   -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-20110705-source-stripped/libs/obsdcompat -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_tex_texlive-bin/texlive-bin/work/texlive-20110705-source-stripped/libs/obsdcompat -I./libmd5 -I./pdftexdir   -pipe -O2 -arch x86_64 -MT pdftosrc-pdftosrc.o -MD -MP -MF .deps/pdftosrc-pdftosrc.Tpo -c -o pdftosrc-pdftosrc.o `test -f 'pdftexdir/pdftosrc.cc' || echo './'`pdftexdir/pdftosrc.cc
In file included from pdftexdir/pdftosrc.cc:31:
/opt/local/include/poppler/goo/gmem.h:29:10: fatal error: 'poppler/poppler-config.h' file not found
#include "poppler/poppler-config.h"
         ^
1 error generated.
make[5]: *** [pdftosrc-pdftosrc.o] Error 1

Attachments (1)

textlive-bin_build.txt (929.7 KB) - added by mike-savory 13 years ago.

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by mike-savory

Attachment: textlive-bin_build.txt added

comment:1 Changed 13 years ago by mike-savory

Poppler would seem to be installed

$ sudo port installed | grep popp

poppler @0.16.6_0 (active)

poppler-data @0.4.4_0 (active)

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to dports@…

Please remember to cc the maintainer.

comment:3 Changed 13 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:4 Changed 13 years ago by mike-savory

Confirmed as a clang issue. Reverted to Xcode 4.1, build still failed with clang but worked with configure.compiler llvm-gcc-4.2 added to the portfile

comment:5 Changed 13 years ago by drkp (Dan Ports)

r82984 forces llvm-gcc instead of clang for now, but we should still figure out what it'll take to make it build with clang at some point.

comment:6 Changed 13 years ago by jmroot (Joshua Root)

Should just need -I${prefix}/include. Clang doesn't handle CPATH: http://llvm.org/bugs/show_bug.cgi?id=8971

comment:7 Changed 13 years ago by drkp (Dan Ports)

It really needs to come after the -I options, though, which is why we're using C_INCLUDE_PATH instead of -I. It doesn't look like clang supports -isystem either.

comment:8 Changed 13 years ago by drkp (Dan Ports)

...or maybe it does, it's just not listed in the manpage.

comment:9 Changed 13 years ago by drkp (Dan Ports)

Resolution: fixed
Status: newclosed

Fixed and reenabled in r83018.

For those following along at home, clang lists C_INCLUDE_PATH in its manpage but doesn't actually support it. It supports -isystem but doesn't list that in the manpage. Go figure.

Note: See TracTickets for help on using tickets.