Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Problem with xorg and nvidia-driver
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
darek015
n00b
n00b


Joined: 20 Jun 2009
Posts: 31
Location: PL/Tarnów

PostPosted: Mon Jun 22, 2009 3:41 pm    Post subject: [solved]Problem with xorg and nvidia-driver Reply with quote

Hello,
I`ve got a problem with xorg, and nvidia drivers.
I`m install x server from Handbook
Everything worked to time when I use:
Code:

Xorg -configure

It fail...
Then I use:
Code:

xorgcfg -textmode

but after that, when i use
Code:

X -config /root/xorg.conf.new

appeared the gray screen with the mouse cursor in the middle, but mouse and keyboard doesn`t respond.
I must hard reset my pc.

After that i tryed to modify Xorg.conf, but without effect.

I think installing nvidia driver will work, and i installed official driver form nvidia.com
Code:

sh NVIDIA-Linux-x86-96.43.11-pkg1

for the first time i`ve got problem with my kernel config (i must turn off nvidiafb or something like that).
After recompiling the kernel drivers are installed without any problems, but when I use
Code:

startx

I see screen with some windows, but mouse and keyboard doesn`t respond too. After reset when I use "startx", I see black screen and pc doesn't respond.
After reset I take my xorg.conf from my slackware, and after reset when i use "startx" the situation was the same.
My actual xorg.cof (coppying from slackware)

Code:

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildmeister@builder57)  Wed Jul  2 12:31:37 PDT 2008

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
    RgbPath         "/usr/lib/X11/rgb"
    FontPath        "/usr/lib/X11/fonts/misc/:unscaled"
    FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
    FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
    FontPath        "/usr/lib/X11/fonts/misc/"
    FontPath        "/usr/lib/X11/fonts/Type1/"
    FontPath        "/usr/lib/X11/fonts/Speedo/"
    FontPath        "/usr/lib/X11/fonts/100dpi/"
    FontPath        "/usr/lib/X11/fonts/75dpi/"
    FontPath        "/usr/lib/X11/fonts/cyrillic/"
    FontPath        "/usr/lib/X11/fonts/TTF/"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Samsung DP17MT"
    HorizSync       30.0 - 85.0
    VertRefresh     50.0 - 160.0
    ModeLine       "1152x864_85.00" 119.7 1152 1224 1352 1552 864 865 868 907 -hsync +vsync
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce4 Ti 4200"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "metamodes" "1152x864_85 +0+0; 1152x864 +0+0; 800x600 +0+0; 640x480 +0+0"
    SubSection     "Display"
        Depth       24
        Modes      "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection


Last edited by darek015 on Thu Jun 25, 2009 5:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Mon Jun 22, 2009 3:47 pm    Post subject: Reply with quote

Please post your
Code:
emerge --info
and
Code:
rc-update show
Back to top
View user's profile Send private message
darek015
n00b
n00b


Joined: 20 Jun 2009
Posts: 31
Location: PL/Tarnów

PostPosted: Mon Jun 22, 2009 4:23 pm    Post subject: Reply with quote

Code:

emerge --info


Code:
Portage 2.1.6.13 (arch/x86, gcc-4.1.2, glibc-2.6.1-r0, 2.6.29-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-i686-AMD_Athlon-tm-_XP_1700+-with-glibc2.0
Timestamp of tree: Fri, 19 Jun 2009 16:30:01 +0000
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.4.4-r13, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl http://gentoo.mirror.pw.edu.pl/ "
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X avahi dbus gnome gtk hal nvidia x86 xorg"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Code:
rc-update show

Code:

 bootmisc | boot                         
             checkfs | boot                         
           checkroot | boot                         
               clock | boot                         
         consolefont | boot                         
            hostname | boot                         
             keymaps | boot                         
               local |      default nonetwork       
          localmount | boot                         
             modules | boot                         
            net.eth0 |      default                 
              net.lo | boot                         
            netmount |      default                 
           rmnologin | boot                         
           syslog-ng |      default                 
             urandom | boot                         
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Mon Jun 22, 2009 5:09 pm    Post subject: Reply with quote

There are various issues with your setup. You need to use evdev to take care of your input devices (emerge evdev and add it to your make.conf like:INPUT_DEVICES="evdev" and enable evdev in your kernel) and you need hal and hald running.
You also need to remove the input section for mouse and keybord in your xorg.conf because hal in combination with evdev does it automatically since xorg 1.5.

Here are some helpful links that should get you started

Xorg 1.5 Upgrade Guide

Best upgrade method to Xserver1.5 with Hal and evdev
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Mon Jun 22, 2009 5:47 pm    Post subject: Reply with quote

loki99 wrote:
There are various issues with your setup. You need to use evdev to take care of your input devices (emerge evdev and add it to your make.conf like:INPUT_DEVICES="evdev" and enable evdev in your kernel) and you need hal and hald running.
You also need to remove the input section for mouse and keybord in your xorg.conf because hal in combination with evdev does it automatically since xorg 1.5.

Here are some helpful links that should get you started

Xorg 1.5 Upgrade Guide

Best upgrade method to Xserver1.5 with Hal and evdev


This is all correct, and I agree that it is the correct course to take. Input handling changed rather radically with 1.5 and you are not alone with this issue.
I feel I should tell you however that if you compile the X server without the hal flag, I think it will revert to the old behaviour, and your xorg.conf file will be valid again. (Again, not the recommended course of action)
Back to top
View user's profile Send private message
darek015
n00b
n00b


Joined: 20 Jun 2009
Posts: 31
Location: PL/Tarnów

PostPosted: Mon Jun 22, 2009 8:16 pm    Post subject: Reply with quote

I enable evdev in mykernel:
Code:

Device Drivers --->

Input device support --->

--- Input device support
[*]     Event interface


after that i add it to make.conf
Code:
 
INPUT_DEVICES="evdev keyboard mouse"


and I want to install evdev

Code:

emerge evdev


it says

Code:

emergr: there are no ebuilds to satisy "evdev"


and the same with emerge hal
Code:

emergr: there are no ebuilds to satisy "virtual/eject"
(dependency requied by "sys-apps/hal-0.5.11-r9" [ebuild])
(dependency requied by "hal" [argument])


I try:
Code:

# emerge --update --deep --newuse world
# emerge --depclean
# revdep-rebuild
# emerge --sync
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Mon Jun 22, 2009 8:45 pm    Post subject: Reply with quote

You are looking for ...
Code:
emerge -av x11-drivers/xf86-input-evdev sys-apps/hal
Back to top
View user's profile Send private message
vincent-
Retired Dev
Retired Dev


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Mon Jun 22, 2009 8:58 pm    Post subject: Reply with quote

darek015 wrote:

and I want to install evdev

Code:

emerge evdev


it says

Code:

emergr: there are no ebuilds to satisy "evdev"


Next time try "emerge --search evdev"

EDITED

I recommend you uninstall the nvidia drivers and add VIDEO_CARDS="nvidia" to you make.conf

Then, run "emerge --deep --update --newuse world"

And you can use this xorg.conf

Code:
Section "Files"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 85.0
    VertRefresh     50.0 - 160.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


If you want the latest nvidia drivers, you can add the following lines to /etc/portage/package.keywords

Code:
x11-drivers/nvidia-drivers
media-video/nvidia-settings


Last edited by vincent- on Mon Jun 22, 2009 9:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
loki99
Advocate
Advocate


Joined: 10 Oct 2003
Posts: 2056
Location: Vienna, €urope

PostPosted: Mon Jun 22, 2009 9:00 pm    Post subject: Reply with quote

peratu wrote:

Next time try "emerge --search evdev"

Or simply emerge eix and use
Code:
eix evdev
;)

Edit: But remmember to use eix-sync instead of emerge --sync so the data is up to date.
Back to top
View user's profile Send private message
darek015
n00b
n00b


Joined: 20 Jun 2009
Posts: 31
Location: PL/Tarnów

PostPosted: Tue Jun 23, 2009 9:53 am    Post subject: Reply with quote

I see small progress with my drivers, now every time when I use startx i see nvidia logo and after taht I see something like screen of puplit, but still I can not use mouse and keyboard.

I write step by stem what I do.

Code:

emerge eix
update-eix
eix evdev

emerge -av x11-drivers/xf86-input-evdev sys-apps/hal


emerge want some dependences (i dont remeber it), but i`ll install it with the required USe flags, after that:

Code:

emerge -av x11-drivers/xf86-input-evdev sys-apps/hal


everything looks good.

After taht I install nvidia drivers
Code:

sh NVIDIA-Linux-x86-96.43.11-pkg1


When I start system witk xorg.conf generated by nvidia installer after use startx, then i use my old xorg.conf it will be good i see screen of pulpit (but keyboard, and mouse doesn`t work too), when i use xorg.conf from user: peratu the situation was the same.

I want to check my files:
Code:

/etc/hal/fdi/policy/10-x11-input.fdi   
/etc/hal/fdi/policy/11-x11-synaptics.fdi

but i don`t have them.
Back to top
View user's profile Send private message
vincent-
Retired Dev
Retired Dev


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Tue Jun 23, 2009 12:11 pm    Post subject: Reply with quote

You need this in you /etc/make.conf

Code:
USE="hal" (and your other use flags)
VIDEO_CARDS="nvidia"
INPUT_DEVICES="evdev keyboard mouse"


Then, uninstall the nvidia drivers. First, unload the nvidia module.
Code:
rmmod nvidia
sh nvidia-installer.pkg --uninstall


Then, install xf86-input-evdev
Code:
emerge xf86-input-evdev


And finally run this:
Code:
emerge --deep --update --newuse world


This will recompile your xorg with hal support. Will install nvidia-drivers, keyboard and mouse drivers.

Install this package for synaptics:
Code:
emerge synaptics


Then, use my xorg.conf file

And then, start the X server.
Back to top
View user's profile Send private message
darek015
n00b
n00b


Joined: 20 Jun 2009
Posts: 31
Location: PL/Tarnów

PostPosted: Tue Jun 23, 2009 1:41 pm    Post subject: Reply with quote

My make.conf looks:
Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
MAKEOPTS="-j2"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"

GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl http://gentoo.mirror.pw.edu.pl/ "
USE="-qt3 -qt4 -arts -kde X dbus gtk gnome xorg hal nvidia avahi"
VIDEO_CARDS="nvidia"
INPUT_DEVICES="evdev mouse keyboard"


I run:
Code:

rmmod nvidia
sh nvidia-installer.pkg --uninstall
emerge xf86-input-evdev


and every thinh was godd, but whena i want to use:
Code:

emerge --deep --update --newuse world

few first paskages are install without any problems, but when emerge want to install sys-apps/findutils-4.4.0 it show:
Code:

Calculating dependencies   ##... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 41) sys-apps/findutils-4.4.0
 * findutils-4.4.0.tar.gz RMD160 SHA1 SHA256 size ;-) ...                [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking findutils-4.4.0.tar.gz to /var/tmp/portage/sys-apps/findutils-4.4.0/work
/var/tmp/portage/sys-apps/findutils-4.4.0/temp/environment: line 2450: sed: command not found
>>> Source unpacked in /var/tmp/portage/sys-apps/findutils-4.4.0/work
>>> Compiling source in /var/tmp/portage/sys-apps/findutils-4.4.0/work/findutils-4.4.0 ...
 #[33;01m*#[0m QA Notice: USE Flag 'userland_GNU' not in IUSE for sys-apps/findutils-4.4.0
 * econf: updating findutils-4.4.0/build-aux/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating findutils-4.4.0/build-aux/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-nls --libexecdir=/usr/lib/find --program-prefix=g --without-included-regex
./configure: line 559: sed: command not found
./configure: line 1088: sed: command not found
./configure: line 1313: sed: command not found
./configure: line 1701: sed: command not found
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
./configure: line 2268: sed: command not found
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... ./configure: line 2376: sed: command not found
yes
configure: error: cannot run /bin/sh build-aux/config.sub
./configure: line 2680: sed: command not found
./configure: line 2626: sed: command not found

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-apps/findutils-4.4.0/work/findutils-4.4.0/config.log
 #[31;01m*#[0m
 #[31;01m*#[0m ERROR: sys-apps/findutils-4.4.0 failed.
 #[31;01m*#[0m Call stack:
 #[31;01m*#[0m               ebuild.sh, line   49:  Called src_compile
 #[31;01m*#[0m             environment, line 2445:  Called econf '--disable-nls' '--libexecdir=/usr/lib/find' '--program-prefix=g' '--without-included-regex'
 #[31;01m*#[0m               ebuild.sh, line  534:  Called die
 #[31;01m*#[0m The specific snippet of code:
/usr/lib/portage/bin/isolated-functions.sh: line 84: sed: command not found
/usr/lib/portage/bin/isolated-functions.sh: line 97: sed: command not found
 #[31;01m*#[0m  The die message:
 #[31;01m*#[0m   econf failed
 #[31;01m*#[0m
 #[31;01m*#[0m If you need support, post the topmost build error, and the call stack if relevant.
 #[31;01m*#[0m A complete build log is located at '/var/tmp/portage/sys-apps/findutils-4.4.0/temp/build.log'.
 #[31;01m*#[0m The ebuild environment file is located at '/var/tmp/portage/sys-apps/findutils-4.4.0/temp/environment'.
 #[31;01m*#[0m

>>> Failed to emerge sys-apps/findutils-4.4.0, Log file:

>>>  '/var/tmp/portage/sys-apps/findutils-4.4.0/temp/build.log'

 * Messages for package sys-apps/findutils-4.4.0:
Back to top
View user's profile Send private message
vincent-
Retired Dev
Retired Dev


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Tue Jun 23, 2009 2:45 pm    Post subject: Reply with quote

NOTE: sh nvidia-installer.pkg --uninstall will not work. It's only an example. You must run this:
Code:
sh NVIDIA-Linux-x86-96.43.11-pkg1 --uninstall


Well, cotinue...

The problem is: sed: command not found

You don't have sed? This is very strange because is a basic system tool.


Ok, first, try:
Code:
emerge app-portage/gentoolkit
revdep-rebuild


And then, retry with:
Code:
emerge --deep --update --newuse world


If it not works, try this:
Code:
emerge sys-apps/sed


And then, retry:
Code:
emerge --deep --update --newuse world
Back to top
View user's profile Send private message
darek015
n00b
n00b


Joined: 20 Jun 2009
Posts: 31
Location: PL/Tarnów

PostPosted: Tue Jun 23, 2009 3:47 pm    Post subject: Reply with quote

I did it earlier, I only pase command from post before:)
Quote:

NOTE: sh nvidia-installer.pkg --uninstall will not work. It's only an example. You must run this:
Code:

sh NVIDIA-Linux-x86-96.43.11-pkg1 --uninstall



When I try do:
Code:

emerge app-portage/gentoolkit
revdep-rebuild
emerge --deep --update --newuse world


but I have this error when i do emerge --deep --update --newuse world:

build.log
Code:

>>> Unpacking source...
>>> Unpacking sed-4.1.5.tar.gz to /var/tmp/portage/sys-apps/sed-4.1.5-r1/work
 #[32;01m*#[0m Applying sed-4.1.4-makeinfo-c-locale.patch ...
#[A#[72C  #[34;01m[ #[32;01mok#[34;01m ]#[0m
 #[32;01m*#[0m Applying sed-4.1.5-alloca.patch ...
#[A#[72C  #[34;01m[ #[32;01mok#[34;01m ]#[0m
 #[32;01m*#[0m Applying sed-4.1.5-prototypes.patch ...
#[A#[72C  #[34;01m[ #[32;01mok#[34;01m ]#[0m
>>> Source unpacked in /var/tmp/portage/sys-apps/sed-4.1.5-r1/work
>>> Compiling source in /var/tmp/portage/sys-apps/sed-4.1.5-r1/work/sed-4.1.5 ...
Creating basic config.h...
+ rm -f 'lib/*.o' 'sed/*.o' sed/sed
+ cd lib
+ rm -f regex.h
+ cp regex_.h regex.h
+ cc -DHAVE_CONFIG_H -I.. -I. -c alloca.c
+ cc -DHAVE_CONFIG_H -I.. -I. -c getline.c
In file included from /usr/include/bits/types.h:31,
                 from /usr/include/sys/types.h:31,
                 from getline.c:7:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/stddef.h:214: error: duplicate 'unsigned'
In file included from getline.c:7:
/usr/include/sys/types.h:110: error: two or more data types in declaration specifiers
getline.c: In function 'getline':
getline.c:58: warning: incompatible implicit declaration of built-in function 'malloc'
+ exit 1
 #[31;01m*#[0m
 #[31;01m*#[0m ERROR: sys-apps/sed-4.1.5-r1 failed.
 #[31;01m*#[0m Call stack:
 #[31;01m*#[0m               ebuild.sh, line   49:  Called src_compile
 #[31;01m*#[0m             environment, line 2459:  Called src_bootstrap_sed
 #[31;01m*#[0m             environment, line 2451:  Called die
 #[31;01m*#[0m The specific snippet of code:
/usr/lib/portage/bin/isolated-functions.sh: line 84: sed: command not found
/usr/lib/portage/bin/isolated-functions.sh: line 97: sed: command not found
 #[31;01m*#[0m  The die message:
 #[31;01m*#[0m   couldnt bootstrap
 #[31;01m*#[0m
 #[31;01m*#[0m If you need support, post the topmost build error, and the call stack if relevant.
 #[31;01m*#[0m A complete build log is located at '/var/tmp/portage/sys-apps/sed-4.1.5-r1/temp/build.log'.
 #[31;01m*#[0m The ebuild environment file is located at '/var/tmp/portage/sys-apps/sed-4.1.5-r1/temp/environment'.
 #[31;01m*#[0m


and when I want to do

Code:

emerge sys-apps/sed

I have this error:


build.log
Code:

>>> Unpacking source...
>>> Unpacking sed-4.1.5.tar.gz to /var/tmp/portage/sys-apps/sed-4.1.5-r1/work
 #[32;01m*#[0m Applying sed-4.1.4-makeinfo-c-locale.patch ...
#[A#[72C  #[34;01m[ #[32;01mok#[34;01m ]#[0m
 #[32;01m*#[0m Applying sed-4.1.5-alloca.patch ...
#[A#[72C  #[34;01m[ #[32;01mok#[34;01m ]#[0m
 #[32;01m*#[0m Applying sed-4.1.5-prototypes.patch ...
#[A#[72C  #[34;01m[ #[32;01mok#[34;01m ]#[0m
>>> Source unpacked in /var/tmp/portage/sys-apps/sed-4.1.5-r1/work
>>> Compiling source in /var/tmp/portage/sys-apps/sed-4.1.5-r1/work/sed-4.1.5 ...
Creating basic config.h...
+ rm -f 'lib/*.o' 'sed/*.o' sed/sed
+ cd lib
+ rm -f regex.h
+ cp regex_.h regex.h
+ cc -DHAVE_CONFIG_H -I.. -I. -c alloca.c
+ cc -DHAVE_CONFIG_H -I.. -I. -c getline.c
In file included from /usr/include/bits/types.h:31,
                 from /usr/include/sys/types.h:31,
                 from getline.c:7:
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include/stddef.h:214: error: duplicate 'unsigned'
In file included from getline.c:7:
/usr/include/sys/types.h:110: error: two or more data types in declaration specifiers
getline.c: In function 'getline':
getline.c:58: warning: incompatible implicit declaration of built-in function 'malloc'
+ exit 1
 #[31;01m*#[0m
 #[31;01m*#[0m ERROR: sys-apps/sed-4.1.5-r1 failed.
 #[31;01m*#[0m Call stack:
 #[31;01m*#[0m               ebuild.sh, line   49:  Called src_compile
 #[31;01m*#[0m             environment, line 2459:  Called src_bootstrap_sed
 #[31;01m*#[0m             environment, line 2451:  Called die
 #[31;01m*#[0m The specific snippet of code:
/usr/lib/portage/bin/isolated-functions.sh: line 84: sed: command not found
/usr/lib/portage/bin/isolated-functions.sh: line 97: sed: command not found
 #[31;01m*#[0m  The die message:
 #[31;01m*#[0m   couldnt bootstrap
 #[31;01m*#[0m
 #[31;01m*#[0m If you need support, post the topmost build error, and the call stack if relevant.
 #[31;01m*#[0m A complete build log is located at '/var/tmp/portage/sys-apps/sed-4.1.5-r1/temp/build.log'.
 #[31;01m*#[0m The ebuild environment file is located at '/var/tmp/portage/sys-apps/sed-4.1.5-r1/temp/environment'.
 #[31;01m*#[0m
Back to top
View user's profile Send private message
vincent-
Retired Dev
Retired Dev


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Tue Jun 23, 2009 6:59 pm    Post subject: Reply with quote

Uhm..., it's very strange. You really don't have sed?

What is the result when you type "which sed" in a terminal?

The result must be this:
Code:
peratu@fujitsu ~ $ which sed
/bin/sed


If you don't have sed, you can follow this steps.

1º - Download the latest stage3 tarball and put it into / directory.
2º - Run this commands:
Code:
tar -x bin/sed -vjpf stage3.tar.bz2
tar -x usr/share/doc/sed-4.1.5-r1/ -vjpf stage3.tar.bz2
tar -x usr/share/info/sed.info-1.bz2 -vjpf stage3.tar.bz2
tar -x usr/share/info/sed.info-2.bz2 -vjpf stage3.tar.bz2
tar -x usr/share/info/sed.info.bz2 -vjpf stage3.tar.bz2
tar -x usr/share/locale/<your language>/LC_MESSAGES/sed.mo -vjpf stage3.tar.bz2
tar -x usr/share/man/man1/sed.1.bz2 -vjpf stage3.tar.bz2
tar -x var/db/pkg/sys-apps/sed-4.1.5-r1/ -vjpf stage3.tar.bz2


Now, you have sed installed and should be able to remerge sed and the rest of things you need:
Code:
emerge sed
emerge --deep --update --newuse world
Back to top
View user's profile Send private message
darek015
n00b
n00b


Joined: 20 Jun 2009
Posts: 31
Location: PL/Tarnów

PostPosted: Tue Jun 23, 2009 8:36 pm    Post subject: Reply with quote

I tryed what you talk:
Code:

wchich sed


Code:

which: no sed in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc/bin/4.1.2)


I downloaded:
Code:

stage3-i686-2008.0.tar.bz2

and i copy it to: /boot, and when I try:
Code:

tar -x bin/sed -vjpf stage3.tar.bz2

I see:
Code:

tar: bin/sed: Not found in archive
tar: Error exit deleyed from previous errors
Back to top
View user's profile Send private message
vincent-
Retired Dev
Retired Dev


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Tue Jun 23, 2009 9:09 pm    Post subject: Reply with quote

darek015 wrote:
I tryed what you talk:
Code:
wchich sed


Code:
which: no sed in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc/bin/4.1.2)


Ok, you don't have sed.

darek015 wrote:

I downloaded:
Code:

stage3-i686-2008.0.tar.bz2

and i copy it to: /boot, and when I try:
Code:

tar -x bin/sed -vjpf stage3.tar.bz2

I see:
Code:

tar: bin/sed: Not found in archive
tar: Error exit deleyed from previous errors


Wrong!!! You have to put the tarball into / directory, not /boot
Code:
mv stage3-i686-2008.0.tar.bz2 /


Then, type cd / and you will be in the / directory. Now, run this commands:
Code:
tar -x var/db/pkg/sys-apps/sed-4.1.5/ -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/man/man1p/sed.1p.bz2 -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/man/man1/sed.1.bz2 -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/locale/<your language>/LC_MESSAGES/sed.mo -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/locale/<your language>_<YOUR LANGUAGE>/LC_MESSAGES/sed.mo -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/info/sed.info.bz2 -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/info/sed.info-1.bz2 -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/info/sed.info-2.bz2 -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/doc/sed-4.1.5/ -vjpf stage3-i686-2008.0.tar.bz2
tar -x bin/sed -vjpf stage3-i686-2008.0.tar.bz2
Back to top
View user's profile Send private message
darek015
n00b
n00b


Joined: 20 Jun 2009
Posts: 31
Location: PL/Tarnów

PostPosted: Tue Jun 23, 2009 9:34 pm    Post subject: Reply with quote

Nothing is help
I do as you said:
Quote:

Wrong!!! You have to put the tarball into / directory, not /boot

Code:
mv stage3-i686-2008.0.tar.bz2 /



Then, type cd / and you will be in the / directory. Now, run this commands:
Code:
 
tar -x var/db/pkg/sys-apps/sed-4.1.5/ -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/man/man1p/sed.1p.bz2 -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/man/man1/sed.1.bz2 -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/locale/<your language>/LC_MESSAGES/sed.mo -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/locale/<your language>_<YOUR LANGUAGE>/LC_MESSAGES/sed.mo -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/info/sed.info.bz2 -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/info/sed.info-1.bz2 -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/info/sed.info-2.bz2 -vjpf stage3-i686-2008.0.tar.bz2
tar -x usr/share/doc/sed-4.1.5/ -vjpf stage3-i686-2008.0.tar.bz2
tar -x bin/sed -vjpf stage3-i686-2008.0.tar.bz2

but i see the same messages:
Code:

tar -x var/db/pkg/sys-apps/sed-4.1.5/ -vjpf stage3-i686-2008.0.tar.bz2

tar: var/db/pkg/sys-apps/sed-4.1.5: Not found in arcive
tar: Error exit deleyed from previous errors

tar -x var/db/pkg/sys-apps/sed-4.1.5/ -vjpf stage3-i686-2008.0.tar.bz2

tar: bin/sed: Not found in archive
tar: Error exit deleyed from previous errors
Back to top
View user's profile Send private message
vincent-
Retired Dev
Retired Dev


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Tue Jun 23, 2009 9:51 pm    Post subject: Reply with quote

Ok, don't worry. We can try another thing.

First, as root, make a directory and move the stage3 tarball to it.

Code:
mkdir /test/
mv stage3-i686-2008.0.tar.bz2 /test/


Now, move into this directory and extract the tarball
Code:
cd /test/
tar xvjpf stage3-i686-2008.0.tar.bz2


