Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182414 - linux-headers uses asm() which breaks with -std=c99
Summary: linux-headers uses asm() which breaks with -std=c99
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL: http://lkml.org/lkml/2007/6/17/295
Whiteboard:
Keywords:
: 187833 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-17 21:31 UTC by Marek Sapota
Modified: 2007-08-05 18:04 UTC (History)
1 user (show)

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


Attachments
emerge --info (info.txt,8.18 KB, text/plain)
2007-06-17 21:33 UTC, Marek Sapota
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Sapota 2007-06-17 21:31:32 UTC
ekg2 fails to build on ~x86 system with USE="gif gpm jpeg spell ssl unicode -debug -expat -gsm -gtk -jabber -nogg -perl -python -sqlite -sqlite3 -static -xosd" and emerge gives this error message (all versions fail to build and have similar errors):


In file included from /usr/include/linux/cdrom.h:14,
                 from ioctld.c:40:
/usr/include/asm/byteorder.h: In function ‘___arch__swab64’:
/usr/include/asm/byteorder.h:38: error: expected ‘)’ before ‘:’ token
ioctld.c: In function ‘main’:
ioctld.c:193: warning: pointer targets in passing argument 6 of ‘recvfrom’ differ in signedness
make[3]: *** [ioctld.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mkdir .libs
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -DIOCTLD_PATH=\"/usr/libexec/ioctld\" -Os -march=prescott -pipe -fomit-frame-pointer -Wall -std=c99 -MT main.lo -MD -MP -MF .deps/main.Tpo -c main.c  -fPIC -DPIC -o .libs/main.o
mv -f .deps/main.Tpo .deps/main.Plo
make[3]: Leaving directory `/var/tmp/portage/net-im/ekg2-20061202/work/ekg2-20061202/plugins/ioctld'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-im/ekg2-20061202/work/ekg2-20061202/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-im/ekg2-20061202/work/ekg2-20061202'
make: *** [all] Error 2

!!! ERROR: net-im/ekg2-20061202 failed.
Call stack:
  ebuild.sh, line 1629:   Called dyn_compile
  ebuild.sh, line 975:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ekg2-20061202.ebuild, line 81:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/net-im/ekg2-20061202/temp/build.log'.


Reproducible: Always

Steps to Reproduce:
1. try to emerge net-im/ekg2
2.
3.

Actual Results:  
ekg2 failed to build
Comment 1 Marek Sapota 2007-06-17 21:33:11 UTC
Created attachment 122365 [details]
emerge --info
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-06-17 21:33:20 UTC
This is NOT a Gentoo Bugzilla product bug; read the descriptions.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-06-17 21:35:49 UTC

*** This bug has been marked as a duplicate of bug 162144 ***
Comment 4 SpanKY gentoo-dev 2007-06-17 22:25:32 UTC
not a dupe, different issue
Comment 5 SpanKY gentoo-dev 2007-06-17 22:25:55 UTC
the asm() in the code needs to be turned into __asm__() for c99
Comment 6 SpanKY gentoo-dev 2007-07-09 04:24:44 UTC
kernel-2.eclass now converts asm and volatile to __asm__ and __volatile__ while we await proper fixes getting merged upstream
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-08-05 18:04:50 UTC
*** Bug 187833 has been marked as a duplicate of this bug. ***