[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

compilation (kernel 2.4.27) error on Cobalt Cube 2



Hello,
 
I apologize up front for my rudimentary questions and I would appreciate any pointers or suggestions to shed some insight on my problem.
 
I've encountered some compilation errors compiling the Debian Linux kernel (2.4.27) on Cobalt's Cube 2 using gcc 3.3. Then, reading through the Document/Changes, I changed my compiler to gcc 2.95.4 per the document's recommendation. It actually seems to be a worse move since the compiler bails out right away. In either case the binutils I used were installed per apt-get.
 
The thing that confuses me between the two errors is that the one from 2.95.4 complains of an option (`-mcpu=r5000') that is fed into as (the assembler) when compiling with gcc 3.3, this option is not generated. the .config files used has no real difference with regard to machine selection. The diff between the two config files is provided at the end of this email.
 
Here's the error message using gcc 3.3:
---------------------------------------------------------
 
ld -G 0 -static  -T arch/mips/ld.script arch/mips/kernel/head.o arch/mips/kernel
/init_task.o init/main.o init/version.o init/do_mounts.o \
        --start-group \
        arch/mips/kernel/kernel.o arch/mips/mm/mm.o kernel/kernel.o mm/mm.o fs/f
s.o ipc/ipc.o arch/mips/math-emu/fpu_emulator.o arch/mips/pci/pci-core.o arch/mi
ps/cobalt/cobalt.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/n
et/net.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/sound/sounddrive
rs.o drivers/pci/driver.o drivers/usb/usbdrv.o drivers/media/media.o drivers/md/
mddev.o crypto/crypto.o \
        net/network.o \
        arch/mips/lib/lib.a /usr/src/kernel-source-2.4.27/lib/lib.a \
        --end-group \
        -o vmlinux
arch/mips/lib/lib.a(rtc-no.o)(.kstrtab+0x0): multiple definition of `__kstrtab_r
tc_ops'
arch/mips/lib/lib.a(rtc-std.o)(.kstrtab+0x0): first defined here
arch/mips/lib/lib.a(rtc-no.o)(__ksymtab+0x0): multiple definition of `__ksymtab_
rtc_ops'
arch/mips/lib/lib.a(rtc-std.o)(__ksymtab+0x0): first defined here
make: *** [vmlinux] Error 1
 
Here's the error message using gcc 2.95.4:
--------------------------------------------------------------
 
# make vmlinux
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.27/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I /usr/src/kernel-source-2.4.27/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe  -mcpu=r5000 -mips2 -Wa,-32 -Wa,-march=r5000 -Wa,-mips4 -Wa,--trap   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
as: unrecognised option `-mcpu=r5000'
init/main.c: In function `calibrate_delay':
init/main.c:209: Internal compiler error:
init/main.c:209: output pipe has been closed
cpp0: output pipe has been closed
make: *** [init/main.o] Error 1
 
Here's the diff of the two .config file:
---------------------------------------------------
 
< # CONFIG_SCSI is not set
---
> CONFIG_SCSI=m
> CONFIG_BLK_DEV_SD=m
> CONFIG_SD_EXTRA_DEVS=40
> # CONFIG_CHR_DEV_ST is not set
> # CONFIG_CHR_DEV_OSST is not set
> # CONFIG_BLK_DEV_SR is not set
> # CONFIG_CHR_DEV_SCH is not set
> # CONFIG_CHR_DEV_SG is not set
> # CONFIG_SCSI_DEBUG_QUEUES is not set
> # CONFIG_SCSI_MULTI_LUN is not set
> CONFIG_SCSI_CONSTANTS=y
> # CONFIG_SCSI_LOGGING is not set
>
> #
> # SCSI low-level drivers
> #
> # CONFIG_BLK_DEV_3W_XXXX_RAID is not set
> # CONFIG_SCSI_7000FASST is not set
> # CONFIG_SCSI_ACARD is not set
> # CONFIG_SCSI_AHA152X is not set
> # CONFIG_SCSI_AHA1542 is not set
> # CONFIG_SCSI_AHA1740 is not set
> # CONFIG_SCSI_AACRAID is not set
> # CONFIG_SCSI_AIC7XXX is not set
> # CONFIG_SCSI_AIC79XX is not set
> # CONFIG_SCSI_AIC7XXX_OLD is not set
> # CONFIG_SCSI_DPT_I2O is not set
> # CONFIG_SCSI_ADVANSYS is not set
> # CONFIG_SCSI_IN2000 is not set
> # CONFIG_SCSI_AM53C974 is not set
> # CONFIG_SCSI_MEGARAID is not set
> # CONFIG_SCSI_MEGARAID2 is not set
> # CONFIG_SCSI_SATA is not set
> # CONFIG_SCSI_SATA_SVW is not set
> # CONFIG_SCSI_SATA_PROMISE is not set
> # CONFIG_SCSI_SATA_SX4 is not set
> # CONFIG_SCSI_SATA_SIL is not set
> # CONFIG_SCSI_SATA_SIS is not set
> # CONFIG_SCSI_SATA_VIA is not set
> # CONFIG_SCSI_SATA_VITESSE is not set
> # CONFIG_SCSI_BUSLOGIC is not set
> # CONFIG_SCSI_CPQFCTS is not set
> # CONFIG_SCSI_DMX3191D is not set
> # CONFIG_SCSI_DTC3280 is not set
> # CONFIG_SCSI_EATA is not set
> # CONFIG_SCSI_EATA_DMA is not set
> # CONFIG_SCSI_EATA_PIO is not set
> # CONFIG_SCSI_FUTURE_DOMAIN is not set
> # CONFIG_SCSI_GDTH is not set
> # CONFIG_SCSI_GENERIC_NCR5380 is not set
> # CONFIG_SCSI_INITIO is not set
> # CONFIG_SCSI_INIA100 is not set
> # CONFIG_SCSI_NCR53C406A is not set
> # CONFIG_SCSI_NCR53C7xx is not set
> # CONFIG_SCSI_SYM53C8XX_2 is not set
> # CONFIG_SCSI_NCR53C8XX is not set
> # CONFIG_SCSI_SYM53C8XX is not set
> # CONFIG_SCSI_PAS16 is not set
> # CONFIG_SCSI_PCI2000 is not set
> # CONFIG_SCSI_PCI2220I is not set
> # CONFIG_SCSI_PSI240I is not set
> # CONFIG_SCSI_QLOGIC_FAS is not set
> # CONFIG_SCSI_QLOGIC_ISP is not set
> # CONFIG_SCSI_QLOGIC_FC is not set
> # CONFIG_SCSI_QLOGIC_1280 is not set
> # CONFIG_SCSI_SIM710 is not set
> # CONFIG_SCSI_SYM53C416 is not set
> # CONFIG_SCSI_DC390T is not set
> # CONFIG_SCSI_T128 is not set
> # CONFIG_SCSI_U14_34F is not set
> # CONFIG_SCSI_NSP32 is not set
> # CONFIG_SCSI_DEBUG is not set
905c976
< # CONFIG_USB_STORAGE is not set
---
> CONFIG_USB_STORAGE=m
908,910c979,981
< # CONFIG_USB_STORAGE_FREECOM is not set
< # CONFIG_USB_STORAGE_ISD200 is not set
< # CONFIG_USB_STORAGE_DPCM is not set
---
> CONFIG_USB_STORAGE_FREECOM=y
> CONFIG_USB_STORAGE_ISD200=y
> CONFIG_USB_STORAGE_DPCM=y
912,913c983,984
< # CONFIG_USB_STORAGE_SDDR09 is not set
< # CONFIG_USB_STORAGE_SDDR55 is not set
---
> CONFIG_USB_STORAGE_SDDR09=y
> CONFIG_USB_STORAGE_SDDR55=y
 
Many thanks,
Kaisie
 
 
 
 


Do you Yahoo!?
Yahoo! Search presents - Jib Jab's 'Second Term'
Reply to: