FC10 x64 cmake problem

10 replies [Last post]
Chef_Andy
Chef_Andy's picture
User offline. Last seen 15 years 25 weeks ago. Offline
Joined: 2009-05-20
Posts: 6

Hello, I'm attempting to compile for FC10 x64 and I'm running into some trouble. Any advice? Thanks! This is the error I'm getting.
_______________________________________________________________________
[root@localhost hedgewars-src-0.9.10]# cmake .
-- The CXX compiler identification is unknown
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:25 (MESSAGE):
The C++ compiler "/usr/lib64/ccache/c++" is not able to compile a simple
test program.

It fails with the following output:

Change Dir: /root/hedgewars-src-0.9.10/CMakeFiles/CMakeTmp

Run Build Command:/usr/bin/make "cmTryCompileExec/fast"

/usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build

make[1]: Entering directory
`/root/hedgewars-src-0.9.10/CMakeFiles/CMakeTmp'

/usr/bin/cmake -E cmake_progress_report
/root/hedgewars-src-0.9.10/CMakeFiles/CMakeTmp/CMakeFiles 1

Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o

/usr/lib64/ccache/c++ flags -o
CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
/root/hedgewars-src-0.9.10/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

c++: flags: No such file or directory

make[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o] Error
1

make[1]: Leaving directory `/root/hedgewars-src-0.9.10/CMakeFiles/CMakeTmp'

make: *** [cmTryCompileExec/fast] Error 2

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)

-- Configuring incomplete, errors occurred!

[root@localhost hedgewars-src-0.9.10]#
_______________________________________________________________________________________________
----------
System Info
----------

[root@localhost hedgewars-src-0.9.10]# uname -r

2.6.27.21-170.2.56.fc10.x86_64
_______________________________________________________________________________________________
[root@localhost hedgewars-src-0.9.10]# c++ --version
c++ (GCC) 4.3.2 20081105 (Red Hat 4.3.2-7)
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
_______________________________________________________________________________________________
[root@localhost hedgewars-src-0.9.10]# cmake --version
cmake version 2.6-patch 4

_______________________________________________________________________________________________
c++ works:

[root@localhost hedgewars-src-0.9.10]# which c++
/usr/lib64/ccache/c++
[root@localhost hedgewars-src-0.9.10]# vim new.cpp
[root@localhost hedgewars-src-0.9.10]# cat new.cpp
#include

int
main ()
{
std::cout << "Hello, world!\n";
return 0;
}

[root@localhost hedgewars-src-0.9.10]# c++ new.cpp
[root@localhost hedgewars-src-0.9.10]# ./a.out
Hello, world!
[root@localhost hedgewars-src-0.9.10]#

_______________________________________________________________________________________________
I have the latest versions of all the listed deps installed:

- Qt >= 4.4
qt.i386 1:4.5.0-14.fc10 installed
qt.x86_64 1:4.5.0-14.fc10 installed

- FreePascal >= 2.2.0
fpc.x86_64 2.2.2-3.fc10 installed

- SDL >= 1.2.5
SDL.i386 1.2.13-7.fc10 installed
SDL.x86_64 1.2.13-7.fc10 installed
SDL-devel.i386 1.2.13-7.fc10 installed
SDL-devel.x86_64 1.2.13-7.fc10 installed
SDL-static.x86_64 1.2.13-7.fc10 installed

SDL_net.i386 1.2.7-4.fc9 installed
SDL_net.x86_64 1.2.7-4.fc9 installed
SDL_net-devel.i386 1.2.7-4.fc9 installed
SDL_net-devel.x86_64 1.2.7-4.fc9 installed
sdljava.x86_64 0.9.1-9.fc9 installed
- SDL_net >= 1.2.5
SDL_mixer.i386 1.2.8-9.fc10 installed
SDL_mixer.x86_64 1.2.8-9.fc10 installed
SDL_mixer-devel.i386 1.2.8-9.fc10 installed
SDL_mixer-devel.x86_64 1.2.8-9.fc10 installed

- SDL_mixer >= 1.2
SDL_mixer.i386 1.2.8-9.fc10 installed
SDL_mixer.x86_64 1.2.8-9.fc10 installed
SDL_mixer-devel.i386 1.2.8-9.fc10 installed
SDL_mixer-devel.x86_64 1.2.8-9.fc10 installed

- SDL_image >= 1.2
SDL_image.i386 1.2.6-6.fc9 installed
SDL_image.x86_64 1.2.6-6.fc9 installed
SDL_image-devel.i386 1.2.6-6.fc9 installed
SDL_image-devel.x86_64 1.2.6-6.fc9 installed

- SDL_ttf >= 2.0
SDL_ttf.i386 2.0.9-4.fc9 installed
SDL_ttf.x86_64 2.0.9-4.fc9 installed
SDL_ttf-devel.i386 2.0.9-4.fc9 installed
SDL_ttf-devel.x86_64 2.0.9-4.fc9 installed

- CMake >= 2.4.4
cmake.x86_64 2.6.4-1.fc10 installed
cmake-gui.x86_64 2.6.4-1.fc10 installed

- QCA2 library
qca2.i386 2.0.0-3.fc10 installed
qca2.x86_64 2.0.0-3.fc10 installed
qca2-devel.i386 2.0.0-3.fc10 installed
qca2-devel.x86_64 2.0.0-3.fc10 installed

Chef_Andy
Chef_Andy's picture
User offline. Last seen 15 years 25 weeks ago. Offline
Joined: 2009-05-20
Posts: 6

Any help would be greatly appreciated. thanks!

