Page 1 of 1

Help needed - moving from Clang 3.1 to 3.3

Posted: Tue Jul 02, 2013 1:54 am
by Arbalest
I'm embarrassed to ask this but I can't tell if this is a configuration problem or an installation problem -- or how to deal with either.

I just upgraded clang from 3.1 to 3.1 (downloaded the .tar.bz2, opened archive, copied directories to corresponding places in /usr). Now when I compile the simple test program (which worked before) I get this

/usr/bin/clang++: 1: /usr/bin/clang++: Syntax error: "(" unexpected and I don't think it is referring to the source code.

Can someone point me in the right direction on this?

I am using CodeLite 5.1 on Ubuntu 12.04

Re: Help needed - moving from Clang 3.1 to 3.3

Posted: Tue Jul 02, 2013 8:20 am
by eranif
what happens when you compile it outside of codelite?
try:
clang++ main.cpp

Eran

Re: Help needed - moving from Clang 3.1 to 3.3

Posted: Tue Jul 02, 2013 5:29 pm
by Arbalest
Good idea. The exact same thing happens.

For good measure I tried it with source code like this:

Code: Select all

int main(int c, char **v) { return 0; }
The same happens. I'll try copying the Clang files to the appropriate directories one more time - but any advice is appreciated.

=== update ===

I've tried every which way to install 3.3 short of building from source. There is always some problem or other so I'll just stay with 3.2. Thanks.

Re: Help needed - moving from Clang 3.1 to 3.3

Posted: Thu Jul 18, 2013 6:53 am
by Arbalest
The previously available LaunchPad PPA for Clang-3.3 was problematic for me but the new one here worked just fine.

https://launchpad.net/~h-rayflood/+archive/llvm

As a general note to others who come across this thread, the new compiler executable is called clang-3.3 (and clang++-3.3). Rather than renaming it "clang" (so the IDE can find it) it seemed like a better idea for me to change the compiler name (under Settings > Build Settings) so I can switch back and forth among versions.