[GCC-XML] running on OS X 10.4 Intel

Brad King brad.king at kitware.com
Tue Oct 23 10:20:37 EDT 2007


Kaben Nanlohy wrote:
> Hi all,
> 
> I'm posting an ugly hack, and I apologize that I won't spend the time
> to follow-up with something cleaner.
> 
> I'm on a project using Boost.Python's Pyste on OS X 10.4 Intel where
> g++-3.3 requires the "-arch ppc" flag to work. I gather from reviewing
> posts on various mailing lists that some people are stuck in similar
> situations, beginning with the error:
> 
> g++-3.3: installation problem, cannot exec `cc1plus': No such file or directory
> Error executing "gccxml_find_flags g++-3.3  "
> 
> I'll skip the rest of the errors.
> 
> I added the following two lines to
> /usr/local/share/gccxml-0.6/gccxml_find_flags at line 40:
> 
> GCCXML_COMPILER="g++-3.3"
> GCCXML_CXXFLAGS="-arch ppc"
> 
> This short-circuits gccxml options and environment-variables, so
> there's certainly a better way, but this hack may unstick some of the
> people who've been stuck.

You can do this on the command line with

gccxml --gccxml-compiler g++-3.3 --gccxml-cxxflags "-arch ppc"

The config file you edited just contains the defaults.

-Brad




More information about the gccxml mailing list