Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 85106

Summary: MySql merge breaks with GCC4 because of linux-headers
Product: Gentoo Linux Reporter: Genady Okrain <mafteah>
Component: [OLD] GCC PortingAssignee: Tim Yamin (RETIRED) <plasmaroo>
Status: RESOLVED FIXED    
Severity: normal CC: halcy0n, vapier
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: linux26-headers-2.6.11.3-appCompat.patch
appComp patch bump
asm-i386/system.h asm-x86_64/system.h

Description Genady Okrain 2005-03-13 09:33:29 UTC
then mv -f ".deps/my_fopen.Tpo" ".deps/my_fopen.Po"; else rm -f ".deps/my_fopen.Tpo"; exit 1; fi
/usr/include/asm/system.h:247: error: expected ',' or '...' before 'new'
/usr/include/asm/system.h: In function 'long unsigned int __cmpxchg(volatile void*, long unsigned int, long unsigned int)':
/usr/include/asm/system.h:250: error: 'size' was not declared in this scope
/usr/include/asm/system.h:254: error: expected type-specifier before ')' token
/usr/include/asm/system.h:260: error: expected type-specifier before ')' token
/usr/include/asm/system.h:266: error: expected type-specifier before ')' token
make[2]: *** [my_new.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/mysql-4.0.24-r1/work/mysql-4.0.24/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mysql-4.0.24-r1/work/mysql-4.0.24'
make: *** [all] Error 2

!!! ERROR: dev-db/mysql-4.0.24-r1 failed.
!!! Function src_compile, Line 223, Exitcode 2
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Genady Okrain 2005-03-13 11:59:29 UTC
Created attachment 53359 [details]
linux26-headers-2.6.11.3-appCompat.patch
Comment 2 Genady Okrain 2005-03-13 12:00:28 UTC
Comment on attachment 53359 [details]
linux26-headers-2.6.11.3-appCompat.patch

This patch should replace the old patch and fix some problems with the new
heades and gcc4
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2005-03-13 23:17:45 UTC
Created attachment 53390 [details, diff]
appComp patch bump

Reattaching this patch as text.
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2005-03-13 23:21:33 UTC
Plasmaroo:  Think we could get a bump for linux-headers to 2.6.11?
Attached is the appComp patch updated to patch onto 2.6.11
linux-headers-2.6.8.1-parisc-syscall.patch is now obsolete since the problem seems to be fixed.

This does fix the compile error for mysql for me, and probably will fix some other GCC4 related issues.
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2005-03-14 13:54:06 UTC
Do you have a diff for system.h only?
Comment 6 Genady Okrain 2005-03-15 00:49:19 UTC
Created attachment 53501 [details, diff]
asm-i386/system.h asm-x86_64/system.h
Comment 7 Tim Yamin (RETIRED) gentoo-dev 2005-03-15 11:42:22 UTC
Ok, 2.6.11 added to CVS; please give that a go.
Comment 8 Mark Loeser (RETIRED) gentoo-dev 2005-03-24 18:31:00 UTC
This has fixed the issue for me.  Thanks Tim.