public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Christoph Trojan" <christoph.trojan@inform-ac.com>
To: gcc-help@gcc.gnu.org
Subject: gcc build problem under AIX 4.3.1
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <25002.948817962.0@NO-ID-FOUND.mhonarc.org> (raw)

Hi,

I've got problems with a build of gcc 2.96 under AIX 4.3.1.
(under Linux I had no problems). I've configured with the only flag --
prefix=/usr/local/gcc. "make bootstrap" runs a while and terminates 
with an error. It seems to depend on the AIX ar :

ar: Not a recognized flag: X
_df_to_usi
ar: Not a recognized flag: X
for file in ../../gcc/frame.c  cplib2.txt   ; do \
  name=`echo ${file} | sed -e 's/[.][cSo]$//' -e 's/[.]asm$//' -e 
's/[.]txt$//'`; \
  oname=` echo ${name} | sed -e 's,.*/,,'`; \
  if [ ${name}.txt = ${file} ]; then \
    for f in .. `cat ${file}`; do if [ x${f} != x.. ]; then \
      make GCC_FOR_TARGET="./xgcc -B/usr/local/gcc/powerpc-
ibm-aix4.3.1.0/bin/ -B./ -I/usr/local/gcc/powerpc-ibm-
aix4.3.1.0/include" \
	AR_FOR_TARGET="ar -X32_64" \
	AR_FLAGS_FOR_TARGET="rc" CC="gcc" \
	CFLAGS="-g -W -Wall -Wtraditional" HOST_PREFIX="" \
	HOST_PREFIX_1="loser-" \
	LANGUAGES="c " \
	LIBGCC2_CFLAGS="-O2   -DIN_GCC    -g -W -Wall -
Wtraditional -I./include   -g1  -DIN_LIBGCC2 -
D__GCC_FLOAT_NOT_NEEDED  " ${f}; \
      if [ $? -eq 0 ] ; then true; else exit 1; fi; \
      ar -X32_64 rc tmplibgcc2.a ${f}; \
      rm -f ${f}; \
    else true; \
    fi; done; \
  else \
    echo ${name}; \
    if [ ${name}.asm = ${file} ]; then \
      cp ${file} ${name}.s || exit 1; file=${name}.s; \
    else true; fi; \
    ./xgcc -B/usr/local/gcc/powerpc-ibm-aix4.3.1.0/bin/ -B./ -
I/usr/local/gcc/powerpc-ibm-aix4.3.1.0/include -O2   -DIN_GCC    -g 
-W -Wall -Wtraditional -I./include   -g1  -DIN_LIBGCC2 -
D__GCC_FLOAT_NOT_NEEDED   -I. -I../../gcc -I../../gcc/config -
I../../gcc/../include -c ${file}; \
    if [ $? -eq 0 ] ; then true; else exit 1; fi; \
    ar -X32_64 rc tmplibgcc2.a ${oname}.o; \
    rm -f ${name}.s ${oname}.o; \
  fi; \
done
../../gcc/frame
ar: Not a recognized flag: X
mv tmplibgcc2.a libgcc2.a
mv: tmplibgcc2.a: A file or directory in the path name does not 
exist.
make[4]: *** [libgcc2.a] Error 1
make[4]: Leaving directory `/usr/local/cmpl/egcs-20000117/obj/gcc'
make[3]: *** [stmp-multilib-sub] Error 2
make[3]: Leaving directory `/usr/local/cmpl/egcs-20000117/obj/gcc'
make[2]: *** [stmp-multilib] Error 1
make[2]: Leaving directory `/usr/local/cmpl/egcs-20000117/obj/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/usr/local/cmpl/egcs-20000117/obj/gcc'
make: *** [bootstrap] Error 2

But my ar knows this flag :
/usr/bin/ar -X
Usage:  ar [-X{32|64|32_64}] [-clsvCT] [-g|o] {-h|p|t|x} [--] Archive 
[File ...]
        ar [-X{32|64|32_64}] [-clsvCT] [-g|o] {-m|r[u]}
                [{-a|b|i} {PositionName}] [--] Archive File ...
        ar [-X{32|64|32_64}] [-clsvCT] [-g|o] {-d|q} [--] Archive File ...
        ar [-X{32|64|32_64}] [-clvCT] {-g|o|s|w} [--] Archive

I've made shure that only the AIX ar, nm was on the machine during 
my build. If I omit this flag things go wrong during the compare of 
the object files of stage1 and stage2, they differ.

Does anybody know what's going on here ?

Thanks
--Christoph--

Christoph.Trojan@inform-ac.com

             reply	other threads:[~2000-04-01  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-01  0:00 Christoph Trojan [this message]
     [not found] <200001251632.OAA11362@cacau.lsd.ic.unicamp.br>
2000-01-25 12:45 ` Alexandre Oliva
2000-04-01  0:00   ` Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
2000-01-25  8:32 Christoph Trojan

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=25002.948817962.0@NO-ID-FOUND.mhonarc.org \
    --to=christoph.trojan@inform-ac.com \
    --cc=gcc-help@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).