Now, make this commands:
Code:
cp -Rp /test/var/db/pkg/sys-apps/sed-4.1.5/ /
cp -p /test/usr/share/man/man1p/sed.1p.bz2 /
cp -p /test/usr/share/man/man1/sed.1.bz2 /
cp -p /test/usr/share/locale/<your language>/LC_MESSAGES/sed.mo /
cp -p /test/usr/share/locale/<your language>_<YOUR LANGUAGE>/LC_MESSAGES/sed.mo /
cp -p /test/usr/share/info/sed.info.bz2 /
cp -p /test/usr/share/info/sed.info-1.bz2 /
cp -p /test/usr/share/info/sed.info-2.bz2 /
cp -Rp /test/usr/share/doc/sed-4.1.5/ /
cp -p /test/bin/sed /
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Tue Jun 23, 2009 10:21 pm    Post subject: Reply with quote

darek015 wrote:

Code:

tar -x var/db/pkg/sys-apps/sed-4.1.5/ -vjpf stage3-i686-2008.0.tar.bz2

tar: var/db/pkg/sys-apps/sed-4.1.5: Not found in arcive
tar: Error exit deleyed from previous errors

tar -x var/db/pkg/sys-apps/sed-4.1.5/ -vjpf stage3-i686-2008.0.tar.bz2

tar: bin/sed: Not found in archive
tar: Error exit deleyed from previous errors

may ask why you keep assuming it's sed-4.1.5 in that stage3 ? Could be a different version.
Try
Code:

ls -d /var/db/pkg/sys-apps/sed*
ls -d /test/var/db/pkg/sys-apps/sed* (if you wish try the latest suggestion peratu gave you)
Back to top
View user's profile Send private message
vincent-
Retired Dev
Retired Dev


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Tue Jun 23, 2009 10:27 pm    Post subject: Reply with quote

krinn wrote:
may ask why you keep assuming it's sed-4.1.5 in that stage3 ? Could be a different version.


Because I have downloaded the same stage3 tarball to check it :-)

And you can see the stage3 content here: ftp://gentoo.arcticnetwork.ca/pub/gentoo/releases/x86/2008.0/stages/stage3-i686-2008.0.tar.bz2.CONTENTS

The sed version is 4.1.5
Back to top
View user's profile Send private message
darek015
n00b
n00b


Joined: 20 Jun 2009
Posts: 31
Location: PL/Tarnów

PostPosted: Wed Jun 24, 2009 7:55 am    Post subject: Reply with quote

I check sed version from:, and it`s 4.1.5.
Back to top
View user's profile Send private message
vincent-
Retired Dev
Retired Dev


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Wed Jun 24, 2009 8:35 am    Post subject: Reply with quote

Good. Now, try those commands to install sed and if you don't have any problem, continue with emerge sed and emerge --deep --update --newuse world
Back to top
View user's profile Send private message
darek015
n00b
n00b


Joined: 20 Jun 2009
Posts: 31
Location: PL/Tarnów

PostPosted: Wed Jun 24, 2009 11:58 am    Post subject: Reply with quote

Emerging went smuthly until binutils-2.28-r3:
Code:

*Fixingmisc issues in configure files
/var/tep/portage/sys-devel/binutils-2.18-r3/temp/environment: line 3245: find: command not found
Back to top
View user's profile Send private message
vincent-
Retired Dev
Retired Dev


Joined: 13 Jan 2007
Posts: 415
Location: Valencia (Spain)

PostPosted: Wed Jun 24, 2009 12:06 pm    Post subject: Reply with quote

Wow, you don't have find too?????

Seems your system is broken, my friend.

If I were you, I would download the latest stage3 tarball.
Code:
cd /
wget http://mirror.usu.edu/mirrors/gentoo/releases/x86/current/stage3-i686-20090623.tar.bz2


Then, I would untar the whole tarball
Code:
tar xvjpf stage3-i686-20090623.tar.bz2


And then, I would run
Code:
emerge --sync && emerge --deep --update --newuse world
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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