Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 197109 - sandbox 1.12.18-r1 does not compile due to broken egrep
Summary: sandbox 1.12.18-r1 does not compile due to broken egrep
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-26 06:32 UTC by Armin Mohring
Modified: 2007-11-02 07:38 UTC (History)
1 user (show)

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


Attachments
emerge --info (log,3.03 KB, text/plain)
2007-10-26 06:36 UTC, Armin Mohring
Details
build log (sys-apps:sandbox-1.2.18.1-r2:20071026-062738.log,7.85 KB, text/plain)
2007-10-26 06:42 UTC, Armin Mohring
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Armin Mohring 2007-10-26 06:32:59 UTC
emerge sandbox results in an error

Reproducible: Always

Steps to Reproduce:
1.emerge -av sandbox
2.check output
3.

Actual Results:  
sandbox does not compile

Expected Results:  
sandbox does compile
Comment 1 Armin Mohring 2007-10-26 06:36:31 UTC
Created attachment 134398 [details]
emerge --info
Comment 2 Armin Mohring 2007-10-26 06:42:30 UTC
Created attachment 134400 [details]
build log
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-26 08:14:47 UTC
<snip>
using -static in CFLAGS is stupid
</snip>

Anything unclear about the message?
Comment 4 Armin Mohring 2007-10-26 09:10:46 UTC
-s suppresses the compiler output. Not static.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-10-26 09:17:06 UTC
So, you want to tell us that the following produces a match on your system?!

echo "-mtune=k8 -march=k8 -O2 -msse2 -m80387 -pipe -s" | egrep -e -static
Comment 6 Armin Mohring 2007-10-26 09:45:44 UTC
By the way:

-mtune: ABI and scheduling
-march: architecture
-O2: optimization level 2
-msse2: enables mmx, mmxext, 3dnow,..., msse2
-m80387: enables 80387
-pipe: pipie
-s: supresses compiler output

Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-10-26 09:57:13 UTC
I can read `man gcc` just fine, thanks. :) On that note, -msse2 is implied by -march=k8. ;)

Now, could you answer comment #5 instead?
Comment 8 Armin Mohring 2007-10-26 10:58:37 UTC
Answer to comment#5:

yes, of course.
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-10-26 11:02:44 UTC
(In reply to comment #8)
> yes, of course.

Well, then you have pretty screwed grep. Which version do you have installed? 

Comment 10 Armin Mohring 2007-10-26 14:50:37 UTC
Which version of what?
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-10-26 18:19:14 UTC
(In reply to comment #10)
> Which version of what?

Of sys-apps/grep of course.
Comment 12 Armin Mohring 2007-10-31 05:45:03 UTC
version of grep: 2.5.1a-r1.

It is not possible to update grep to ~amd64 (version 2.5.3)
Comment 13 Armin Mohring 2007-10-31 05:45:33 UTC
last comment
Comment 14 Roy Marples (RETIRED) gentoo-dev 2007-10-31 07:45:32 UTC
(In reply to comment #6)
> -s: supresses compiler output

Wrong.
From the man page
-s  Remove all symbol table and relocation information from the executable.

In other words you probably don't need that as FEATURES handling the striping.
Comment 15 Armin Mohring 2007-10-31 07:47:58 UTC
(In reply to comment #14)
> (In reply to comment #6)
> > -s: supresses compiler output
> 
> Wrong.
> From the man page
> -s  Remove all symbol table and relocation information from the executable.
> 
> In other words you probably don't need that as FEATURES handling the striping.
> 
Which man page: man page of ld or gcc?
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2007-10-31 07:54:37 UTC
(In reply to comment #15)
> Which man page: man page of ld or gcc?

man gcc of course, pretty easy to check :) Not that it'd be much different w/ ld (omit all symbol information from the output file). If you want less noise, stick -s to MAKEOPTS, not to C[XX]FLAGS/LDFLAGS.

Not that it'd make your egrep any less broken...
Comment 17 Armin Mohring 2007-11-01 06:53:27 UTC
I am using the ld for linking.
The command -s in CFLAGS is correct.
Comment 18 SpanKY gentoo-dev 2007-11-01 18:58:51 UTC
-s in CFLAGS is still stupid as all stripping is done for you already

rather than all this indirect bs, state clearly ... what does this show on your system:

echo "-mtune=k8 -march=k8 -O2 -msse2 -m80387 -pipe -s" | egrep -e -static
echo $?

if you get "0" instead of "1", then try in LC_ALL=C.  if you still get "0", then rebuild grep without retarded flags:
CFLAGS=""
LDFLAGS=""
Comment 19 Armin Mohring 2007-11-02 07:38:17 UTC
O.K. I have removed -s from CFLAGS.