Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub installation error
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Tue Mar 06, 2007 10:39 am    Post subject: grub installation error Reply with quote

Hi all

while i was installing Gentoo on my PC using the 64bit livecd i got this error when installing grub

Code:

checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97/config.log

!!! ERROR: sys-boot/grub-0.97-r3 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3749:   Called src_compile
  grub-0.97-r3.ebuild, line 85:   Called econf '--libdir=/lib' '--datadir=/usr/lib/grub' '--exec-prefix=/' '--disable-auto-linux-mem-opt'
  ebuild.sh, line 577:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/sys-boot:grub-0.97-r3:20070306-123507.log'.


how can i fix this problem

thanks in advance
_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Tue Mar 06, 2007 11:07 am    Post subject: Reply with quote

this si the error from the log file

Code:

!!! ERROR: sys-boot/grub-0.97-r3 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3749:   Called src_compile
  grub-0.97-r3.ebuild, line 85:   Called econf '--libdir=/lib' '--datadir=/usr/lib/grub' '--exec-prefix=/' '--disable-auto-linux-mem-opt'
  ebuild.sh, line 577:   Called die

_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2416
Location: UK

PostPosted: Tue Mar 06, 2007 11:59 am    Post subject: Reply with quote

Here are some threads on the same error:

sandbox: C compiler cannot create executables

"C compiler cannot create executables" !??!

Error: C compiler cannot create executables
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Tue Mar 06, 2007 12:16 pm    Post subject: Reply with quote

thanks for the links

i did search ebfore making my thread and i tried the gcc-config steps with no success

i even tried re-emerging perl
_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Tue Mar 06, 2007 12:32 pm    Post subject: Reply with quote

i also tried now emerging many pkgs like udev, vixie-cron ad sysfsutils and they all were emerged with no rpoblems

only grub shows this error
_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2416
Location: UK

PostPosted: Tue Mar 06, 2007 12:37 pm    Post subject: Reply with quote

Sorry, I didn't realize you'd had a look around before posting :oops:

You've posted the output from the emerge but I don't think your second post is the output of /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97/config.log ? Could you post this please?
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Tue Mar 06, 2007 1:02 pm    Post subject: Reply with quote

no need to apologize my freind :)

here is the output although it is very long

Code:

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

It was created by GRUB configure 0.97, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/lib --datadir=/usr/lib/grub --exec-prefix=/ --disable-auto-linux-mem-opt --build=x86_64-pc-linux-gnu

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

hostname = livecd
uname -m = x86_64
uname -r = 2.6.17-gentoo-r7
uname -s = Linux
uname -v = #1 SMP Tue Aug 29 01:30:07 UTC 2006

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

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

PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2


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

configure:1901: checking for a BSD-compatible install
configure:1957: result: /usr/bin/install -c
configure:1968: checking whether build environment is sane
configure:2011: result: yes
configure:2039: checking for a thread-safe mkdir -p
configure:2078: result: /bin/mkdir -p
configure:2091: checking for gawk
configure:2107: found /bin/gawk
configure:2118: result: gawk
configure:2129: checking whether make sets $(MAKE)
configure:2150: result: yes
configure:2345: checking build system type
configure:2363: result: x86_64-pc-linux-gnu
configure:2385: checking host system type
configure:2400: result: x86_64-pc-linux-gnu
configure:2438: checking whether to enable maintainer-specific portions of Makefiles
configure:2447: result: no
configure:2524: checking for x86_64-pc-linux-gnu-gcc
configure:2540: found /usr/bin/x86_64-pc-linux-gnu-gcc
configure:2551: result: x86_64-pc-linux-gnu-gcc
configure:2625: checking for x86_64-pc-linux-gnu-gcc
configure:2652: result: x86_64-pc-linux-gnu-gcc
configure:2930: checking for C compiler version
configure:2937: x86_64-pc-linux-gnu-gcc --version >&5
x86_64-pc-linux-gnu-gcc (GCC) 4.1.2 (Gentoo 4.1.2)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2940: $? = 0
configure:2947: x86_64-pc-linux-gnu-gcc -v >&5
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2)
configure:2950: $? = 0
configure:2957: x86_64-pc-linux-gnu-gcc -V >&5
x86_64-pc-linux-gnu-gcc: '-V' option must have argument
configure:2960: $? = 1
configure:2983: checking for C compiler default output file name
configure:3010: x86_64-pc-linux-gnu-gcc -m32   -Wl,-O1 -Wl,--sort-common -Wl,--warn-once conftest.c  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
configure:3013: $? = 1
configure:3051: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "GRUB"
| #define PACKAGE_TARNAME "grub"
| #define PACKAGE_VERSION "0.97"
| #define PACKAGE_STRING "GRUB 0.97"
| #define PACKAGE_BUGREPORT "bug-grub@gnu.org"
| #define PACKAGE "grub"
| #define VERSION "0.97"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3058: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--sort-common -Wl,--warn-once'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=x86_64-pc-linux-gnu-gcc
ac_cv_prog_make_make_set=yes
grub_cv_prog_objcopy_absolute=yes

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

ACLOCAL='${SHELL} /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97/missing --run tar'
AUTOCONF='${SHELL} /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97/missing --run automake-1.10'
AWK='gawk'
BUILD_EXAMPLE_KERNEL_FALSE=''
BUILD_EXAMPLE_KERNEL_TRUE=''
CC='x86_64-pc-linux-gnu-gcc'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-m32 '
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DISKLESS_SUPPORT_FALSE=''
DISKLESS_SUPPORT_TRUE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FSYS_CFLAGS=''
GRAPHICS_SUPPORT_FALSE=''
GRAPHICS_SUPPORT_TRUE=''
GREP=''
GRUB_CFLAGS=''
GRUB_LIBS=''
HERCULES_SUPPORT_FALSE=''
HERCULES_SUPPORT_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS='-Wl,-O1 -Wl,--sort-common -Wl,--warn-once'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97/missing --run makeinfo'
NETBOOT_DRIVERS=''
NETBOOT_SUPPORT_FALSE=''
NETBOOT_SUPPORT_TRUE=''
NET_CFLAGS=''
NET_EXTRAFLAGS=''
OBJCOPY=''
OBJEXT=''
PACKAGE='grub'
PACKAGE_BUGREPORT='bug-grub@gnu.org'
PACKAGE_NAME='GRUB'
PACKAGE_STRING='GRUB 0.97'
PACKAGE_TARNAME='grub'
PACKAGE_VERSION='0.97'
PATH_SEPARATOR=':'
PERL=''
RANLIB=''
SERIAL_SPEED_SIMULATION_FALSE=''
SERIAL_SPEED_SIMULATION_TRUE=''
SERIAL_SUPPORT_FALSE=''
SERIAL_SUPPORT_TRUE=''
SET_MAKE=''
SHELL='/bin/sh'
STAGE1_CFLAGS=''
STAGE2_CFLAGS=''
STRIP=''
VERSION='0.97'
ac_ct_CC=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-pc-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='/usr/lib/grub'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='/'
host='x86_64-pc-linux-gnu'
host_alias='x86_64-pc-linux-gnu'
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='$(SHELL) /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97/install-sh'
libdir='/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "GRUB"
#define PACKAGE_TARNAME "grub"
#define PACKAGE_VERSION "0.97"
#define PACKAGE_STRING "GRUB 0.97"
#define PACKAGE_BUGREPORT "bug-grub@gnu.org"
#define PACKAGE "grub"
#define VERSION "0.97"

configure: exit 77

_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 738
Location: Brooklyn, New York

PostPosted: Tue Mar 06, 2007 3:18 pm    Post subject: Reply with quote

try emerging grub without sandbox..

Code:
FEATURES=-sandbox emerge grub

just a thought.

also try to switch to your gcc profile follow by env-update & source /etc/profile.
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Tue Mar 06, 2007 4:41 pm    Post subject: Reply with quote

likewhoa wrote:
try emerging grub without sandbox..

Code:
FEATURES=-sandbox emerge grub

just a thought.

also try to switch to your gcc profile follow by env-update & source /etc/profile.


i have tried the gcc profile trick with no success

gonna try the sandbox one and report back
_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2416
Location: UK

PostPosted: Tue Mar 06, 2007 5:31 pm    Post subject: Reply with quote

Code:
configure:2983: checking for C compiler default output file name
configure:3010: x86_64-pc-linux-gnu-gcc -m32   -Wl,-O1 -Wl,--sort-common -Wl,--warn-once conftest.c  >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libgcc.a when searching for -lgcc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
this is where the problem is: for some reason, which isn't clear, the linker /usr/x86_64-pc-linux-gnu/bin/ld (unless I've miscounted the ".."s) says that /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/libgcc.a is incompatible.

