Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] host-python build issue
@ 2015-01-07 13:11 Zoltan Gyarmati
  2015-01-07 16:43 ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Zoltan Gyarmati @ 2015-01-07 13:11 UTC (permalink / raw)
  To: buildroot

Dear All,

i'm trying to build host-python (pulled in by
mobile-broadband-provider-info), but some of the modules failed to build
(namely ossaudiodev), and even if in this case the built python binary
and modules work properly, the buildroot build process itself fails.
Should this be considered as a bug, or this is the excepted behavior?

Buildroot version: 2014.11 stable
OS: Debian testing, amd64


Please find the relevant part of build log here:
http://pastebin.com/dxytgmFF



Thanks,

-- 
Bests,
Zoltan Gyarmati
IRC freenode: zgyarmati

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150107/566abed4/attachment.asc>

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

* [Buildroot] host-python build issue
  2015-01-07 13:11 [Buildroot] host-python build issue Zoltan Gyarmati
@ 2015-01-07 16:43 ` Thomas Petazzoni
  2015-01-07 16:45   ` Charles Krinke
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2015-01-07 16:43 UTC (permalink / raw)
  To: buildroot

Dear Zoltan Gyarmati,

On Wed, 07 Jan 2015 14:11:05 +0100, Zoltan Gyarmati wrote:

> i'm trying to build host-python (pulled in by
> mobile-broadband-provider-info), but some of the modules failed to build
> (namely ossaudiodev), and even if in this case the built python binary
> and modules work properly, the buildroot build process itself fails.
> Should this be considered as a bug, or this is the excepted behavior?

Do you have a /usr/include/linux/soundcard.h file in your system? If
yes, can you post it on pastebin?

We should probably disable the ossaudiodev module from the host Python
build. It's completely useful and I think we already had reports of
issues building with module with our host-python package.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] host-python build issue
  2015-01-07 16:43 ` Thomas Petazzoni
@ 2015-01-07 16:45   ` Charles Krinke
  2015-01-07 16:51     ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Charles Krinke @ 2015-01-07 16:45 UTC (permalink / raw)
  To: buildroot

If I might also suggest describing or setting up an option for a minimal
python embedded target. Last week I tried to complile python for an
embedded target and got hung up in the audio, dbm and other missing
dependencies.

Charles

On Wed, Jan 7, 2015 at 8:43 AM, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:

> Dear Zoltan Gyarmati,
>
> On Wed, 07 Jan 2015 14:11:05 +0100, Zoltan Gyarmati wrote:
>
> > i'm trying to build host-python (pulled in by
> > mobile-broadband-provider-info), but some of the modules failed to build
> > (namely ossaudiodev), and even if in this case the built python binary
> > and modules work properly, the buildroot build process itself fails.
> > Should this be considered as a bug, or this is the excepted behavior?
>
> Do you have a /usr/include/linux/soundcard.h file in your system? If
> yes, can you post it on pastebin?
>
> We should probably disable the ossaudiodev module from the host Python
> build. It's completely useful and I think we already had reports of
> issues building with module with our host-python package.
>
> Thanks,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>



-- 
Charles Krinke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150107/089ba692/attachment.html>

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

* [Buildroot] host-python build issue
  2015-01-07 16:45   ` Charles Krinke
@ 2015-01-07 16:51     ` Thomas Petazzoni
  2015-01-08  9:40       ` Zoltan Gyarmati
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2015-01-07 16:51 UTC (permalink / raw)
  To: buildroot

Dear Charles Krinke,

On Wed, 7 Jan 2015 08:45:53 -0800, Charles Krinke wrote:

> If I might also suggest describing or setting up an option for a minimal
> python embedded target. Last week I tried to complile python for an
> embedded target and got hung up in the audio, dbm and other missing
> dependencies.

This seems weird. The setup for Python on target is normally pretty
minimal already, and the build is being tested every day by the
autobuilders.

Can you describe more precisely which configurations lead to build
issues with audio, dbm and others?

Please report bugs when you see issues. If we don't have bug reports,
we can't fix/improve things.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] host-python build issue
  2015-01-07 16:51     ` Thomas Petazzoni
@ 2015-01-08  9:40       ` Zoltan Gyarmati
  2015-01-08  9:56         ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Zoltan Gyarmati @ 2015-01-08  9:40 UTC (permalink / raw)
  To: buildroot

Dear Thomas & All,

i got some time to look into this:
my system has the file /usr/include/linux/soundcard.h , but that doesn't
have the missing definitions. On the other hand there is an
/usr/include/linux/soundcard.h.oss3 which has them...
Consequently the build error itself clearly not Buildroot specific.

 I created a small patchset though to make the ossaudiodev module
optional (like ssl, zlib, etc), and disable it for the host-python
build. Should i submit it?


-- 
Bests,
Zoltan Gyarmati
IRC freenode: zgyarmati

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150108/886353b4/attachment.asc>

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

* [Buildroot] host-python build issue
  2015-01-08  9:40       ` Zoltan Gyarmati
@ 2015-01-08  9:56         ` Thomas Petazzoni
  2015-01-08 10:24           ` Zoltan Gyarmati
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2015-01-08  9:56 UTC (permalink / raw)
  To: buildroot

Dear Zoltan Gyarmati,

On Thu, 08 Jan 2015 10:40:32 +0100, Zoltan Gyarmati wrote:

> i got some time to look into this:
> my system has the file /usr/include/linux/soundcard.h , but that doesn't
> have the missing definitions. On the other hand there is an
> /usr/include/linux/soundcard.h.oss3 which has them...
> Consequently the build error itself clearly not Buildroot specific.

You have the oss4-dev package installed, right?

>  I created a small patchset though to make the ossaudiodev module
> optional (like ssl, zlib, etc), and disable it for the host-python
> build. Should i submit it?

Yes, please.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] host-python build issue
  2015-01-08  9:56         ` Thomas Petazzoni
@ 2015-01-08 10:24           ` Zoltan Gyarmati
  2015-01-08 11:26             ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Zoltan Gyarmati @ 2015-01-08 10:24 UTC (permalink / raw)
  To: buildroot



On 01/08/2015 10:56 AM, Thomas Petazzoni wrote:
> Dear Zoltan Gyarmati,
> 
> On Thu, 08 Jan 2015 10:40:32 +0100, Zoltan Gyarmati wrote:
> 
>> i got some time to look into this:
>> my system has the file /usr/include/linux/soundcard.h , but that doesn't
>> have the missing definitions. On the other hand there is an
>> /usr/include/linux/soundcard.h.oss3 which has them...
>> Consequently the build error itself clearly not Buildroot specific.
> 
> You have the oss4-dev package installed, right?

Yes, and the files of the package:
$dpkg -L oss4-dev
/.
/usr
/usr/include
/usr/include/linux
/usr/include/linux/soundcard.h
package diverts others to: /usr/include/linux/soundcard.h.oss3
/usr/share
/usr/share/doc
/usr/share/doc/oss4-dev
/usr/share/doc/oss4-dev/copyright
/usr/share/doc/oss4-dev/changelog.gz
/usr/share/doc/oss4-dev/changelog.Debian.gz
/usr/share/doc/oss4-dev/README.Debian

I didn't notice before that the header file in question was diverted, so
after removing the package, host-python builds properly, thanks for the
hint!

> 
>>  I created a small patchset though to make the ossaudiodev module
>> optional (like ssl, zlib, etc), and disable it for the host-python
>> build. Should i submit it?
> 
> Yes, please.
Will do


> 
> Thomas
> 

-- 
Bests,
Zoltan Gyarmati
IRC freenode: zgyarmati

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150108/851b6d25/attachment.asc>

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

* [Buildroot] host-python build issue
  2015-01-08 10:24           ` Zoltan Gyarmati
@ 2015-01-08 11:26             ` Thomas Petazzoni
  0 siblings, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2015-01-08 11:26 UTC (permalink / raw)
  To: buildroot

Dear Zoltan Gyarmati,

On Thu, 08 Jan 2015 11:24:48 +0100, Zoltan Gyarmati wrote:

> Yes, and the files of the package:
> $dpkg -L oss4-dev
> /.
> /usr
> /usr/include
> /usr/include/linux
> /usr/include/linux/soundcard.h
> package diverts others to: /usr/include/linux/soundcard.h.oss3
> /usr/share
> /usr/share/doc
> /usr/share/doc/oss4-dev
> /usr/share/doc/oss4-dev/copyright
> /usr/share/doc/oss4-dev/changelog.gz
> /usr/share/doc/oss4-dev/changelog.Debian.gz
> /usr/share/doc/oss4-dev/README.Debian
> 
> I didn't notice before that the header file in question was diverted, so
> after removing the package, host-python builds properly, thanks for the
> hint!

I have no idea why this package moves a kernel headers to a different
name. Obviously it can break quite a lot of userspace
applications/libraries. I don't really understand why they are doing
this.

That being said, I don't think the ossaudio Python module is very
useful, so disabling its build is probably the right thing to do for
host-python, and for target python, make it optional.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-01-08 11:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-07 13:11 [Buildroot] host-python build issue Zoltan Gyarmati
2015-01-07 16:43 ` Thomas Petazzoni
2015-01-07 16:45   ` Charles Krinke
2015-01-07 16:51     ` Thomas Petazzoni
2015-01-08  9:40       ` Zoltan Gyarmati
2015-01-08  9:56         ` Thomas Petazzoni
2015-01-08 10:24           ` Zoltan Gyarmati
2015-01-08 11:26             ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox