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: library build errors following ecos- and toolchain update - at91sam7x-based target


Am 11.02.2010, 22:06 Uhr, schrieb Bob Brusa <bob.brusa@gmail.com>:


Hi
Having done some work with ecos-3.0 and a GNUARM-toolchain, it thought its time to update my system. But I run into troubles. What I did:
a) installing a clean ecos-3.0 from a mirror in Germany - not for ecos, but for the tools that come with it (configtool.exe)
b) created an empty directory c:\cygwin\ecoscvs and run the checkout command of cvs (as described in http://ecos.sourceware.org/anoncvs.html.
c) run the cvs-update command. ecos is at c:\cygwin\ecoscvs\ecos
d) downloaded and installed the most recent toolchain from codesourcery: arm-2009q3-68-arm-none-eabi.exe
e) added my target to ecos (the one of b+c) using the administrator command of configtool.exe
f) saved the configuration and created the directory tree and then started build of my library (at c:\ecos\icb4)


My system is Windows XP prof. and cygwin, including dev. tools is installed.
The environment variable CYGPATH is set to c:/cygwin/bin/cygpath and
the repository in configtool is C:\cygwin\ecoscvs\ecos


The build does not go very far, but soon stops with an error. Here is what I get:

...cut
make -r -C language/c/libm/current headers
make[1]: Entering directory `/ecos-c/ecos/icb4/icb_lib_1_build/language/c/libm/current'
make[1]: Nothing to be done for `headers'.
make[1]: Leaving directory `/ecos-c/ecos/icb4/icb_lib_1_build/language/c/libm/current'
headers finished
make -r -C hal/arm/arch/current arm.inc
make[1]: Entering directory `/ecos-c/ecos/icb4/icb_lib_1_build/hal/arm/arch/current'
arm-none-eabi-gcc -finline-limit=7000 -Wall -Wpointer-arith -Wstrict-prototypes -Wundef -Wno-write-strings -mno-thumb-interwork -mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-exceptions -I/ecos-c/ecos/icb4/icb_lib_1_install/include -I/ecoscvs/ecos/packages/hal/arm/arch/current -I/ecoscvs/ecos/packages/hal/arm/arch/current/src -I/ecoscvs/ecos/packages/hal/arm/arch/current/tests -I. -Wp,-MD,arm.tmp -o hal_mk_defs.tmp -S /ecoscvs/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c
make[1]: Leaving directory `/ecos-c/ecos/icb4/icb_lib_1_build/hal/arm/arch/current'
arm-none-eabi-gcc.exe: /ecoscvs/ecos/packages/hal/arm/arch/current/src/hal_mk_defs.c: No such file or directory
make: Leaving directory `/ecos-c/ecos/icb4/icb_lib_1_build'
arm-none-eabi-gcc.exe: no input files
make[1]: *** [arm.inc] Error 1
make: *** [build] Error 2


It seems that the compiler has a problem with c:\cygwin - which it should use as a prefix to the path. Any ideas how to fix this?
Thanks for help and regards Robert

Further to the above:
I switched to the toolchain that came with ecos-3.0 (C:\cygwin\opt\ecos\gnutools\arm-eabi_q4.08\bin) and then the library builds. But when building a simple test app serial_1.c that previously worked, I get the following (using eclipse Galileo):


------------------------------------------------------------
**** Build of configuration Debug for project serial_1 ****

make all
Building file: ../serial_1.c
Invoking: GCC C Compiler
/opt/ecos/gnutools/arm-eabi_q4.08/bin/arm-eabi-gcc -I"C:\ecos\icb4\icb_lib_1_install/include" -O0 -g3 -c -c -mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -ffunction-sections -fdata-sections -fno-exceptions -MMD -MP -MF"serial_1.d" -MT"serial_1.d" -o"serial_1.o" "../serial_1.c"
Finished building: ../serial_1.c


Building target: serial_1.elf
Invoking: GCC C Linker
/opt/ecos/gnutools/arm-eabi_q4.08/bin/arm-eabi-gcc -nostartfiles -L"C:\ecos\icb4\icb_lib_1_install/lib" -Ttarget.ld -Wl,--gc-sections -Wl,-static -g -nostdlib -nostartfiles -Xlinker -Map -Xlinker serial_1.Map -o"serial_1.elf" ./serial_1.o
Finished building target: serial_1.elf


make --no-print-directory post-build
serial_1.d:1: *** multiple target patterns. Stop.
make: *** [serial_1.elf] Error 2
-------------------------------------------------------------
I do not understand the meaning of the last 3 lines - nor how to fix the problem. Thanks for help Robert.




--
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]