This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/14733] New: [HPUX cross-ppc] Problem building gcc - array too large ?


I'm trying to build gcc-3.3.3 for the ppc-elf target on a hppa1.1-hp-hpux10.20 host.
The build fails with the following error :
../../gcc-3.3.3/gcc/config/rs6000/rs6000.h:2617: error: size of array
`rs6000_reg_names' is too large
 
Reading this file, i can't find any error :
extern char rs6000_reg_names[][8];      /* register names (0 vs. %r0).  */
 
So, i try to make a testcase which shows this problem :
test_fail.c
<<<<<<<<<<<<
/* Works */
int toto[] = { 1, 2 };
 
/* Works */
int tutu[1];
 
/* Doesn't work ! */
int tata[2];
>>>>>>>>>>>
 
And do this command line :
gcc-3.3.3-HPUX-cross/prod_gcc/gcc/xgcc -Bgcc-3.3.3-HPUX-cross/prod_gcc/gcc/  -c
test_fail.c -o test_fail.o
test_fail.c:5: error: size of array `tata' is too large
test_fail.c:5: error: storage size of `tata' isn't known
 
I've tried this with gcc 3.2.1, gcc 3.2.3 and finally 3.3.3, I still have this
problem. But no problem for a native HPUX compiler...
 
Any Idea ?
 
Benoît Renard.
 

My configuration :
 
Host : HPUX 10.20
Binutils used : 2.13.2.1 (cross pcc-elf)
Navive GCC used :------------------
gcc -v
Reading specs from
/users/gnu/Install/gcc-3.2.3-HPUX-native/hpux/lib/gcc-lib/hppa2.0-hp-hpux10.20/3.2.3/specs
Configured with: ../gcc-3.2.3/configure
--prefix=/users/gnu/Install/gcc-3.2.3-HPUX-native
--exec-prefix=/users/gnu/Install/gcc-3.2.3-HPUX-native/hpux --disable-multilib
--enable-languages=c,c++ --disable-nls --with-gnu-as
--with-as=/users/gnu/Install/gcc-3.2.3-HPUX-native/hpux/bin/as --with-newlib
Thread model: single
gcc version 3.2.3
------------------

Configuring :
---------
./xgcc -v
Using built-in specs.
Configured with: ../gcc-3.3.3/configure --target=ppc-elf
--prefix=/users/gnu/Install/gcc-3.3.3-HPUX-cross
--exec-prefix=/users/gnu/Install/gcc-3.3.3-HPUX-cross/ppc-hpux
--disable-multilib --enable-languages=c,c++ --with-gnu-as
--with-as=/users/gnu/Install/gcc-3.2.3-HPUX-cross-fastos-A/ppc-hpux/bin/ppc-elf-as
--with-gnu-ld
--with-ld=/users/gnu/Install/gcc-3.2.3-HPUX-cross-fastos-A/ppc-hpux/bin/ppc-elf-ld
--with-newlib
Thread model: single
gcc version 3.3.3
---------

-- 
           Summary: [HPUX cross-ppc] Problem building gcc - array too large
                    ?
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: brenard at ifrance dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: hppa1.1-hp-hpux10.20
GCC target triplet: ppc-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14733


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]