New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30869 (closed defect: fixed)

Opened 21 months ago

Last modified 21 months ago

texlive-bin won't build correctly with clang

Reported by: msavory@… Owned by: dports@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: Clang Cc:
Port: texlive-bin

Description (last modified by macsforever2000@…) (diff)

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

textlive-bin_build.txt (929.7 KB) - added by msavory@… 21 months ago.

Change History

Changed 21 months ago by msavory@…

comment:1 Changed 21 months ago by msavory@…

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 21 months ago by jmr@…

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

Please remember to cc the maintainer.

comment:3 Changed 21 months ago by macsforever2000@…

  • Description modified (diff)

comment:4 Changed 21 months ago by msavory@…

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 21 months ago by dports@…

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 21 months ago by jmr@…

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

comment:7 Changed 21 months ago by dports@…

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 21 months ago by dports@…

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

comment:9 Changed 21 months ago by dports@…

  • Status changed from new to closed
  • Resolution set to fixed

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.