* [Buildroot] Help: error LONG_BIT definition appears wrong for platform
@ 2020-03-13 10:26 Mark Leo Sumadero
2020-03-13 14:04 ` Thomas Petazzoni
0 siblings, 1 reply; 13+ messages in thread
From: Mark Leo Sumadero @ 2020-03-13 10:26 UTC (permalink / raw)
To: buildroot
Hi I am a beginner on Buildroot and this is my first project
I am currently working on raspberry pi 3B+. One of my project dependencies
is mod_wsgi <https://modwsgi.readthedocs.io/en/develop/>.
I am trying to cross compile mod_wsgi but I can't make it work.
*I have this error: *
>>> mod-wsgi 61359e67448bdfc5fefb1692fd2a97f76394b20c Building
PATH="/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin:/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/sbin:/home/falcon/.nvm/versions/node/v12.16.1/bin:/home/falcon/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
/usr/bin/make -j9 -C
/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/build/mod-wsgi-61359e67448bdfc5fefb1692fd2a97f76394b20c/
/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/apxs
-c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m
-DNDEBUG -Wc,-D_LARGEFILE_SOURCE -Wc,-D_LARGEFILE64_SOURCE
-Wc,-D_FILE_OFFSET_BITS=64 -Wc,-Os src/server/mod_wsgi.c
src/server/wsgi_*.c
-L/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/lib
-L/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/lib/python3.7/config-3.7m
-lpython3.7m -lpthread -ldl -lutil -lm
/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/build-1/libtool
--silent --mode=compile
/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc
-prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE
-I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include
-I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1
-I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1
-I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os
-I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG
-c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch
src/server/mod_wsgi.slo
In file included from
/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/Python.h:53:0,
from src/server/wsgi_python.h:24,
from src/server/mod_wsgi.c:22:
/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/pyport.h:699:2:
error: #error "LONG_BIT definition appears wrong for platform (bad
gcc/glibc config?)."
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
config?)."
^~~~~
apxs:Error: Command failed with rc=65536
*Here is my .mk file*
################################################################################
#
# mod-wsgi
#
################################################################################
MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c
MOD_WSGI_SITE = $(call github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION))
MOD_WSGI_LICENSE = Apache-2.0
MOD_WSGI_LICENSE_FILES = LICENSE
MOD_WSGI_DEPENDENCIES = apache
MOD_WSGI_CONF_OPTS = \
--oldincludedir=$(STAGING_DIR)/usr/include/ \
--includedir=$(STAGING_DIR)/usr/include/ \
--with-apxs=$(STAGING_DIR)/usr/bin/apxs
ifeq ($(BR2_PACKAGE_PYTHON3),y)
MOD_WSGI_DEPENDENCIES += python3
MOD_WSGI_CONF_ENV += \
LDFLAGS='-L$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)' \
CPPFLAGS='-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)' \
CFLAGS='-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)'
# CFLAGS='$(filter-out -D_LARGEFILE64_SOURCE,$(TARGET_CFLAGS))
-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)'
# MOD_WSGI_CONF_OPTS += \
# --with-python="$(STAGING_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR)"
else
MOD_WSGI_DEPENDENCIES += python
MOD_WSGI_CONF_ENV += \
LDFLAGS='-L$(STAGING_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)' \
CPPFLAGS='-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)' \
CFLAGS='-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)'
# CFLAGS='$(filter-out -D_LARGEFILE64_SOURCE,$(TARGET_CFLAGS))
-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)'
# MOD_WSGI_CONF_OPTS += \
# --with-python="$(STAGING_DIR)/usr/bin/python$(PYTHON_VERSION_MAJOR)"
endif
# ifeq ($(BR2_PACKAGE_PYTHON3),y)
# MOD_WSGI_DEPENDENCIES += python3
# MOD_WSGI_CONF_OPTS += \
# --with-python="$(STAGING_DIR)/usr/bin/python$(PYTHON3_VERSION_MAJOR)/"
# else
# MOD_WSGI_DEPENDENCIES += python
# MOD_WSGI_CONF_OPTS += \
# --with-python="$(STAGING_DIR)/usr/bin/python$(PYTHON_VERSION_MAJOR)/"
# endif
# MOD_WSGI_EXCLUDES = $(TARGET_LIBEXECDIR)/*
# MOD_WSGI_AUTORECONF = YES
$(eval $(autotools-package))
Any idea why the build is failing. Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200313/c33ef34b/attachment.html>
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-13 10:26 [Buildroot] Help: error LONG_BIT definition appears wrong for platform Mark Leo Sumadero @ 2020-03-13 14:04 ` Thomas Petazzoni 2020-03-14 3:17 ` Mark Leo Sumadero 2020-03-14 10:21 ` Peter Seiderer 0 siblings, 2 replies; 13+ messages in thread From: Thomas Petazzoni @ 2020-03-13 14:04 UTC (permalink / raw) To: buildroot Hello, On Fri, 13 Mar 2020 18:26:38 +0800 Mark Leo Sumadero <fryu771@gmail.com> wrote: > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc This is the cross-compiler: good! > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m This is a path to header of host components: BAD! And this is where your problem is, this header path should *NOT* be there when you cross-compile. Best regards, Thomas Petazzoni -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-13 14:04 ` Thomas Petazzoni @ 2020-03-14 3:17 ` Mark Leo Sumadero 2020-03-14 10:21 ` Peter Seiderer 1 sibling, 0 replies; 13+ messages in thread From: Mark Leo Sumadero @ 2020-03-14 3:17 UTC (permalink / raw) To: buildroot Hi Thomas, Thanks for the reply, What value should i provide then, if i remove it i'm getting this error now "arm-buildroot-linux-uclibcgnueabihf-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/python2.7'" > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/build-1/libtool --silent --mode=compile /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I/usr/include/python2.7 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG -D_FORTIFY_SOURCE=2 -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch src/server/mod_wsgi.slo arm-buildroot-linux-uclibcgnueabihf-gcc: ERROR: unsafe header/library path used in cross-compilation: '-I/usr/include/python2.7' apxs:Error: Command failed with rc=65536 Sorry this is my first time adding a package. Is a package that need to be patch? On Fri, Mar 13, 2020 at 10:04 PM Thomas Petazzoni < thomas.petazzoni@bootlin.com> wrote: > Hello, > > On Fri, 13 Mar 2020 18:26:38 +0800 > Mark Leo Sumadero <fryu771@gmail.com> wrote: > > > > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > > This is the cross-compiler: good! > > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > > This is a path to header of host components: BAD! > > And this is where your problem is, this header path should *NOT* be > there when you cross-compile. > > Best regards, > > Thomas Petazzoni > -- > Thomas Petazzoni, CTO, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200314/2cce121c/attachment.html> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-13 14:04 ` Thomas Petazzoni 2020-03-14 3:17 ` Mark Leo Sumadero @ 2020-03-14 10:21 ` Peter Seiderer 2020-03-14 12:30 ` Mark Leo Sumadero 1 sibling, 1 reply; 13+ messages in thread From: Peter Seiderer @ 2020-03-14 10:21 UTC (permalink / raw) To: buildroot Hello Mark, On Fri, 13 Mar 2020 15:04:43 +0100, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote: > Hello, > > On Fri, 13 Mar 2020 18:26:38 +0800 > Mark Leo Sumadero <fryu771@gmail.com> wrote: > > > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > > This is the cross-compiler: good! > > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > > This is a path to header of host components: BAD! > > And this is where your problem is, this header path should *NOT* be > there when you cross-compile. The following worked for me (python3 case only): MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c MOD_WSGI_SITE = $(call github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION)) MOD_WSGI_LICENSE = Apache-2.0 MOD_WSGI_LICENSE_FILES = LICENSE MOD_WSGI_DEPENDENCIES = apache MOD_WSGI_CONF_OPTS = \ --with-apxs=$(STAGING_DIR)/usr/bin/apxs ifeq ($(BR2_PACKAGE_PYTHON3),y) MOD_WSGI_DEPENDENCIES += python3 MOD_WSGI_CONF_ENV += \ CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)" \ LDFLAGS="-L$(STAGING_DIR)/usr/lib" endif $(eval $(autotools-package)) Regards, Peter > > Best regards, > > Thomas Petazzoni ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-14 10:21 ` Peter Seiderer @ 2020-03-14 12:30 ` Mark Leo Sumadero 2020-03-14 13:37 ` Mark Leo Sumadero 2020-03-14 13:54 ` Peter Seiderer 0 siblings, 2 replies; 13+ messages in thread From: Mark Leo Sumadero @ 2020-03-14 12:30 UTC (permalink / raw) To: buildroot Hi Peter, Thanks for the reply. I just used your configuration but i got the same error /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/build-1/libtool --silent --mode=compile /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/python3.7 -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m -DNDEBUG -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch src/server/mod_wsgi.slo In file included from /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/Python.h:53:0, from src/server/wsgi_python.h:24, from src/server/mod_wsgi.c:22: /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/pyport.h:699:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." Did i miss something? I am currently using Buildroot-2019.02.01 and python3.7, what version did you use? Are we the same of header path? Thanks, Mark Leo On Sat, Mar 14, 2020 at 6:21 PM Peter Seiderer <ps.report@gmx.net> wrote: > Hello Mark, > > On Fri, 13 Mar 2020 15:04:43 +0100, Thomas Petazzoni < > thomas.petazzoni at bootlin.com> wrote: > > > Hello, > > > > On Fri, 13 Mar 2020 18:26:38 +0800 > > Mark Leo Sumadero <fryu771@gmail.com> wrote: > > > > > > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > > > > This is the cross-compiler: good! > > > > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > > > > This is a path to header of host components: BAD! > > > > And this is where your problem is, this header path should *NOT* be > > there when you cross-compile. > > The following worked for me (python3 case only): > > MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c > MOD_WSGI_SITE = $(call github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION)) > MOD_WSGI_LICENSE = Apache-2.0 > MOD_WSGI_LICENSE_FILES = LICENSE > MOD_WSGI_DEPENDENCIES = apache > > MOD_WSGI_CONF_OPTS = \ > --with-apxs=$(STAGING_DIR)/usr/bin/apxs > > ifeq ($(BR2_PACKAGE_PYTHON3),y) > MOD_WSGI_DEPENDENCIES += python3 > MOD_WSGI_CONF_ENV += \ > > CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)" \ > LDFLAGS="-L$(STAGING_DIR)/usr/lib" > endif > > $(eval $(autotools-package)) > > Regards, > Peter > > > > > Best regards, > > > > Thomas Petazzoni > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200314/1f376cc2/attachment.html> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-14 12:30 ` Mark Leo Sumadero @ 2020-03-14 13:37 ` Mark Leo Sumadero 2020-03-14 13:54 ` Peter Seiderer 1 sibling, 0 replies; 13+ messages in thread From: Mark Leo Sumadero @ 2020-03-14 13:37 UTC (permalink / raw) To: buildroot Hi, I made it worked by using this by adding "m" after PYTHON3_VERSION_MAJOR: MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c MOD_WSGI_SITE = $(call github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION)) MOD_WSGI_LICENSE = Apache-2.0 MOD_WSGI_LICENSE_FILES = LICENSE MOD_WSGI_DEPENDENCIES = apache MOD_WSGI_CONF_OPTS = \ --with-apxs=$(STAGING_DIR)/usr/bin/apxs ifeq ($(BR2_PACKAGE_PYTHON3),y) MOD_WSGI_DEPENDENCIES += python3 MOD_WSGI_CONF_ENV += \ CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)m" \ LDFLAGS="-L$(STAGING_DIR)/usr/lib" endif $(eval $(autotools-package)) Then patching the configure and configure.ac of the package. Question why is that python name is python3.7m not python3.7? On Sat, Mar 14, 2020 at 8:30 PM Mark Leo Sumadero <fryu771@gmail.com> wrote: > Hi Peter, > > Thanks for the reply. I just used your configuration but i got the same > error > > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/build-1/libtool > --silent --mode=compile > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/python3.7 > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > -DNDEBUG -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch > src/server/mod_wsgi.slo > In file included from > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/Python.h:53:0, > from src/server/wsgi_python.h:24, > from src/server/mod_wsgi.c:22: > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/pyport.h:699:2: > error: #error "LONG_BIT definition appears wrong for platform (bad > gcc/glibc config?)." > #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc > config?)." > > Did i miss something? I am currently using Buildroot-2019.02.01 and > python3.7, what version did you use? > Are we the same of header path? > > Thanks, > > Mark Leo > > On Sat, Mar 14, 2020 at 6:21 PM Peter Seiderer <ps.report@gmx.net> wrote: > >> Hello Mark, >> >> On Fri, 13 Mar 2020 15:04:43 +0100, Thomas Petazzoni < >> thomas.petazzoni at bootlin.com> wrote: >> >> > Hello, >> > >> > On Fri, 13 Mar 2020 18:26:38 +0800 >> > Mark Leo Sumadero <fryu771@gmail.com> wrote: >> > >> > > >> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc >> > >> > This is the cross-compiler: good! >> > >> > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE >> > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >> > > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >> > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m >> > >> > This is a path to header of host components: BAD! >> > >> > And this is where your problem is, this header path should *NOT* be >> > there when you cross-compile. >> >> The following worked for me (python3 case only): >> >> MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c >> MOD_WSGI_SITE = $(call >> github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION)) >> MOD_WSGI_LICENSE = Apache-2.0 >> MOD_WSGI_LICENSE_FILES = LICENSE >> MOD_WSGI_DEPENDENCIES = apache >> >> MOD_WSGI_CONF_OPTS = \ >> --with-apxs=$(STAGING_DIR)/usr/bin/apxs >> >> ifeq ($(BR2_PACKAGE_PYTHON3),y) >> MOD_WSGI_DEPENDENCIES += python3 >> MOD_WSGI_CONF_ENV += \ >> >> CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)" \ >> LDFLAGS="-L$(STAGING_DIR)/usr/lib" >> endif >> >> $(eval $(autotools-package)) >> >> Regards, >> Peter >> >> > >> > Best regards, >> > >> > Thomas Petazzoni >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200314/6d9680e2/attachment.html> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-14 12:30 ` Mark Leo Sumadero 2020-03-14 13:37 ` Mark Leo Sumadero @ 2020-03-14 13:54 ` Peter Seiderer 2020-03-14 14:33 ` Mark Leo Sumadero 1 sibling, 1 reply; 13+ messages in thread From: Peter Seiderer @ 2020-03-14 13:54 UTC (permalink / raw) To: buildroot Hello Mark, On Sat, 14 Mar 2020 20:30:01 +0800, Mark Leo Sumadero <fryu771@gmail.com> wrote: > Hi Peter, > > Thanks for the reply. I just used your configuration but i got the same > error > > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/build-1/libtool > --silent --mode=compile > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/python3.7 > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > -DNDEBUG -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch > src/server/mod_wsgi.slo > In file included from > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/Python.h:53:0, > from src/server/wsgi_python.h:24, > from src/server/mod_wsgi.c:22: > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/pyport.h:699:2: > error: #error "LONG_BIT definition appears wrong for platform (bad > gcc/glibc config?)." > #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc > config?)." > > Did i miss something? I am currently using Buildroot-2019.02.01 and > python3.7, what version did you use? > Are we the same of header path? Tested against buildroot master, but should not make any difference, the important part is a full rebuild (configure/compile) of the package (best achieved by rm -rf build/mod_wsgi-61359e67448bdfc5fefb1692fd2a97f76394b20c)... No need to patch configure or configure.ac (there is already enough logic/magic that the given custom CPPFLAGS/LDFLAGS are used first)... According to [1] the 'm' in 'python3.7m' comes from a python configuration with --with-pymalloc, does not happen with stock buildroot configuration... Regards, Peter [1] https://stackoverflow.com/questions/41589655/whats-the-difference-between-python3-x-and-python3-xm > > Thanks, > > Mark Leo > > On Sat, Mar 14, 2020 at 6:21 PM Peter Seiderer <ps.report@gmx.net> wrote: > > > Hello Mark, > > > > On Fri, 13 Mar 2020 15:04:43 +0100, Thomas Petazzoni < > > thomas.petazzoni at bootlin.com> wrote: > > > > > Hello, > > > > > > On Fri, 13 Mar 2020 18:26:38 +0800 > > > Mark Leo Sumadero <fryu771@gmail.com> wrote: > > > > > > > > > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > > > > > > This is the cross-compiler: good! > > > > > > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > > > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > > > > > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os > > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > > > > > > This is a path to header of host components: BAD! > > > > > > And this is where your problem is, this header path should *NOT* be > > > there when you cross-compile. > > > > The following worked for me (python3 case only): > > > > MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c > > MOD_WSGI_SITE = $(call github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION)) > > MOD_WSGI_LICENSE = Apache-2.0 > > MOD_WSGI_LICENSE_FILES = LICENSE > > MOD_WSGI_DEPENDENCIES = apache > > > > MOD_WSGI_CONF_OPTS = \ > > --with-apxs=$(STAGING_DIR)/usr/bin/apxs > > > > ifeq ($(BR2_PACKAGE_PYTHON3),y) > > MOD_WSGI_DEPENDENCIES += python3 > > MOD_WSGI_CONF_ENV += \ > > > > CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)" \ > > LDFLAGS="-L$(STAGING_DIR)/usr/lib" > > endif > > > > $(eval $(autotools-package)) > > > > Regards, > > Peter > > > > > > > > Best regards, > > > > > > Thomas Petazzoni > > > > ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-14 13:54 ` Peter Seiderer @ 2020-03-14 14:33 ` Mark Leo Sumadero 2020-03-14 14:38 ` Mark Leo Sumadero 0 siblings, 1 reply; 13+ messages in thread From: Mark Leo Sumadero @ 2020-03-14 14:33 UTC (permalink / raw) To: buildroot Hi Peter, You are correct no need to patch but if i remove the 'm' on my configuration i got the same error. How can i force it to use python3.7 only without 'm'? On Sat, Mar 14, 2020 at 9:54 PM Peter Seiderer <ps.report@gmx.net> wrote: > Hello Mark, > > On Sat, 14 Mar 2020 20:30:01 +0800, Mark Leo Sumadero <fryu771@gmail.com> > wrote: > > > Hi Peter, > > > > Thanks for the reply. I just used your configuration but i got the same > > error > > > > > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/build-1/libtool > > --silent --mode=compile > > > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/python3.7 > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > > -DNDEBUG -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch > > src/server/mod_wsgi.slo > > In file included from > > > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/Python.h:53:0, > > from src/server/wsgi_python.h:24, > > from src/server/mod_wsgi.c:22: > > > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/pyport.h:699:2: > > error: #error "LONG_BIT definition appears wrong for platform (bad > > gcc/glibc config?)." > > #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc > > config?)." > > > > Did i miss something? I am currently using Buildroot-2019.02.01 and > > python3.7, what version did you use? > > Are we the same of header path? > > Tested against buildroot master, but should not make any difference, > the important part is a full rebuild (configure/compile) of the > package (best achieved by rm -rf > build/mod_wsgi-61359e67448bdfc5fefb1692fd2a97f76394b20c)... > > No need to patch configure or configure.ac (there is already enough > logic/magic that the > given custom CPPFLAGS/LDFLAGS are used first)... > > According to [1] the 'm' in 'python3.7m' comes from a python configuration > with --with-pymalloc, > does not happen with stock buildroot configuration... > > Regards, > Peter > > [1] > https://stackoverflow.com/questions/41589655/whats-the-difference-between-python3-x-and-python3-xm > > > > > > Thanks, > > > > Mark Leo > > > > On Sat, Mar 14, 2020 at 6:21 PM Peter Seiderer <ps.report@gmx.net> > wrote: > > > > > Hello Mark, > > > > > > On Fri, 13 Mar 2020 15:04:43 +0100, Thomas Petazzoni < > > > thomas.petazzoni at bootlin.com> wrote: > > > > > > > Hello, > > > > > > > > On Fri, 13 Mar 2020 18:26:38 +0800 > > > > Mark Leo Sumadero <fryu771@gmail.com> wrote: > > > > > > > > > > > > > /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > > > > > > > > This is the cross-compiler: good! > > > > > > > > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > > > > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > > > > > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > > > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > > > > > > > > > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > > > > > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > > > > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 > -Os > > > > > > > > > -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > > > > > > > > This is a path to header of host components: BAD! > > > > > > > > And this is where your problem is, this header path should *NOT* be > > > > there when you cross-compile. > > > > > > The following worked for me (python3 case only): > > > > > > MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c > > > MOD_WSGI_SITE = $(call > github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION)) > > > MOD_WSGI_LICENSE = Apache-2.0 > > > MOD_WSGI_LICENSE_FILES = LICENSE > > > MOD_WSGI_DEPENDENCIES = apache > > > > > > MOD_WSGI_CONF_OPTS = \ > > > --with-apxs=$(STAGING_DIR)/usr/bin/apxs > > > > > > ifeq ($(BR2_PACKAGE_PYTHON3),y) > > > MOD_WSGI_DEPENDENCIES += python3 > > > MOD_WSGI_CONF_ENV += \ > > > > > > CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)" > \ > > > LDFLAGS="-L$(STAGING_DIR)/usr/lib" > > > endif > > > > > > $(eval $(autotools-package)) > > > > > > Regards, > > > Peter > > > > > > > > > > > Best regards, > > > > > > > > Thomas Petazzoni > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200314/015b55b1/attachment-0001.html> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-14 14:33 ` Mark Leo Sumadero @ 2020-03-14 14:38 ` Mark Leo Sumadero 2020-03-14 14:43 ` Mark Leo Sumadero 2020-03-15 17:27 ` Peter Seiderer 0 siblings, 2 replies; 13+ messages in thread From: Mark Leo Sumadero @ 2020-03-14 14:38 UTC (permalink / raw) To: buildroot Or i really don't know why i my python was compiled with pymalloc i'm just yung using the compiled python of buildroot. On Sat, Mar 14, 2020 at 10:33 PM Mark Leo Sumadero <fryu771@gmail.com> wrote: > Hi Peter, > > You are correct no need to patch but if i remove the 'm' on my > configuration i got the same error. How can i force it to use python3.7 > only without 'm'? > > On Sat, Mar 14, 2020 at 9:54 PM Peter Seiderer <ps.report@gmx.net> wrote: > >> Hello Mark, >> >> On Sat, 14 Mar 2020 20:30:01 +0800, Mark Leo Sumadero <fryu771@gmail.com> >> wrote: >> >> > Hi Peter, >> > >> > Thanks for the reply. I just used your configuration but i got the same >> > error >> > >> > >> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/build-1/libtool >> > --silent --mode=compile >> > >> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc >> > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE >> > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE >> > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >> > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >> > >> > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >> > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >> > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os >> > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/python3.7 >> > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m >> > -DNDEBUG -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch >> > src/server/mod_wsgi.slo >> > In file included from >> > >> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/Python.h:53:0, >> > from src/server/wsgi_python.h:24, >> > from src/server/mod_wsgi.c:22: >> > >> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/pyport.h:699:2: >> > error: #error "LONG_BIT definition appears wrong for platform (bad >> > gcc/glibc config?)." >> > #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc >> > config?)." >> > >> > Did i miss something? I am currently using Buildroot-2019.02.01 and >> > python3.7, what version did you use? >> > Are we the same of header path? >> >> Tested against buildroot master, but should not make any difference, >> the important part is a full rebuild (configure/compile) of the >> package (best achieved by rm -rf >> build/mod_wsgi-61359e67448bdfc5fefb1692fd2a97f76394b20c)... >> >> No need to patch configure or configure.ac (there is already enough >> logic/magic that the >> given custom CPPFLAGS/LDFLAGS are used first)... >> >> According to [1] the 'm' in 'python3.7m' comes from a python >> configuration with --with-pymalloc, >> does not happen with stock buildroot configuration... >> >> Regards, >> Peter >> >> [1] >> https://stackoverflow.com/questions/41589655/whats-the-difference-between-python3-x-and-python3-xm >> >> >> > >> > Thanks, >> > >> > Mark Leo >> > >> > On Sat, Mar 14, 2020 at 6:21 PM Peter Seiderer <ps.report@gmx.net> >> wrote: >> > >> > > Hello Mark, >> > > >> > > On Fri, 13 Mar 2020 15:04:43 +0100, Thomas Petazzoni < >> > > thomas.petazzoni at bootlin.com> wrote: >> > > >> > > > Hello, >> > > > >> > > > On Fri, 13 Mar 2020 18:26:38 +0800 >> > > > Mark Leo Sumadero <fryu771@gmail.com> wrote: >> > > > >> > > > > >> > > >> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc >> > > > >> > > > This is the cross-compiler: good! >> > > > >> > > > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE >> > > > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE >> > > > > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >> > > > > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >> > > > > >> > > > > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >> > > > > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >> > > > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 >> -Os >> > > > > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m >> > > > >> > > > This is a path to header of host components: BAD! >> > > > >> > > > And this is where your problem is, this header path should *NOT* be >> > > > there when you cross-compile. >> > > >> > > The following worked for me (python3 case only): >> > > >> > > MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c >> > > MOD_WSGI_SITE = $(call >> github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION)) >> > > MOD_WSGI_LICENSE = Apache-2.0 >> > > MOD_WSGI_LICENSE_FILES = LICENSE >> > > MOD_WSGI_DEPENDENCIES = apache >> > > >> > > MOD_WSGI_CONF_OPTS = \ >> > > --with-apxs=$(STAGING_DIR)/usr/bin/apxs >> > > >> > > ifeq ($(BR2_PACKAGE_PYTHON3),y) >> > > MOD_WSGI_DEPENDENCIES += python3 >> > > MOD_WSGI_CONF_ENV += \ >> > > >> > > >> CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)" \ >> > > LDFLAGS="-L$(STAGING_DIR)/usr/lib" >> > > endif >> > > >> > > $(eval $(autotools-package)) >> > > >> > > Regards, >> > > Peter >> > > >> > > > >> > > > Best regards, >> > > > >> > > > Thomas Petazzoni >> > > >> > > >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200314/2b1be35f/attachment.html> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-14 14:38 ` Mark Leo Sumadero @ 2020-03-14 14:43 ` Mark Leo Sumadero 2020-03-14 17:10 ` Mark Leo Sumadero 2020-03-15 17:27 ` Peter Seiderer 1 sibling, 1 reply; 13+ messages in thread From: Mark Leo Sumadero @ 2020-03-14 14:43 UTC (permalink / raw) To: buildroot or i am really missing something here. Sorry i'am just confuse with the process. On Sat, Mar 14, 2020 at 10:38 PM Mark Leo Sumadero <fryu771@gmail.com> wrote: > Or i really don't know why i my python was compiled with pymalloc i'm just > yung using the compiled python of buildroot. > > On Sat, Mar 14, 2020 at 10:33 PM Mark Leo Sumadero <fryu771@gmail.com> > wrote: > >> Hi Peter, >> >> You are correct no need to patch but if i remove the 'm' on my >> configuration i got the same error. How can i force it to use python3.7 >> only without 'm'? >> >> On Sat, Mar 14, 2020 at 9:54 PM Peter Seiderer <ps.report@gmx.net> wrote: >> >>> Hello Mark, >>> >>> On Sat, 14 Mar 2020 20:30:01 +0800, Mark Leo Sumadero <fryu771@gmail.com> >>> wrote: >>> >>> > Hi Peter, >>> > >>> > Thanks for the reply. I just used your configuration but i got the same >>> > error >>> > >>> > >>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/build-1/libtool >>> > --silent --mode=compile >>> > >>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc >>> > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE >>> > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE >>> > >>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >>> > >>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >>> > >>> > >>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >>> > >>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >>> > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os >>> > >>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/python3.7 >>> > >>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m >>> > -DNDEBUG -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch >>> > src/server/mod_wsgi.slo >>> > In file included from >>> > >>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/Python.h:53:0, >>> > from src/server/wsgi_python.h:24, >>> > from src/server/mod_wsgi.c:22: >>> > >>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/pyport.h:699:2: >>> > error: #error "LONG_BIT definition appears wrong for platform (bad >>> > gcc/glibc config?)." >>> > #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc >>> > config?)." >>> > >>> > Did i miss something? I am currently using Buildroot-2019.02.01 and >>> > python3.7, what version did you use? >>> > Are we the same of header path? >>> >>> Tested against buildroot master, but should not make any difference, >>> the important part is a full rebuild (configure/compile) of the >>> package (best achieved by rm -rf >>> build/mod_wsgi-61359e67448bdfc5fefb1692fd2a97f76394b20c)... >>> >>> No need to patch configure or configure.ac (there is already enough >>> logic/magic that the >>> given custom CPPFLAGS/LDFLAGS are used first)... >>> >>> According to [1] the 'm' in 'python3.7m' comes from a python >>> configuration with --with-pymalloc, >>> does not happen with stock buildroot configuration... >>> >>> Regards, >>> Peter >>> >>> [1] >>> https://stackoverflow.com/questions/41589655/whats-the-difference-between-python3-x-and-python3-xm >>> >>> >>> > >>> > Thanks, >>> > >>> > Mark Leo >>> > >>> > On Sat, Mar 14, 2020 at 6:21 PM Peter Seiderer <ps.report@gmx.net> >>> wrote: >>> > >>> > > Hello Mark, >>> > > >>> > > On Fri, 13 Mar 2020 15:04:43 +0100, Thomas Petazzoni < >>> > > thomas.petazzoni at bootlin.com> wrote: >>> > > >>> > > > Hello, >>> > > > >>> > > > On Fri, 13 Mar 2020 18:26:38 +0800 >>> > > > Mark Leo Sumadero <fryu771@gmail.com> wrote: >>> > > > >>> > > > > >>> > > >>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc >>> > > > >>> > > > This is the cross-compiler: good! >>> > > > >>> > > > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE >>> > > > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE >>> > > > > >>> > > >>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >>> > > > > >>> > > >>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >>> > > > > >>> > > > > >>> > > >>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >>> > > > > >>> > > >>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >>> > > > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 >>> -Os >>> > > > > >>> > > >>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m >>> > > > >>> > > > This is a path to header of host components: BAD! >>> > > > >>> > > > And this is where your problem is, this header path should *NOT* be >>> > > > there when you cross-compile. >>> > > >>> > > The following worked for me (python3 case only): >>> > > >>> > > MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c >>> > > MOD_WSGI_SITE = $(call >>> github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION)) >>> > > MOD_WSGI_LICENSE = Apache-2.0 >>> > > MOD_WSGI_LICENSE_FILES = LICENSE >>> > > MOD_WSGI_DEPENDENCIES = apache >>> > > >>> > > MOD_WSGI_CONF_OPTS = \ >>> > > --with-apxs=$(STAGING_DIR)/usr/bin/apxs >>> > > >>> > > ifeq ($(BR2_PACKAGE_PYTHON3),y) >>> > > MOD_WSGI_DEPENDENCIES += python3 >>> > > MOD_WSGI_CONF_ENV += \ >>> > > >>> > > >>> CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)" \ >>> > > LDFLAGS="-L$(STAGING_DIR)/usr/lib" >>> > > endif >>> > > >>> > > $(eval $(autotools-package)) >>> > > >>> > > Regards, >>> > > Peter >>> > > >>> > > > >>> > > > Best regards, >>> > > > >>> > > > Thomas Petazzoni >>> > > >>> > > >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200314/6a229f15/attachment.html> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-14 14:43 ` Mark Leo Sumadero @ 2020-03-14 17:10 ` Mark Leo Sumadero 2020-03-15 17:33 ` Peter Seiderer 0 siblings, 1 reply; 13+ messages in thread From: Mark Leo Sumadero @ 2020-03-14 17:10 UTC (permalink / raw) To: buildroot Hi, How i can add a new package to buildroot master? Or i can make a pull request for new package. On Sat, Mar 14, 2020 at 10:43 PM Mark Leo Sumadero <fryu771@gmail.com> wrote: > or i am really missing something here. Sorry i'am just confuse with the > process. > > On Sat, Mar 14, 2020 at 10:38 PM Mark Leo Sumadero <fryu771@gmail.com> > wrote: > >> Or i really don't know why i my python was compiled with pymalloc i'm >> just yung using the compiled python of buildroot. >> >> On Sat, Mar 14, 2020 at 10:33 PM Mark Leo Sumadero <fryu771@gmail.com> >> wrote: >> >>> Hi Peter, >>> >>> You are correct no need to patch but if i remove the 'm' on my >>> configuration i got the same error. How can i force it to use python3.7 >>> only without 'm'? >>> >>> On Sat, Mar 14, 2020 at 9:54 PM Peter Seiderer <ps.report@gmx.net> >>> wrote: >>> >>>> Hello Mark, >>>> >>>> On Sat, 14 Mar 2020 20:30:01 +0800, Mark Leo Sumadero < >>>> fryu771 at gmail.com> wrote: >>>> >>>> > Hi Peter, >>>> > >>>> > Thanks for the reply. I just used your configuration but i got the >>>> same >>>> > error >>>> > >>>> > >>>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/build-1/libtool >>>> > --silent --mode=compile >>>> > >>>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc >>>> > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE >>>> > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE >>>> > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >>>> > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >>>> > >>>> > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >>>> > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >>>> > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os >>>> > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/python3.7 >>>> > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m >>>> > -DNDEBUG -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch >>>> > src/server/mod_wsgi.slo >>>> > In file included from >>>> > >>>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/Python.h:53:0, >>>> > from src/server/wsgi_python.h:24, >>>> > from src/server/mod_wsgi.c:22: >>>> > >>>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/pyport.h:699:2: >>>> > error: #error "LONG_BIT definition appears wrong for platform (bad >>>> > gcc/glibc config?)." >>>> > #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc >>>> > config?)." >>>> > >>>> > Did i miss something? I am currently using Buildroot-2019.02.01 and >>>> > python3.7, what version did you use? >>>> > Are we the same of header path? >>>> >>>> Tested against buildroot master, but should not make any difference, >>>> the important part is a full rebuild (configure/compile) of the >>>> package (best achieved by rm -rf >>>> build/mod_wsgi-61359e67448bdfc5fefb1692fd2a97f76394b20c)... >>>> >>>> No need to patch configure or configure.ac (there is already enough >>>> logic/magic that the >>>> given custom CPPFLAGS/LDFLAGS are used first)... >>>> >>>> According to [1] the 'm' in 'python3.7m' comes from a python >>>> configuration with --with-pymalloc, >>>> does not happen with stock buildroot configuration... >>>> >>>> Regards, >>>> Peter >>>> >>>> [1] >>>> https://stackoverflow.com/questions/41589655/whats-the-difference-between-python3-x-and-python3-xm >>>> >>>> >>>> > >>>> > Thanks, >>>> > >>>> > Mark Leo >>>> > >>>> > On Sat, Mar 14, 2020 at 6:21 PM Peter Seiderer <ps.report@gmx.net> >>>> wrote: >>>> > >>>> > > Hello Mark, >>>> > > >>>> > > On Fri, 13 Mar 2020 15:04:43 +0100, Thomas Petazzoni < >>>> > > thomas.petazzoni at bootlin.com> wrote: >>>> > > >>>> > > > Hello, >>>> > > > >>>> > > > On Fri, 13 Mar 2020 18:26:38 +0800 >>>> > > > Mark Leo Sumadero <fryu771@gmail.com> wrote: >>>> > > > >>>> > > > > >>>> > > >>>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc >>>> > > > >>>> > > > This is the cross-compiler: good! >>>> > > > >>>> > > > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE >>>> > > > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE >>>> > > > > >>>> > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >>>> > > > > >>>> > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >>>> > > > > >>>> > > > > >>>> > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 >>>> > > > > >>>> > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include >>>> > > > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE >>>> -D_FILE_OFFSET_BITS=64 -Os >>>> > > > > >>>> > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m >>>> > > > >>>> > > > This is a path to header of host components: BAD! >>>> > > > >>>> > > > And this is where your problem is, this header path should *NOT* >>>> be >>>> > > > there when you cross-compile. >>>> > > >>>> > > The following worked for me (python3 case only): >>>> > > >>>> > > MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c >>>> > > MOD_WSGI_SITE = $(call >>>> github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION)) >>>> > > MOD_WSGI_LICENSE = Apache-2.0 >>>> > > MOD_WSGI_LICENSE_FILES = LICENSE >>>> > > MOD_WSGI_DEPENDENCIES = apache >>>> > > >>>> > > MOD_WSGI_CONF_OPTS = \ >>>> > > --with-apxs=$(STAGING_DIR)/usr/bin/apxs >>>> > > >>>> > > ifeq ($(BR2_PACKAGE_PYTHON3),y) >>>> > > MOD_WSGI_DEPENDENCIES += python3 >>>> > > MOD_WSGI_CONF_ENV += \ >>>> > > >>>> > > >>>> CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)" \ >>>> > > LDFLAGS="-L$(STAGING_DIR)/usr/lib" >>>> > > endif >>>> > > >>>> > > $(eval $(autotools-package)) >>>> > > >>>> > > Regards, >>>> > > Peter >>>> > > >>>> > > > >>>> > > > Best regards, >>>> > > > >>>> > > > Thomas Petazzoni >>>> > > >>>> > > >>>> >>>> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200315/43d5fd41/attachment.html> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-14 17:10 ` Mark Leo Sumadero @ 2020-03-15 17:33 ` Peter Seiderer 0 siblings, 0 replies; 13+ messages in thread From: Peter Seiderer @ 2020-03-15 17:33 UTC (permalink / raw) To: buildroot Hello Mark, On Sun, 15 Mar 2020 01:10:13 +0800, Mark Leo Sumadero <fryu771@gmail.com> wrote: > Hi, > > How i can add a new package to buildroot master? Or i can make a pull > request for new package. Take a look at the documentation [1], [2], [3], note that github is only a mirror, https://git.buildroot.net/buildroot is the right one to use and patches should be send to the mailing list (best by using git send-email)... Regards, Peter [1] http://nightly.buildroot.org/manual.html#_developer_guide [2] http://nightly.buildroot.org/manual.html#patch-policy [3] http://nightly.buildroot.org/manual.html#submitting-patches > > On Sat, Mar 14, 2020 at 10:43 PM Mark Leo Sumadero <fryu771@gmail.com> > wrote: > > > or i am really missing something here. Sorry i'am just confuse with the > > process. > > > > On Sat, Mar 14, 2020 at 10:38 PM Mark Leo Sumadero <fryu771@gmail.com> > > wrote: > > > >> Or i really don't know why i my python was compiled with pymalloc i'm > >> just yung using the compiled python of buildroot. > >> > >> On Sat, Mar 14, 2020 at 10:33 PM Mark Leo Sumadero <fryu771@gmail.com> > >> wrote: > >> > >>> Hi Peter, > >>> > >>> You are correct no need to patch but if i remove the 'm' on my > >>> configuration i got the same error. How can i force it to use python3.7 > >>> only without 'm'? > >>> > >>> On Sat, Mar 14, 2020 at 9:54 PM Peter Seiderer <ps.report@gmx.net> > >>> wrote: > >>> > >>>> Hello Mark, > >>>> > >>>> On Sat, 14 Mar 2020 20:30:01 +0800, Mark Leo Sumadero < > >>>> fryu771 at gmail.com> wrote: > >>>> > >>>> > Hi Peter, > >>>> > > >>>> > Thanks for the reply. I just used your configuration but i got the > >>>> same > >>>> > error > >>>> > > >>>> > > >>>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/build-1/libtool > >>>> > --silent --mode=compile > >>>> > > >>>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > >>>> > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > >>>> > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > >>>> > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > >>>> > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > >>>> > > >>>> > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > >>>> > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > >>>> > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os > >>>> > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/python3.7 > >>>> > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > >>>> > -DNDEBUG -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch > >>>> > src/server/mod_wsgi.slo > >>>> > In file included from > >>>> > > >>>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/Python.h:53:0, > >>>> > from src/server/wsgi_python.h:24, > >>>> > from src/server/mod_wsgi.c:22: > >>>> > > >>>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/pyport.h:699:2: > >>>> > error: #error "LONG_BIT definition appears wrong for platform (bad > >>>> > gcc/glibc config?)." > >>>> > #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc > >>>> > config?)." > >>>> > > >>>> > Did i miss something? I am currently using Buildroot-2019.02.01 and > >>>> > python3.7, what version did you use? > >>>> > Are we the same of header path? > >>>> > >>>> Tested against buildroot master, but should not make any difference, > >>>> the important part is a full rebuild (configure/compile) of the > >>>> package (best achieved by rm -rf > >>>> build/mod_wsgi-61359e67448bdfc5fefb1692fd2a97f76394b20c)... > >>>> > >>>> No need to patch configure or configure.ac (there is already enough > >>>> logic/magic that the > >>>> given custom CPPFLAGS/LDFLAGS are used first)... > >>>> > >>>> According to [1] the 'm' in 'python3.7m' comes from a python > >>>> configuration with --with-pymalloc, > >>>> does not happen with stock buildroot configuration... > >>>> > >>>> Regards, > >>>> Peter > >>>> > >>>> [1] > >>>> https://stackoverflow.com/questions/41589655/whats-the-difference-between-python3-x-and-python3-xm > >>>> > >>>> > >>>> > > >>>> > Thanks, > >>>> > > >>>> > Mark Leo > >>>> > > >>>> > On Sat, Mar 14, 2020 at 6:21 PM Peter Seiderer <ps.report@gmx.net> > >>>> wrote: > >>>> > > >>>> > > Hello Mark, > >>>> > > > >>>> > > On Fri, 13 Mar 2020 15:04:43 +0100, Thomas Petazzoni < > >>>> > > thomas.petazzoni at bootlin.com> wrote: > >>>> > > > >>>> > > > Hello, > >>>> > > > > >>>> > > > On Fri, 13 Mar 2020 18:26:38 +0800 > >>>> > > > Mark Leo Sumadero <fryu771@gmail.com> wrote: > >>>> > > > > >>>> > > > > > >>>> > > > >>>> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > >>>> > > > > >>>> > > > This is the cross-compiler: good! > >>>> > > > > >>>> > > > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > >>>> > > > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > >>>> > > > > > >>>> > > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > >>>> > > > > > >>>> > > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > >>>> > > > > > >>>> > > > > > >>>> > > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > >>>> > > > > > >>>> > > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > >>>> > > > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > >>>> -D_FILE_OFFSET_BITS=64 -Os > >>>> > > > > > >>>> > > > >>>> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > >>>> > > > > >>>> > > > This is a path to header of host components: BAD! > >>>> > > > > >>>> > > > And this is where your problem is, this header path should *NOT* > >>>> be > >>>> > > > there when you cross-compile. > >>>> > > > >>>> > > The following worked for me (python3 case only): > >>>> > > > >>>> > > MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c > >>>> > > MOD_WSGI_SITE = $(call > >>>> github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION)) > >>>> > > MOD_WSGI_LICENSE = Apache-2.0 > >>>> > > MOD_WSGI_LICENSE_FILES = LICENSE > >>>> > > MOD_WSGI_DEPENDENCIES = apache > >>>> > > > >>>> > > MOD_WSGI_CONF_OPTS = \ > >>>> > > --with-apxs=$(STAGING_DIR)/usr/bin/apxs > >>>> > > > >>>> > > ifeq ($(BR2_PACKAGE_PYTHON3),y) > >>>> > > MOD_WSGI_DEPENDENCIES += python3 > >>>> > > MOD_WSGI_CONF_ENV += \ > >>>> > > > >>>> > > > >>>> CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)" \ > >>>> > > LDFLAGS="-L$(STAGING_DIR)/usr/lib" > >>>> > > endif > >>>> > > > >>>> > > $(eval $(autotools-package)) > >>>> > > > >>>> > > Regards, > >>>> > > Peter > >>>> > > > >>>> > > > > >>>> > > > Best regards, > >>>> > > > > >>>> > > > Thomas Petazzoni > >>>> > > > >>>> > > > >>>> > >>>> ^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] Help: error LONG_BIT definition appears wrong for platform 2020-03-14 14:38 ` Mark Leo Sumadero 2020-03-14 14:43 ` Mark Leo Sumadero @ 2020-03-15 17:27 ` Peter Seiderer 1 sibling, 0 replies; 13+ messages in thread From: Peter Seiderer @ 2020-03-15 17:27 UTC (permalink / raw) To: buildroot Hello Mark, On Sat, 14 Mar 2020 22:38:31 +0800, Mark Leo Sumadero <fryu771@gmail.com> wrote: > Or i really don't know why i my python was compiled with pymalloc i'm just > yung using the compiled python of buildroot. Re-tested with buildroot 2019.02.1, seems for python-3.7.2 the compile with pymalloc seems to be the default, no explicit '--with-pymalloc' given, but config.log states: configure:11486: checking for --with-pymalloc configure:11506: result: yes And from configure: if test -z "$with_pymalloc" then with_pymalloc="yes" fi So for your case add the 'm', in case you want to provide your package patch for upstream buildroot then without 'm'.... Regards, Peter > > On Sat, Mar 14, 2020 at 10:33 PM Mark Leo Sumadero <fryu771@gmail.com> > wrote: > > > Hi Peter, > > > > You are correct no need to patch but if i remove the 'm' on my > > configuration i got the same error. How can i force it to use python3.7 > > only without 'm'? > > > > On Sat, Mar 14, 2020 at 9:54 PM Peter Seiderer <ps.report@gmx.net> wrote: > > > >> Hello Mark, > >> > >> On Sat, 14 Mar 2020 20:30:01 +0800, Mark Leo Sumadero <fryu771@gmail.com> > >> wrote: > >> > >> > Hi Peter, > >> > > >> > Thanks for the reply. I just used your configuration but i got the same > >> > error > >> > > >> > > >> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/build-1/libtool config.log > >> > --silent --mode=compile > >> > > >> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > >> > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > >> > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > >> > > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > >> > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/python3.7 > >> > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > >> > -DNDEBUG -c -o src/server/mod_wsgi.lo src/server/mod_wsgi.c && touch > >> > src/server/mod_wsgi.slo > >> > In file included from > >> > > >> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/Python.h:53:0, > >> > from src/server/wsgi_python.h:24, > >> > from src/server/mod_wsgi.c:22: > >> > > >> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m/pyport.h:699:2: > >> > error: #error "LONG_BIT definition appears wrong for platform (bad > >> > gcc/glibc config?)." > >> > #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc > >> > config?)." > >> > > >> > Did i miss something? I am currently using Buildroot-2019.02.01 and > >> > python3.7, what version did you use? > >> > Are we the same of header path? > >> > >> Tested against buildroot master, but should not make any difference, > >> the important part is a full rebuild (configure/compile) of the > >> package (best achieved by rm -rf > >> build/mod_wsgi-61359e67448bdfc5fefb1692fd2a97f76394b20c)... > >> > >> No need to patch configure or configure.ac (there is already enough > >> logic/magic that the > >> given custom CPPFLAGS/LDFLAGS are used first)... > >> > >> According to [1] the 'm' in 'python3.7m' comes from a python > >> configuration with --with-pymalloc, > >> does not happen with stock buildroot configuration... > >> > >> Regards, > >> Peter > >> > >> [1] > >> https://stackoverflow.com/questions/41589655/whats-the-difference-between-python3-x-and-python3-xm > >> > >> > >> > > >> > Thanks, > >> > > >> > Mark Leo > >> > > >> > On Sat, Mar 14, 2020 at 6:21 PM Peter Seiderer <ps.report@gmx.net> > >> wrote: > >> > > >> > > Hello Mark, > >> > > > >> > > On Fri, 13 Mar 2020 15:04:43 +0100, Thomas Petazzoni < > >> > > thomas.petazzoni at bootlin.com> wrote: > >> > > > >> > > > Hello, > >> > > > > >> > > > On Fri, 13 Mar 2020 18:26:38 +0800 > >> > > > Mark Leo Sumadero <fryu771@gmail.com> wrote: > >> > > > > >> > > > > > >> > > > >> /home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-gcc > >> > > > > >> > > > This is the cross-compiler: good! > >> > > > > >> > > > > -prefer-pic -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > >> > > > > -D_FILE_OFFSET_BITS=64 -Os -DLINUX -D_REENTRANT -D_GNU_SOURCE > >> > > > > > >> > > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > >> > > > > > >> > > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > >> > > > > > >> > > > > > >> > > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../usr/include/apr-1 > >> > > > > > >> > > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/bin/../../../../arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include > >> > > > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 > >> -Os > >> > > > > > >> > > > >> -I/home/falcon/Documents/pisokonek-project/pisokonek/installer/buildroot-2019.02.1/output/host/include/python3.7m > >> > > > > >> > > > This is a path to header of host components: BAD! > >> > > > > >> > > > And this is where your problem is, this header path should *NOT* be > >> > > > there when you cross-compile. > >> > > > >> > > The following worked for me (python3 case only): > >> > > > >> > > MOD_WSGI_VERSION = 61359e67448bdfc5fefb1692fd2a97f76394b20c > >> > > MOD_WSGI_SITE = $(call > >> github,GrahamDumpleton,mod_wsgi,$(MOD_WSGI_VERSION)) > >> > > MOD_WSGI_LICENSE = Apache-2.0 > >> > > MOD_WSGI_LICENSE_FILES = LICENSE > >> > > MOD_WSGI_DEPENDENCIES = apache > >> > > > >> > > MOD_WSGI_CONF_OPTS = \ > >> > > --with-apxs=$(STAGING_DIR)/usr/bin/apxs > >> > > > >> > > ifeq ($(BR2_PACKAGE_PYTHON3),y) > >> > > MOD_WSGI_DEPENDENCIES += python3 > >> > > MOD_WSGI_CONF_ENV += \ > >> > > > >> > > > >> CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)" \ > >> > > LDFLAGS="-L$(STAGING_DIR)/usr/lib" > >> > > endif > >> > > > >> > > $(eval $(autotools-package)) > >> > > > >> > > Regards, > >> > > Peter > >> > > > >> > > > > >> > > > Best regards, > >> > > > > >> > > > Thomas Petazzoni > >> > > > >> > > > >> > >> ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2020-03-15 17:33 UTC | newest] Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-03-13 10:26 [Buildroot] Help: error LONG_BIT definition appears wrong for platform Mark Leo Sumadero 2020-03-13 14:04 ` Thomas Petazzoni 2020-03-14 3:17 ` Mark Leo Sumadero 2020-03-14 10:21 ` Peter Seiderer 2020-03-14 12:30 ` Mark Leo Sumadero 2020-03-14 13:37 ` Mark Leo Sumadero 2020-03-14 13:54 ` Peter Seiderer 2020-03-14 14:33 ` Mark Leo Sumadero 2020-03-14 14:38 ` Mark Leo Sumadero 2020-03-14 14:43 ` Mark Leo Sumadero 2020-03-14 17:10 ` Mark Leo Sumadero 2020-03-15 17:33 ` Peter Seiderer 2020-03-15 17:27 ` Peter Seiderer
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.