Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [autobuild.buildroot.net] Build results for 2014-05-11
Date: Thu, 15 May 2014 06:44:47 +0300	[thread overview]
Message-ID: <20140515034447.GN4096@tarshish> (raw)
In-Reply-To: <CA+sos7-42Mw1f_M_4+GDmP2-V1da7XwVTbtrsPTQQdiz4r0d+Q@mail.gmail.com>

Hi Beno?t,

On Thu, May 15, 2014 at 12:10:06AM +0200, Beno?t Th?baudeau wrote:
> On Wed, May 14, 2014 at 11:41 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> > On Wed, May 14, 2014 at 11:22:34PM +0200, Beno?t Th?baudeau wrote:
> >> On Wed, May 14, 2014 at 10:56 PM, Baruch Siach <baruch@tkos.co.il> wrote:
> >> > On Tue, May 13, 2014 at 10:01:02AM +0200, Thomas Petazzoni wrote:
> >> >> On Tue, 13 May 2014 10:52:47 +0300, Baruch Siach wrote:
> >> >>
> >> >> > On Tue, May 13, 2014 at 09:44:26AM +0200, Thomas Petazzoni wrote:
> >> >> > > >        arm |                      lsof-4.85 | NOK | http://autobuild.buildroot.net/results/a1f0572dbf968c21f70b35cefff7ef7a1d9a348a/
> >> >> > >
> >> >> > > Missing TCP_* definitions. Weird because the toolchain has recent
> >> >> > > kernel headers (3.12) and uses glibc. Investigation needed.
> >> >> >
> >> >> > http://patchwork.ozlabs.org/patch/345018/ seems applicable (but I didn't test).
> >> >>
> >> >> Indeed, but I'm not really convinced by the fix, seems strange that
> >> >> --sysroot needs to be passed. More investigation is needed to validate
> >> >> the proposed fix, I believe.
> >> >
> >> > Right. It just papers over the real problem which is building a target config
> >> > test using the host toolchain, and then running it. The patch at
> >> > http://patchwork.ozlabs.org/patch/348765/ is better, I believe.
> >>
> >> The issue in my case was that the native toolchain used for the
> >> configure test implicitly #included a header file, which triggered a
> >> conflict of direct inclusion between the native and cross toolchains
> >> header files. Passing --sysroot forces the native toolchain to only
> >> use the header files from the cross toolchain, fixing this conflict.
> >> This directly addresses the issue without any assumption regarding the
> >> cross libc.
> >
> > This make the test succeed sometimes,
> 
> By "sometimes", do you mean that the test also fails sometimes with this patch?

I haven't observed such a failure. But target headers include some 
architecture specific definitions. Mixing these with host predefined macros 
(output of 'gcc -dM -E - < /dev/null') feels like a bad idea. Things like 
endianess and types sizeof mismatches might break tests in unexpected ways.

> > but mixing host toolchain with target
> > headers doesn't look like a good idea.
> 
> With this patch, it is less mixed than before, and some of the other
> tests performed by the configuration script still try to
> cross-configure using the native toolchain. The test fixed here only
> looks at the definitions from the header files, so mixing the native
> toolchain with the cross header files should not be an issue if the
> native and cross header files are no longer mixed thanks to --sysroot.
> 
> Also, 'LSOF_INCLUDE="$(STAGING_DIR)/usr/include"' is explicitly asking
> the configuration script to mix native and cross stuff for tests.

This should be fixed then. I'll look into it.

> >> http://patchwork.ozlabs.org/patch/348765/ works too, but it removes a
> >> configure test and it relies on the "all libc variants we support have
> >> the netinet/tcp.h header" assumption, which might become wrong in the
> >> future, which is why I didn't choose this solution.
> >
> > The alternative header, linux/tcp.h, is broken anyway, because this header
> > does not export the TCP_* symbols, as you can see from the build failure error
> > message. So getting this test "right" won't help us much.
> 
> Correct.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  reply	other threads:[~2014-05-15  3:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-12  6:30 [Buildroot] [autobuild.buildroot.net] Build results for 2014-05-11 Thomas Petazzoni
2014-05-13  7:44 ` Thomas Petazzoni
2014-05-13  7:52   ` Baruch Siach
2014-05-13  8:01     ` Thomas Petazzoni
2014-05-14 20:56       ` Baruch Siach
2014-05-14 21:25         ` Benoît Thébaudeau
2014-05-15  7:50           ` Thomas Petazzoni
2014-05-15 12:51             ` Benoît Thébaudeau
     [not found]         ` <CA+sos78G3YxRUCd6pj8naGBSHANEp=1f5FrtuG2oeQpbhNbOuw@mail.gmail.com>
2014-05-14 21:41           ` Baruch Siach
2014-05-14 22:10             ` Benoît Thébaudeau
2014-05-15  3:44               ` Baruch Siach [this message]
2014-05-15 12:44                 ` Benoît Thébaudeau
2014-05-16  5:20                   ` Baruch Siach
2014-05-16 10:41                     ` Benoît Thébaudeau
2014-05-13  8:44   ` Peter Korsgaard
2014-05-13  8:57   ` Samuel Martin
2014-05-13  9:21   ` Gustavo Zacarias

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=20140515034447.GN4096@tarshish \
    --to=baruch@tkos.co.il \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox