Problems compiling CVXOPT 1.1.2 and Snow Leopard

41 views
Skip to first unread message

Guilherme Freitas

unread,
Dec 29, 2009, 2:34:14 AM12/29/09
to CVXOPT
Hi everybody. After setting the options in setup py, I tried to
install and got the following error:

dhcp-22-191:src guilherme$ sudo python setup.py install
running install
running build
running build_py
running build_ext
building 'gsl' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-
madd -fno-common -dynamic -DNDEBUG -g -O3 -I/Library/Frameworks/
Python.framework/Versions/5.0.0/include -I/usr/local/include/gsl -I/
Library/Frameworks/Python.framework/Versions/5.0.0/include/python2.5 -
c C/gsl.c -o build/temp.macosx-10.3-i386-2.5/C/gsl.o
cc1: error: unrecognized command line option "-Wno-long-double"
error: command 'gcc' failed with exit status 1

This is with gcc-4.2, the default gcc in the latest Xcode.

Trying gcc-4.0 doesn't work either (I get a message saying that
something is not allowed for Mac OS < 10.4, which I suppose some build
program infers from the fact that I am using gcc-4.0).

Ideas?

Thanks in advance?

Jeffery Kline

unread,
Jan 3, 2010, 3:30:10 PM1/3/10
to cvx...@googlegroups.com
This isn't really a reply to your question (sorry), but if you are familiar with macports, it's version of cvxopt 1.1.2 is available and does work fine for me on Snow Leopard.
--Jeff

> --
>
> You received this message because you are subscribed to the Google Groups "CVXOPT" group.
> To post to this group, send email to cvx...@googlegroups.com.
> To unsubscribe from this group, send email to cvxopt+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cvxopt?hl=en.
>
>

Guilherme P. de Freitas

unread,
Jan 4, 2010, 4:44:11 PM1/4/10
to cvx...@googlegroups.com
Hi Jeff,

Thanks for the answer. Yes, I went that route. But I didn't want to,
because I heard Macports doesn't always "work right" (some things do
not compile, someties updates/upgrades fail, etc.). I just installed
Macports, and even though CVXOPT and its dependencies installed
without a problem, some other packages did not compile (like
wx-python), and running 'port selfupdate' gives me an error. So it
would be nice if one could compile CVXOPT by hand on the Mac without
too much trouble. Most of the Unix stuff I need is provided by Rudix
which is much smaller but also more hassle free than Macports. The
scientific stuff (like the GSL, DSDP, FFTW) is not updated all the
time, so one essentially has to worry about keeping up with CVXOPT
itself. If it compiled.

Best,

Guilherme

--
Guilherme P. de Freitas
http://www.gpfreitas.com

Reply all
Reply to author
Forward
0 new messages