alex12
User offline. Last seen 6 years 24 weeks ago. Offline
Joined: 2009-02-24
Posts: 115

I know this is not what you wanted but you can try http://www.hedgewars.org/node/1386.
Someone made packages already.

Chef_Andy
Chef_Andy's picture
User offline. Last seen 15 years 25 weeks ago. Offline
Joined: 2009-05-20
Posts: 6

alex12 allegedly wrote:

I know this is not what you wanted but you can try http://www.hedgewars.org/node/1386.
Someone made packages already.

Thanks for the response!

Yeah, checked out that stuff already. It's really great that people are as involved as they are. I'll do some poking around myself and see if I can munge it into something functional, and if I do, I'll certainly post about it. I play 9.10 on windows and it's pretty killer, want wait for a solution to play it on my much faster fedora box.

I figure that there is (at least) some sort of discrepancy between what cmake is looking for in the c++ compiler, and what it's receiving. At least in getting to the next step, it's probably worth trying to figure out exactly what it tests with the compiler and going from there. I'll post my findings.

If anyone else has gotten anywhere with this, I'd be really interested to hear from you.

nemo
nemo's picture
User offline. Last seen 19 weeks 3 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Your error appears to be because you took "flags"
literally.
If you have no flags you want to pass (such as, say -g -pg or similar) then just remove that parameter from cmake.

I hope you didn't take:
"data dir"

literally...

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

nemo
nemo's picture
User offline. Last seen 19 weeks 3 days ago. Offline
Joined: 2009-01-28
Posts: 1861

nemo allegedly wrote:

Your error appears to be because you took "flags"
literally.
If you have no flags you want to pass (such as, say -g -pg or similar) then just remove that parameter from cmake.

I hope you didn't take:
"data dir"

literally...

... oh, and if you note in the file INSTALL unc0rr points out that all those options are optional, unless you want to install it somewhere other than /usr/local you can just type:
cmake

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Chef_Andy
Chef_Andy's picture
User offline. Last seen 15 years 25 weeks ago. Offline
Joined: 2009-05-20
Posts: 6

nemo allegedly wrote:

nemo allegedly wrote:

Your error appears to be because you took "flags"
literally.
If you have no flags you want to pass (such as, say -g -pg or similar) then just remove that parameter from cmake.

I hope you didn't take:
"data dir"

literally...

... oh, and if you note in the file INSTALL unc0rr points out that all those options are optional, unless you want to install it somewhere other than /usr/local you can just type:
cmake

If you'll note in the information that I provided, the error output provided was using cmake without any flags.

nemo
nemo's picture
User offline. Last seen 19 weeks 3 days ago. Offline
Joined: 2009-01-28
Posts: 1861

/usr/lib64/ccache/c++ flags -o
CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
/root/hedgewars-src-0.9.10/CMakeFiles/CMakeTmp/testCXXCompiler.cxx

c++: flags: No such file or directory

Oh really - then what's that from eh?
Perhaps you ran cmake once with that value

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Chef_Andy
Chef_Andy's picture
User offline. Last seen 15 years 25 weeks ago. Offline
Joined: 2009-05-20
Posts: 6

Ah, I see what I did. The first time cmake was run was when I copied and pasted the command line with flags from the INSTALL file and hit enter before I could finish editing the flags. Every time I ran it after that without flags, I got the same error. Since I've never used cmake before, I didn't realize that the flags were persistent. I've found that if a regular configure script fails or is run incorrectly, simply re-running it will solve the problem. I made the false assumption that cmake worked the same way. I don't have access to the other machine I was working on until tomorrow, but I just tried it on another FC 10 x64 box and it worked. I'll be looking forward to trying it on the other box and getting the new version up and running at work.

When I first experienced the problem, I did a significant amount of research on google. I then looked through the documentation, then looked on the forums to see if my question had already been asked. When I did decide to post, I asked my question in a really friendly, respectful way, hoping that the favor would be returned. Although I do appreciate the response, I would have appreciated it a lot more if it wasn't so condescending. The tone of the response suggested that I was either lying or too stupid to realize what I had done when it was an honest mistake that would not have even occurred using a more common configure script setup. When the people I talk to say that they would rather find another piece of software to use than deal with the condescending or hostile responses they get when asking questions in OSS project forums, this is exactly why. Thanks for reenforcing the negative stereotypes.

nemo
nemo's picture
User offline. Last seen 19 weeks 3 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Ok. Given your aggressive responses, I'm going to make this very very explicit.
When I said:
I hope you didn't take:
"data dir"

literally...

I honestly meant - I hope you didn't take that literally and try to install it in that location because it will install it under svn.

And, when I said:
... oh, and if you note in the file INSTALL unc0rr points out that all those options are optional, unless you want to
install it somewhere other than /usr/local you can just type:
cmake

I was intending to save you trouble by giving you a simpler way to install it.

Your response implied I didn't know what I was talking about, so I said:
Oh really - then what's that from eh?
Perhaps you ran cmake once with that value

None of this was condescending, and was purely an attempt to be helpful.

But frankly, if you want to be an, in my opinion, thin skinned, arrogant, jerk.

Then be my guest.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Chef_Andy
Chef_Andy's picture
User offline. Last seen 15 years 25 weeks ago. Offline
Joined: 2009-05-20
Posts: 6

After rereading my responses, I'm still really not sure how my posts could have come across as aggressive. I apologize if they did, that was not the intent. Overly aggressive responses, even without blatant name calling are one of the big problems with people adopting OSS and I try to point it out when I see it.

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]