All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Stewart <christian@paral.in>
To: buildroot@busybox.net
Subject: [Buildroot] build failure against libintl on alpine
Date: Wed, 27 Dec 2017 12:03:40 -0800	[thread overview]
Message-ID: <87k1x8djkz.fsf@paral.in> (raw)
In-Reply-To: <d0640059-1525-2c82-def1-a961e5340d9e@petroprogram.com>


Hi Waldemar, Stefan,

Thanks for the help on this. 

Stefan Fr?berg <stefan.froberg@petroprogram.com> writes:
> Try adding the "--disable-nls" to HOST_BINUTILS_CONF_OPTS in the
> package/binutils/binutils.mk file
> Might be also needed for ??? HOST_GCC_COMMON_CONF_OPTS in
> package/gcc/gcc.mk as also for
> all other buildroot host packages because NLS support is really useless
> there ...

OK. Initially adding to HOST_BINUTILS_CONF_OPTS makes the build go
farther, but it still breaks on glibc:

rpc_main.c:41:21: fatal error: libintl.h: No such file or directory
 #include <libintl.h>

Adding to HOST_GCC_COMMON_CONF_OPTS, and forcing a rebuild of glibc I
get the same error and these too:

In file included from rpc/types.h:69:0,
                 from rpc_parse.c:39:
/usr/include/sys/types.h:69:28: note: previous declaration of 'u_quad_t' was here
 typedef unsigned long long u_quad_t;
                            ^~~~~~~~
In file included from rpc_parse.c:39:0:
rpc/types.h:84:9: error: unknown type name '__fsid_t'
 typedef __fsid_t fsid_t;
         ^~~~~~~~
rpc/types.h:88:9: error: unknown type name '__daddr_t'
 typedef __daddr_t daddr_t;
         ^~~~~~~~~
rpc/types.h:89:9: error: unknown type name '__caddr_t'
 typedef __caddr_t caddr_t;
         ^~~~~~~~~
rpc/types.h:89:19: error: conflicting types for 'caddr_t'
 typedef __caddr_t caddr_t;
                   ^~~~~~~
In file included from rpc/types.h:69:0,
                 from rpc_parse.c:39:
/usr/include/sys/types.h:63:15: note: previous declaration of 'caddr_t' was here
 typedef char *caddr_t;
               ^~~~~~~
make[6]: *** [Makefile:178: /home/buildroot/skiff/workspaces/docker/build/glibc-glibc-2.26-73-g4b692dffb95ac4812b161eb6a16113d7e824982e/build/sunrpc/cross-rpc_parse.o] Error 1


> musl has it's own dgettext stuff in libc.so* (or libc.a) so it should
> not need the libintl version of gettext.

To anyone interested: I can confirm that compilation in a Ubuntu
container works fine with this Dockerfile:

FROM ubuntu:latest
RUN apt update && \
    apt install -y build-essential \
    git gcc wget curl musl-dev file \
    perl python rsync bc patch unzip cpio
RUN adduser --gecos "Buildroot" --disabled-login --uid 1000 buildroot && \
    mkdir -p /home/buildroot && chown buildroot:buildroot /home/buildroot
USER buildroot
WORKDIR /home/buildroot

Alpine is better because it's light weight. Building in this env would
be very nice. The full Ubuntu container is highly unnecessary.

Best,
Christian

      parent reply	other threads:[~2017-12-27 20:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-27  4:46 [Buildroot] build failure against libintl on alpine Christian Stewart
2017-12-27  8:34 ` Waldemar Brodkorb
2017-12-27 13:55 ` Stefan Fröberg
2017-12-27 14:07   ` Stefan Fröberg
2017-12-27 20:03   ` Christian Stewart [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k1x8djkz.fsf@paral.in \
    --to=christian@paral.in \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.