Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133946 - Compiling gentoo-sources-2.6.16-r7: syntax errors in include/asm/rwsem.h
Summary: Compiling gentoo-sources-2.6.16-r7: syntax errors in include/asm/rwsem.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-21 07:48 UTC by Tiago
Modified: 2006-05-27 11:17 UTC (History)
0 users

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


Attachments
kernel .config (kernel-config-x86-2.6.16-gentoo-r7,48.02 KB, text/plain)
2006-05-27 10:52 UTC, Tiago
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago 2006-05-21 07:48:50 UTC
Hi,

Compiling gentoo-sources-2.6.16-r7 fails with the following:

include/asm/rwsem.h: In function `__down_read':
include/asm/rwsem.h:105: error: syntax error before "LOCK_SECTION_NAME"
include/asm/rwsem.h: In function `__down_write':
include/asm/rwsem.h:157: error: syntax error before "LOCK_SECTION_NAME"
include/asm/rwsem.h: In function `__up_read':
include/asm/rwsem.h:194: error: syntax error before "LOCK_SECTION_NAME"
include/asm/rwsem.h:188: warning: unused variable `tmp'
include/asm/rwsem.h: In function `__up_write':
include/asm/rwsem.h:220: error: syntax error before "LOCK_SECTION_NAME"
include/asm/rwsem.h: In function `__downgrade_write':
include/asm/rwsem.h:245: error: syntax error before "LOCK_SECTION_NAME"
In file included from include/linux/sched.h:20,
                 from include/linux/module.h:10,
                 from drivers/parport/parport_pc.c:46:
include/asm/semaphore.h: In function `down':
include/asm/semaphore.h:105: error: syntax error before "LOCK_SECTION_NAME"
include/asm/semaphore.h: In function `down_interruptible':
include/asm/semaphore.h:130: error: syntax error before "LOCK_SECTION_NAME"
include/asm/semaphore.h: In function `down_trylock':
include/asm/semaphore.h:155: error: syntax error before "LOCK_SECTION_NAME"
include/asm/semaphore.h: In function `up':
include/asm/semaphore.h:179: error: syntax error before "LOCK_SECTION_NAME"
make[2]: *** [drivers/parport/parport_pc.o] Error 1
make[1]: *** [drivers/parport] Error 2
make: *** [drivers] Error 2

emerge --info output follows.

Portage 2.1_rc1-r3 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r6 i686)
=================================================================
System uname: 2.6.16-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer notitles parallel-fetch sandbox sfperms strict test userpriv usersandbox"
GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/ ftp://ftp.rnl.ist.utl.pt/pub/gentoo/"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa apache2 apm arts asf audiofile avi bash-completion berkdb bitmap-fonts bluetooth bootsplash bzip2 cddb cdparanoia cli crypt cscope css cups curl dbus directfb dri dts dv dvd dvdread dvi emacs encode esd fame fat fbcon ffmpeg firefox flac foomaticdb ftp fuse gd gdbm gif gimpprint glut gnome gpm gstreamer gtk gtk2 gtkhtml hal iconv idn ieee1394 imagemagick imap imlib ipv6 isdnlog jack java javascript jpeg jpeg2k kde kdeenablefinal kdexdeltas lcms libcaca libg++ libwww lm_sensors mad mikmod mime mjpeg mmx mng mono motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mplayer msn mule ncurses nls nptl nptlonly ntfs offensive ogg oggvorbis opengl oss pcre pdf pdflib perl php plotutils png ppds pppd python qt quicktime rdesktop readline real reflection reiserfs samba scanner sdl session sharedmem slang sndfile snmp sockets softmmu sox speech speex spell spl sse sse2 ssl subtitles svg svga symlink tcltk tcpd tetex theora threads tiff timidity tokenizer toolbar transcode truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vorbis wifi win32codecs wmf xine xml2 xmms xorg xpm xv xvid zlib elibc_glibc kernel_linux linguas_en userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

If you need something else please do ask.
Comment 1 Tres 'RiverRat' Melton 2006-05-21 20:21:56 UTC
I would think that the kernel's .config file would be relevent here too.  :)
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2006-05-27 04:13:36 UTC
Yes, please attach your .config
Comment 3 Tiago 2006-05-27 10:52:52 UTC
Created attachment 87676 [details]
kernel .config
Comment 4 Tiago 2006-05-27 10:54:21 UTC
(In reply to comment #2)
> Yes, please attach your .config
> 

(In reply to comment #1)
> I would think that the kernel's .config file would be relevent here too.  :)
> 

It seems that the problem disappeared when recompiling... so this is now (for me) an irreproducible bug. But this shouldn't have happened for the first time anyway, right?

I've attached my .config to this bug (P.S. sorry for the delay, I was busy for a while :-)
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2006-05-27 11:17:58 UTC
Can't see why it would have happened, can't reproduce it here. Reopen if you ever see it again.