Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42118 - pac-sources bzImage compile fails in mremap.c
Summary: pac-sources bzImage compile fails in mremap.c
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-19 00:30 UTC by Lars Petersen
Modified: 2004-02-24 09:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Petersen 2004-02-19 00:30:13 UTC
make bzImage on sys-kernel/pac-sources-2.4.23-r3 fails because of 
mremap.c:276: error: too few arguments to function `do_munmap'
mremap.c:287: error: too few arguments to function `do_munmap'


Reproducible: Always
Steps to Reproduce:
1. emerge pac-sources
2. ln -sf /usr/src/linux-2.4.23-pac1 /usr/src/linux
3. make menuconfig
4. make bzImage

(or, of course, use genkernel, which doesn't really make a difference)
Actual Results:  
The make command fails, with the following error message: 
 
(...) 
make CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.23-pac1/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon " -C  mm 
make[1]: Entering directory `/usr/src/linux-2.4.23-pac1/mm' 
make all_targets 
make[2]: Entering directory `/usr/src/linux-2.4.23-pac1/mm' 
gcc -D__KERNEL__ -I/usr/src/linux-2.4.23-pac1/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon   
-nostdinc -iwithprefix include -DKBUILD_BASENAME=mremap  -c -o mremap.o 
mremap.c 
mremap.c: In function `do_mremap': 
mremap.c:276: error: too few arguments to function `do_munmap' 
mremap.c:287: error: too few arguments to function `do_munmap' 
make[2]: *** [mremap.o] Error 1 
make[2]: Leaving directory `/usr/src/linux-2.4.23-pac1/mm' 
make[1]: *** [first_rule] Error 2 
make[1]: Leaving directory `/usr/src/linux-2.4.23-pac1/mm' 
make: *** [_dir_mm] Error 2 
 

Expected Results:  
Properly build a bzImage of said kernel. 

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.23-pac1) 
================================================================= 
System uname: 2.4.23-pac1 i686 AMD Athlon(tm) Processor 
Gentoo Base System version 1.4.3.13 
ccache version 2.3 [enabled] 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-tbird -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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 /var/spool/fax/etc" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=athlon-tbird -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache fixpackages sandbox" 
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ 
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.inode.at/ 
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo 
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" 
USE="3dnow X aalib acpi acpi4linux alsa apache2 arts atlas auctex avi berkdb 
bonobo cdr clamav clisp crypt cups dga directfb doc dv dvd emacs encode esd 
evo fbcon foomaticdb freetype fs gb gcl gd gdbm gif gimpprint ginac glut gnome 
gphoto2 gpm gtk gtk2 gtkhtml guile hbci hdf hdf5 imagemagick imlib ipv6 java 
jbig jpeg kde lcms ldap leim libg++ libwww mad maildir memlimit mikmod mmx 
motif mozilla moznocompose moznoirc moznomail mpeg mpi mule music mysql 
ncurses nls oggvorbis opengl oss pam pdflib perl pic plotutils png ppds 
prebuilt python qt quicktime readline ruby samba sasl scanner sdl slang speex 
spell ssl svga tcltk tcpd tetex tiff transcode truetype type1 usb videos wmf 
wxwin wxwindows x86 xml2 xmms xv xvid zlib"
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2004-02-24 09:59:49 UTC
Fixed in CVS, thanks. If you sync your Portage tree, remerge pac-sources and run genkernel again it should compile.