building an ARM-uclinux gcc

carles.perello@amrsystems.com carles.perello@amrsystems.com
Fri May 5 11:49:00 GMT 2000


Hi,

I am trying to create a arm-elf compiler for uclinux as target system.

Have started with fresh CVS downloads of gcc, newlib and binutils and have
made a build tree according to Cross Gcc
FAQ( http://www.objsw.com/CrossGCC/ ).

The configure arguments were: 

CONFIG_ARGUMENTS = --host=arm-elf --build=i686-pc-linux-gnu --with-newlib
--enable-multilib --with-cross-host=i686-pc-linux-gnu
--with-gcc-version-trigger=/home/perello/arm/xgcc/gcc/version.c
--with-headers=/home/perello/uclinux/aplio/uC-libc/include
--enable-languages=c --prefix=/home/perello/arm
--exec-prefix=/home/perello/arm-elf

the compilation stops due to problems with limits.h file. 

I add limits.h, features.h and sys/cdefs.h  files to  
build-xgcc/arm-elf/newlib/targ-include directory allowing the compilation
to progress through libc and libm, however when compiling libiberty the
following error arises:

/home/perello/arm/build-xgcc/gcc/xgcc -B/home/perello/arm/build-xgcc/gcc/
-idirafter /home/perello/arm/build-xgcc/arm-elf/newlib/targ-include
-idirafter /home/perello/arm/xgcc/newlib/libc/include -nostdinc -c
-DHAVE_CONFIG_H -DHAVE_SYS_STAT_H -g -O2 -I.
-I../../../xgcc/libiberty/../include  -W -Wall -Wtraditional
../../../xgcc/libiberty/partition.c -o pic/partition.o
/home/perello/arm/build-xgcc/gcc/xgcc -B/home/perello/arm/build-xgcc/gcc/
-idirafter /home/perello/arm/build-xgcc/arm-elf/newlib/targ-include
-idirafter /home/perello/arm/xgcc/newlib/libc/include -nostdinc -c
-DHAVE_CONFIG_H -DHAVE_SYS_STAT_H -g -O2 -I.
-I../../../xgcc/libiberty/../include  -W -Wall -Wtraditional
../../../xgcc/libiberty/partition.c
../../../xgcc/libiberty/partition.c: In function `partition_delete':
../../../xgcc/libiberty/partition.c:62: warning: implicit declaration of
function `free'
../../../xgcc/libiberty/partition.c: In function `elem_compare':
../../../xgcc/libiberty/partition.c:135: Internal compiler error in
`verify_wide_reg_1', at flow.c:2593
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions

The code that leads to the crash, from flow.c:

  2582  static int
  2583  verify_wide_reg_1 (px, pregno)
  2584       rtx *px;
  2585       void *pregno;
  2586  {
  2587    rtx x = *px;
  2588    unsigned int regno = *(int *) pregno;
  2589  
  2590    if (GET_CODE (x) == REG && REGNO (x) == regno)
  2591      {
  2592        if (GET_MODE_BITSIZE (GET_MODE (x)) <= BITS_PER_WORD)
  2593          abort ();
  2594        return 1;
  2595      }
  2596    return 0;
  2597  }


looks not so bad to me....as I am pretty desperated, any suggestion
is more than welcome...

cheers

carles


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