Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't compile Python
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Skraut
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2003
Posts: 142
Location: Norwalk, OH, USA, Earth, Solar System, Milky Way, Virgo Supercluster, Known Universe

PostPosted: Sun Feb 23, 2003 2:32 am    Post subject: Can't compile Python Reply with quote

Ok I'm finally getting smart and turning to the forums. I've been trying to install Gentoo for a few weeks, on a couple different machines. I had one blow a mottherboard out on me, so I'm down to a Celeron 433 I'm trying to set up as a web server.

While not *new* to linux, I haven't really touched it in about 3 years so there is so much new that I might as well be a newbie. I've been enjoying the Gentoo experience, and while not successful yet, know I will be soon.

Right now I'm having trouble on the Celeron 433 in the emerge system portion of Stage 2. I had this system previously to the Kernel setup before realizing many mistakes and starting over. I've tried to emerge system several times, as well as an individual emerge dev-lang/python/ and every time I am greeted with the following screendump.

Code:

creating cache ./config.cache
checking MACHDEP... linux2
checking for --without-gcc... no
checking for --with-cxx=<compiler>... no
checking for c++... g++
checking wether the C++ compiler (g++ -march=pentium2 -O2 -pipe -fomit-frame-pointer ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.


Things I have tried:

cflags settings of:
-march=pentium2 -Os -pipe
-mcpu=i686 -O2 -pipe
-mcpu=i386 -O2 -pipe
the cflags line commented out
re-emerging gcc
rerunning bootstrap.sh

about ready to wipe the drive and start over again (for the 6th time on this machine, hey no biggie I learn something new each time) just figured I'd toss the question up here to see if it could get answered.
Back to top
View user's profile Send private message
gilesjuk
Guru
Guru


Joined: 11 Feb 2003
Posts: 412
Location: Staffordshire, UK

PostPosted: Sun Feb 23, 2003 3:05 am    Post subject: Re: Can't compile Python Reply with quote

Are you root?

if so did you do "source /etc/profile"?
Back to top
View user's profile Send private message
Skraut
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2003
Posts: 142
Location: Norwalk, OH, USA, Earth, Solar System, Milky Way, Virgo Supercluster, Known Universe

PostPosted: Sun Feb 23, 2003 3:13 am    Post subject: Reply with quote

Yes to both questions (hope it helps)
Back to top
View user's profile Send private message
gilesjuk
Guru
Guru


Joined: 11 Feb 2003
Posts: 412
Location: Staffordshire, UK

PostPosted: Sun Feb 23, 2003 3:34 am    Post subject: Reply with quote

With

CXXFLAGS="${CFLAGS}"

in /etc/make.conf?

I would try:

CFLAGS="-O2 -march=pentium2 -pipe"

or was -Os a typo in your message?
Back to top
View user's profile Send private message
Skraut
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2003
Posts: 142
Location: Norwalk, OH, USA, Earth, Solar System, Milky Way, Virgo Supercluster, Known Universe

PostPosted: Sun Feb 23, 2003 4:43 am    Post subject: Reply with quote

yes CXXFLAGS="${CFLAGS}"

It's Actually -Os which is optimize for size

Since then I have tried -O2 with the same result

From http://freshmeat.net/articles/view/730/

Quote:

Since most software isn't cpu-bound, and since memory and disk are also limited resources, why not try -Os?

`-Os'
Optimize for size. `-Os' enables all `-O2' optimizations that do
not typically increase code size. It also performs further
optimizations designed to reduce code size.

Code compiled with this option would run just as fast (in wall-clock time, since it isn't cpu-bound), but reduces memory consumption, leaving more space for disk caches.
[url][/url]
Back to top
View user's profile Send private message
omné
Guru
Guru


Joined: 23 Feb 2003
Posts: 355
Location: Paris / France

PostPosted: Sun Feb 23, 2003 6:10 pm    Post subject: Exactly the same Reply with quote

I have exactly the same problem with python, during the emerge -u system, after a bootstrap.

My system is a XP 2000+
I tried diffrents CFLAGS, with no result.

If I start from a stage 3, xfree compile but I lost emerge (realy) just like it will be unmerge (I have no more i was sleeping during this process :) .

Help will be great.
Back to top
View user's profile Send private message
padma
n00b
n00b


Joined: 23 Feb 2003
Posts: 2
Location: St. Louis

PostPosted: Sun Feb 23, 2003 7:59 pm    Post subject: Same issue with Python Reply with quote

I'm using the athlon-xp cd and the stage 3 tarball. After emerge -u the install is dead. No emerge, no Python.
Any ideas?
Back to top
View user's profile Send private message
gavbaa
n00b
n00b


Joined: 24 Feb 2003
Posts: 1

PostPosted: Mon Feb 24, 2003 1:56 pm    Post subject: Same issue... Reply with quote

Building from a Stage 1 on Virtual PC 6 for Mac, get the same error on the same package.
Back to top
View user's profile Send private message
Skraut
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2003
Posts: 142
Location: Norwalk, OH, USA, Earth, Solar System, Milky Way, Virgo Supercluster, Known Universe

PostPosted: Mon Feb 24, 2003 7:43 pm    Post subject: Reply with quote

I solved it just by starting over again cfdisking the HD and starting from stage 1 all over again. Worked this time, don't know why it worked this time and not the other one.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum