[cfarm-users] New user - experimenting with AIX builds

Bruno Haible bruno at clisp.org
Mon Oct 28 23:41:14 CET 2024


Paul H. Hargrove wrote:
> It has been a long time since I've attempted to support my software on AIX.
> However, my old notes mention OBJECT_MODE and COMPILE_BITS as environment
> variables which influence the IBM toolchain.
> IIRC, their use could/should eliminate the need for `-q64` and `-X 64`
> arguments in the 64-bit cases listed by Bruno.
> 
> See, for instance,
> https://www.ibm.com/docs/en/xl-fortran-aix/16.1.0?topic=environment-default-bit-mode

OBJECT_MODE works fine for xlc.

But it does not work with gcc:

  $ OBJECT_MODE=64 gcc hello.c
  Assembler:
  /tmp//ccK4WLFO.s: line 8: 1252-191 Only .llong should be used for relocatable expressions.
  /tmp//ccK4WLFO.s: line 56: 1252-191 Only .llong should be used for relocatable expressions.
  $ echo $?
  1

Bruno





More information about the cfarm-users mailing list