Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Embedded gentoo: emerge world fails

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
thehog
n00b
n00b
Posts: 19
Joined: Thu Mar 09, 2006 3:09 am

Embedded gentoo: emerge world fails

  • Quote

Post by thehog » Thu Mar 09, 2006 3:20 am

Hi,

I'm installing embedded gentoo (http://gentoo-wiki.com/TinyGentoo) on an i686. I followed the guide precisely and the process works ok, until the last step of emerge world. Gcc emerge fails on a patch. The output is attached below. What is wrong here? I tried masking the gcc versions >=3.3.6 but that does not work either (same error, different patch.)

linux root # emerge -auDN world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild NS ] sys-devel/gcc-3.4.5

Do you want me to merge these packages? [Yes/No]
>>> emerge (1 of 1) sys-devel/gcc-3.4.5 to /
BusyBox v1.00 (2006.03.09-09:49+0000) multi-call binary

Usage: find [PATH...] [EXPRESSION]

Search for files in a directory hierarchy. The default PATH is
the current directory; default EXPRESSION is '-print'

EXPRESSION may consist of:
-follow Dereference symbolic links.
-name PATTERN File name (leading directories removed) matches PATTERN.
-print Print (default and assumed).

-type X Filetype matches X (where X is one of: f,d,l,b,c,...)
-perm PERMS Permissions match any of (+NNN); all of (-NNN);
or exactly (NNN)
-mtime TIME Modified time is greater than (+N); less than (-N);
or exactly (N) days
-newer FILE Modified time is more recent than FILE's
-inum N File has inode number N

>>> md5 files ;-) gcc-3.3.5-r1.ebuild
>>> md5 files ;-) gcc-3.2.3-r4.ebuild
>>> md5 files ;-) gcc-3.1.1-r2.ebuild
>>> md5 files ;-) gcc-3.3.6.ebuild
>>> md5 files ;-) gcc-3.4.5-r1.ebuild
// ...
// bla bla bla
// ...
>>> md5 files ;-) files/stubs/gcc-4.0-htb-stub.patch
>>> md5 files ;-) files/stubs/gcc-3.4-ssp-stub.patch
>>> md5 files ;-) files/stubs/gcc-3.3-ssp-stub.patch
>>> md5 files ;-) files/stubs/gcc-3.4-htb-stub.patch
>>> md5 files ;-) files/stubs/gcc-4.0-ssp-stub.patch
>>> md5 src_uri ;-) gcc-3.4.5.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.5-ssp-1.0.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.5-uclibc-patches-1.0.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.5-patches-1.2.tar.bz2
>>> md5 src_uri ;-) gcc-3.4.5-piepatches-v8.7.9.tar.bz2
>>> Unpacking source...
>>> Unpacking gcc-3.4.5.tar.bz2 to /var/tmp/portage/gcc-3.4.5/work
>>> Unpacking gcc-3.4.5-patches-1.2.tar.bz2 to /var/tmp/portage/gcc-3.4.5/work
>>> Unpacking gcc-3.4.5-uclibc-patches-1.0.tar.bz2 to /var/tmp/portage/gcc-3.4.5/work
>>> Unpacking gcc-3.4.5-ssp-1.0.tar.bz2 to /var/tmp/portage/gcc-3.4.5/work
>>> Unpacking gcc-3.4.5-piepatches-v8.7.9.tar.bz2 to /var/tmp/portage/gcc-3.4.5/work
* Applying Gentoo patches ...
* 00_all_alpha-mieee-default.patch ...

