public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* g++4.4 - managed to compile but can't run g++
@ 2008-08-23  5:44 Simon Hill
  2008-08-23  8:34 ` Brian Dessent
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Hill @ 2008-08-23  5:44 UTC (permalink / raw)
  To: gcc-help

DISCLAIMER: I'm not sure if this is the right forum/place to post
this. If there is a more appropriate forum then sorry, but please
direct me to it. END.


I have been wanting to try out some of the features of c++0x that are
being implemented in g++. I'm trying to get g++ 4.4 installed and
going (I want to test/use "ctor() =delete" etc).

After a lot of messing around I finally got g++ to compile and:
"./g++ --version"
reports:
"g++ (GCC) 4.4.0 20080808 (experimental)"

However, when I run
"./g++ test.cpp" (eventually I want "./g++ test.cpp -std=c++0x").
I get:
"g++: error trying to exec 'cc1plus': execvp: No such file or directory"
cc1plus is in the same directory as g++, (.) or current.

Not sure if this is causing problems, but I have the default ubuntu
g++ installed elsewhere.
"which g++"
reports:
"/usr/bin/g++"
And
"g++ --version" (Note no ./)
reports:
g++ (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

If it's necessary/useful, I got and tested g++4.4 by:
Downloaded: "gcc-4.4-20080808.tar.bz2" from
"ftp://gcc.gnu.org/pub/gcc/snapshots/4.4-20080808/" (I tried using the
svn but couldn't find version 4.4)
Unzipped to: "/make"
"cd /make/gcc-4.4-20080808"
"mkdir target"
"cd target"
"../configure --disable-multilib"
"make" (left overnight - takes many hours)
"cd gcc"
"g++ --version" reports 4.4 as above.
"g++ /make/test/test.cpp" reports the error posted above.

I'm running:
Ubuntu Release 8.04 (hardy) - x86-64 version.
Intel Core2 Duo.

Is there some g++ parameter I need to provide to specify the location
of "cc1plus"?

Thanks for all assistance.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: g++4.4 - managed to compile but can't run g++
@ 2008-08-24  3:05 Simon Hill
  0 siblings, 0 replies; 5+ messages in thread
From: Simon Hill @ 2008-08-24  3:05 UTC (permalink / raw)
  To: gcc-help

Thanks heaps Brian, that explained it perfectly.
I now have it working and compiling c++0x code including ctor() =delete;

I did end up recompiling using "--program-suffix=-4.4 --prefix=/make/gcc-4.4"
And thanks Tom, I did end up compiling it inside a directory outside the source.
I'm specifying the library path during link (Option 3) cos I'm not
really a big fan of OS global stuff.


Just finished test suite.

        === gcc Summary ===

# of expected passes        52487
# of unexpected failures    6
# of unexpected successes    7
# of expected failures        193
# of unresolved testcases    2
# of unsupported tests        721

        === g++ Summary ===

# of expected passes        18222
# of unexpected failures    1
# of expected failures        81
# of unsupported tests        241

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-24  0:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-23  5:44 g++4.4 - managed to compile but can't run g++ Simon Hill
2008-08-23  8:34 ` Brian Dessent
2008-08-23 11:57   ` Tom Browder
2008-08-23 12:09     ` Tom Browder
2008-08-24  3:05 Simon Hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).