Configuration tests failed to determine host architecture
-
This post is deleted!
-
Hi and welcome to devnet,
What kind of machine are you on ?
What architecture is it ?
What OS are you running ? -
I am working on Linux SUSE. Trying to compile it for our product that uses ARM.
-
Are you compiling or cross-compiling ?
-
What kind of machine are you on? Embedded system
What architecture is it? Generic-arm-g++
What OS are you running? POSIX
Are you compiling or cross-compiling? Cross Compiling -
Would you mind giving a bit more information about that system ?
You could talking about a Raspberry Pi as well as the next gen multicore machine for the server space.
-
So I am trying to cross compile from my Linux Machine onto a device that is a Raspberry Pi based architecture.
Host Architecture - x86_64
Target Architecture - aarch64We are using Qt 5.6 and with the same setup, the configurations tests are successful. However, I am trying to upgrade to QT 5.15.0 and I am coming across this error when I try to run the configure script.
Checking for machine tuple... yes
Checking for valid makespec... yes
Checking for alloca() in alloca.h... yes
Checking for target architecture... x86_64
Checking for host architecture... Project ERROR: Could not determine host architecture. See config.log for details.I am not sure why it shows target architecture as x86_64 when x86_64 is actually the host architecture. Could it be possible that it got swapped?
As I mentioned, the exact same command with the same host and target devices is successfully with Qt 5.6. Do you know what changed between 5.6 and 5.15 that could have affected this?
-
What options are you passing to configure ?
-
@SGaist
5.15.0/qt-everywhere-src-5.15.0/qtbase/configure -top-level -prefix /mnt/drivers -device-option PLATFORM_DIR=5.15.0/platform -static -no-use-gold-linker -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-mips_dsp -no-mips_dspr2 -no-linuxfb -no-xcb -system-sqlite -no-sql-db2 -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-tds -no-sql-ibase -no-kms -no-reduce-relocations -no-cups -no-iconv -no-dbus -no-glib -no-widgets -opengl es2 -nomake tools -nomake examples -nomake tests -skip qtactiveqt -skip qtandroidextras -skip qtconnectivity -skip qtdoc -skip qtlocation -skip qtmacextras -skip qtscript -skip qtsensors -skip qtserialport -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -openssl -no-gtk -skip qtmultimedia -no-feature-clipboard -no-feature-concurrent -no-feature-cssparser -no-feature-draganddrop -no-feature-effects -no-feature-sessionmanager -no-feature-sharedmemory -no-feature-systemsemaphore -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-xmlstreamwriter -no-feature-dom -no-feature-filesystemwatcher -no-feature-process -no-feature-buttongroup -no-feature-calendarwidget -no-feature-combobox -no-feature-contextmenu -no-feature-datetimeedit -no-feature-dial -no-feature-dockwidget -no-feature-fontcombobox -no-feature-graphicseffect -no-feature-graphicsview -no-feature-groupbox -no-feature-keysequenceedit -no-feature-lcdnumber -no-feature-lineedit -no-feature-listwidget -no-feature-mainwindow -no-feature-mdiarea -no-feature-menu -no-feature-printpreviewwidget -no-feature-progressbar -no-feature-resizehandler -no-feature-rubberband -no-feature-scrollarea -no-feature-scrollbar -no-feature-sizegrip -no-feature-slider -no-feature-spinbox -no-feature-splashscreen -no-feature-splitter -no-feature-stackedwidget -no-feature-statusbar -no-feature-statustip -no-feature-syntaxhighlighter -no-feature-tabbar -no-feature-tablewidget -no-feature-tabwidget -no-feature-textbrowser -no-feature-textedit -no-feature-toolbar -no-feature-toolbox -no-feature-toolbutton -no-feature-tooltip -no-feature-treewidget -no-feature-whatsthis -no-feature-colordialog -no-feature-errormessage -no-feature-filedialog -no-feature-fontdialog -no-feature-inputdialog -no-feature-messagebox -no-feature-printdialog -no-feature-printpreviewdialog -no-feature-progressdialog -no-feature-wizard -no-feature-columnview -no-feature-datawidgetmapper -no-feature-dirmodel -no-feature-identityproxymodel -no-feature-itemviews -no-feature-listview -no-feature-proxymodel -no-feature-sortfilterproxymodel -no-feature-standarditemmodel -no-feature-stringlistmodel -no-feature-tableview -no-feature-treeview -no-feature-style-stylesheet -no-feature-image_heuristic_mask -no-feature-image_text -no-feature-imageformat_bmp -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-imageformat_xpm -DQT_NO_SVGGENERATOR -no-feature-cups -no-feature-pdf -no-feature-picture -no-feature-printer -no-feature-big_codecs -no-feature-codecs -no-feature-iconv -no-feature-bearermanagement -no-feature-ftp -no-feature-udpsocket -no-feature-completer -no-feature-desktopservices -no-feature-fscompleter -no-feature-gestures -no-feature-systemtrayicon -no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview -no-feature-dbus -xplatform devices/linux-arm-broadcom-g++ -device-option COMPILE_OPTIMIZATION=-Os -device-option PLATFORM_OPENGL_LIBS=-lFakeOpenGL -no-egl -skip qtgraphicaleffects -directfb -qpa directfb -commercial -confirm-license -
Can you try a standard configure run with the defaults ?
Out of curiosity, with all the skip options you are adding, are you building anything else than qtbase ?
-
@SGaist said in Configuration tests failed to determine host architecture:
Can you try a standard configure run with the defaults ?
When I run configure on my host machine without cross compiling, the tests are successful.
No, I am planning on building just the qtbase.
-
So we have a patch to change the QMAKE_CFLAGS_OPTIMIZE and QMAKE_CFLAGS_OPTIMIZE_FULL flags based on the product we are building it for.
I am passing in a value using 'device-option' to the configure script in qtbase. However, for some reason, that value is not getting passed to qtbase/mkspecs/common/gcc-base.conf