host-python build issue
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,
Signature · 11 lines
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>
Dear Zoltan Gyarmati,
Quoted 5 lines · Zoltan Gyarmati
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
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
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
Quoted 29 lines · Thomas Petazzoni
Dear Zoltan Gyarmati,
Quoted 5 lines · Zoltan Gyarmati
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.hfile 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
Signature · 4 lines
Charles Krinke -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150107/089ba692/attachment.html>
Dear Charles Krinke,
Quoted 4 lines · Charles Krinke
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
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
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?
Signature · 11 lines
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>
Dear Zoltan Gyarmati,
Quoted 5 lines · Zoltan Gyarmati
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.oss3which has them... Consequently the build error itself clearly not Buildroot specific.
You have the oss4-dev package installed, right?
Quoted 3 lines
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
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
Quoted 11 lines · Thomas Petazzoni
Dear Zoltan Gyarmati,
Quoted 5 lines · Zoltan Gyarmati
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.oss3which 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!
Quoted 6 lines
Quoted 4 lines
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
Quoted 3 lines
Thomas
Signature · 11 lines
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>
Dear Zoltan Gyarmati,
Quoted 16 lines · Zoltan Gyarmati
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
Quoted 3 lines
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
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com