<div dir="ltr">It has been a long time since I've attempted to support my software on AIX.<div>However, my old notes mention OBJECT_MODE and COMPILE_BITS as environment variables which influence the IBM toolchain.<br>IIRC, their use could/should eliminate the need for `-q64` and `-X 64` arguments in the 64-bit cases listed by Bruno.</div><div><br></div><div>See, for instance, <a href="https://www.ibm.com/docs/en/xl-fortran-aix/16.1.0?topic=environment-default-bit-mode">https://www.ibm.com/docs/en/xl-fortran-aix/16.1.0?topic=environment-default-bit-mode</a><br><br>-Paul</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 28, 2024 at 3:12 PM Bruno Haible via cfarm-users <<a href="mailto:cfarm-users@lists.tetaneutral.net">cfarm-users@lists.tetaneutral.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
> We've been poking around, getting to grips with how all this stuff <br>
> works, doing some test builds of easy stuff on things that aren't linux, <br>
> as "that's not Linux" is very much our focus. Tried to do a test build <br>
> of libarchive on AIX on cfarm111, and it seemed to build fine, then we got:<br>
> <br>
> exec(): 0509-036 Cannot load program ./.libs/bsdtar because of the <br>
> following errors:<br>
> 0509-151 The program does not have an entry point or<br>
> the o_snentry field in the auxiliary header is invalid.<br>
> 0509-194 Examine file headers with the 'dump -ohv' command.<br>
<br>
It looks like the package uses libtool, and probably there's some mix between<br>
32-bit specific options and 64-bit specific options.<br>
<br>
The 4 known working configurations [1] on this machine are:<br>
<br>
32-bit, xlc:<br>
CC="xlc -qthreaded -qtls"; CXX="xlC -qthreaded -qtls"; export CC CXX<br>
unset AR<br>
unset NM<br>
<br>
64-bit, xlc:<br>
CC="xlc -q64 -qthreaded -qtls"; CXX="xlC -q64 -qthreaded -qtls"; AR="ar -X 64"; NM="nm -X 64 -B"; export CC CXX AR NM<br>
<br>
32-bit, gcc:<br>
CC="gcc"; CXX="g++"; export CC CXX<br>
unset AR<br>
unset NM<br>
<br>
64-bit, gcc:<br>
CC="gcc -maix64"; CXX="g++ -maix64"; AR="ar -X 64"; NM="nm -X 64 -B"; export CC CXX AR NM<br>
<br>
The variables AR and NM are needed by libtool.<br>
<br>
Bruno<br>
<br>
[1] <a href="https://gitlab.com/ghwiki/gnow-how/-/wikis/Platforms/Configuration" rel="noreferrer" target="_blank">https://gitlab.com/ghwiki/gnow-how/-/wikis/Platforms/Configuration</a><br>
<br>
<br>
<br>
_______________________________________________<br>
cfarm-users mailing list<br>
<a href="mailto:cfarm-users@lists.tetaneutral.net" target="_blank">cfarm-users@lists.tetaneutral.net</a><br>
<a href="https://lists.tetaneutral.net/listinfo/cfarm-users" rel="noreferrer" target="_blank">https://lists.tetaneutral.net/listinfo/cfarm-users</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div style="font-family:"courier new",monospace">Paul H. Hargrove <<a href="mailto:PHHargrove@lbl.gov" target="_blank">PHHargrove@lbl.gov</a>><br>Pronouns: he, him, his<br></div><div style="font-family:"courier new",monospace">Computer Languages & Systems Software (CLaSS) Group</div><div style="font-family:"courier new",monospace">Computer Science Department</div><div style="font-family:"courier new",monospace">Lawrence Berkeley National Laboratory</div></div></div></div>