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

Paul H. Hargrove phhargrove at lbl.gov
Mon Oct 28 23:19:34 CET 2024


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

-Paul

On Mon, Oct 28, 2024 at 3:12 PM Bruno Haible via cfarm-users <
cfarm-users at lists.tetaneutral.net> wrote:

> Hi,
>
> > We've been poking around, getting to grips with how all this stuff
> > works, doing some test builds of easy stuff on things that aren't linux,
> > as "that's not Linux" is very much our focus. Tried to do a test build
> > of libarchive on AIX on cfarm111, and it seemed to build fine, then we
> got:
> >
> > exec(): 0509-036 Cannot load program ./.libs/bsdtar because of the
> > following errors:
> >          0509-151 The program does not have an entry point or
> >                     the o_snentry field in the auxiliary header is
> invalid.
> >          0509-194 Examine file headers with the 'dump -ohv' command.
>
> It looks like the package uses libtool, and probably there's some mix
> between
> 32-bit specific options and 64-bit specific options.
>
> The 4 known working configurations [1] on this machine are:
>
> 32-bit, xlc:
> CC="xlc -qthreaded -qtls"; CXX="xlC -qthreaded -qtls"; export CC CXX
> unset AR
> unset NM
>
> 64-bit, xlc:
> CC="xlc -q64 -qthreaded -qtls"; CXX="xlC -q64 -qthreaded -qtls"; AR="ar -X
> 64"; NM="nm -X 64 -B"; export CC CXX AR NM
>
> 32-bit, gcc:
> CC="gcc"; CXX="g++"; export CC CXX
> unset AR
> unset NM
>
> 64-bit, gcc:
> CC="gcc -maix64"; CXX="g++ -maix64"; AR="ar -X 64"; NM="nm -X 64 -B";
> export CC CXX AR NM
>
> The variables AR and NM are needed by libtool.
>
> Bruno
>
> [1] https://gitlab.com/ghwiki/gnow-how/-/wikis/Platforms/Configuration
>
>
>
> _______________________________________________
> cfarm-users mailing list
> cfarm-users at lists.tetaneutral.net
> https://lists.tetaneutral.net/listinfo/cfarm-users
>


-- 
Paul H. Hargrove <PHHargrove at lbl.gov>
Pronouns: he, him, his
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department
Lawrence Berkeley National Laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tetaneutral.net/pipermail/cfarm-users/attachments/20241028/dd26d6a9/attachment-0001.htm>


More information about the cfarm-users mailing list