I noticed that gcc 4.4 is required for compilation. I know that Mac likes to tweak gcc. Does this mean that llvm-g++-4.2 is too old? I could install the normal version of gcc4.6 which is the latest in macports. 

On Sun, Nov 27, 2011 at 4:00 PM, Jesse Berwald <[hidden email]> wrote:
Thank you. I too have very little experience with Mac's multiple architecture concept. (This would have been done days ago in Linux. argh!) Sadly, the plot thickens. After including the two -arch flags and running configure, the compiler gets tripped up immediately. It appears that multiple architectures are not supports with many compiler options(?):

make  all-recursive
Making all in src
Making all in graph
Making all in centrality
  CXX    graph_betweenness.lo
llvm-g++-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[4]: *** [graph_betweenness.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Jesse

On Sun, Nov 27, 2011 at 3:44 PM, Tiago Peixoto [via Main discussion list for the graph-tool project] <[hidden email]> wrote:
> ImportError: dlopen(/usr/local/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so, 9): no suitable image found.  Did find:
> /usr/local/lib/python2.7/site-packages/graph_tool/libgraph_tool_core.so: mach-o, but wrong architecture
>
>>>>>>>>
>
> These architecture issues on Mac are mystifying to me. How can
> something be built for the wrong architecture if I just compiled it
> for that architecture? sigh... Thanks any help you can provide.

I have very little experience with building stuff with multiple
architectures with apple's GCC, but according to the documentation you
should pass something like "-arch i386 -arch x86_64" to the compiler to
generate "universal" binaries. From the ./configure command you sent in
the first email, it did not seem you passed this. Hence you should try
something like:

    ./configure CXXFLAGS="-arch i386 -arch x86_64 -I/opt/local/include" <..your other options..>

I hope it helps.

Cheers,
Tiago

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
http://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (566 bytes) Download Attachment
--
Tiago de Paula Peixoto <[hidden email]>



To unsubscribe from boost errors building on Mac OSX, click here.
NAML




View this message in context: Re: boost errors building on Mac OSX
Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.