Cross compiling for vxworks

Leopold Palomo-Avellaneda
Thu Dec 2 18:15:00 GMT 2004


I would like to create a environment using gcc for building code to run in a 
vxworks platform in Pentium box. 

I don't have any experience in this "problem", so I have tried to leard a lot 
and read the information found. I understood that gcc-2,95 is a good choice, 
because the gcc 3.x seems to have some problems with vxworks.

I have compiled the binutils-2.15 :
export TARGET=i686-wrs-vxworks
export prefix=/home/palomo/VxWorks/cross/i686-wrs-vxworks
./configure --target=${TARGET} --prefix=${PREFIX}

The first "error" that I have found is:
checking host system type... i686-pc-linux-gnu
checking target system type... i686-wrs-vxworks
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
*** This configuration is not supported in the following subdirectories:
    (Any other directories should still work fine.)
*** removing intl/Makefile to force reconfigure
*** removing libiberty/Makefile to force reconfigure

however the compilation goes fine and no more problems found.

Now the process to compile gcc, I use:
/configure --target=${TARGET} --prefix=${PREFIX} --with-headers='the place 
where I have the headers of Tornado'

the configure program works ok, but when I compile it, I have this error:
. -I. -I./config -I./../include -c -DL${name} \
       ./libgcc2.c -o ${name}.o; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  i686-wrs-vxworks-ar rc tmplibgcc2.a ${name}.o; \
  rm -f ${name}.o; \
/tmp/ccQ8IIfp.s: Assembler messages:
/tmp/ccQ8IIfp.s:138: Error: alignment not a power of 2
make[1]: *** [libgcc2.a] Error 1

I have searched in the net, list, etc. I have found similar problem but not 
clear solution. Please, could someone help me.

Best regards,


More information about the Gcc-help mailing list