* [Buildroot] [Bug 321] New: alsa-lib uses host include files for python which breaks builds on 64 bit Linux
@ 2009-05-07 8:36 bugzilla at busybox.net
2009-07-26 7:15 ` [Buildroot] [Bug 321] " bugzilla at busybox.net
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2009-05-07 8:36 UTC (permalink / raw)
To: buildroot
https://bugs.busybox.net/show_bug.cgi?id=321
Host: OpenSuse 11.1 64 bit on Core i7 processor
Target: at91sam9261ek_defconfig
Summary: alsa-lib uses host include files for python which breaks
builds on 64 bit Linux
Product: buildroot
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: blocker
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: ulf.samuelsson at atmel.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
at91sam9261ek_defconfig was updated to use the latest
binutils, gcc, kernel headers etc, and this is yet
to be committed.
When you build alsa-lib, with python enabled, it tries to include some python
headers.
These are included from the host machine and not the target machine.
/home/ulf/projects/Buildroot/20090506/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-gcc
-Os -pipe -Os
-I/home/ulf/projects/Buildroot/20090506/buildroot/build_arm/staging_dir/usr/include
-I/home/ulf/projects/Buildroot/20090506/buildroot/build_arm/staging_dir/include
--sysroot=/home/ulf/projects/Buildroot/20090506/buildroot/build_arm/staging_dir/
-isysroot /home/ulf/projects/Buildroot/20090506/buildroot/build_arm/staging_dir
-mabi=apcs-gnu -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-shared .libs/sbase.o -Wl,--rpath
-Wl,/home/ulf/projects/Buildroot/20090506/buildroot/build_arm/alsa-lib-1.0.18/src/.libs
-L/home/ulf/projects/Buildroot/20090506/buildroot/build_arm/staging_dir/lib
-L/home/ulf/projects/Buildroot/20090506/buildroot/build_arm/staging_dir/usr/lib
-lm ../../../src/.libs/libasound.so -mabi=apcs-gnu -mabi=apcs-gnu -Wl,-soname
-Wl,smixer-sbase.so -o .libs/smixer-sbase.so
In file included from /usr/include/python2.6/Python.h:58,
from python.c:22:
/usr/include/python2.6/pyport.h:685:2: error: #error "LONG_BIT definition
appears wrong for platform (bad gcc/glibc config?)."
Since the host is 64 bit and the target is 32 bit, the check fails.
It would not fail the test if the host is running 32 bit Linux.
The real problem (using host includes) still exist and can cause subtle bugs
This was also reported to the mailing list by Matt Wood
Dec 19, 2008; 07:48pm.
--
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] 5+ messages in thread* [Buildroot] [Bug 321] alsa-lib uses host include files for python which breaks builds on 64 bit Linux 2009-05-07 8:36 [Buildroot] [Bug 321] New: alsa-lib uses host include files for python which breaks builds on 64 bit Linux bugzilla at busybox.net @ 2009-07-26 7:15 ` bugzilla at busybox.net 2010-02-21 18:51 ` bugzilla at busybox.net ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: bugzilla at busybox.net @ 2009-07-26 7:15 UTC (permalink / raw) To: buildroot https://bugs.busybox.net/show_bug.cgi?id=321 --- Comment #1 from Ulf Samuelsson <ulf.samuelsson@atmel.com> 2009-07-26 07:15:21 UTC --- Adding ALSA_LIB_CONF_OPT += --with-pythonlibs=-lpython$(PYTHON_VERSION_MAJOR) +ALSA_LIB_CONF_OPT += --with-pythonincludes=-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR) ALSA_LIB_CFLAGS+=-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR) to the alsa-lib build recipe seems to fix the problem. -- 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] 5+ messages in thread
* [Buildroot] [Bug 321] alsa-lib uses host include files for python which breaks builds on 64 bit Linux 2009-05-07 8:36 [Buildroot] [Bug 321] New: alsa-lib uses host include files for python which breaks builds on 64 bit Linux bugzilla at busybox.net 2009-07-26 7:15 ` [Buildroot] [Bug 321] " bugzilla at busybox.net @ 2010-02-21 18:51 ` bugzilla at busybox.net 2010-04-09 14:54 ` bugzilla at busybox.net 2010-07-19 7:02 ` bugzilla at busybox.net 3 siblings, 0 replies; 5+ messages in thread From: bugzilla at busybox.net @ 2010-02-21 18:51 UTC (permalink / raw) To: buildroot https://bugs.busybox.net/show_bug.cgi?id=321 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2010.02 -- 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] 5+ messages in thread
* [Buildroot] [Bug 321] alsa-lib uses host include files for python which breaks builds on 64 bit Linux 2009-05-07 8:36 [Buildroot] [Bug 321] New: alsa-lib uses host include files for python which breaks builds on 64 bit Linux bugzilla at busybox.net 2009-07-26 7:15 ` [Buildroot] [Bug 321] " bugzilla at busybox.net 2010-02-21 18:51 ` bugzilla at busybox.net @ 2010-04-09 14:54 ` bugzilla at busybox.net 2010-07-19 7:02 ` bugzilla at busybox.net 3 siblings, 0 replies; 5+ messages in thread From: bugzilla at busybox.net @ 2010-04-09 14:54 UTC (permalink / raw) To: buildroot https://bugs.busybox.net/show_bug.cgi?id=321 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2010.02 |2010.05 -- 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] 5+ messages in thread
* [Buildroot] [Bug 321] alsa-lib uses host include files for python which breaks builds on 64 bit Linux 2009-05-07 8:36 [Buildroot] [Bug 321] New: alsa-lib uses host include files for python which breaks builds on 64 bit Linux bugzilla at busybox.net ` (2 preceding siblings ...) 2010-04-09 14:54 ` bugzilla at busybox.net @ 2010-07-19 7:02 ` bugzilla at busybox.net 3 siblings, 0 replies; 5+ messages in thread From: bugzilla at busybox.net @ 2010-07-19 7:02 UTC (permalink / raw) To: buildroot https://bugs.busybox.net/show_bug.cgi?id=321 Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- Fixed by http://git.buildroot.net/buildroot/commit/?id=538773a66f2e71ac29cf799e3249737dd6903c8e. -- 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] 5+ messages in thread
end of thread, other threads:[~2010-07-19 7:02 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-05-07 8:36 [Buildroot] [Bug 321] New: alsa-lib uses host include files for python which breaks builds on 64 bit Linux bugzilla at busybox.net 2009-07-26 7:15 ` [Buildroot] [Bug 321] " bugzilla at busybox.net 2010-02-21 18:51 ` bugzilla at busybox.net 2010-04-09 14:54 ` bugzilla at busybox.net 2010-07-19 7:02 ` bugzilla at busybox.net
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox