Subject: bug#20733: coreutils build problem

From: Michael Felt <[email-masked]>
Date: Fri, 5 Jun 2015 18:02:37 +0200

CCLD     src/make-prime-list
  CC       src/src_libstdbuf_so-libstdbuf.o
"src/libstdbuf.c", line 129.27: 1506-943 (W) Attribute "constructor" is not
supported on the target platform and is ignored.
  CCLD     src/libstdbuf.so
ld: 0706-005 Cannot find or open file: PIC
        ld:fopen(): A file or directory in the path name does not exist.
ld: 0706-012 The -h flag is not recognized.
ld: 0706-012 The -a flag is not recognized.
make: 1254-004 The error code from the last command is 255.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.
 amd then make V=1

Making all in .
        cc -qlanglvl=extc89 -qlanglvl=extc99 -fPIC  -g  -shared  -o
src/libstdbuf.so src/src_libstdbuf_so-libstdbuf.o
ld: 0706-005 Cannot find or open file: PIC
        ld:fopen(): A file or directory in the path name does not exist.
ld: 0706-012 The -h flag is not recognized.
ld: 0706-012 The -a flag is not recognized.
make: 1254-004 The error code from the last command is 255.

On Fri, Jun 5, 2015 at 5:29 PM, Paul Eggert <[email-masked]> wrote:

> Michael Felt wrote:
>
>> "lib/get-permissions.c", line 258.5: 1506-045 (S) Undeclared identifier
>> ret.
>> "lib/get-permissions.c", line 260.20: 1506-280 (W) Function argument
>> assignment between types "char*" and "const char*" is not allowed.
>> make: 1254-004 The error code from the last command is 1.
>>
>
> That's a bug recently introduced into gnulib, and it's the sort of fun one
> gets on the bleeding edge.  I installed the attached patch and will cc:
> this to bug-gnulib.  Now please try:
>
> http://www.cs.ucla.edu/~eggert/coreutils-8.23.211-b1d1a.tar.xz
>
>