You are not logged in.

#1 2009-11-29 23:32:45

knedlyk
Member
From: L'viv, Ukraine
Registered: 2009-04-14
Posts: 163
Website

cmake issue after upgrade: wrong cross-compiler flags

After upgrading few days ago cmake starts to generate strange C and c++ flags. For example, when I tried to build guayadeque from AUR, I got the following:

c++: _FILE_OFFSET_BITS=64: No such file or directory
c++: _LARGE_FILES: No such file or directory
c++: __WXGTK__: No such file or directory

I found, that the problem was in ... guayadeque/src/guayadeque-0.2.0/src/CMakeFiles/guayadeque.dir/flags.make, where C_FLAGS at the end of string and C_DEFINES have the same entry: -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ . The  same is with CXX_FLAGS and CXX_DEFINES. I simply deleted "-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__" from the ends of  C_FLAGS and CXX_FLAGS strings and after that compilation went smoothly.

Can somebody check this and say whether is this a bug of cmake or guayadeque code?

Offline

#2 2009-12-15 01:55:52

imrehg
Member
From: London, UK
Registered: 2008-04-10
Posts: 108
Website

Re: cmake issue after upgrade: wrong cross-compiler flags

I have the same error when compiling aur/plplot with wxgtk support...

Offline

#3 2009-12-15 22:10:36

y27
Member
Registered: 2009-05-27
Posts: 147
Website

Re: cmake issue after upgrade: wrong cross-compiler flags

Same here for plplot from source..

Edit : downgrading cmake worked, indeed.

Last edited by y27 (2009-12-15 22:29:50)

Offline

#4 2010-03-19 09:10:12

mpattera
Member
Registered: 2010-03-19
Posts: 1

Re: cmake issue after upgrade: wrong cross-compiler flags

I've the same problem, but haven't cmake-2.6.4 in cache..where can I find the pkg?

Offline

Board footer

Powered by FluxBB