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@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@lists.tetaneutral.net > https://lists.tetaneutral.net/listinfo/cfarm-users > -- Paul H. Hargrove <phhargr...@lbl.gov> Pronouns: he, him, his Computer Languages & Systems Software (CLaSS) Group Computer Science Department Lawrence Berkeley National Laboratory
_______________________________________________ cfarm-users mailing list cfarm-users@lists.tetaneutral.net https://lists.tetaneutral.net/listinfo/cfarm-users