liuliu / ccv

C-based/Cached/Core Computer Vision Library, A Modern Computer Vision Library
http://libccv.org
Other
7.07k stars 1.71k forks source link

Build error #223

Open pfeatherstone opened 4 years ago

pfeatherstone commented 4 years ago

When building the library, the compiler gets stuck on ccv_resample.c and eventually runs out of memory and dies. I have 8GB of RAM and 2GB of swap. I'm using gcc 7.4.0 on ubuntu 18.03. Does this have anything to do with the preprocessor and the "for_block" macros in the code?

pfeatherstone commented 4 years ago

Having a look at the code again, the preprocessor is having to do some crazy macro expansion. @liuliu which compiler are you using and release tag of ccv are you building?

liuliu commented 4 years ago

We use clang: https://ci.libccv.org/waterfall gcc would work if you have 16G memory though.

pfeatherstone commented 4 years ago

Have you seen this before? Is it because of the macro expansion?

liuliu commented 4 years ago

Yes. Yes.

pfeatherstone commented 4 years ago

Ok cool. I’ll grab another machine