gcc-2.95-2 for i386-vxworks

Kai Ruottu kai.ruottu@luukku.com
Wed Feb 21 08:46:00 GMT 2001


cimsroom wrote:
> 
> All:
>     I compile gcc-2.95-2 for i386-vxworks under linux and error
> as following:
>
> _floatdidf
> make[1]: Leaving directory `/home/gcc-2.95.2/gcc'
> /tmp/ccg5qpUI :Assembler message:
> /tmp/ccg5qpUI : Alignment not  a power of 2

 If you track the 'i[34567]86-wrs-vxworks' config files starting from the
'config/i386/vxi386.h' --> 'i386-aout.h' --> 'gstabs.h' --> 'gas.h', you
will meet the following:

-------------------------- clip ----------------------------------------
#define TARGET_MEM_FUNCTIONS

/* In the past there was confusion as to what the argument to .align was
   in GAS.  For the last several years the rule has been this: for a.out
   file formats that argument is LOG, and for all other file formats the
   argument is 1<<LOG.

   However, GAS now has .p2align and .balign pseudo-ops so to remove any
   doubt or guess work, and since this file is used for both a.out and other
   file formats, we use one of them.  */

#ifdef HAVE_GAS_BALIGN_AND_P2ALIGN 
#undef ASM_OUTPUT_ALIGN
#define ASM_OUTPUT_ALIGN(FILE,LOG) \
  if ((LOG)!=0) fprintf ((FILE), "\t.balign %d\n", 1<<(LOG))
#endif
-------------------------- clip ----------------------------------------

 But I haven't seen anyone telling that the GNU as, configured and built
for 'i386-wrs-vxworks' shouldn't work like an 'aout-assembler'... So the
first thing is to solve whether your:

 /home/vxworks/bin/i386-wrs-vxworks/bin

has the needed 'as' for VxWorks... If not, the native 'as' for the ELF-
format (elf_i386) will be used and the reason is that you forgot to build
and install the binutils first or the binutils were configured using
different prefix and target names and are now installed somewhere else.

Cheers, Kai



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list