* Failed Patch: 00_all_alpha-mieee-default.patch !
* ( /var/tmp/portage/gcc-3.4.5/work/patch/00_all_alpha-mieee-default.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/gcc-3.4.5/temp/00_all_alpha-mieee-default.patch-2950.out


!!! ERROR: sys-devel/gcc-3.4.5 failed.
!!! Function epatch, Line 350, Exitcode 0
!!! Failed Patch: 00_all_alpha-mieee-default.patch!
!!! If you need support, post the topmost build error, NOT this status message.
Top
thehog
n00b
n00b
Posts: 19
Joined: Thu Mar 09, 2006 3:09 am

  • Quote

Post by thehog » Thu Mar 09, 2006 3:21 am

Note,

make.conf contains (as instructed in the TinyGentoo manual):

linux root # cat /etc/make.conf
# 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="-Os -pipe"
CHOST="i386-gentoo-linux-uclibc"
CXXFLAGS="-Os -pipe"

FEATURES="ccache"

USE="make-symlinks minimal"
Top
jmbsvicetto
Moderator
Moderator
User avatar
Posts: 4735
Joined: Wed Apr 27, 2005 4:33 pm
Location: Angra do Heroísmo (PT)

Re: Embedded gentoo: emerge world fails

  • Quote

Post by jmbsvicetto » Thu Mar 09, 2006 3:56 am

Hi and welcome to the forums.
thehog wrote:

Code: Select all

 * Failed Patch: 00_all_alpha-mieee-default.patch !
 *  ( /var/tmp/portage/gcc-3.4.5/work/patch/00_all_alpha-mieee-default.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/gcc-3.4.5/temp/00_all_alpha-mieee-default.patch-2950.out
Please post the contents of the file as instructed by emerge. Since this is an emerge error, you should also post the output of emerge --info.
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Top
thehog
n00b
n00b
Posts: 19
Joined: Thu Mar 09, 2006 3:09 am

  • Quote

Post by thehog » Thu Mar 09, 2006 2:39 pm

linux / # emerge --info
Portage 2.0.54 (uclibc/x86/2005.1/2.4, gcc-3.3.5-20050130, uclibc-0.9.28-r0, 2.6.11.4-20a-default i686)
=================================================================
System uname: 2.6.11.4-20a-default i686 Intel(R) Pentium(R) M processor 1500MHz
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python: 2.3.4-r1, 2.4.2
sys-apps/sandbox: 1.2.12
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-Os -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks nodoc noinfo noman sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/dis ... ons/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 berkdb bitmap-fonts bzip2 dri expat make-symlinks minimal ncurses perl python readline truetype-fonts type1-fonts uclibc udev zlib userland_GNU kernel_linux elibc_uclibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Top
thehog
n00b
n00b
Posts: 19
Joined: Thu Mar 09, 2006 3:09 am

  • Quote

Post by thehog » Thu Mar 09, 2006 2:40 pm

linux / # cat /var/tmp/portage/gcc-3.4.5/temp/00_all_alpha-mieee-default.patch-7679.out
***** 00_all_alpha-mieee-default.patch *****

============================================

PATCH COMMAND: patch -p0 -g0 --no-backup-if-mismatch < /var/tmp/portage/gcc-3.4.5/work/patch/00_all_alpha-mieee-default.patch

============================================
patch: Malformed line --- gcc/config/alpha/alpha.h
: Success
patch: Malformed line +++ gcc/config/alpha/alpha.h
: Success
/usr/portage/eclass/eutils.eclass: line 236: 7773 Done cat ${PATCH_TARGET}
7774 Segmentation fault | patch -p${count} ${popts} --dry-run -f
/usr/portage/eclass/eutils.eclass: line 158: estatus: 0139: value too great for base (error token is "0139")
============================================

PATCH COMMAND: patch -p1 -g0 --no-backup-if-mismatch < /var/tmp/portage/gcc-3.4.5/work/patch/00_all_alpha-mieee-default.patch

============================================
patch: Malformed line --- gcc/config/alpha/alpha.h
: Success
patch: Malformed line +++ gcc/config/alpha/alpha.h
: Success
/usr/portage/eclass/eutils.eclass: line 236: 7782 Done cat ${PATCH_TARGET}
7783 Segmentation fault | patch -p${count} ${popts} --dry-run -f
/usr/portage/eclass/eutils.eclass: line 158: (estatus: 0139: value too great for base (error token is "0139")
============================================

PATCH COMMAND: patch -p2 -g0 --no-backup-if-mismatch < /var/tmp/portage/gcc-3.4.5/work/patch/00_all_alpha-mieee-default.patch

============================================
patch: Malformed line --- gcc/config/alpha/alpha.h
: Success
patch: Malformed line +++ gcc/config/alpha/alpha.h
: Success
/usr/portage/eclass/eutils.eclass: line 236: 7791 Done cat ${PATCH_TARGET}
7792 Segmentation fault | patch -p${count} ${popts} --dry-run -f
/usr/portage/eclass/eutils.eclass: line 158: �estatus: 0139: value too great for base (error token is "0139")
============================================

PATCH COMMAND: patch -p3 -g0 --no-backup-if-mismatch < /var/tmp/portage/gcc-3.4.5/work/patch/00_all_alpha-mieee-default.patch

============================================
patch: Malformed line --- gcc/config/alpha/alpha.h
: Success
patch: Malformed line +++ gcc/config/alpha/alpha.h
: Success
/usr/portage/eclass/eutils.eclass: line 236: 7800 Done cat ${PATCH_TARGET}
7801 Segmentation fault | patch -p${count} ${popts} --dry-run -f
/usr/portage/eclass/eutils.eclass: line 158: ▒estatus: 0139: value too great for base (error token is "0139")
============================================

PATCH COMMAND: patch -p4 -g0 --no-backup-if-mismatch < /var/tmp/portage/gcc-3.4.5/work/patch/00_all_alpha-mieee-default.patch

============================================
patch: Malformed line --- gcc/config/alpha/alpha.h
: Success
patch: Malformed line +++ gcc/config/alpha/alpha.h
: Success
/usr/portage/eclass/eutils.eclass: line 236: 7809 Done cat ${PATCH_TARGET}
7810 Segmentation fault | patch -p${count} ${popts} --dry-run -f
/usr/portage/eclass/eutils.eclass: line 158: estatus: 0139: value too great for base (error token is "0139")
Top
thehog
n00b
n00b
Posts: 19
Joined: Thu Mar 09, 2006 3:09 am

  • Quote

Post by thehog » Thu Mar 09, 2006 2:49 pm

Oh,

And I had to set the following env during the emerge world at some point in the beginning:

export VERY_BRAVE_OR_VERY_DUMB=yes

Else the emerge wouldn't continue. It was warning that "make-symlinks" in USE flags was not a good idea, but I figured that that would have to do with the busybox package. Busybox uses symlinks to replace many utils. Altough there was no mention about this in the TinyGentoo documentation, I set the env variable and ran emerge world again.
.
Top
thehog
n00b
n00b
Posts: 19
Joined: Thu Mar 09, 2006 3:09 am

  • Quote

Post by thehog » Thu Mar 09, 2006 9:02 pm

http://gentoo-wiki.com/Talk:TinyGentoo# ... ks_problem

Trying again to see if this solves the problem
Top
jmbsvicetto
Moderator
Moderator
User avatar
Posts: 4735
Joined: Wed Apr 27, 2005 4:33 pm
Location: Angra do Heroísmo (PT)

  • Quote

Post by jmbsvicetto » Thu Mar 09, 2006 11:24 pm

If you suspect the problem might be related to the USE flags, you can try the following:

Code: Select all

USE="" emerge -av gcc
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Top
nixnut
Bodhisattva
Bodhisattva
User avatar
Posts: 10974
Joined: Fri Apr 09, 2004 1:43 pm
Location: the dutch mountains

  • Quote

Post by nixnut » Fri Mar 10, 2006 6:15 pm

thehog wrote:Oh,

And I had to set the following env during the emerge world at some point in the beginning:

export VERY_BRAVE_OR_VERY_DUMB=yes

Else the emerge wouldn't continue. It was warning that "make-symlinks" in USE flags was not a good idea, but I figured that that would have to do with the busybox package. Busybox uses symlinks to replace many utils. Altough there was no mention about this in the TinyGentoo documentation, I set the env variable and ran emerge world again.
.
uclibc/x86/2005.1/2.4
I suggest you change your system profile to something less experimental.
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Top
Post Reply

9 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy