public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/16953] New: failure to build gcc-3.4.1 on IBM-AIX
@ 2004-08-09 23:58 dmitry at sdsc dot edu
  2004-08-10  0:20 ` [Bug other/16953] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: dmitry at sdsc dot edu @ 2004-08-09 23:58 UTC (permalink / raw)
  To: gcc-bugs

I am trying to build gcc v. 3.4.1 on IBM (AIX) platform. 
If I use gcc version 2.9-aix51-020209 to build with, I get the following
error:

gmake[1]: Entering directory `/dsgpfs2/dmitry/gcc-build/gcc'
gcc   -g -O2 -DIN_GCC     -DHAVE_CONFIG_H  -o cc1 \
        c-parse.o c-lang.o c-pretty-print.o stub-objc.o attribs.o c-errors.o
c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o
c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o
c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o libcpp.a rs6000-c.o
main.o libbackend.a ../libiberty/libiberty.a ../intl/libintl.a -liconv 
ld: 0711-317 ERROR: Undefined symbol: ..libintl_gettext
ld: 0711-317 ERROR: Undefined symbol: ..libintl_bindtextdomain
ld: 0711-317 ERROR: Undefined symbol: ..libintl_textdomain
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status


If I use the native compiler (xlc_r) I get the following error:


xlc_r -c -DHAVE_CONFIG_H -q64 -O5 -qnoipa -qarch=pwr4 -qtune=pwr4 -qcache=auto
-qmaxmem=-1 -I. -I../../gcc-3.4.1/libiberty/../include  
../../gcc-3.4.1/libiberty/objalloc.c -o objalloc.o
"./config.h", line 368.9: 1506-213 (S) Macro name inline cannot be redefined.
"./config.h", line 368.9: 1506-358 (I) "inline" is defined on line 177 of
../../gcc-3.4.1/libiberty/../include/ansidecl.h.
gmake[1]: *** [objalloc.o] Error 1
gmake[1]: Leaving directory `/dsgpfs2/dmitry/gcc-build/libiberty'
gmake: *** [all-libiberty] Error 2

Thanks for looking into this.

-- 
           Summary: failure to build gcc-3.4.1 on IBM-AIX
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dmitry at sdsc dot edu
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-ibm-aix5.2.0.0


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


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

* [Bug other/16953] failure to build gcc-3.4.1 on IBM-AIX
  2004-08-09 23:58 [Bug other/16953] New: failure to build gcc-3.4.1 on IBM-AIX dmitry at sdsc dot edu
@ 2004-08-10  0:20 ` pinskia at gcc dot gnu dot org
  2004-08-10 18:08 ` dmitry at sdsc dot edu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-10  0:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-10 00:20 -------
Did you read <http://gcc.gnu.org/install/specific.html>?

But basically use --disable-nls because the xlc does not support the intl needed.

Also:

Errors involving alloca when building GCC generally are due to an incorrect definition of CC in the 
Makefile or mixing files compiled with the native C compiler and GCC. During the stage1 phase of the 
build, the native AIX compiler must be invoked as cc (not xlc). Once configure has been informed of 
xlc, one needs to use make distclean to remove the configure cache files and ensure that CC 
environment variable does not provide a definition that will confuse configure. If this error occurs 
during stage2 or later, then the problem most likely is the version of Make (see above).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

* [Bug other/16953] failure to build gcc-3.4.1 on IBM-AIX
  2004-08-09 23:58 [Bug other/16953] New: failure to build gcc-3.4.1 on IBM-AIX dmitry at sdsc dot edu
  2004-08-10  0:20 ` [Bug other/16953] " pinskia at gcc dot gnu dot org
@ 2004-08-10 18:08 ` dmitry at sdsc dot edu
  2004-08-13  2:41 ` wilson at specifixinc dot com
  2004-11-24 13:04 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: dmitry at sdsc dot edu @ 2004-08-10 18:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dmitry at sdsc dot edu  2004-08-10 18:08 -------
I now have a different error when compiling with gcc (v 2.9)

gcc   -g -O2 -DIN_GCC     -DHAVE_CONFIG_H    -I. -I.
-I/gpfs/dmitry/gcc-3.4.1/gcc -I/gpfs/dmitry/gcc-3.4.1/gcc/.
-I/gpfs/dmitry/gcc-3.4.1/gcc/../include   \
-DTARGET_MACHINE=\"powerpc-ibm-aix5.2.0.0\" \
-c /gpfs/dmitry/gcc-3.4.1/gcc/collect2.c -o collect2.o
/gpfs/dmitry/gcc-3.4.1/gcc/collect2.c:2645: conflicting types for `ldgetname'
/usr/include/ldfcn.h:193: previous declaration of `ldgetname'
gmake[1]: *** [collect2.o] Error 1

Please explain what is meant by "incorrect definition of CC in the 
Makefile or mixing files compiled with the native C compiler and GCC".
I am not changing anything at all from the original source. I am 
just typing configure and then gmake in the build directory. 
I am using gmake 3.79.1 as recommended. Thanks for clarification. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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


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

* [Bug other/16953] failure to build gcc-3.4.1 on IBM-AIX
  2004-08-09 23:58 [Bug other/16953] New: failure to build gcc-3.4.1 on IBM-AIX dmitry at sdsc dot edu
  2004-08-10  0:20 ` [Bug other/16953] " pinskia at gcc dot gnu dot org
  2004-08-10 18:08 ` dmitry at sdsc dot edu
@ 2004-08-13  2:41 ` wilson at specifixinc dot com
  2004-11-24 13:04 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: wilson at specifixinc dot com @ 2004-08-13  2:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wilson at specifixinc dot com  2004-08-13 02:41 -------
Subject: Re:  failure to build gcc-3.4.1 on IBM-AIX

dmitry at sdsc dot edu wrote:
> Please explain what is meant by "incorrect definition of CC in the 
> Makefile or mixing files compiled with the native C compiler and GCC".

You mentioned an "inline" error from xlc.  This is a configure/make 
error.  You must use the same compiler with configure as you use with 
make.  This is OK
   CC=xlc configure; make
this is not
   configure; make CC=xlc
If you want to change compilers, you need to reconfigure.


-- 


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


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

* [Bug other/16953] failure to build gcc-3.4.1 on IBM-AIX
  2004-08-09 23:58 [Bug other/16953] New: failure to build gcc-3.4.1 on IBM-AIX dmitry at sdsc dot edu
                   ` (2 preceding siblings ...)
  2004-08-13  2:41 ` wilson at specifixinc dot com
@ 2004-11-24 13:04 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-24 13:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-24 13:04 -------
Not a bug by comment #3.  You need to first set CC to cc (as mentioned in the web page) and then 
configure and bootstrap and install and it will work.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

end of thread, other threads:[~2004-11-24 13:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-09 23:58 [Bug other/16953] New: failure to build gcc-3.4.1 on IBM-AIX dmitry at sdsc dot edu
2004-08-10  0:20 ` [Bug other/16953] " pinskia at gcc dot gnu dot org
2004-08-10 18:08 ` dmitry at sdsc dot edu
2004-08-13  2:41 ` wilson at specifixinc dot com
2004-11-24 13:04 ` pinskia at gcc dot gnu dot org

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