[cfarm-users] Two problems on the gcc119 machine

David Edelsohn dje.gcc at gmail.com
Wed Sep 21 14:24:35 CEST 2022


On Sun, Sep 18, 2022 at 10:15 AM Bruno Haible via cfarm-users <
cfarm-users at lists.tetaneutral.net> wrote:

> On the gcc119 (AIX 7.2) machine, there are two problems:
>
> 1) The /var partition is full:
>
> $ df -m /tmp /var/tmp
> Filesystem    MB blocks      Free %Used    Iused %Iused Mounted on
> /dev/hd3       16384.00  12377.05   25%   132106     5% /tmp
> /dev/hd9var     4096.00      0.00  100%     2440    33% /var
>
> With no room on /var/tmp, 'vi' is inoperable. There is no 'vim' on this
> machine. Therefore one has to use /opt/freeware/bin/emacs-nox instead.
>

Someone created a huge file in /var/tmp.  I have removed it, so there now
is space.


>
> 2) A symbolic link for /usr/lib/libncurses.a exists, but linking with
> this library produces a non-functional program:
>
> $ cat conftest.c
> extern int tgetent (char *, const char *);
>
> int
> main (void)
> {
>   return tgetent ((char *) 0, "xterm");
> }
>
> $ xlc -q64 -lncurses conftest.c
>
> $ ./a.out
> exec(): 0509-036 Cannot load program ./a.out because of the following
> errors:
>         0509-022 Cannot load module
> /opt/freeware/lib/libncurses.a(libncurses.so.6).
>         0509-150   Dependent module libgcc_s.a(shr.o) could not be loaded.
>         0509-022 Cannot load module libgcc_s.a(shr.o).
>         0509-026 System error: A file or directory in the path name does
> not exist.
>         0509-022 Cannot load module a.out.
>         0509-150   Dependent module
> /opt/freeware/lib/libncurses.a(libncurses.so.6) could not be loaded.
>
> $ ldd ./a.out
> ./a.out needs:
>          /usr/lib/libc.a(shr_64.o)
>          /usr/lib/libncurses.a(libncurses.so.6)
>          /unix
>          /usr/lib/libcrypt.a(shr_64.o)
> Cannot find libgcc_s.a(shr.o)
>
> Probably another symlink /usr/lib/libgcc_s.a ->
> /opt/freeware/lib/libgcc_s.a
> will fix this problem.
>

This is because you are combining a program compiled with XLC and a library
compiled with GCC.  You should add the LD_LIBRARY_PATH environment variable
so that the library knows where to find libgcc_s.a.

Thanks, David


>
> Bruno
>
>
>
> _______________________________________________
> cfarm-users mailing list
> cfarm-users at lists.tetaneutral.net
> https://lists.tetaneutral.net/listinfo/cfarm-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tetaneutral.net/pipermail/cfarm-users/attachments/20220921/2e822dba/attachment.htm>


More information about the cfarm-users mailing list