The version here is 4.1.1 and the path (changing 4.1.2 to 4.1.1) is
Code:
ls -l /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld
0 lrwxrwxrwx 1 root root 47 Sep  7 23:59 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld -> /usr/x86_64-pc-linux-gnu/binutils-bin/2.16.1/ld*
in /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/ you should have something like
Code:
total 6776
drwxr-xr-x 2 root root    4096 Feb  7 10:50 32
-rw-r--r-- 1 root root   88142 Feb  7 10:50 SYSCALLS.c.X
-rw-r--r-- 1 root root    2408 Feb  7 10:50 crtbegin.o
-rw-r--r-- 1 root root    2888 Feb  7 10:50 crtbeginS.o
-rw-r--r-- 1 root root    2920 Feb  7 10:50 crtbeginT.o
-rw-r--r-- 1 root root    1904 Feb  7 10:50 crtend.o
-rw-r--r-- 1 root root    1904 Feb  7 10:50 crtendS.o
-rw-r--r-- 1 root root    4144 Feb  7 10:50 crtfastmath.o
drwxr-xr-x 3 root root    4096 Aug  9  2006 include
-rw-r--r-- 1 root root  113334 Feb  7 10:50 libgcc.a
-rw-r--r-- 1 root root   42128 Feb  7 10:50 libgcc_eh.a
lrwxrwxrwx 1 root root      13 Feb  7 10:50 libgcc_s.so -> libgcc_s.so.1
-rw-r--r-- 1 root root   54584 Feb  7 10:50 libgcc_s.so.1
-rw-r--r-- 1 root root   35388 Feb  7 10:50 libgcov.a
lrwxrwxrwx 1 root root      20 Sep  7 11:21 libgfortran.so -> libgfortran.so.1.0.0
-rw-r--r-- 1 root root 2643236 Feb  7 10:50 libstdc++.a
lrwxrwxrwx 1 root root      18 Feb  7 10:50 libstdc++.so -> libstdc++.so.6.0.8
lrwxrwxrwx 1 root root      18 Feb  7 10:50 libstdc++.so.6 -> libstdc++.so.6.0.8
-rwxr-xr-x 1 root root  980832 Feb  7 10:50 libstdc++.so.6.0.8
-rw-r--r-- 1 root root 2665296 Feb  7 10:50 libstdc++_pic.a
-rw-r--r-- 1 root root  225980 Feb  7 10:50 libsupc++.a
-rwxr-xr-x 1 root root    1004 Feb  7 10:50 libsupc++.la
and all the timestamps should be the same — it is clear that libgfortran.so.1.0.0 has been forgotten :)
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Tue Mar 06, 2007 6:03 pm    Post subject: Reply with quote

here is what i have in the dir u mentioned

Code:

livecd / # ls -al  /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/
total 8760
drwxr-xr-x 3 root root     920 Mar  6 13:59 .
drwxr-xr-x 4 root root      96 Mar  6 13:09 ..
-rw-r--r-- 1 root root   88142 Mar  6 13:59 SYSCALLS.c.X
-rw-r--r-- 1 root root    2408 Mar  6 13:59 crtbegin.o
-rw-r--r-- 1 root root    2888 Mar  6 13:59 crtbeginS.o
-rw-r--r-- 1 root root    2920 Mar  6 13:59 crtbeginT.o
-rw-r--r-- 1 root root    1896 Mar  6 13:59 crtend.o
-rw-r--r-- 1 root root    1896 Mar  6 13:59 crtendS.o
-rw-r--r-- 1 root root    4160 Mar  6 13:59 crtfastmath.o
drwxr-xr-x 3 root root     552 Mar  6 13:59 include
-rw-r--r-- 1 root root  113206 Mar  6 13:59 libgcc.a
-rw-r--r-- 1 root root   42032 Mar  6 13:59 libgcc_eh.a
lrwxrwxrwx 1 root root      13 Mar  6 13:59 libgcc_s.so -> libgcc_s.so.1
-rw-r--r-- 1 root root   54360 Mar  6 13:59 libgcc_s.so.1
-rw-r--r-- 1 root root   35380 Mar  6 13:59 libgcov.a
-rw-r--r-- 1 root root 1434476 Mar  6 13:59 libgfortran.a
-rwxr-xr-x 1 root root     791 Mar  6 13:59 libgfortran.la
lrwxrwxrwx 1 root root      20 Mar  6 13:59 libgfortran.so -> libgfortran.so.1.0.0
lrwxrwxrwx 1 root root      20 Mar  6 13:59 libgfortran.so.1 -> libgfortran.so.1.0.0
-rwxr-xr-x 1 root root  639432 Mar  6 13:59 libgfortran.so.1.0.0
-rw-r--r-- 1 root root    1518 Mar  6 13:59 libgfortranbegin.a
-rwxr-xr-x 1 root root     734 Mar  6 13:59 libgfortranbegin.la
-rw-r--r-- 1 root root 2639726 Mar  6 13:59 libstdc++.a
lrwxrwxrwx 1 root root      18 Mar  6 13:59 libstdc++.so -> libstdc++.so.6.0.8
lrwxrwxrwx 1 root root      18 Mar  6 13:59 libstdc++.so.6 -> libstdc++.so.6.0.8-rwxr-xr-x 1 root root  968320 Mar  6 13:59 libstdc++.so.6.0.8
-rw-r--r-- 1 root root 2649146 Mar  6 13:59 libstdc++_pic.a
-rw-r--r-- 1 root root  226086 Mar  6 13:59 libsupc++.a
-rwxr-xr-x 1 root root    1004 Mar  6 13:59 libsupc++.la
livecd / #


sorry i am not that pro, so can u tell me how to solve this problem
_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2416
Location: UK

PostPosted: Tue Mar 06, 2007 6:47 pm    Post subject: Reply with quote

No, I'm afraid that doesn't seem to be it, all the timestamps are the same.

gcc-4.1.2 is marked unstable: there is nothing in the Changelog about problems but there are six bugs in http://bugs.gentoo.org/buglist.cgi?quicksearch=gcc+4.1.2, the first is on an Alpha, the last is on a Celeron but the others seem to be on AMD64.

If it only fails on grub, then you may have found a bug and you might like to report it.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Wed Mar 07, 2007 5:01 am    Post subject: Reply with quote

ok thanks a lot

gonna report this bug , beside think i will stick to the stable releases from now on
_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2416
Location: UK

PostPosted: Wed Mar 07, 2007 8:45 am    Post subject: Reply with quote

As always, once you begin to think about it, things get complicated.

It does look like a bug in 4.1.2 but ld which comes from binutils — if you run
Code:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld
you will get something like
Code:
ls -l /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld
lrwxrwxrwx 1 root root 47 Sep  4  2006 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld -> /usr/x86_64-pc-linux-gnu/binutils-bin/2.16.1/ld
obviously not 4.1.1 and your binutils version may be different: i.e. perhaps a bug in binutils/ld? Perhaps it wasn't emerge'd when the 4.1.2 compiler was in use?

You did say that it only failed in grub-0.97-r3, all other emerge's worked?

However, when reporting the bug, and for your own testing, the program which fails is
Code:
/* confdefs.h.  */
#define PACKAGE_NAME "GRUB"
#define PACKAGE_TARNAME "grub"
#define PACKAGE_VERSION "0.97"
#define PACKAGE_STRING "GRUB 0.97"
#define PACKAGE_BUGREPORT "bug-grub@gnu.org"
#define PACKAGE "grub"
#define VERSION "0.97"
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
couldn't be much simpler, could it?

It might be worth trying it first to see if, run outside "./configure", it still fails.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Wed Mar 07, 2007 4:55 pm    Post subject: Omg Reply with quote

this is very bad guys

i reintsalled gentoo from the start using keywords amd64 and x86 instead of !amd64 and ~x86 just to have gcc-4.1.1

now i reached the grub emerge and it stopped WITH THE SAME ERROR AS BEFORE


Code:

checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/sys-boot/grub-0.97-r3/work/grub-0.97/config.log

!!! ERROR: sys-boot/grub-0.97-r3 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3774:   Called src_compile
  grub-0.97-r3.ebuild, line 85:   Called econf '--libdir=/lib' '--datadir=/usr/l ib/grub' '--exec-prefix=/' '--disable-auto-linux-mem-opt'
  ebuild.sh, line 577:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if rel evant.
!!! A complete build log is located at '/var/log/portage/sys-boot:grub-0.97-r3:2 0070307-185152.log'.

_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2416
Location: UK

PostPosted: Wed Mar 07, 2007 6:08 pm    Post subject: Reply with quote

I think you should try installing without ACCEPT_KEYWORDS at all. On an AMD64 machine "amd64" isn't necessary and I'm sure that adding "x86" is just causing trouble.

gcc-4.1.1-r3 is stable on both amd64 and x86 so, to get it, you need do nothing.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 738
Location: Brooklyn, New York

PostPosted: Wed Mar 07, 2007 6:36 pm    Post subject: Reply with quote

try to compile a grub version 0.96-r2 for the hell of it. if that don't work, then you'll have to rebuild the toolchain+system with default keywords.
Back to top
View user's profile Send private message
elfarto
n00b
n00b


Joined: 27 Feb 2003
Posts: 26
Location: Argentina

PostPosted: Wed Mar 07, 2007 8:07 pm    Post subject: Reply with quote

