Open2x And Cc1/cc1plus


sixtyfifthbit

Member
Joined
Aug 24, 2007
Messages
168
I'm trying to compile a file in linux (Ubuntu, specifically) with the pre-compiled Open2X toolchain, and it keeps giving me an error:

error trying to exec 'cc1plus': execvp: No such file or directory

Open2X doesn't include this file. I understand this file is the heart of the compiler (why they can't just put the whole thing in one program, I'll never know) What good is the toolchain if they forget to include such a critical part? Should I even bother trying to compile their toolchain from source, or will their source be just as useless?

The funny thing is, is I was developing on a Mac before this - it's the least supported platform I can see for GP2X dev - yet I had absolutely no problem setting up either the toolchain or the SDL library. I lent out my Mac for a few weeks; it's the only reason I'm even bothering to try it with Linux, otherwise I'd never bother - Linux zealots go way to far with their philosophies; completely alienating even seasoned programmers like myself. And they wonder why they're "not ready for the desktop"...
 
I've been trying to set up open2x toolchain and libs on the Mac, but so far I have been unsuccessful. Can you give me some pointers how to do this? It fails during configuring I think some of the compiled test programs cant run cause they are directories rather than files.
 
atari_eric said:
error trying to exec 'cc1plus': execvp: No such file or directory

Open2X doesn't include this file. I understand this file is the heart of the compiler (why they can't just put the whole thing in one program, I'll never know) What good is the toolchain if they forget to include such a critical part? Should I even bother trying to compile their toolchain from source, or will their source be just as useless?
Usually you get this error message when you installed or unpacked a toolchain into a directory that it's not expecting... are you sure you unpacked the archive into the directory it specifies in the readme ? IIRC, "cc1plus" is hardcoded into binaries, and it's not where it's expecting it to be...
 
Last edited by a moderator:
When every I've received errors relating to cc1plus, they have always been a path problem. So maybe you should check that. Certainly didn't any problems as such setting up the tool chain on both Linux and Windows.

The reason they are not in a single program is that you may want to execute parts of the compiler seperately - for example, the pre-processor.
 
Whoops, there is a copy of cc1/cc1plus in the tarball - it wasn't where *I* was expecting it! So yeah, I'm guessing there's a path problem now - thanks!

Though I did stick everything where the docs said - better double check...

pcklee123: I don't recall install details - I don't even remember if I was successful in finding pre-built files, or I had to to the config/make/install thing. When I get my Mac bac I'll peek around and see if I can find any clues. Outside of that, as I don't remember having any issues, I'm not really certain what is going on with your setup - sorry. A file/directory confuddle might be an ending "/" issue though - "/home/path" vs. "/home/path/".
 
Back
Top