[U-Boot-Users] [BUGS] compile error and warnings for drivers/**_pcmcia.c

Jiang Bo-r61859 tanya.jiang at freescale.com
Thu Jul 27 10:35:43 CEST 2006


Hi:

For u-boot 1.1.4 from www.denx.de/git/u-boot.git :

Compiling mpc8xx_pcmcia.c failed when configued with "ADS860_config" or "MPC86xADS_config"

There were also many compile warnings (redifination) when make with "MPC8349EMDS_config", "MPC8540EVAL_config"... 
It caused by compiling drivers/mpc8xx_pcmcia.c rpx_pcmcia.c and tqm8xx_pcmcia.c.
(we did not try other configs).

In fact, we are working on mpc83xx.
For MPC8349EMDS, it can be avoided by moving #include <mpc83xx.h> in **_pcmcia.c files to include/common.h, 

There should be other ways to make all configs pass.

See error/warning log for details.

Tanya Jiang, Leo Li

====================================================================
$ make MPC86xADS_config
Configuring for MPC86xADS board...
$ make
..
...
make[1]: Leaving directory `/home/xx83/git/verify/verify-u-boot/common'
UNDEF_SYM=`powerpc-linux-objdump -x lib_generic/libgeneric.a board/fads/libfads.a cpu/mpc8xx/libmpc8xx.a lib_ppc/libppc.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a  |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
        powerpc-linux-ld -Bstatic -T /home/xx83/git/verify/verify-u-boot/board/fads/u-boot.lds -Ttext 0xFE000000  -n $UNDEF_SYM cpu/mpc8xx/start.o \
                --start-group lib_generic/libgeneric.a board/fads/libfads.a cpu/mpc8xx/libmpc8xx.a lib_ppc/libppc.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a  --end-group -L /opt/Embedix/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3/nof -lgcc \
                -Map u-boot.map -o u-boot
drivers/libdrivers.a(mpc8xx_pcmcia.o)(.text+0x13c): In function `pcmcia_on':
/home/xx83/git/verify/verify-u-boot/drivers/mpc8xx_pcmcia.c:183: undefined reference to `check_ide_device'
make: *** [u-boot] Error 1


$ make clean
$ make distclean
$ make MPC8349EMDS_config
Configuring for MPC8349EMDS board...
$ make
....
werpc-linux-gcc -g  -Os   -fPIC -ffixed-r14 -meabi -D__KERNEL__
-DTEXT_BASE=0xFE000000 -I/home/xx83/git/verify/verify-u-boot/include
-fno-builtin -ffreestanding -nostdinc -isystem
/opt/Embedix/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3/include
-pipe  -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC83XX -DCONFIG_E300 -ffixed-r2
-ffixed-r29 -msoft-float -Wall -Wstrict-prototypes -c -o pxa_pcmcia.o
pxa_pcmcia.c
powerpc-linux-gcc -g  -Os   -fPIC -ffixed-r14 -meabi -D__KERNEL__
-DTEXT_BASE=0xFE000000 -I/home/xx83/git/verify/verify-u-boot/include
-fno-builtin -ffreestanding -nostdinc -isystem
/opt/Embedix/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3/include
-pipe  -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC83XX -DCONFIG_E300 -ffixed-r2
-ffixed-r29 -msoft-float -Wall -Wstrict-prototypes -c -o mpc8xx_pcmcia.o
mpc8xx_pcmcia.c
In file included from mpc8xx_pcmcia.c:2:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:127:1: warning:
"RSR_SWRS" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:88,
                 from mpc8xx_pcmcia.c:1:
/home/xx83/git/verify/verify-u-boot/include/asm/immap_83xx.h:461:1: warning:
this is the location of the previous definition
In file included from mpc8xx_pcmcia.c:2:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:241:1: warning:
"BR_PS_32" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from mpc8xx_pcmcia.c:1:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:107:1: warning: this is
the location of the previous definition
In file included from mpc8xx_pcmcia.c:2:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:242:1: warning:
"BR_PS_16" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from mpc8xx_pcmcia.c:1:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:106:1: warning: this is
the location of the previous definition
In file included from mpc8xx_pcmcia.c:2:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:243:1: warning: "BR_PS_8"
redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from mpc8xx_pcmcia.c:1:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:105:1: warning: this is
the location of the previous definition
In file included from mpc8xx_pcmcia.c:2:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:249:1: warning:
"BR_MS_UPMB" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from mpc8xx_pcmcia.c:1:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:117:1: warning: this is
the location of the previous definition
powerpc-linux-gcc -g  -Os   -fPIC -ffixed-r14 -meabi -D__KERNEL__
-DTEXT_BASE=0xFE000000 -I/home/xx83/git/verify/verify-u-boot/include
-fno-builtin -ffreestanding -nostdinc -isystem
/opt/Embedix/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3/include
-pipe  -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC83XX -DCONFIG_E300 -ffixed-r2
-ffixed-r29 -msoft-float -Wall -Wstrict-prototypes -c -o tqm8xx_pcmcia.o
tqm8xx_pcmcia.c
In file included from tqm8xx_pcmcia.c:6:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:127:1: warning:
"RSR_SWRS" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:88,
                 from tqm8xx_pcmcia.c:5:
/home/xx83/git/verify/verify-u-boot/include/asm/immap_83xx.h:461:1: warning:
this is the location of the previous definition
In file included from tqm8xx_pcmcia.c:6:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:241:1: warning:
"BR_PS_32" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from tqm8xx_pcmcia.c:5:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:107:1: warning: this is
the location of the previous definition
In file included from tqm8xx_pcmcia.c:6:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:242:1: warning:
"BR_PS_16" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from tqm8xx_pcmcia.c:5:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:106:1: warning: this is
the location of the previous definition
In file included from tqm8xx_pcmcia.c:6:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:243:1: warning: "BR_PS_8"
redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from tqm8xx_pcmcia.c:5:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:105:1: warning: this is
the location of the previous definition
In file included from tqm8xx_pcmcia.c:6:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:249:1: warning:
"BR_MS_UPMB" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from tqm8xx_pcmcia.c:5:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:117:1: warning: this is
the location of the previous definition
powerpc-linux-gcc -g  -Os   -fPIC -ffixed-r14 -meabi -D__KERNEL__
-DTEXT_BASE=0xFE000000 -I/home/xx83/git/verify/verify-u-boot/include
-fno-builtin -ffreestanding -nostdinc -isystem
/opt/Embedix/usr/local/powerpc-linux/gcc-3.4.3-glibc-2.3.3/lib/gcc/powerpc-linux/3.4.3/include
-pipe  -DCONFIG_PPC -D__powerpc__ -DCONFIG_MPC83XX -DCONFIG_E300 -ffixed-r2
-ffixed-r29 -msoft-float -Wall -Wstrict-prototypes -c -o rpx_pcmcia.o
rpx_pcmcia.c
In file included from rpx_pcmcia.c:5:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:127:1: warning:
"RSR_SWRS" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:88,
                 from rpx_pcmcia.c:4:
/home/xx83/git/verify/verify-u-boot/include/asm/immap_83xx.h:461:1: warning:
this is the location of the previous definition
In file included from rpx_pcmcia.c:5:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:241:1: warning:
"BR_PS_32" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from rpx_pcmcia.c:4:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:107:1: warning: this is
the location of the previous definition
In file included from rpx_pcmcia.c:5:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:242:1: warning:
"BR_PS_16" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from rpx_pcmcia.c:4:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:106:1: warning: this is
the location of the previous definition
In file included from rpx_pcmcia.c:5:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:243:1: warning: "BR_PS_8"
redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from rpx_pcmcia.c:4:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:105:1: warning: this is
the location of the previous definition
In file included from rpx_pcmcia.c:5:
/home/xx83/git/verify/verify-u-boot/include/mpc8xx.h:249:1: warning:
"BR_MS_UPMB" redefined
In file included from /home/xx83/git/verify/verify-u-boot/include/common.h:87,
                 from rpx_pcmcia.c:4:
/home/xx83/git/verify/verify-u-boot/include/mpc83xx.h:117:1: warning: this is
the location of the previous definition
powerpc-linux-ar crv libdrivers.a 3c589.o 5701rls.o ali512x.o bcm570x.o
bcm570x_autoneg.o cfb_console.o cfi_flash.o cs8900.o ct69000.o dataflash.o
dc2114x.o dm9000x.o e1000.o eepro100.o i8042.o inca-ip_sw.o keyboard.o
lan91c96.o natsemi.o ne2000.o netarm_eth.o netconsole.o ns16550.o ns8382x.o
ns87308.o ns7520_eth.o omap1510_i2c.o omap24xx_i2c.o pci.o pci_auto.o
pci_indirect.o pcnet.o plb2800_eth.o ps2ser.o ps2mult.o pc_keyb.o rtl8019.o
rtl8139.o rtl8169.o s3c4510b_eth.o s3c4510b_uart.o sed13806.o sed156x.o
serial.o serial_max3100.o serial_pl010.o serial_pl011.o serial_xuartlite.o
sl811_usb.o sm501.o smc91111.o smiLynxEM.o status_led.o sym53c8xx.o
ti_pci1410a.o tigon3.o tsec.o usbdcore.o usbdcore_ep0.o usbdcore_omap1510.o
usbtty.o videomodes.o w83c553f.o ks8695eth.o pxa_pcmcia.o mpc8xx_pcmcia.o
tqm8xx_pcmcia.o rpx_pcmcia.o
....
...
a - ks8695eth.o
a - pxa_pcmcia.o
a - mpc8xx_pcmcia.o
a - tqm8xx_pcmcia.o
a - rpx_pcmcia.o
make[1]: Leaving directory `/home/xx83/git/verify/verify-u-boot/drivers'
make -C `dirname drivers/nand/libnand.a`
make[1]: Entering directory `/home/xx83/git/verify/verify-u-boot/drivers/nand'
powerpc-linux-gcc -M -g  -Os   -fPIC -ffixed-r14 -meabi -D__KERNEL__
-DTEXT_BASE=0xFE000000 -I/home/xx83/git/verify/verify-u-boot/include
-fno-builtin -ffreestanding -nostdinc -isystem
....




More information about the U-Boot mailing list