This is the mail archive of the gcc@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]

Oddity building 3.2.2 on AIX 4.3.2


I'm attempting to build 3.2.2 on AIX 4.3.2 with the AIX compiler and
something odd is happening. Between the 3.2.1 and 3.2.2 releases, the
following was added to zlib/configure:
  if test -n "$with_cross_host" &&
     test x"$with_cross_host" != x"no"; then
    toolexecdir='$(exec_prefix)/$(target_alias)'
    toolexeclibdir='$(toolexecdir)/lib'
  else
    toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
    toolexeclibdir='$(libdir)'
  fi
  toolexeclibdir=$toolexeclibdir/`$CC -print-multi-os-directory 2>/dev/null || echo .`

On AIX, the following will generate usage output from the C compiler:
  $ /bin/sh
  $ /usr/vac/bin/cc -print-multi-os-directory
The following will print `.':
  $ /bin/sh
  /usr/vac/bin/cc -print-multi-os-directory 2>/dev/null || echo .

However, whenever the above code is run, the output of
toolexeclibdir=$toolexeclibdir/... is *always* the usage output from
the C compiler. This later trips up config.status generating an empty
Makefile. I thought it was a /bin/sh error so upgraded to the latest
bos.rte.shell release (4.3.3.83) but that didn't fix anything.  I'm at
a loss for what's going on.

-- 
albert chin (china@thewrittenword.com)


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