Skip to contentSkip to conversation

qt4-native:

DISCUSSION Paul Menzel 2 participants 7 messages May 10, 2011 – May 21, 2011

lore
Share & tools
lore
#0 lore raw

Dear Simon and other OpenEmbedded folks,

task configure of qt4-native fails on my build system which is a Xen DomU running a 64-bit Linux kernel but 32-bit user space.

        $ uname -a
        Linux oe-build-host 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux
        $ dpkg --print-architecture
        i386

This seems to be a problem in the Qt4 build system which seems to be using uname to determine the architecture.

        $ more log.do_configure
        + do_configure
        + echo o
        + echo yes
        + ./configure -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath
        Which edition of Qt do you want to use ?

Type 'c' if you want to use the Commercial Edition. Type 'o' if you want to use the Open Source Edition.

Determining system architecture... (Linux:2.6.32-5-xen-amd64:x86_64)
64-bit AMD 80x86 (x86_64)
'x86_64' is supported
System architecture: 'x86_64'
Host architecture: 'x86_64'
Precompiled-headers support enabled.
Symbol visibility control enabled.

This is the Qt for Embedded Linux Open Source Edition.

You are licensed to use this software under the terms of the Lesser GNU General Public License (LGPL) versions 2.1. You are also licensed to use this software under the terms of the GNU General Public License (GPL) versions 3.

Type '3' to view the GNU General Public License version 3. Type 'L' to view the Lesser GNU General Public License version 2.1. Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license?
Creating qmake. Please wait...
g++ -c -o project.o -pipe -m64 -m64 -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/src/corelib/global -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/src/corelib/xml -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/mkspecs/qws/linux-x86_64-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT project.cpp In file included from /usr/include/features.h:378,
from /usr/include/string.h:26,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/../../src/corelib/tools/qbytearray.h:48,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/qbytearray.h:1,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/../../src/corelib/tools/qstring.h:46,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/qstring.h:1,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/../../src/corelib/io/qiodevice.h:51,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/qiodevice.h:1,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/../../src/corelib/io/qdatastream.h:46,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/qdatastream.h:1,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/../../src/corelib/tools/qstringlist.h:46,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/qstringlist.h:1,
from project.h:45,
from project.cpp:42:
/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory
make: *** [project.o] Error 1
+ die 'Configuring qt failed. EXTRA_OECONF was -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath'
+ oefatal 'Configuring qt failed. EXTRA_OECONF was -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath'
+ echo FATAL: 'Configuring qt failed. EXTRA_OECONF was -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath'
FATAL: Configuring qt failed. EXTRA_OECONF was -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath
+ exit 1

Do you have direct contacts to the Qt developers you can ask about that? If not I need to register at Qt upstream and submit a report sometime.

I found [1] and [2] on the WWW dealing with this error, but I did not find an upstream bug report.

Thanks,

Paul

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519050
[2] http://www.bitchx.com/log/qt-f/qt-f-11-Jun-2010/qt-f-11-Jun-2010-09.php

#1 lore raw

Re: qt4-native: `/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory` because architecture incorrectly detected

Dear Simon and other OpenEmbedded folks,

I am sorry for the wrong subject line. I am fixing it hereby.

Am Dienstag, den 10.05.2011, 22:40 +0200 schrieb Paul Menzel:

Quoted 81 lines

task configure of qt4-native fails on my build system which is a Xen DomU running a 64-bit Linux kernel but 32-bit user space.

        $ uname -a
        Linux oe-build-host 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux
        $ dpkg --print-architecture
        i386

This seems to be a problem in the Qt4 build system which seems to be using uname to determine the architecture.

        $ more log.do_configure
        + do_configure
        + echo o
        + echo yes
        + ./configure -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath
        Which edition of Qt do you want to use ?

Type 'c' if you want to use the Commercial Edition. Type 'o' if you want to use the Open Source Edition.

Determining system architecture... (Linux:2.6.32-5-xen-amd64:x86_64)
64-bit AMD 80x86 (x86_64)
'x86_64' is supported
System architecture: 'x86_64'
Host architecture: 'x86_64'
Precompiled-headers support enabled.
Symbol visibility control enabled.

This is the Qt for Embedded Linux Open Source Edition.

You are licensed to use this software under the terms of the Lesser GNU General Public License (LGPL) versions 2.1. You are also licensed to use this software under the terms of the GNU General Public License (GPL) versions 3.

Type '3' to view the GNU General Public License version 3. Type 'L' to view the Lesser GNU General Public License version 2.1. Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license?
Creating qmake. Please wait...
g++ -c -o project.o -pipe -m64 -m64 -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/src/corelib/global -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/src/corelib/xml -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/mkspecs/qws/linux-x86_64-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT project.cpp In file included from /usr/include/features.h:378,
from /usr/include/string.h:26,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/../../src/corelib/tools/qbytearray.h:48,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/qbytearray.h:1,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/../../src/corelib/tools/qstring.h:46,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/qstring.h:1,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/../../src/corelib/io/qiodevice.h:51,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/qiodevice.h:1,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/../../src/corelib/io/qdatastream.h:46,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/qdatastream.h:1,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/../../src/corelib/tools/qstringlist.h:46,
from /oe/build-angstrom-next/angstrom-dev/work/i686-linux/qt4-native-4.7.2-r0.0/qt-everywhere-opensource-src-4.7.2/include/QtCore/qstringlist.h:1,
from project.h:45,
from project.cpp:42:
/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory
make: *** [project.o] Error 1
+ die 'Configuring qt failed. EXTRA_OECONF was -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath'
+ oefatal 'Configuring qt failed. EXTRA_OECONF was -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath'
+ echo FATAL: 'Configuring qt failed. EXTRA_OECONF was -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath'
FATAL: Configuring qt failed. EXTRA_OECONF was -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath
+ exit 1

Do you have direct contacts to the Qt developers you can ask about that? If not I need to register at Qt upstream and submit a report sometime.

I found [1] and [2] on the WWW dealing with this error, but I did not find an upstream bug report.

Thanks,

Paul

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519050
[2] http://www.bitchx.com/log/qt-f/qt-f-11-Jun-2010/qt-f-11-Jun-2010-09.php

#2 lore raw

Re: qt4-native: `/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory` because architecture incorrectly detected

Hi Paul

Quoted 35 lines · Paul Menzel

Dear Simon and other OpenEmbedded folks,

I am sorry for the wrong subject line. I am fixing it hereby.

Am Dienstag, den 10.05.2011, 22:40 +0200 schrieb Paul Menzel:

Quoted 27 lines

task configure of qt4-native fails on my build system which is a Xen DomU running a 64-bit Linux kernel but 32-bit user space.

         $ uname -a
         Linux oe-build-host 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux
         $ dpkg --print-architecture
         i386

This seems to be a problem in the Qt4 build system which seems to be using uname to determine the architecture.

         $ more log.do_configure
         + do_configure
         + echo o
         + echo yes
         + ./configure -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath
         Which edition of Qt do you want to use ?
         Type 'c' if you want to use the Commercial Edition.
         Type 'o' if you want to use the Open Source Edition.


         Determining system architecture... (Linux:2.6.32-5-xen-amd64:x86_64)
             64-bit AMD 80x86 (x86_64)
             'x86_64' is supported
         System architecture: 'x86_64'
         Host architecture: 'x86_64'

this could maybe be fixed by passing -host-arch=i386 to configure but the problem is to detect you are running a 32bit userland when uname reports 64 bits. bitbake.conf seems also to use uname :
BUILD_ARCH := "${@os.uname()[4]}"

maybe something like file which init and analysing the output ?

Eric

#3 lore raw

Re: qt4-native: `/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory` because architecture incorrectly detected

Dear Eric,

Am Samstag, den 14.05.2011, 09:15 +0200 schrieb Eric Bénard:

Quoted 37 lines · Paul Menzel
Quoted 35 lines

Dear Simon and other OpenEmbedded folks,

I am sorry for the wrong subject line. I am fixing it hereby.

Am Dienstag, den 10.05.2011, 22:40 +0200 schrieb Paul Menzel:

Quoted 27 lines

task configure of qt4-native fails on my build system which is a Xen DomU running a 64-bit Linux kernel but 32-bit user space.

         $ uname -a
         Linux oe-build-host 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux
         $ dpkg --print-architecture
         i386

This seems to be a problem in the Qt4 build system which seems to be using uname to determine the architecture.

         $ more log.do_configure
         + do_configure
         + echo o
         + echo yes
         + ./configure -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath
         Which edition of Qt do you want to use ?
         Type 'c' if you want to use the Commercial Edition.
         Type 'o' if you want to use the Open Source Edition.


         Determining system architecture... (Linux:2.6.32-5-xen-amd64:x86_64)
             64-bit AMD 80x86 (x86_64)
             'x86_64' is supported
         System architecture: 'x86_64'
         Host architecture: 'x86_64'
Quoted 4 lines

this could maybe be fixed by passing -host-arch=i386 to configure but the problem is to detect you are running a 32bit userland when uname reports 64 bits. bitbake.conf seems also to use uname :
BUILD_ARCH := "${@os.uname()[4]}"

Unfortunately I have not come around a solution to detect this properly. I had the same problem with TeX Live [1] and the solution was to add on option to override this setting [2].

Quoted 1 line

maybe something like file which init and analysing the output ?

Unfortunately which init does not return anything on my Debian Sid/unstable system.

        $ which init
        $ echo $?
        1

Thank you for looking into this problem,

Paul

[1] http://tug.org/pipermail/tex-live/2009-June/021119.html
[2] http://tug.org/pipermail/tex-live/2009-June/021124.html

#4 lore raw

Re: qt4-native: `/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory` because architecture incorrectly detected

Dear Eric,

Am Sonntag, den 15.05.2011, 17:14 +0200 schrieb Paul Menzel:

Quoted 48 lines

Am Samstag, den 14.05.2011, 09:15 +0200 schrieb Eric Bénard:

Quoted 37 lines · Paul Menzel
Quoted 35 lines

Dear Simon and other OpenEmbedded folks,

I am sorry for the wrong subject line. I am fixing it hereby.

Am Dienstag, den 10.05.2011, 22:40 +0200 schrieb Paul Menzel:

Quoted 27 lines

task configure of qt4-native fails on my build system which is a Xen DomU running a 64-bit Linux kernel but 32-bit user space.

         $ uname -a
         Linux oe-build-host 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux
         $ dpkg --print-architecture
         i386

This seems to be a problem in the Qt4 build system which seems to be using uname to determine the architecture.

         $ more log.do_configure
         + do_configure
         + echo o
         + echo yes
         + ./configure -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath
         Which edition of Qt do you want to use ?
         Type 'c' if you want to use the Commercial Edition.
         Type 'o' if you want to use the Open Source Edition.


         Determining system architecture... (Linux:2.6.32-5-xen-amd64:x86_64)
             64-bit AMD 80x86 (x86_64)
             'x86_64' is supported
         System architecture: 'x86_64'
         Host architecture: 'x86_64'
Quoted 4 lines

this could maybe be fixed by passing -host-arch=i386 to configure but the problem is to detect you are running a 32bit userland when uname reports 64 bits. bitbake.conf seems also to use uname :
BUILD_ARCH := "${@os.uname()[4]}"

Unfortunately I have not come around a solution to detect this properly. I had the same problem with TeX Live [1] and the solution was to add on option to override this setting [2].

Quoted 8 lines
Quoted 1 line

maybe something like file which init and analysing the output ?

Unfortunately which init does not return anything on my Debian Sid/unstable system.

        $ which init
        $ echo $?
        1

searching the WWW for »uname system host architecture 32 64« I found the following suggestion [3][4].

Thanks,

Paul

Quoted 2 lines

[1] http://tug.org/pipermail/tex-live/2009-June/021119.html
[2] http://tug.org/pipermail/tex-live/2009-June/021124.html

[3] http://serverfault.com/questions/61673/determine-linux-servers-architecture-32-or-64-bit/62118#62118
[4] http://www.commandlinefu.com/commands/view/2940/32-bits-or-64-bits

#5 lore raw

Re: qt4-native: `/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory` because architecture incorrectly detected

Hi Paul,

Quoted 58 lines · Paul Menzel

Dear Eric,

Am Sonntag, den 15.05.2011, 17:14 +0200 schrieb Paul Menzel:

Quoted 53 lines

Am Samstag, den 14.05.2011, 09:15 +0200 schrieb Eric Bénard:

Quoted 37 lines · Paul Menzel
Quoted 35 lines

Dear Simon and other OpenEmbedded folks,

I am sorry for the wrong subject line. I am fixing it hereby.

Am Dienstag, den 10.05.2011, 22:40 +0200 schrieb Paul Menzel:

Quoted 27 lines

task configure of qt4-native fails on my build system which is a Xen DomU running a 64-bit Linux kernel but 32-bit user space.

          $ uname -a
          Linux oe-build-host 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux
          $ dpkg --print-architecture
          i386

This seems to be a problem in the Qt4 build system which seems to be using uname to determine the architecture.

          $ more log.do_configure
          + do_configure
          + echo o
          + echo yes
          + ./configure -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath
          Which edition of Qt do you want to use ?
          Type 'c' if you want to use the Commercial Edition.
          Type 'o' if you want to use the Open Source Edition.


          Determining system architecture... (Linux:2.6.32-5-xen-amd64:x86_64)
              64-bit AMD 80x86 (x86_64)
              'x86_64' is supported
          System architecture: 'x86_64'
          Host architecture: 'x86_64'
Quoted 4 lines

this could maybe be fixed by passing -host-arch=i386 to configure but the problem is to detect you are running a 32bit userland when uname reports 64 bits. bitbake.conf seems also to use uname :
BUILD_ARCH := "${@os.uname()[4]}"

Unfortunately I have not come around a solution to detect this properly. I had the same problem with TeX Live [1] and the solution was to add on option to override this setting [2].

Quoted 1 line

maybe something like file which init and analysing the output ?

Unfortunately which init does not return anything on my Debian Sid/unstable system.

Quoted 7 lines
Quoted 3 lines
         $ which init
         $ echo $?
         1

searching the WWW for »uname system host architecture 32 64« I found the following suggestion [3][4].

From my understanding, lshw only tells you if the CPU has 64bits support or not (like cat /proc/cpuinfo). So I can't how that could help here.

Eric

#6 lore raw

Re: qt4-native: `/usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory` because architecture incorrectly detected

Dear Eric,

Am Samstag, den 21.05.2011, 15:59 +0200 schrieb Eric Bénard:

Quoted 61 lines · Paul Menzel
Quoted 60 lines

Am Sonntag, den 15.05.2011, 17:14 +0200 schrieb Paul Menzel:

Quoted 56 lines

Am Samstag, den 14.05.2011, 09:15 +0200 schrieb Eric Bénard:

Quoted 37 lines · Paul Menzel
Quoted 35 lines

Dear Simon and other OpenEmbedded folks,

I am sorry for the wrong subject line. I am fixing it hereby.

Am Dienstag, den 10.05.2011, 22:40 +0200 schrieb Paul Menzel:

Quoted 27 lines

task configure of qt4-native fails on my build system which is a Xen DomU running a 64-bit Linux kernel but 32-bit user space.

          $ uname -a
          Linux oe-build-host 2.6.32-5-xen-amd64 #1 SMP Tue Mar 8 00:01:30 UTC 2011 x86_64 GNU/Linux
          $ dpkg --print-architecture
          i386

This seems to be a problem in the Qt4 build system which seems to be using uname to determine the architecture.

          $ more log.do_configure
          + do_configure
          + echo o
          + echo yes
          + ./configure -prefix /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr -L /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/lib -I /oe/build-angstrom-next/angstrom-dev/sysroots/i686-linux/usr/include -qt-libjpeg -qt-gif -system-zlib -no-libjpeg -no-libpng -no-libmng -no-libtiff -no-accessibility -no-cups -no-nas-sound -no-nis -no-openssl -verbose -release -embedded -no-freetype -no-glib -no-iconv -exceptions -xmlpatterns -qt3support -no-fast -silent -no-rpath
          Which edition of Qt do you want to use ?
          Type 'c' if you want to use the Commercial Edition.
          Type 'o' if you want to use the Open Source Edition.


          Determining system architecture... (Linux:2.6.32-5-xen-amd64:x86_64)
              64-bit AMD 80x86 (x86_64)
              'x86_64' is supported
          System architecture: 'x86_64'
          Host architecture: 'x86_64'
Quoted 4 lines

this could maybe be fixed by passing -host-arch=i386 to configure but the problem is to detect you are running a 32bit userland when uname reports 64 bits. bitbake.conf seems also to use uname :
BUILD_ARCH := "${@os.uname()[4]}"

Unfortunately I have not come around a solution to detect this properly. I had the same problem with TeX Live [1] and the solution was to add on option to override this setting [2].

Quoted 1 line

maybe something like file which init and analysing the output ?

Unfortunately which init does not return anything on my Debian Sid/unstable system.

         $ which init
         $ echo $?
         1
Quoted 5 lines
Quoted 2 lines

searching the WWW for »uname system host architecture 32 64« I found the following suggestion [3][4].

From my understanding, lshw only tells you if the CPU has 64bits support or not (like cat /proc/cpuinfo). So I can't how that could help here.

lshw is not even installed on my system. ;-) I meant

getconf LONG_BIT

and testing this on a 64-bit user space/64-bit Linux kernel system returned 64 and on a 32-bit user space/64-bit Linux Kernel system it returned 32.

I guess another possibility would be to check if stubs.h or stubs-64.h is present.

Thanks,

Paul