[Clfs-support] Diffutils 3.6 Fails to Build for PowerPC in Chapter 6
William Harrington
kb0iic at berzerkula.org
Mon Nov 6 11:10:32 PST 2017
On Mon, November 6, 2017 18:41, Gunnersky2002 at gunnerhooper.tk wrote:
> I'm currently building CLFS Systemd for PowerPC 32 Bit on my x86_64
> machine with Linux from Scratch installed. Everything succeeded until I
> attempted to build Diffutils 3.6 in Chapter 6, which gave me this error:
>
...
> ^
> xstrtol-error.c:84:26: error: dereferencing pointer to incomplete type
> 'const struct rpl_option'
> In file included from ./getopt.h:85:0,
> from xstrtol.h:22,
> from xstrtol-error.c:20:
> xstrtol-error.c: At top level:
> ./config.h:2070:25: warning: 'struct rpl_option' declared inside
> parameter list will not be visible outside of this definition or
> declaration
> #define __GETOPT_PREFIX rpl_
> ^
> ./getopt-pfx-core.h:38:44: note: in expansion of macro '__GETOPT_PREFIX'
> # define __GETOPT_ID(y) __GETOPT_XCONCAT (__GETOPT_PREFIX, y)
> ^~~~~~~~~~~~~~~
> xstrtol-error.c:92:1: error: conflicting types for 'xstrtol_fatal'
> xstrtol_fatal (enum strtol_error err,
> ^~~~~~~~~~~~~
> In file included from xstrtol-error.c:20:0:
> xstrtol.h:69:16: note: previous declaration of 'xstrtol_fatal' was here
> _Noreturn void xstrtol_fatal (enum strtol_error,
> ^~~~~~~~~~~~~
...
>
> I'm building CLFS on my x86_64 Linux from Scratch 20170713-systemd
> installation. The book I'm using for CLFS is GIT-20170803-PowerPC. I
> decided to build Linux Headers 4.13.11, Binutils 2.29.1, Glibc 2.26, and
> GCC 7.2.0 for the cross tools.
>
> Any help will be appreciated.
>
> Thanks.
Hello,
I think you are going to need to add the following for diffutils 3.6 to
build with glibc 2.26 while cross compiling the temp tools:
sed -i '/rpl_$/d' lib/config.h
The above should not be necessary when building diffutils in the final
system.
Sincerely,
William Harrington
More information about the Clfs-support
mailing list