public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Cross compiling for vxworks
@ 2004-12-02 18:15 Leopold Palomo-Avellaneda
  2004-12-02 20:56 ` jf
  0 siblings, 1 reply; 5+ messages in thread
From: Leopold Palomo-Avellaneda @ 2004-12-02 18:15 UTC (permalink / raw)
  To: gcc-help; +Cc: lepalom

Hi,

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:
     target-libiberty
    (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; \
done
_muldi3
_divdi3
_moddi3
_udivdi3
_umoddi3
_negdi2
_lshrdi3
_ashldi3
_ashrdi3
_ffsdi2
_udiv_w_sdiv
_udivmoddi4
_cmpdi2
_ucmpdi2
_floatdidf
/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,

Leo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cross compiling for vxworks
  2004-12-02 18:15 Cross compiling for vxworks Leopold Palomo-Avellaneda
@ 2004-12-02 20:56 ` jf
  2004-12-03  9:20   ` Leopold Palomo-Avellaneda
  0 siblings, 1 reply; 5+ messages in thread
From: jf @ 2004-12-02 20:56 UTC (permalink / raw)
  To: Leopold Palomo-Avellaneda; +Cc: gcc-help

Hi,

I've just compiled gcc 3.4.3 from a x86/Linux-mandrake10.1 to 
ppc604/vxWorks5.4
I have to fix few problem in vxworks include (wchar_t and some other 
things were defined twice)
but the compiler seems to work fine I did some tests this afternoon, and 
I'll do more next week.
Maybe you should give gcc3.4.3 a try.

Jean-François

ps : some times 2.95.3 generates wrong code

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cross compiling for vxworks
  2004-12-02 20:56 ` jf
@ 2004-12-03  9:20   ` Leopold Palomo-Avellaneda
  2004-12-03 10:27     ` Jean-François Morcillo
  0 siblings, 1 reply; 5+ messages in thread
From: Leopold Palomo-Avellaneda @ 2004-12-03  9:20 UTC (permalink / raw)
  To: jf; +Cc: gcc-help, lepalom

Bon jour,

thank's for the answer. My problem is that the target isn't ppc, is i686. 
Howeber I have tried it, my the result also was wrong.

Could you explain what did you do? Is the same that i have done but with ths 
sources of 3.4.3?

Best regards,

Leo


A Dijous 02 Desembre 2004 21:56, jf va escriure:
> Hi,
>
> I've just compiled gcc 3.4.3 from a x86/Linux-mandrake10.1 to
> ppc604/vxWorks5.4
> I have to fix few problem in vxworks include (wchar_t and some other
> things were defined twice)
> but the compiler seems to work fine I did some tests this afternoon, and
> I'll do more next week.
> Maybe you should give gcc3.4.3 a try.
>
> Jean-François
>
> ps : some times 2.95.3 generates wrong code

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cross compiling for vxworks
  2004-12-03  9:20   ` Leopold Palomo-Avellaneda
@ 2004-12-03 10:27     ` Jean-François Morcillo
  2004-12-03 12:59       ` Leopold Palomo-Avellaneda
  0 siblings, 1 reply; 5+ messages in thread
From: Jean-François Morcillo @ 2004-12-03 10:27 UTC (permalink / raw)
  To: Leopold Palomo-Avellaneda; +Cc: gcc-help mailing list

Hi,
here is the configure command I used

$>../gcc-3.4.3/configure --prefix=/home/jf/cross --program-
prefix=powerpc-wrs-vxworks- --target=powerpc-wrs-vxworks --with-cpu=604
--with-headers=/home/jf/gcc/h/ --enable-languages=c

then
$>make

I got somme errors with vxTypesBase.h (ptrdiff_t and wchar_t where
defined twice, maybe because of fixinc) that were easy to fix...

But could you give some more details about your host system (I had hard
time because of a buggy gcc in Mandrake community 10.1) ?

Jean-Fraçois

Le vendredi 03 décembre 2004 à 10:19 +0100, Leopold Palomo-Avellaneda a
écrit :
> Bon jour,
> 
> thank's for the answer. My problem is that the target isn't ppc, is i686. 
> Howeber I have tried it, my the result also was wrong.
> 
> Could you explain what did you do? Is the same that i have done but with ths 
> sources of 3.4.3?
> 
> Best regards,
> 
> Leo


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Cross compiling for vxworks
  2004-12-03 10:27     ` Jean-François Morcillo
@ 2004-12-03 12:59       ` Leopold Palomo-Avellaneda
  0 siblings, 0 replies; 5+ messages in thread
From: Leopold Palomo-Avellaneda @ 2004-12-03 12:59 UTC (permalink / raw)
  To: j_f; +Cc: gcc-help mailing list

Hi,

I understand that you first compile the binutils, no?

>
> $>../gcc-3.4.3/configure --prefix=/home/jf/cross --program-
> prefix=powerpc-wrs-vxworks- --target=powerpc-wrs-vxworks --with-cpu=604
> --with-headers=/home/jf/gcc/h/ --enable-languages=c

OK, 

--with-cpu=.... is important?
--program-prefix= ...is important?
>
> then
> $>make
>
> I got somme errors with vxTypesBase.h (ptrdiff_t and wchar_t where
> defined twice, maybe because of fixinc) that were easy to fix...
>
> But could you give some more details about your host system (I had hard
> time because of a buggy gcc in Mandrake community 10.1) ?

I'm using a Debian Sarge with with a gcc3.3 as primari compiler. I'm using two 
box, one with a P4 and another with an AMD64, but using only by now as a 
32bits host. The target is a PC Pentium class (at least the information that 
the manomfacturer have written. It's a controller of a Robot), so I interpret 
then as a i586.

Merci,

Leo

> Jean-Fraçois
>
> Le vendredi 03 décembre 2004 à 10:19 +0100, Leopold Palomo-Avellaneda a
>
> écrit :
> > Bon jour,
> >
> > thank's for the answer. My problem is that the target isn't ppc, is i686.
> > Howeber I have tried it, my the result also was wrong.
> >
> > Could you explain what did you do? Is the same that i have done but with
> > ths sources of 3.4.3?
> >
> > Best regards,
> >
> > Leo

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-12-03 12:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-02 18:15 Cross compiling for vxworks Leopold Palomo-Avellaneda
2004-12-02 20:56 ` jf
2004-12-03  9:20   ` Leopold Palomo-Avellaneda
2004-12-03 10:27     ` Jean-François Morcillo
2004-12-03 12:59       ` Leopold Palomo-Avellaneda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).