Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7332 - bash (was: file is to large)
Summary: bash (was: file is to large)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-01 10:58 UTC by Jan Schubert
Modified: 2012-09-21 13:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Schubert 2002-09-01 10:58:08 UTC
For some hours i'm not able to emerge anything. My portage is 2.0.33_p1, before 
i did some emergings (bash, readline, textutils: 
   
toral root # emerge textutils    
Calculating dependencies ...done!    
>>> emerge sys-apps/textutils-2.0.21 to /    
/usr/sbin/ebuild.sh: source:   
/usr/portage/sys-apps/textutils/textutils-2.0.21.ebuild: file is too large    
   
!!! ERROR: The ebuild did not complete successfully.    
!!! Function , Line 806, Exitcode 1    
!!! error sourcing ebuild   
  
After shutting down the system i'm even not able to boot again. All i get is:   
  
INIT: version 2.84 booting   
/sb rc: source: /sbin/functions.sh: file too large   
  
If i boot from cd, mount the system manually and do a chroot i'm not able to do  
any emerging. Even if I do an source /etc/profile i got this damn error...
Comment 1 Markus Bertheau (RETIRED) gentoo-dev 2002-09-01 11:33:48 UTC
Hi Jan,

it is likely that you included -malign-double in your CFLAGS, which someone else
found to break bash. For reference have a look at

http://archive.linuxfromscratch.org/mail-archives/lfs-support/2002/02/0234.html

HTH

Markus
Comment 2 Jan Schubert 2002-09-01 13:22:07 UTC
I can't belive it, you're absolutely right. Bingo. I found it out (before  
reading your post) and wanted to post it right now. Thx a lot anyway. My  
CFLAGS looked like:  
  
CFLAGS="-march=pentium4 -O4 -pipe -fforce-addr -fomit-frame-pointer  
-funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions  
-falign-loops -falign-jumps -s -fexpensive-optimizations -malign-double  
-fschedule-insns2"  
  
Some testing with changing the flags figured out that indeed -malign-double  
was the bad guy. Remiving it solved all my problems. Congratulations.  
  
I recomend to include this fact in the the ebuild for bash (if not in all  
ebuilds od as comment in make.conf). Something like   
  
export CFLAGS="${CFLAGS/-malign-double/}"  
  
should do the trick.  
  
Thx a lot,  
Jan  
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-09-01 14:02:43 UTC
great work, Markus.  ebuilds are updated in portage to filter out this flag from
bash
Comment 4 Alec Salazar 2012-09-21 13:09:49 UTC
(In reply to comment #1)
> Hi Jan,
> 
> it is likely that you included -malign-double in your CFLAGS, which someone
> else
> found to break bash. For reference have a look at
> 
> http://archive.linuxfromscratch.org/mail-archives/lfs-support/2002/02/0234.
> html
> 
> HTH
> 
> Markus

updated link to thread: http://www.linuxfromscratch.org/pipermail/lfs-support/2002-February/003149.html