mxcl/homebrew — Issue #10422: xaw3d does not build on vanilla Lion with Xcode 4.3
Author: claudiodsf
Created: 2012-02-23 09:58:51+00:00
State: open

Hi, I'm setting up a new iMac for which I installed Xcode 4.3 (no previous version of Xcode was installed).

Trying to install gv, the build failed on xaw3d, with the following error:

```
==> xmkmf
imake -DUseInstalled -I/usr/local/Cellar/imake/1.0.4/lib/X11/config
In file included from Imakefile.c:15:
In file included from /usr/local/Cellar/imake/1.0.4/lib/X11/config/Imake.tmpl:316:
/usr/local/Cellar/imake/1.0.4/lib/X11/config/Imake.rules:1674:27: error: empty character constant
for flag in ${MAKEFLAGS} ''; do \ @@\
^
In file included from Imakefile.c:15:
/usr/local/Cellar/imake/1.0.4/lib/X11/config/Imake.tmpl:2144:10: fatal error: ' X11 .rules' file not found
#include ProjectRulesFile
^
/usr/local/Cellar/imake/1.0.4/lib/X11/config/Imake.tmpl:2142:35: note: expanded from macro 'ProjectRulesFile'
# define ProjectRulesFile Concat3(<,TopLevelProject,.rules>)
^
/usr/local/Cellar/imake/1.0.4/lib/X11/config/Imake.rules:256:23: note: expanded from macro 'Concat3'
#define Concat3(a,b,c)a/**/b/**/c
^
2 errors generated.
imake: Exit code 1.
Stop.
==> Exit Status: 1
http://github.com/mxcl/homebrew/blob/master/Library/Formula/xaw3d.rb#L21
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: 51d054c9a9616f0c5bba5955561b7486fc5cf139
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: quad-core 64-bit sandybridge
OS X: 10.7.3
Kernel Architecture: x86_64
Xcode: 4.3
GCC-4.0: N/A
GCC-4.2: N/A
LLVM: build 2336
Clang: 3.1 build 318
MacPorts or Fink? false
X11 installed? true
System Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Which Perl: /usr/bin/perl
Which Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.2/bin/python
Which Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
==> Build Flags
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments
CPPFLAGS: -I/usr/X11/include
LDFLAGS: -L/usr/X11/lib
MAKEFLAGS: -j4
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig/
```

I have tried with ```--use-llvm```, but I get exactly the same error.
brew doctor does not report problems