pmneila / PyMCubes

Marching cubes (and related tools) for Python
BSD 3-Clause "New" or "Revised" License
692 stars 87 forks source link

Fails to compile on linux #3

Closed andrewdalecramer closed 8 years ago

andrewdalecramer commented 8 years ago

Tried to compile on linux (redhat), log is at http://pastebin.com/WrgAJBsm

gcc version 4.8.1 20130715 (Red Hat 4.8.1-4) (GCC)

pmneila commented 8 years ago

Hi,

I pushed a fix. It should be working now. Sorry for the inconvenience.

choldgraf commented 8 years ago

Same here - seemed to be some sort of error being thrown in numpy. Error dump here

This is on CentOS w/ gcc 4.8.2

andrewdalecramer commented 8 years ago

Excellent, compiles fine.

pmneila commented 8 years ago

@andrewdalecramer That's great.

@choldgraf That's strange. The error is in one of the header files of your system (/usr/include/bits/stdio.h), not in the code of PyMCubes itself. I will take a look at it later.

choldgraf commented 8 years ago

Ah ok - maybe it's on my end then? Unfortunately this is on a cluster for which I don't have full control of the environment, but I'll see what I can do on my end to make it work.

On Wed, Nov 25, 2015 at 9:32 PM, pmneila notifications@github.com wrote:

@andrewdalecramer https://github.com/andrewdalecramer That's great.

@choldgraf https://github.com/choldgraf That's strange. The error is in one of the header files of your system (/usr/include/bits/stdio.h), not in the code of PyMCubes itself. I will take a look at it later.

— Reply to this email directly or view it on GitHub https://github.com/pmneila/PyMCubes/issues/3#issuecomment-159793812.

andrewdalecramer commented 8 years ago

Compilers are a pain, check the version on your cluster as it might just be too old. I had to petition quite a bit to get an updated compiler on our system that was younger than 6 years old.

pmneila commented 8 years ago

@choldgraf Take a took at https://gcc.gnu.org/ml/gcc-help/2013-07/msg00127.html and the follow-ups. They are talking about the same error you are having. According to them, the error disappears using a different version of gcc (or removing the -Ox optimization flags, but I don't think that's a valid solution). Do you have any other version of gcc installed on that cluster?

choldgraf commented 8 years ago

Thanks for tracking that down for me. Updating to the latest gcc did in fact solve the problem, so pymcubes is now compiled :)

pmneila commented 8 years ago

Great!

I close the issue then.