Date: Tue, 29 Sep 2015 15:43:59 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 203437] imake doesn't work with clang, again Message-ID: <bug-203437-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203437 Bug ID: 203437 Summary: imake doesn't work with clang, again Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: lampa@fit.vutbr.cz Current imake port doesn't work with clang (FreeBSD-10+). BUILD_DEPENDS requires tradcpp, but imake will always use cc: imake -v -DUseInstalled -I/usr/local/lib/X11/config cc -I. -Uunix -D__amd64__ -D__amd64__ -traditional -DUseInstalled -I/usr/local/lib/X11/config -E -v Imakefile.c ... imake Makefile contains CPP_PROGRAM = tradcpp but this is ignored, since USE_CC_E has greater priority and it is set, see work/imake-1.0.7/imake.c (287) #ifndef CROSSCOMPILE # ifdef USE_CC_E # ifndef DEFAULT_CC # define DEFAULT_CC "cc" # endi # else # ifndef DEFAULT_CPP # ifdef CPP_PROGRAM # define DEFAULT_CPP CPP_PROGRAM # else # define DEFAULT_CPP "/lib/cpp" # endif # endif # endif #endif work/imake-1.0.7/imakemdep.h (304) # if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || d efined(__DragonFly__) # define USE_CC_E # endif ... # if defined(__GNUC__) && !defined(USE_CC_E) # define USE_CC_E # ifndef DEFAULT_CC # define DEFAULT_CC "gcc" # endif # endif To get tradcpp I had to remove both these tests. Proper solution is probably to set DEFAULT_CC=tradcpp in configure or make invocation. It seems that ac_cv_path_RAWCPP=tradcpp in port Makefile is ignored. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203437-13>