Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 26239
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: J. Ellis <jje@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Chuck Brewer <cbrewer@stealthaccess.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 26239 depends on: Show dependency tree
Bug 26239 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-08-08 20:51 0000
the CFLAGS stip needs to be uncommented to build on a K6-2, possibly others,
build will fail if that -march isnt stripped

------- Comment #1 From Evan Langlois 2003-08-09 02:53:57 0000 -------
Whats the error message for this error?  I think its biting me.  Is it just
certain compilers?  -- ekl@crc.homelinux.org

------- Comment #2 From Chuck Brewer 2003-08-10 01:38:28 0000 -------
Haven't had time to dissect this error completely, all I know so far is
stripping the -march lets the build succeed. Here's the error-

/bin/sh ../libtool --mode=compile gcc -DPACKAGE=\"libvorbis\" -DVERSION=      
\"1.0\" -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_SQRTF=      
1 -DHAVE_LOGF=1 -DHAVE_EXPF=1 -DHAVE_ACOSF=1 -DHAVE_ATANF=1 -DHAVE_FREXP      
F=1 -DHAVE_RINTF=1 -DHAVE_FLOORF=1  -I. -I.  -I../include -I/usr/include       
   -O20 -ffast-math  -D_REENTRANT -fsigned-char -O2 -march=k6-2 -pipe -      
fomit-frame-pointer -DUSE_MEMORY_H -c envelope.c
make[2]: *** [smallft.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
rm -f .libs/envelope.lo
gcc -DPACKAGE=\"libvorbis\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1 -DHAVE_AL      
LOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_SQRTF=1 -DHAVE_LOGF=1 -DHAVE_EXPF=1 -DHA      
VE_ACOSF=1 -DHAVE_ATANF=1 -DHAVE_FREXPF=1 -DHAVE_RINTF=1 -DHAVE_FLOORF=1       
-I. -I. -I../include -I/usr/include -O20 -ffast-math -D_REENTRANT -fsig      
ned-char -O2 -march=k6-2 -pipe -fomit-frame-pointer -DUSE_MEMORY_H -c en      
velope.c  -fPIC -DPIC -o .libs/envelope.lo
gcc -DPACKAGE=\"libvorbis\" -DVERSION=\"1.0\" -DHAVE_DLFCN_H=1 -DHAVE_AL      
LOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_SQRTF=1 -DHAVE_LOGF=1 -DHAVE_EXPF=1 -DHA      
VE_ACOSF=1 -DHAVE_ATANF=1 -DHAVE_FREXPF=1 -DHAVE_RINTF=1 -DHAVE_FLOORF=1       
-I. -I. -I../include -I/usr/include -O20 -ffast-math -D_REENTRANT -fsig      
ned-char -O2 -march=k6-2 -pipe -fomit-frame-pointer -DUSE_MEMORY_H -c en      
velope.c -o envelope.o >/dev/null 2>&1
mv -f .libs/envelope.lo envelope.lo
make[2]: Leaving directory `/var/tmp/portage/libvorbis-1.0-r3/work/libvo      
rbis-1.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libvorbis-1.0-r3/work/libvo      
rbis-1.0/lib'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libvorbis-1.0-r3 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! (no error message)

I think its the -fpic -DPIC with the -march on mine, but like I said,havent
really looked into the files yet.

------- Comment #3 From J. Ellis 2003-08-11 01:44:42 0000 -------
Usually k6, k6-2, k6-3 have issues with -fomit-frame-pointer. I'm going to
commit an r4 that filters -fo-f-p, could you please test and let me know?

Thanks

------- Comment #4 From J. Ellis 2003-08-11 01:59:54 0000 -------
Please test -r4 and let me know. Thanks.

------- Comment #5 From Chuck Brewer 2003-08-11 21:39:41 0000 -------
Well, it'll build stripping the -f-o-p also, but I can say that after a couple
years and 200-something currently installed packages using that combo, that's
the first time stripping -f-o-p helped anything. Like I mentioned previously,
the -fpic -DPIC clashes more with the -march, especially when coupled in with
the predetermined -ffast-math supplied with the source. The k6 doesn't like any
-f options really,but that's proved stable for me for a while. I suggested the
stripping the -march because I figured that no -march + no frame pointers would
likely be smaller and faster  than -march + frame pointers. But in the end I
guess I really dont care,as I dont need the support and have been too lazy to
take it out, I really only bothered cuz it choked my emerge run for that night.
Thanks for the fix, and nice job with the 3dnow patch.

------- Comment #6 From Brandy Westcott (RETIRED) 2003-08-12 05:59:20 0000 -------
The last post in forum thread http://forums.gentoo.org/viewtopic.php?t=72949
seems to indicate that -mcpu=k6-3, -mcpu=k6-2, -mcpu=k6 causes libvorbis-1.0-r4
not to compile. I have a P4 processor so can't test this myself.

------- Comment #7 From J. Ellis 2003-08-12 07:30:53 0000 -------
Looks like it needs to strip -fomit-frame-pointer if mcpu=k6... too tired to
deal with this now. Back tomorrow when sober.

------- Comment #8 From Chris Gianelloni (RETIRED) 2003-10-07 03:44:27 0000 -------
If you need any help with this, let me know, since I was the original poster
which added the SIMD patch.

------- Comment #9 From Chuck Brewer 2003-10-07 09:27:08 0000 -------
Thanks Chris. Been running -r4 no probs a while now...suprised this wasnt
closed yet.

------- Comment #10 From Martin Holzer (RETIRED) 2003-10-28 05:10:16 0000 -------
closing with -r4

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug