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

Bug 255351

Summary: gentoo-mips-2.6.28-20081230.ip27 fails while compiling pci-ip27.c
Product: Gentoo Linux Reporter: Bob Beaton <bob>
Component: [OLD] UnspecifiedAssignee: MIPS Porters <mips>
Status: RESOLVED INVALID    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: MIPS   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gentoo-mips-2.6.28-ip27 .config file

Description Bob Beaton 2009-01-18 05:19:23 UTC
Kernel build fails for gentoo-mips-2.6.28 while compiling pci-ip27.c on an O200 (dual R12K 250MHz, 1GB RAM), using mips-unknown-linux-gnu-4.1.1, mips64-unknown-linux-gnu-4.1.1, binutils-2.16.1-r3.

Problem is repeatable with and without General Options->Enable PCI quirk workarounds enabled in 'make menuconfig', as well as with and without Enable loadable module support enabled.

make command line is:
make vmlinux modules modules_install CROSS_COMPILE=mips64-unknown-linux-gnu-


Reproducible: Always

Steps to Reproduce:
1.make oldconfig
2.make menuconfig [used workable 2.6.20.18 kernel settings and defaults for new settings]
3.make vmlinux modules modules_install CROSS_COMPILE=mips64-unknown-linux-gnu-

Actual Results:  
snipet of console output follows:

[earlier lines deleted...]
  CC      drivers/scsi/qla1280.o
  LD      drivers/scsi/sd_mod.o
  LD      drivers/scsi/sr_mod.o
  LD      drivers/scsi/built-in.o
  CC [M]  drivers/scsi/ses.o
  CC [M]  drivers/scsi/scsi_wait_scan.o
  CC      drivers/serial/serial_core.o
  CC      drivers/serial/8250.o
drivers/serial/8250.c: In function 'serial8250_shutdown':
drivers/serial/8250.c:1619: warning: 'i' may be used uninitialized in this function
  CC      drivers/serial/8250_pci.o
  CC      drivers/serial/8250_early.o
  CC      drivers/serial/ioc3uart.o
  LD      drivers/serial/built-in.o
  CC      drivers/usb/host/pci-quirks.o
  LD      drivers/usb/host/built-in.o
  LD      drivers/usb/built-in.o
  CC      drivers/video/fb_notify.o
  LD      drivers/video/built-in.o
  LD      drivers/built-in.o
  CC      arch/mips/pci/pci.o
arch/mips/pci/pci.c: In function 'pcibios_init':
arch/mips/pci/pci.c:182: warning: passing argument 2 of 'pci_fixup_irqs' from incompatible pointer type
  CC      arch/mips/pci/ops-bridge.o
  CC      arch/mips/pci/pci-ip27.o
arch/mips/pci/pci-ip27.c:224: error: expected identifier or '(' before 'void'
arch/mips/pci/pci-ip27.c:224: error: expected ')' before '(' token
make[1]: *** [arch/mips/pci/pci-ip27.o] Error 1
make: *** [arch/mips/pci] Error 2


Expected Results:  
successfully build vmlinux kernel

linux # emerge --info
Portage 2.1.6.6 (default-linux/mips/2007.1-dev/ip27/o32, gcc-4.1.1, glibc-2.6.1-r0, 2.6.20.18-mipsgit-20070902-ip27r10k+ mips64)
=================================================================
System uname: Linux-2.6.20.18-mipsgit-20070902-ip27r10k+-mips64-R10000_V3.4_FPU_V0.0-with-glibc2.0
Timestamp of tree: Wed, 14 Jan 2009 23:45:02 +0000
distcc 3.1 mips-unknown-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-lang/python:     2.4.3-r1, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.0
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="mips ~mips"
CBUILD="mips-unknown-linux-gnu"
CFLAGS="-O2 -march=mips4 -mabi=32 -pipe -fomit-frame-pointer"
CHOST="mips-unknown-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=mips4 -mabi=32 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks fixpackages metadata-transfer parallel-fetch protect-owned sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/"
LDFLAGS=""
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X apache2 bash-completion berkdb cdr cli cracklib cups dbus expat firefox fortran ftp gdbm gif gpm gtk iconv imap ip27 isdnlog javascript jpeg libwww maildir midi mips mudflap mysql mysqli nls nptl nptlonly openmp pam pcre pdf perl png ppds pppd python readline reflection ruby samba sasl sdl session spell spl ssl startup-notification syslog tcl tcpd tiff tokenizer truetype unicode vhosts xinetd xml xorg xscreensaver zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Bob Beaton 2009-01-18 05:25:34 UTC
Created attachment 178859 [details]
gentoo-mips-2.6.28-ip27 .config file

.config file for gentoo-mips-2.6.28-ip27
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-01-18 05:43:17 UTC
Hmm, I suppose this should be assigned to the mips team. (or kernel?)
Comment 3 Bob Beaton 2009-02-08 05:56:55 UTC
Solved by running 'make distclean' before compiling kernel.

Please close this issue.