Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Having a problem bootstraping with gcc 3.4
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
hadees
Tux's lil' helper
Tux's lil' helper


Joined: 17 Dec 2003
Posts: 137

PostPosted: Mon Jul 05, 2004 8:11 am    Post subject: Having a problem bootstraping with gcc 3.4 Reply with quote

Okay well i decided to take the plunge and try to boot strap with gcc 3.4

My package.keywords looks like this
Code:
>=sys-libs/glibc-2.3.3_pre20040420-r1 -* ~x86
=sys-devel/gcc-3.4* -*


and my package.unmask looks like this
Code:
sys-libs/glibc-2.3.3_pre20040420-r1


I did all this because someone in #gentoo on freenode told me thats how i can boot strap my system

my make.conf file looks like
Code:
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -frename-registers -fweb -ftracer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="gnome gtk2 dvd cdr alsa spell sse -qt -kde"


Now the reason I have pentium-m is i found a few threads in the forums that told me to use it. I know it doesn't appear in the gcc docs but I think it just was forgot to put in there because i did try bootstrap with pentium3 and it still didn't work and people reported using pentium-m and got working systems

First for some more background information, i have tried this both using the livecd and a knoppix cd however the errors i am posting is from when i tried to use knoppix i had the same error with the live cd

Bootstrapping starts out okay like this
Code:
Using >=sys-apps/baselayout-1.7.9-r1
Using >=sys-apps/portage-2.0.25
Using >=sys-devel/binutils-2.13.90.0.4
Using >=sys-devel/gcc-3.2
Using sys-devel/gettext
Using >=sys-libs/glibc-2.2.5
Using >=sys-apps/texinfo-4.2-r1
Using sys-libs/zlib
Using >=sys-libs/ncurses-5.2.20020112a


I am really unsure why it says gcc-3.2 up there but i guess that is because knoppix uses it, like i said above i did try it with the latest live cd which i think has 3.3 on it and had no luck.

portage-2.0.50-r8 always installs okay then i get to gettext-0.12.1 and thats where the errors are.

Code:
 * Applying gettext-0.12.1-bootstrap.patch...                             [ ok ]
>>> Source unpacked.
nls
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: creating ./config.status
config.status: creating Makefile
configure: configuring in autoconf-lib-link
configure: running /bin/sh './configure' --prefix=/usr  '--prefix=/usr' '--host=
i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--data
dir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-shared
' '--with-included-gettext' 'CC=gcc' 'CFLAGS=-O2 -march=pentium-m -pipe -fomit-f
rame-pointer -mfpmath=sse -frename-registers -fweb -ftracer' 'CXXFLAGS=-O2 -marc
h=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -frename-registers -fweb -ft                              racer' 'CXX=gcc' 'host_alias=i686-pc-linux-gnu' --cache-file=/dev/null --srcdir=                              .
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot cr                              eate executables
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for autoconf-lib-link

!!! ERROR: sys-devel/gettext-0.12.1 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed


On a side note i thought it might be an error in gettext so i did try gettext-0.12.1-r1 but that didn't work either

Incase it helps I know it is really really long but here is the config file mentioned above

Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  $ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-shared --with-included-gettext

## --------- ##
## Platform. ##
## --------- ##

hostname = Knoppix
uname -m = i686
uname -r = 2.4.24-xfs
uname -s = Linux
uname -v = #1 SMP Mi Feb 4 01:03:50 CET 2004

/usr/bin/uname -p = Intel(R) Pentium(R) M processor 1600MHz
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/local/bin
PATH: /opt/bin
PATH: /usr/i386-pc-linux-gnu/gcc-bin/3.3


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1333: checking for a BSD-compatible install
configure:1387: result: /bin/install -c
configure:1398: checking whether build environment is sane
configure:1441: result: yes
configure:1474: checking for gawk
configure:1490: found /bin/gawk
configure:1500: result: gawk
configure:1510: checking whether make sets $(MAKE)
configure:1530: result: yes
configure:1609: checking for i686-pc-linux-gnu-strip
configure:1638: result: no
configure:1647: checking for strip
configure:1663: found /usr/bin/strip
configure:1674: result: strip
configure:1711: checking build system type
configure:1729: result: i686-pc-linux-gnu
configure:1737: checking host system type
configure:1751: result: i686-pc-linux-gnu
configure:2203: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.57.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on Knoppix

config.status:635: creating Makefile
configure:3034: configuring in autoconf-lib-link
configure:3118: running /bin/sh './configure' --prefix=/usr  '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-shared' '--with-included-gettext' 'CC=gcc' 'CFLAGS=-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -frename-registers -fweb -ftracer' 'CXXFLAGS=-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -frename-registers -fweb -ftracer' 'CXX=gcc' 'host_alias=i686-pc-linux-gnu' --cache-file=/dev/null --srcdir=.
configure:3123: error: /bin/sh './configure' failed for autoconf-lib-link

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -frename-registers -fweb -ftracer'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -frename-registers -fweb -ftracer'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=gcc
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_GCJFLAGS_set=
ac_cv_env_GCJFLAGS_value=
ac_cv_env_GCJ_set=
ac_cv_env_GCJ_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install='/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/config/missing --run aclocal-1.7'
AMTAR='${SHELL} /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/config/missing --run tar'
AUTOCONF='${SHELL} /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/config/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/config/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/config/missing --run automake-1.7'
AWK='gawk'
CC='gcc'
CFLAGS='-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -frename-registers -fweb -ftracer'
CPP=''
CPPFLAGS=''
CXX='gcc'
CXXCPP=''
CXXFLAGS='-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -frename-registers -fweb -ftracer'
CYGPATH_W='echo'
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"gettext\" -DVERSION=\"0.12.1\" '
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
F77=''
FFLAGS=''
GCJ=''
GCJFLAGS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/config/missing --run makeinfo'
PACKAGE='gettext'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
VERSION='0.12.1'
ac_ct_STRIP='strip'
am__leading_dot='.'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/share'
exec_prefix='${prefix}'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='/var/tmp/portage/gettext-0.12.1/work/gettext-0.12.1/config/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=' autoconf-lib-link gettext-runtime gettext-tools'
sysconfdir='/etc'
target_alias=''

configure: exit 1


I am not sure what is going on but I hope someone can shed some light. I did read a post that said errors like this are caused usally by the wrong flags but those flags seem pretty standard from my experance. Also I read somewhere on a post that for some reason bootstrapping seems to like gcc 3.3 so they said it was best to let it bootstrap first then emerge gcc 3.4 then bootstrap again. I am not sure if that is correct or not or even how I would do it.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Jul 05, 2004 4:49 pm    Post subject: Re: Having a problem bootstraping with gcc 3.4 Reply with quote

hadees wrote:
Also I read somewhere on a post that for some reason bootstrapping seems to like gcc 3.3 so they said it was best to let it bootstrap first then emerge gcc 3.4 then bootstrap again. I am not sure if that is correct or not or even how I would do it.

This is the method I use.

Put this in your /etc/make.conf
Code:
ACCEPT_KEYWORDS="~x86"
and bootstrap normally (you will get gcc-3.3.3).

Then put this in /etc/portage/package.keywords
Code:
sys-devel/gcc   -*
sys-libs/glibc  -*
and bootstrap again (now you will get gcc-3.4.0)
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Wed Jul 07, 2004 12:08 am    Post subject: Reply with quote

Quote:
Code:

CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -frename-registers -fweb -ftracer"

Er... there is no "-march=pentium-m" in gcc-3.4.x. Or is there?
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Wed Jul 07, 2004 8:04 am    Post subject: Reply with quote

Voltago wrote:
Quote:
Code:

CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -mfpmath=sse -frename-registers -fweb -ftracer"


Remove the -fweb from your CFLAGS and gettext will compile just fine.

HTH
Back to top
View user's profile Send private message
BloodyNewbie
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2004
Posts: 88

PostPosted: Wed Jul 07, 2004 6:28 pm    Post subject: Pentium-M and GCC3.4.0 Reply with quote

Hi cyrillic (and everyone else :) )

According to your upstanding posting:
https://forums.gentoo.org/viewtopic.php?p=1317835

where you describe, how to get gcc3.4.0, I have some remarks because this doesn't work for me:
1. you said, portage was in /etc but it is in /usr
2. there is no file, called package.keywords
...

But I followed your words, created that file anyway and bootstrapped again.
It didn't work, even worse: there was an error:
Code:
the sys-apps/sysvinit package conflichts with another package both can't be installed ...


After the second (with that, incomplete bootstrap) I couldn't change march=pentium3 to march=pentium-m (which my real processor is!) and of course, I still had gcc3.3.3.

Now I am pretty frustrated about that whole gcc3.4 thing and humbling back to march=pentium3...


greets and it would be nice, if you would test what you write first than just posting it.. thx

and for you all out there using a Pentium-M I SEEK YOU!! is there ONLY ONE MAN(or other species) out there, who managed to get that march=pentium-m ... ???

Patrick
Back to top
View user's profile Send private message
Malakin
Veteran
Veteran


Joined: 14 Apr 2002
Posts: 1692
Location: Victoria BC Canada

PostPosted: Wed Jul 07, 2004 9:35 pm    Post subject: Reply with quote

If you look at the docs in gcc-3.4.1 pentium-m is listed as valid for march and tune (tune is the new mcpu, same thing but mcpu is deprecated). I was reading the docs in the source file, not the ones on the website.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu Jul 08, 2004 1:18 am    Post subject: Re: Pentium-M and GCC3.4.0 Reply with quote

BloodyNewbie wrote:
greets and it would be nice, if you would test what you write first than just posting it.. thx

Normally I just post stuff off the top of my head :wink: , but this one I actually did test.

At the moment, 3 of my machines are running gcc-3.4.0, compiled from stage1.
Back to top
View user's profile Send private message
sumin k'adra
n00b
n00b


Joined: 20 Sep 2003
Posts: 65
Location: santa fe, nm

PostPosted: Mon Jul 19, 2004 3:53 pm    Post subject: Re: Pentium-M and GCC3.4.0 Reply with quote

cyrillic wrote:
BloodyNewbie wrote:
greets and it would be nice, if you would test what you write first than just posting it.. thx

Normally I just post stuff off the top of my head :wink: , but this one I actually did test.

At the moment, 3 of my machines are running gcc-3.4.0, compiled from stage1.


After a portage update (2.0.50-r9) this no longer works though : (

[EDIT] Never mind! I just named package.keywords wrong :P
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Jul 19, 2004 4:47 pm    Post subject: Re: Pentium-M and GCC3.4.0 Reply with quote

BloodyNewbie wrote:
where you describe, how to get gcc3.4.0, I have some remarks because this doesn't work for me:
1. you said, portage was in /etc but it is in /usr
2. there is no file, called package.keywords
...

You have to create the folder /etc/portage manually, and also /etc/portage/package.keywords. It will probably just be ignored if you put it in /usr/portage/package.keywords.
_________________
No-one's more important than the earthworm.
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