This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem building redboot


Gary,

Thanks for your help.

* What target?

The target is a Xilinx ML403 Virtex4 target added with a patch. Perhaps this is the root of the problem... The patch was created against much older eCos sources.


* What host/build platform?

Windows XP, cygwin 1.7.3


* How did you configure the build?

Basically I follow the instructions in COMPILING REDBOOT chapter in ecos-ML403-miniHOWTO.txt found here:
http://typo3.cs.uni-paderborn.de/fileadmin/Informatik/AG-Platzner/Research/ReconOS/eCos-ML403/ecos-ML403-miniHOWTO.txt


$ export HW_DESIGN=/opt/ML403-redboot/bsp/
$ cd /opt/ecos/ecos-anoncvs
$ /opt/ecos/ecos-3.0/tools/bin/configtool

And then I do exactly what is said in the guide... except for I couldn't edit target.ld script as it's not there, but I left this problem for later...

* What are the errors?

The errors is that the compiler can't find a header file in BSP. For some reason the $HW_DESIGN variable is omitted in the compiler call:
-I/ppc405_0/include should be -I$HW_DESIGN/ppc405_0/include


================
make -r -C hal/powerpc/arch/current /opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/ppc_offsets.inc
make[1]: Entering directory `/opt/ML403-redboot/ml403-redboot_build/hal/powerpc/arch/current'
powerpc-eabi-gcc -finline-limit=7000 -I -I/ppc405_0/include -I -DVIRTEX4 -msoft-float -mcpu=405 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2


-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -I/opt/ML403-redboot/ml403-redboot_install/include -I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current

-I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src -I/opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/tests -I. -Wp,-MD,ppc_offsets.tmp -o

hal_mk_defs.tmp -S /opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src/hal_mk_defs.c
cc1: warning: command line option "-Woverloaded-virtual" is valid for C++/ObjC++ but not for C
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
make[1]: Leaving directory `/opt/ML403-redboot/ml403-redboot_build/hal/powerpc/arch/current'
In file included from /opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/var_intr.h:58,
make: Leaving directory `/opt/ML403-redboot/ml403-redboot_build'
from /opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/hal_intr.h:68,
from /opt/ecos/ecos-anoncvs/ecos/packages/hal/powerpc/arch/current/src/hal_mk_defs.c:58:
/opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/plf_intr.h:64:25: error: xparameters.h: No such file or directory
/opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/plf_intr.h:65:37: error: xparameters_translation.h: No such file or directory
/opt/ML403-redboot/ml403-redboot_install/include/cyg/hal/plf_intr.h:66:21: error: xintc_l.h: No such file or directory
.....etc....
================



Thanks, /Mikhail


-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]