<div dir="ltr">Bruno,<div><br></div><div>Regarding `vi`, you may wish to try setting environment variable `TMPDIR=/tmp` or `TMPDIR=$HOME`.<br>While I've not tested gcc119 specifically, this is <i>usually</i> the right way to control the location used for temporary files.<br>Of course, given that this is AIX, YMMV.</div><div><br></div><div>-Paul</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 18, 2022 at 7:15 AM 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">On the gcc119 (AIX 7.2) machine, there are two problems:<br>
<br>
1) The /var partition is full:<br>
<br>
$ df -m /tmp /var/tmp<br>
Filesystem MB blocks Free %Used Iused %Iused Mounted on<br>
/dev/hd3 16384.00 12377.05 25% 132106 5% /tmp<br>
/dev/hd9var 4096.00 0.00 100% 2440 33% /var<br>
<br>
With no room on /var/tmp, 'vi' is inoperable. There is no 'vim' on this<br>
machine. Therefore one has to use /opt/freeware/bin/emacs-nox instead.<br>
<br>
2) A symbolic link for /usr/lib/libncurses.a exists, but linking with<br>
this library produces a non-functional program:<br>
<br>
$ cat conftest.c<br>
extern int tgetent (char *, const char *);<br>
<br>
int<br>
main (void)<br>
{<br>
return tgetent ((char *) 0, "xterm");<br>
}<br>
<br>
$ xlc -q64 -lncurses conftest.c<br>
<br>
$ ./a.out <br>
exec(): 0509-036 Cannot load program ./a.out because of the following errors:<br>
0509-022 Cannot load module /opt/freeware/lib/libncurses.a(libncurses.so.6).<br>
0509-150 Dependent module libgcc_s.a(shr.o) could not be loaded.<br>
0509-022 Cannot load module libgcc_s.a(shr.o).<br>
0509-026 System error: A file or directory in the path name does not exist.<br>
0509-022 Cannot load module a.out.<br>
0509-150 Dependent module /opt/freeware/lib/libncurses.a(libncurses.so.6) could not be loaded.<br>
<br>
$ ldd ./a.out<br>
./a.out needs:<br>
/usr/lib/libc.a(shr_64.o)<br>
/usr/lib/libncurses.a(libncurses.so.6)<br>
/unix<br>
/usr/lib/libcrypt.a(shr_64.o)<br>
Cannot find libgcc_s.a(shr.o) <br>
<br>
Probably another symlink /usr/lib/libgcc_s.a -> /opt/freeware/lib/libgcc_s.a<br>
will fix this problem.<br>
<br>
<br>
Bruno<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>-- <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>