public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc build problem under AIX 4.3.1
@ 2000-01-25  8:32 Christoph Trojan
  0 siblings, 0 replies; 4+ messages in thread
From: Christoph Trojan @ 2000-01-25  8:32 UTC (permalink / raw)
  To: gcc-help

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

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

* Re: gcc build problem under AIX 4.3.1
  2000-01-25 12:45 ` Alexandre Oliva
@ 2000-04-01  0:00   ` Alexandre Oliva
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2000-04-01  0:00 UTC (permalink / raw)
  To: Christoph Trojan; +Cc: gcc-help

On Jan 25, 2000, "Christoph Trojan" <christoph.trojan@inform-ac.com> wrote:

>     ar -X32_64 rc tmplibgcc2.a ${oname}.o; \
> ar: Not a recognized flag: X

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

Maybe GCC is using a different `ar'.  Try to specify AR=/usr/bin/ar
when you run `make bootstrap'.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them

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

* gcc build problem under AIX 4.3.1
@ 2000-04-01  0:00 Christoph Trojan
  0 siblings, 0 replies; 4+ messages in thread
From: Christoph Trojan @ 2000-04-01  0:00 UTC (permalink / raw)
  To: gcc-help

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

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

* Re: gcc build problem under AIX 4.3.1
       [not found] <200001251632.OAA11362@cacau.lsd.ic.unicamp.br>
@ 2000-01-25 12:45 ` Alexandre Oliva
  2000-04-01  0:00   ` Alexandre Oliva
  0 siblings, 1 reply; 4+ messages in thread
From: Alexandre Oliva @ 2000-01-25 12:45 UTC (permalink / raw)
  To: Christoph Trojan; +Cc: gcc-help

On Jan 25, 2000, "Christoph Trojan" <christoph.trojan@inform-ac.com> wrote:

>     ar -X32_64 rc tmplibgcc2.a ${oname}.o; \
> ar: Not a recognized flag: X

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

Maybe GCC is using a different `ar'.  Try to specify AR=/usr/bin/ar
when you run `make bootstrap'.

-- 
Alexandre Oliva http://www.ic.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{lsd.ic.unicamp.br,guarana.{org,com}} aoliva@{acm,computer}.org
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them

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

end of thread, other threads:[~2000-04-01  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-25  8:32 gcc build problem under AIX 4.3.1 Christoph Trojan
     [not found] <200001251632.OAA11362@cacau.lsd.ic.unicamp.br>
2000-01-25 12:45 ` Alexandre Oliva
2000-04-01  0:00   ` Alexandre Oliva
2000-04-01  0:00 Christoph Trojan

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