public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "brenard at ifrance dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/14733] New: [HPUX cross-ppc] Problem building gcc - array too large ?
Date: Thu, 25 Mar 2004 15:41:00 -0000	[thread overview]
Message-ID: <20040325154050.14733.brenard@ifrance.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2624 bytes --]

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


             reply	other threads:[~2004-03-25 15:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-25 15:41 brenard at ifrance dot com [this message]
2004-03-25 16:45 ` [Bug target/14733] " bangerth at dealii dot org
2004-03-25 17:43 ` brenard at ifrance dot com
2004-03-26  6:39 ` pinskia at gcc dot gnu dot org
2004-06-25 23:25 ` pinskia at gcc dot gnu dot org
2004-08-03  7:01 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040325154050.14733.brenard@ifrance.com \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).