All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
@ 2015-04-11 15:09 bugzilla at busybox.net
  2015-04-11 16:01 ` [Buildroot] [Bug 8011] " bugzilla at busybox.net
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-11 15:09 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

           Summary: When building only busybox and strace, strace fails on
                    not finding bluetooth/bluetooth.h
           Product: buildroot
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: jaap at jcz.nl
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


When I am building a (very small cpio initramfs) buildroot configuration,
strace fails if only busybox & strace are build.
Probably strace configure see my system bluetooth/bluetooth.h which is not
present in sysroot.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
@ 2015-04-11 16:01 ` bugzilla at busybox.net
  2015-04-11 16:09 ` bugzilla at busybox.net
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-11 16:01 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2015-04-11 16:01:38 UTC ---
Could you please indicate the Buildroot version you're using, and attach a
minimal Buildroot .config that exhibits the problem?

I'm routinely building system with just Busybox and strace, and it just works
fine for me, so there is probably something special in the configuration you're
using.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
  2015-04-11 16:01 ` [Buildroot] [Bug 8011] " bugzilla at busybox.net
@ 2015-04-11 16:09 ` bugzilla at busybox.net
  2015-04-11 16:09 ` bugzilla at busybox.net
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-11 16:09 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

--- Comment #2 from Jaap Crezee <jaap@jcz.nl> 2015-04-11 16:09:11 UTC ---
Created attachment 5986
  --> https://bugs.busybox.net/attachment.cgi?id=5986
my configuration failing with busybox & strace

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
  2015-04-11 16:01 ` [Buildroot] [Bug 8011] " bugzilla at busybox.net
  2015-04-11 16:09 ` bugzilla at busybox.net
@ 2015-04-11 16:09 ` bugzilla at busybox.net
  2015-04-11 17:27 ` bugzilla at busybox.net
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-11 16:09 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

--- Comment #3 from Jaap Crezee <jaap@jcz.nl> 2015-04-11 16:09:43 UTC ---
using buildroot from git merged today, commit id
53903a1520420ae92fc1a9b4ffa6df8efff266f4

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2015-04-11 16:09 ` bugzilla at busybox.net
@ 2015-04-11 17:27 ` bugzilla at busybox.net
  2015-04-11 18:40 ` bugzilla at busybox.net
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-11 17:27 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

--- Comment #4 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2015-04-11 17:27:49 UTC ---
You're using a custom external toolchain:

BR2_TOOLCHAIN_EXTERNAL_PATH="/opt/cross/quark/toolchain"

So it's most likely this toolchain that is broken. Is this toolchain available
somewhere?

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
                   ` (3 preceding siblings ...)
  2015-04-11 17:27 ` bugzilla at busybox.net
@ 2015-04-11 18:40 ` bugzilla at busybox.net
  2015-04-11 18:44 ` bugzilla at busybox.net
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-11 18:40 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

--- Comment #5 from Jaap Crezee <jaap@jcz.nl> 2015-04-11 18:40:50 UTC ---
Created attachment 5991
  --> https://bugs.busybox.net/attachment.cgi?id=5991
ct-ng toolchain configuration

I am using my own ct-ng build toolchain. See other comment.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
                   ` (4 preceding siblings ...)
  2015-04-11 18:40 ` bugzilla at busybox.net
@ 2015-04-11 18:44 ` bugzilla at busybox.net
  2015-04-11 21:03 ` bugzilla at busybox.net
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-11 18:44 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

--- Comment #6 from Jaap Crezee <jaap@jcz.nl> 2015-04-11 18:44:00 UTC ---
We are working with an Intel Galileo gen2 board.
Intel states you should use Yocto.
The reason we are all still here (probably) is because we do NOT like Yocto, or
at least I do not like it. I think it is way to bloated.
Because I could not find a suitable toolchain, I built one myself.

My guess would be that it is not the toolchain which is broken, it has no
header files whatsoever regarding any bluetooth headers.

I am using the same toolchain for a "full-blown" rootfs (the one from this bug
is only for initramfs); it works quite well there. But in that case I also
enabled bluez5....

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
                   ` (5 preceding siblings ...)
  2015-04-11 18:44 ` bugzilla at busybox.net
@ 2015-04-11 21:03 ` bugzilla at busybox.net
  2015-04-12 12:06 ` bugzilla at busybox.net
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-11 21:03 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

Yann E. MORIN <yann.morin.1998@free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yann.morin.1998 at free.fr

--- Comment #7 from Yann E. MORIN <yann.morin.1998@free.fr> 2015-04-11 21:03:43 UTC ---
So, I've tried to reproduce this here. Here's my defconfig:

    BR2_x86_64=y
    BR2_TOOLCHAIN_EXTERNAL=y
    BR2_PACKAGE_STRACE=y

Also, I do have bluetooth devel files installed on my host system:

    $ ls -l /usr/include/bluetooth/bluetooth.h
    -rw-r--r-- 1 root root 7588 Jan 28 22:19 /usr/include/bluetooth/bluetooth.h

But it is not present in the sysroot:

    $ find staging/ -name bluetooth.h
    [nothing]

And strace's log is like:

    checking bluetooth/bluetooth.h usability... no
    checking bluetooth/bluetooth.h presence... no
    checking for bluetooth/bluetooth.h... no

Can you try to reproduce from a clean environment?

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
                   ` (6 preceding siblings ...)
  2015-04-11 21:03 ` bugzilla at busybox.net
@ 2015-04-12 12:06 ` bugzilla at busybox.net
  2015-04-12 12:15 ` bugzilla at busybox.net
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-12 12:06 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

--- Comment #8 from Jaap Crezee <jaap@jcz.nl> 2015-04-12 12:06:46 UTC ---
Okay, I checked the build output:

<snip>
checking bluetooth/bluetooth.h usability... yes
checking bluetooth/bluetooth.h presence... no
configure: WARNING: bluetooth/bluetooth.h: accepted by the compiler, rejected
by the preprocessor!
configure: WARNING: bluetooth/bluetooth.h: proceeding with the compiler's
result
checking for bluetooth/bluetooth.h... yes
</snip>

Any clue if I should look into the toolchain?

I might also try the buildroot toolchain generator once more later today. I
could also build that once, store it in /opt/cross/ .. and just use that from
buildroot, just like my current toolchain.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
                   ` (7 preceding siblings ...)
  2015-04-12 12:06 ` bugzilla at busybox.net
@ 2015-04-12 12:15 ` bugzilla at busybox.net
  2015-04-12 12:25 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-12 12:15 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

--- Comment #9 from Yann E. MORIN <yann.morin.1998@free.fr> 2015-04-12 12:15:45 UTC ---
Can you look at config.log in the strace build dir and see what
commands are run when checking for bluetooth.h ?

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
                   ` (8 preceding siblings ...)
  2015-04-12 12:15 ` bugzilla at busybox.net
@ 2015-04-12 12:25 ` bugzilla at busybox.net
  2015-04-12 12:46 ` bugzilla at busybox.net
  2015-04-17 13:02 ` bugzilla at busybox.net
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-12 12:25 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

--- Comment #10 from Jaap Crezee <jaap@jcz.nl> 2015-04-12 12:25:16 UTC ---
My strace/config.log

<snip>
configure:7337: checking bluetooth/bluetooth.h usability
configure:7337:
/data/work/zupr/ZUPR-Embedded-Buildroot_initramfs/output/host/usr/bin/ccache
/data/work/zupr/ZUPR-Embedded-Buildroot_initramfs/output/host/usr/bin/i586-unknown-linux-gnu-gcc
-c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os 
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
conftest.c:89:33: fatal error: bluetooth/bluetooth.h: No such file or directory
 #include <bluetooth/bluetooth.h>
                                 ^
compilation terminated.
configure:7337: $? = 1
</snip>

Seems rather normal. But, wait, I just did change two things:
- change default rootpw to ""
- did a make distclean

Now it seems to work as expected.

Could it have something to do with the above? Most likely number 2, I do not
think changing a root pwd wil effect something like this.
Or maybe it is ccache ?

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
                   ` (9 preceding siblings ...)
  2015-04-12 12:25 ` bugzilla at busybox.net
@ 2015-04-12 12:46 ` bugzilla at busybox.net
  2015-04-17 13:02 ` bugzilla at busybox.net
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-12 12:46 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

--- Comment #11 from Yann E. MORIN <yann.morin.1998@free.fr> 2015-04-12 12:46:11 UTC ---
It seems you did not start from a clean directory (e.g. you only
removed target/ or some such).

Buildroot does not try to track changes in the configuration, so
sometimes it is needed to clean the build directory and restart
from scratch.

Please have a look at the manual:
    http://buildroot.net/downloads/manual/manual.html#full-rebuild

and see if you where in a case explained there.

See also:
    http://buildroot.net/downloads/manual/manual.html#faq-no-binary-packages

which has a good explanation about (not) removing packages and
(not) tracking configuration changes.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [Buildroot] [Bug 8011] When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h
  2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
                   ` (10 preceding siblings ...)
  2015-04-12 12:46 ` bugzilla at busybox.net
@ 2015-04-17 13:02 ` bugzilla at busybox.net
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla at busybox.net @ 2015-04-17 13:02 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=8011

Jaap Crezee <jaap@jcz.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #12 from Jaap Crezee <jaap@jcz.nl> 2015-04-17 13:02:57 UTC ---
I think it was my badness after all. I cloned the buildroot git archive and put
several branches in it from which I develop my various images. Sometimes I git
checkout <other_branch> and forget to do a make clean.
I changed my method of working to cloning the archive in multiple directories
en never do git checkout <other_branch> in those directories.
It seems to work as expected now.

Closing the issue.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-04-17 13:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-11 15:09 [Buildroot] [Bug 8011] New: When building only busybox and strace, strace fails on not finding bluetooth/bluetooth.h bugzilla at busybox.net
2015-04-11 16:01 ` [Buildroot] [Bug 8011] " bugzilla at busybox.net
2015-04-11 16:09 ` bugzilla at busybox.net
2015-04-11 16:09 ` bugzilla at busybox.net
2015-04-11 17:27 ` bugzilla at busybox.net
2015-04-11 18:40 ` bugzilla at busybox.net
2015-04-11 18:44 ` bugzilla at busybox.net
2015-04-11 21:03 ` bugzilla at busybox.net
2015-04-12 12:06 ` bugzilla at busybox.net
2015-04-12 12:15 ` bugzilla at busybox.net
2015-04-12 12:25 ` bugzilla at busybox.net
2015-04-12 12:46 ` bugzilla at busybox.net
2015-04-17 13:02 ` bugzilla at busybox.net

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.