xconfig build error in linux-next??
Hi,
Beginning with linux-next of 20100902 (and later), I cannot build/use xconfig.
I see this after doing:
Quoted 4 lines
mkdir xx64
make ARCH=x86_64 O=xx64 defconfigmake V=1 ARCH=x86_64 O=xx64 xconfig &
make -C /lnx/src/TMP/linux-next-20100902/xx64 \ KBUILD_SRC=/lnx/src/TMP/linux-next-20100902 \ KBUILD_EXTMOD="" -f /lnx/src/TMP/linux-next-20100902/Makefile \ xconfig make -f /lnx/src/TMP/linux-next-20100902/scripts/Makefile.build obj=scripts/basic rm -f .tmp_quiet_recordmcount ln -fsn /lnx/src/TMP/linux-next-20100902 source /bin/sh /lnx/src/TMP/linux-next-20100902/scripts/mkmakefile \ /lnx/src/TMP/linux-next-20100902 /lnx/src/TMP/linux-next-20100902/xx64 2 6
GEN /lnx/src/TMP/linux-next-20100902/xx64/Makefile
mkdir -p include/linux include/config
make -f /lnx/src/TMP/linux-next-20100902/scripts/Makefile.build obj=scripts/kconfig xconfig **Unknown**/moc -i /lnx/src/TMP/linux-next-20100902/scripts/kconfig/qconf.h -o scripts/kconfig/qconf.moc /bin/sh: **Unknown**/moc: No such file or directory
make[2]: *** [scripts/kconfig/qconf.moc] Error 127
make[1]: *** [xconfig] Error 2
make: *** [sub-make] Error 2
Any ideas what happened?
thanks,
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
Quoted 30 lines · On Thu, 9 Sep 2010 16:21:22 -0700 Randy Dunlap wrote:
Hi,
Beginning with linux-next of 20100902 (and later), I cannot build/use xconfig.
I see this after doing:
Quoted 4 lines
mkdir xx64
make ARCH=x86_64 O=xx64 defconfigmake V=1 ARCH=x86_64 O=xx64 xconfig &
make -C /lnx/src/TMP/linux-next-20100902/xx64 \ KBUILD_SRC=/lnx/src/TMP/linux-next-20100902 \ KBUILD_EXTMOD="" -f /lnx/src/TMP/linux-next-20100902/Makefile \ xconfig make -f /lnx/src/TMP/linux-next-20100902/scripts/Makefile.build obj=scripts/basic rm -f .tmp_quiet_recordmcount ln -fsn /lnx/src/TMP/linux-next-20100902 source /bin/sh /lnx/src/TMP/linux-next-20100902/scripts/mkmakefile \ /lnx/src/TMP/linux-next-20100902 /lnx/src/TMP/linux-next-20100902/xx64 2 6GEN /lnx/src/TMP/linux-next-20100902/xx64/Makefile
mkdir -pinclude/linuxinclude/config
make -f /lnx/src/TMP/linux-next-20100902/scripts/Makefile.build obj=scripts/kconfig xconfig **Unknown**/moc -i /lnx/src/TMP/linux-next-20100902/scripts/kconfig/qconf.h -oscripts/kconfig/qconf.moc/bin/sh: **Unknown**/moc: No such file or directory
make[2]: *** [scripts/kconfig/qconf.moc] Error 127
make[1]: *** [xconfig] Error 2
make: *** [sub-make] Error 2
Quoted 1 line
Any ideas what happened?
OK, if I revert the determine-qt3-qt4 stuff, it builds/runs OK.
This is what I reverted:
scripts/kconfig/Makefile +45 -37
@@ -145,10 +145,8 @@ # Use recursively expanded variables so we do not call gcc unless # we really need to do so. (Do not call gcc as part of make mrproper) -HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) - -HOST_EXTRACFLAGS += -DLOCALE - +HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) \ + -DLOCALE # =========================================================================== # Shared Makefile for the various kconfig executables:
@@ -237,40 +235,50 @@ # QT needs some extra effort... $(obj)/.tmp_qtcheck: @set -e; echo " CHECK qt"; dir=""; pkg=""; \ - pkg-config --exists qt 2> /dev/null && pkg=qt; \ - pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \ - if [ -n "$$pkg" ]; then \ - cflags="\$$(shell pkg-config $$pkg --cflags)"; \ - libs="\$$(shell pkg-config $$pkg --libs)"; \ - moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \ - dir="$$(pkg-config $$pkg --variable=prefix)"; \ + if ! pkg-config --exists QtCore 2> /dev/null; then \ + echo "* Unable to find the QT4 tool qmake. Trying to use QT3"; \ + pkg-config --exists qt 2> /dev/null && pkg=qt; \ + pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \ + if [ -n "$$pkg" ]; then \ + cflags="\$$(shell pkg-config $$pkg --cflags)"; \ + libs="\$$(shell pkg-config $$pkg --libs)"; \ + moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \ + dir="$$(pkg-config $$pkg --variable=prefix)"; \ + else \ + for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \ + if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \ + done; \ + if [ -z "$$dir" ]; then \ + echo "*"; \ + echo "* Unable to find any QT installation. Please make sure that"; \ + echo "* the QT4 or QT3 development package is correctly installed and"; \ + echo "* either qmake can be found or install pkg-config or set"; \ + echo "* the QTDIR environment variable to the correct location."; \ + echo "*"; \ + false; \ + fi; \ + libpath=$$dir/lib; lib=qt; osdir=""; \ + $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \ + osdir=x$$($(HOSTCXX) -print-multi-os-directory); \ + test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \ + test -f $$libpath/libqt-mt.so && lib=qt-mt; \ + cflags="-I$$dir/include"; \ + libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \ + moc="$$dir/bin/moc"; \ + fi; \ + if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \ + echo "*"; \ + echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \ + echo "*"; \ + moc="/usr/bin/moc"; \ + fi; \ else \ - for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \ - if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \ - done; \ - if [ -z "$$dir" ]; then \ - echo "*"; \ - echo "* Unable to find the QT3 installation. Please make sure that"; \ - echo "* the QT3 development package is correctly installed and"; \ - echo "* either install pkg-config or set the QTDIR environment"; \ - echo "* variable to the correct location."; \ - echo "*"; \ - false; \ - fi; \ - libpath=$$dir/lib; lib=qt; osdir=""; \ - $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \ - osdir=x$$($(HOSTCXX) -print-multi-os-directory); \ - test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \ - test -f $$libpath/libqt-mt.so && lib=qt-mt; \ - cflags="-I$$dir/include"; \ - libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \ - moc="$$dir/bin/moc"; \ - fi; \ - if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \ - echo "*"; \ - echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \ - echo "*"; \ - moc="/usr/bin/moc"; \ + headerpath="\$$(shell qmake -query QT_INSTALL_HEADERS)"; \ + libpath="\$$(shell qmake -query QT_INSTALL_LIBS)"; \ + binpath="\$$(shell qmake -query QT_INSTALL_BINS)"; \ + cflags="-I$$headerpath -I$$headerpath/QtCore -I$$headerpath/QtGui -I$$headerpath/Qt3Support -DQT3_SUPPORT"; \ + libs="-L$$libpath -Wl,-rpath,$$libpath -lQtCore -lQtGui -lQt3Support"; \ + moc="$$binpath/moc"; \ fi; \ echo "KC_QT_CFLAGS=$$cflags" > $@; \ echo "KC_QT_LIBS=$$libs" >> $@; \
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
(added Alexander to CC)
Quoted 141 lines · Randy Dunlap
Quoted 30 lines · On Thu, 9 Sep 2010 16:21:22 -0700 Randy Dunlap wrote:
Hi,
Beginning with linux-next of 20100902 (and later), I cannot build/use xconfig.
I see this after doing:
Quoted 4 lines
mkdir xx64
make ARCH=x86_64 O=xx64 defconfigmake V=1 ARCH=x86_64 O=xx64 xconfig &
make -C /lnx/src/TMP/linux-next-20100902/xx64 \ KBUILD_SRC=/lnx/src/TMP/linux-next-20100902 \ KBUILD_EXTMOD="" -f /lnx/src/TMP/linux-next-20100902/Makefile \ xconfig make -f /lnx/src/TMP/linux-next-20100902/scripts/Makefile.build obj=scripts/basic rm -f .tmp_quiet_recordmcount ln -fsn /lnx/src/TMP/linux-next-20100902 source /bin/sh /lnx/src/TMP/linux-next-20100902/scripts/mkmakefile \ /lnx/src/TMP/linux-next-20100902 /lnx/src/TMP/linux-next-20100902/xx64 2 6GEN /lnx/src/TMP/linux-next-20100902/xx64/Makefile
mkdir -pinclude/linuxinclude/config
make -f /lnx/src/TMP/linux-next-20100902/scripts/Makefile.build obj=scripts/kconfig xconfig **Unknown**/moc -i /lnx/src/TMP/linux-next-20100902/scripts/kconfig/qconf.h -oscripts/kconfig/qconf.moc/bin/sh: **Unknown**/moc: No such file or directory
make[2]: *** [scripts/kconfig/qconf.moc] Error 127
make[1]: *** [xconfig] Error 2
make: *** [sub-make] Error 2Quoted 1 line
Any ideas what happened?
OK, if I revert the determine-qt3-qt4 stuff, it builds/runs OK.
This is what I reverted:
diff -u b/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
scripts/kconfig/Makefile +45
-37@@ -145,10 +145,8 @@ # Use recursively expanded variables so we do not call gcc unless # we really need to do so. (Do not call gcc as part of make mrproper) -HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) - -HOST_EXTRACFLAGS += -DLOCALE - +HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) \ + -DLOCALE # =========================================================================== # Shared Makefile for the various kconfig executables:@@ -237,40 +235,50 @@ # QT needs some extra effort... $(obj)/.tmp_qtcheck: @set -e; echo " CHECK qt"; dir=""; pkg=""; \ - pkg-config --exists qt 2> /dev/null && pkg=qt; \ - pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \ - if [ -n "$$pkg" ]; then \ - cflags="\$$(shell pkg-config $$pkg --cflags)"; \ - libs="\$$(shell pkg-config $$pkg --libs)"; \ - moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \ - dir="$$(pkg-config $$pkg --variable=prefix)"; \ + if ! pkg-config --exists QtCore 2> /dev/null; then \ + echo "* Unable to find the QT4 tool qmake. Trying to use QT3"; \ + pkg-config --exists qt 2> /dev/null && pkg=qt; \ + pkg-config --exists qt-mt 2> /dev/null && pkg=qt-mt; \ + if [ -n "$$pkg" ]; then \ + cflags="\$$(shell pkg-config $$pkg --cflags)"; \ + libs="\$$(shell pkg-config $$pkg --libs)"; \ + moc="\$$(shell pkg-config $$pkg --variable=prefix)/bin/moc"; \ + dir="$$(pkg-config $$pkg --variable=prefix)"; \ + else \ + for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \ + if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \ + done; \ + if [ -z "$$dir" ]; then \ + echo "*"; \ + echo "* Unable to find any QT installation. Please make sure that"; \ + echo "* the QT4 or QT3 development package is correctly installed and"; \ + echo "* either qmake can be found or install pkg-config or set"; \ + echo "* the QTDIR environment variable to the correct location."; \ + echo "*"; \ + false; \ + fi; \ + libpath=$$dir/lib; lib=qt; osdir=""; \ + $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \ + osdir=x$$($(HOSTCXX) -print-multi-os-directory); \ + test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \ + test -f $$libpath/libqt-mt.so && lib=qt-mt; \ + cflags="-I$$dir/include"; \ + libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \ + moc="$$dir/bin/moc"; \ + fi; \ + if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \ + echo "*"; \ + echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \ + echo "*"; \ + moc="/usr/bin/moc"; \ + fi; \ else \ - for d in $$QTDIR /usr/share/qt* /usr/lib/qt*; do \ - if [ -f $$d/include/qconfig.h ]; then dir=$$d; break; fi; \ - done; \ - if [ -z "$$dir" ]; then \ - echo "*"; \ - echo "* Unable to find the QT3 installation. Please make sure that"; \ - echo "* the QT3 development package is correctly installed and"; \ - echo "* either install pkg-config or set the QTDIR environment"; \ - echo "* variable to the correct location."; \ - echo "*"; \ - false; \ - fi; \ - libpath=$$dir/lib; lib=qt; osdir=""; \ - $(HOSTCXX) -print-multi-os-directory > /dev/null 2>&1 && \ - osdir=x$$($(HOSTCXX) -print-multi-os-directory); \ - test -d $$libpath/$$osdir && libpath=$$libpath/$$osdir; \ - test -f $$libpath/libqt-mt.so && lib=qt-mt; \ - cflags="-I$$dir/include"; \ - libs="-L$$libpath -Wl,-rpath,$$libpath -l$$lib"; \ - moc="$$dir/bin/moc"; \ - fi; \ - if [ ! -x $$dir/bin/moc -a -x /usr/bin/moc ]; then \ - echo "*"; \ - echo "* Unable to find $$dir/bin/moc, using /usr/bin/moc instead."; \ - echo "*"; \ - moc="/usr/bin/moc"; \ + headerpath="\$$(shell qmake -query QT_INSTALL_HEADERS)"; \ + libpath="\$$(shell qmake -query QT_INSTALL_LIBS)"; \ + binpath="\$$(shell qmake -query QT_INSTALL_BINS)"; \ + cflags="-I$$headerpath -I$$headerpath/QtCore -I$$headerpath/QtGui -I$$headerpath/Qt3Support -DQT3_SUPPORT"; \ + libs="-L$$libpath -Wl,-rpath,$$libpath -lQtCore -lQtGui -lQt3Support"; \ + moc="$$binpath/moc"; \ fi; \ echo "KC_QT_CFLAGS=$$cflags" > $@; \ echo "KC_QT_LIBS=$$libs" >> $@; \
Hello Randy,
Quoted 13 lines · On Friday 10 September 2010 16:37:36 Michal Marek wrote:
Quoted 13 lines
Quoted 13 lines
GEN /lnx/src/TMP/linux-next-20100902/xx64/Makefile
mkdir -p
include/linuxinclude/config
make -f /lnx/src/TMP/linux-next-20100902/scripts/Makefile.build obj=scripts/kconfig xconfig **Unknown**/moc -i /lnx/src/TMP/linux-next-20100902/scripts/kconfig/qconf.h -oscripts/kconfig/qconf.moc/bin/sh: **Unknown**/moc: No such file or directory
make[2]: *** [scripts/kconfig/qconf.moc] Error 127 make[1]: *** [xconfig] Error 2
make: *** [sub-make] Error 2
Quoted 1 line
Quoted 1 line
Quoted 1 line
Any ideas what happened?
It seems QT4 isn't detected properly. Could you please check the output of
Quoted 3 lines
qmake -query
QT_INSTALL_BINS
qmake -queryQT_INSTALL_LIBS
qmake -queryQT_INSTALL_HEADERS
I also have several other questions:
* Which distribution are you running?
* Where is qmake and moc installed on your system?
Best regards,
Alexander
Quoted 16 lines · On Fri, 10 Sep 2010 17:14:16 +0200 Alexander Stein wrote:
Hello Randy,
Quoted 13 lines · On Friday 10 September 2010 16:37:36 Michal Marek wrote:
Quoted 13 lines
Quoted 13 lines
GEN /lnx/src/TMP/linux-next-20100902/xx64/Makefile
mkdir -p
include/linuxinclude/config
make -f /lnx/src/TMP/linux-next-20100902/scripts/Makefile.build obj=scripts/kconfig xconfig **Unknown**/moc -i /lnx/src/TMP/linux-next-20100902/scripts/kconfig/qconf.h -oscripts/kconfig/qconf.moc/bin/sh: **Unknown**/moc: No such file or directory
make[2]: *** [scripts/kconfig/qconf.moc] Error 127 make[1]: *** [xconfig] Error 2
make: *** [sub-make] Error 2
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Any ideas what happened?
It seems QT4 isn't detected properly. Could you please check the output of
Quoted 1 line
qmake -query
QT_INSTALL_BINS
**Unknown**
Quoted 1 line
Quoted 1 line
qmake -query
QT_INSTALL_LIBS
**Unknown**
Quoted 1 line
Quoted 1 line
qmake -query
QT_INSTALL_HEADERS
**Unknown**
Quoted 2 lines
I also have several other questions:
* Which distribution are you running?
fedora 11
Quoted 1 line
* Where is qmake and moc installed on your system?
/usr/lib64/qt-3.3/bin/qmake/usr/lib64/qt-3.3/bin/moc
Thanks.
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***