I think that the problem may be related to the absence of 32bit libc files , i have a farm of amd64 servers compiled from stage3 about a year ago, i've just finished doing a global emerge -u world on all the servers (including gcc 4.1.1 and glibc 2.5), and i've just found that everything compiles fine except grub. Doing a google search on "grub C compiler cannot create executables" i stumbled upon this old thread

http://linuxfromscratch.org/pipermail/cross-lfs/2005-November/000012.html

These are same errors i'm getting, further investigation yielded this link to a patch that's supposed to make it compatible with x86_64 but could't apply to grub source tree.

http://www.arcknowledge.com/gmane.comp.boot-loaders.grub.devel/2005-09/msg00038.html
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 738
Location: Brooklyn, New York

PostPosted: Wed Mar 07, 2007 8:36 pm    Post subject: Reply with quote

elfarto wrote:
I think that the problem may be related to the absence of 32bit libc files , i have a farm of amd64 servers compiled from stage3 about a year ago, i've just finished doing a global emerge -u world on all the servers (including gcc 4.1.1 and glibc 2.5), and i've just found that everything compiles fine except grub. Doing a google search on "grub C compiler cannot create executables" i stumbled upon this old thread

http://linuxfromscratch.org/pipermail/cross-lfs/2005-November/000012.html

These are same errors i'm getting, further investigation yielded this link to a patch that's supposed to make it compatible with x86_64 but could't apply to grub source tree.

http://www.arcknowledge.com/gmane.comp.boot-loaders.grub.devel/2005-09/msg00038.html


Well that bug is kind of old and grub has been working for me and other amd64 users for quite sometime and it doesn't seem like it's related even if errors are the same, but it doesn't hurt to look into it further.
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Thu Mar 08, 2007 6:11 am    Post subject: Reply with quote

likewhoa wrote:
try to compile a grub version 0.96-r2 for the hell of it. if that don't work, then you'll have to rebuild the toolchain+system with default keywords.


how to force emerge to install a specific version ??

also with default keywords , u mean that i remove the "amd64 x86" from the ACCEPT_KEYWORDS in my /etc/make.conf ? both fo them and leave it empty ?

and to rebuilt the toolchain, should i use " emerge --deep world" ?
_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 738
Location: Brooklyn, New York

PostPosted: Thu Mar 08, 2007 6:41 am    Post subject: Reply with quote

SaFrOuT wrote:
how to force emerge to install a specific version ??


example
Code:
emerge =sys-devel/gentoo-sources-2.6.18


SaFrOuT wrote:
also with default keywords , u mean that i remove the "amd64 x86" from the ACCEPT_KEYWORDS in my /etc/make.conf ?


either or, if you don't have the ACCEPT_KEYWORDS variable in make.conf it defaults to whatever your profile has set in make.defaults which would default to your arch which in your case is "amd64".

SaFrOuT wrote:
and to rebuilt the toolchain, should i use " emerge --deep world" ?


just emerge linux-headers gcc-config glibc binutils gcc then run emerge -e system after.
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Thu Mar 08, 2007 6:48 am    Post subject: Reply with quote

ok


gonna try it now
_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Thu Mar 08, 2007 7:25 am    Post subject: Reply with quote

likewhoa wrote:


just emerge linux-headers gcc-config glibc binutils gcc then run emerge -e system after.


i tied the older version of grub and it gave the same error, so i am now emerging the pkgs u mentioned above after removing the x86 from make.conf


by the way i can't find a file named /etc/make.defaults , is this ok ?
_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Thu Mar 08, 2007 9:40 am    Post subject: Reply with quote

No need to waste time here; emerge --info snip pretty much explains that the only problem is between keyboard and chair

Code:

Portage 2.1.2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0,
ACCEPT_KEYWORDS="amd64 x86"
CBUILD="x86_64-pc-linux-gnu"
CHOST="x86_64-pc-linux-gnu"


:roll: :idea:
Back to top
View user's profile Send private message
SaFrOuT
Apprentice
Apprentice


Joined: 08 Jul 2003
Posts: 256
Location: Egypt

PostPosted: Thu Mar 08, 2007 9:43 am    Post subject: Reply with quote

so using both keywords amd64 and x86 is a mistake ???

is using oonly amd64 is the correct thing to do ?

btw i only did that as i was following the guide @ XS forum and nothing more
_________________

[1] DFI NF4-Ultra
[2] Opteron 165 @ 2.5Ghz
[3] Palit X800Pro ( trying to change it for a 7600GT )
[4] G.Skill 2GB ZX @ DDR500 3-3-3-8
[5] SkyHAwk 620watt
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
Goto page 1, 2  Next
Page 1 of 2

 
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