This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Why can't tests be built for pc target?
- From: Grant Edwards <grante at visi dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 17 Mar 2008 18:59:23 +0000 (UTC)
- Subject: [ECOS] Why can't tests be built for pc target?
Does anybody know why you can't build tests for the PC target?
$ newtree-pc_8139.sh
+ ecosconfig new pc_rltk8139 net
U CYGBLD_ISO_STRUCTTIMEVAL_HEADER, new inferred value <cyg/posix/sys/time.h>
U CYGBLD_ISO_FNMATCH_HEADER, new inferred value <cyg/fileio/fnmatch.h>
+ cat .tmp22883.cdl
cdl_option CYG_HAL_STARTUP {user_value FLOPPY}
cdl_option CYGPKG_NET_INET6 {user_value 0}
cdl_option CYGHWR_NET_DRIVER_ETH0_BOOTP {user_value 0}
cdl_option CYGHWR_NET_DRIVER_ETH0_MANUAL {user_value 1}
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_IP {user_value 192.168.8.99}
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS {user_value 255.255.255.0}
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_BROADCAST {user_value 192.168.8.255}
cdl_option CYGHWR_NET_DRIVER_ETH0_ADDRS_GATEWAY {user_value 192.168.8.1}
cdl_option CYGSEM_HAL_DIAG_MANGLER {user_value None}
cdl_option CYGPKG_NET_BUILD_HW_TESTS {user_value 0}
+ ecosconfig import .tmp22883.cdl
+ rm -f .tmp22883.cdl
+ ecosconfig tree
$ make
[...]
make[1]: Leaving directory /home/grante/pcecos/build-ecos/hal/i386/arch/current'
build finished
The make finishes OK. But make tests fails anytime it tries to
link a program:
$ make tests
[...]
make[1]: Entering directory /home/grante/pcecos/build-ecos/io/pci/current'
i386-elf-gcc -c -I/home/grante/pcecos/build-ecos/install/include -I/opt/ecos/ecos/packages/io/pci/current -I/opt/ecos/ecos/packages/io/pci/current/src -I/opt/ecos/ecos/packages/io/pci/current/tests -I. -I/opt/ecos/ecos/packages/io/pci/current/tests/ -finline-limit=7000 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -g -O2 -ffunction-sections -fdata-sections -fno-exceptions -Wp,-MD,tests/pci1.tmp -o tests/pci1.o /opt/ecos/ecos/packages/io/pci/current/tests/pci1.c
i386-elf-gcc -L/home/grante/pcecos/build-ecos/install/lib -Ttarget.ld -o /home/grante/pcecos/build-ecos/install/tests/io/pci/current/tests/pci1 tests/pci1.o -g -nostdlib -Wl,--gc-sections -Wl,-static
/opt/ecos/gnutools/i386-elf/bin/../lib/gcc-lib/i386-elf/3.2.1/../../../../i386-elf/bin/ld: address 0xbca38 of /home/grante/pcecos/build-ecos/install/tests/io/pci/current/tests/pci1 section .bss is not within region ram
/opt/ecos/gnutools/i386-elf/bin/../lib/gcc-lib/i386-elf/3.2.1/../../../../i386-elf/bin/ld: address 0xbca38 of /home/grante/pcecos/build-ecos/install/tests/io/pci/current/tests/pci1 section .bss is not within region ram
collect2: ld returned 1 exit status
make[1]: *** [/home/grante/pcecos/build-ecos/install/tests/io/pci/current/tests/pci1] Error 1
make[1]: Leaving directory /home/grante/pcecos/build-ecos/io/pci/current'
make: *** [tests] Error 2
I deleted the pci tests target, but all of the other test apps
fail with a similar error.
I'm using the i386 toolchain that were installed by
ecos-install.tcl when I ran in two days ago (15 March 08), and
a CVS snapshot that was current as of 15 March 08.
Why can't one build test programs for the pc target?
--
Grant
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss