[ECOS] Re: [kaffe] Problem of porting kaffe to ecos on ARM 7 hardware target

daniel at fh-konstanz.de daniel at fh-konstanz.de
Thu Aug 18 06:53:57 PDT 2005


Hello list!

i have taken the 'nostdinc' option into the CPPFLAGS again. 

PATH=$PATH:/usr/local/Diplomarbeit/gnuarm-3.4.3/arm-elf/bin:/usr/local/Diplomarbeit/gnuarm-3.4.3/bin:
export PATH
export
KAFFEH=/usr/local/Diplomarbeit/kaffe-1.1.5/kaffe-native/kaffe/kaffeh/kaffeh
export LDFLAGS="-nostartfiles -Ttarget.ld -nostdlib
-L/usr/local/Diplomarbeit/Project/Kaffe_V1/version1_install/lib"
export CFLAGS="-mcpu=arm7tdmi -mbig-endian -malignment-traps -Wall
-WI,--gc-sections -g -O2"
export
CPPFLAGS="-I/usr/local/Diplomarbeit/Project/Kaffe_V1/version1_install/include
-nostdinc -D__ECOS"
export CC=arm-elf-gcc
export LD=arm-elf-ld
export NM=arm-elf-nm
export AR=arm-elf-ar
export RANLIB=arm-elf-ranlib
export CPP=arm-elf-cpp
export OBJCOPY=arm-elf-objcopy

When i did 'configure
--with-includes="/usr/local/Diplomarbeit/gnuarm-3.4.3/arm-elf/include/
/usr/local/Diplomarbeit/gnuarm-3.4.3/lib/gcc/arm-elf/3.4.3/include"
--host=arm-ecos --build=i686-linux --without-classpath-gtk-awt
--enable-pure-java-math --with-gc=kaffe                                        
                                  '  in the 'kaffe-crossing' directory, i get
following errors after finishing the configure-script:

checking how to run the C preprocessor... arm-elf-cpp
configure: error: C preprocessor "arm-elf-cpp" fails sanity check
See `config.log' for more details.
configure: error: /bin/sh
'../../../../../kaffe/kaffevm/boehm-gc/boehm/configure' failed for
kaffe/kaffevm/boehm-gc/boehm


in 'config.log' i find some errors:

configure:3074: arm-elf-gcc -c -mcpu=arm7tdmi -mbig-endian -malignment-traps
-Wall -WI,--gc-sections -g -O2
-I/usr/local/Diplomarbeit/Project/Kaffe_V1/version1_install/include -nostdinc
-D__ECOS -I/usr/local/Diplomarbeit/gnuarm-3.4.3/arm-elf/include/
-I/usr/local/Diplomarbeit/gnuarm-3.4.3/lib/gcc/arm-elf/3.4.3/include conftest.c
>&5
conftest.c:2: error: parse error before "me"
configure:3080: $? = 1
configure: failed program was:
| #ifndef __cplusplus
|   choke me
| #endif

configure:3567: checking CFLAGS for gcc -mregnames
configure:3600: arm-elf-gcc -c -mcpu=arm7tdmi -mbig-endian -malignment-traps
-Wall -WI,--gc-sections -g -O2 -pedantic  -mregnames
-I/usr/local/Diplomarbeit/Project/Kaffe_V1/version1_install/include -nostdinc
-D__ECOS -I/usr/local/Diplomarbeit/gnuarm-3.4.3/arm-elf/include/
-I/usr/local/Diplomarbeit/gnuarm-3.4.3/lib/gcc/arm-elf/3.4.3/include conftest.c
>&5
cc1: error: invalid option `regnames'
configure:3606: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "Kaffe Virtual Machine"
| #define PACKAGE_TARNAME "kaffe"
| #define PACKAGE_VERSION "1.1.5"
| #define PACKAGE_STRING "Kaffe Virtual Machine 1.1.5"
| #define PACKAGE_BUGREPORT "kaffe at kaffe.org"
| #define PACKAGE "kaffe"
| #define VERSION "1.1.5"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| return 0;
|   ;
|   return 0;
| }

Whats the problem? Is the problem the arm-elf-gcc 3.4.3 compiler?

Thanks for answering

Danny











> Gary Thomas wrote:
> > On Wed, 2005-08-17 at 17:41 +0200, Dalibor Topic wrote:
> 
> >>If you need to to that for ecos, then you need to do that :) I don't
> >>know mysef, as I have not built software for ecos yet. I'd suggest
> >>removing -nostdinc though.
> > 
> > 
> > No, -nostdinc is expected when building for eCos.
> 
> That shows how little I know about eCos :(
> 
> > I'm guessing that Danny did not start with an eCos configuration which
> > supports stdio.
> > 
> > Danny - what template did you use for your eCos configuration.
> 
> You can see the original mail at
> http://sourceware.org/ml/ecos-discuss/2005-07/msg00254.html
> 
> cheers,
> dalibor topic
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 







More information about the kaffe mailing list