Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
5.6.9-gentoo-sources and new make xconfig failure.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3353
Location: Gainesville, Florida

PostPosted: Sat May 02, 2020 4:24 pm    Post subject: 5.6.9-gentoo-sources and new make xconfig failure. Reply with quote

This is related to my other post at https://forums.gentoo.org/viewtopic-t-1105570-highlight-.html
However, it is worse, as make xconfig no longer functions, but worked on 5.8-gentoo-sources, with the errors referred to in the other post.

Code:
gentoo-audio /usr/src/linux-5.7-rc3 # make xconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/images.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/util.o
  UPD     scripts/kconfig/qconf-cfg
  MOC     scripts/kconfig/qconf.moc
  HOSTCXX scripts/kconfig/qconf.o
scripts/kconfig/qconf.cc: In member function ‘void ConfigInfoView::menuInfo()’:
scripts/kconfig/qconf.cc:1097:55: warning: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
 1097 |      head += QString().sprintf("<a href=\"s%p\">", sym);
      |                                                       ^
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:382:14: note: declared here
  382 |     QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
      |              ^~~~~~~
scripts/kconfig/qconf.cc:1106:54: warning: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
 1106 |     head += QString().sprintf("<a href=\"s%p\">", sym);
      |                                                      ^
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:382:14: note: declared here
  382 |     QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
      |              ^~~~~~~
scripts/kconfig/qconf.cc:1134:90: warning: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
 1134 |   debug += QString().sprintf("defined at %s:%d<br><br>", _menu->file->name, _menu->lineno);
      |                                                                                          ^
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:382:14: note: declared here
  382 |     QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
      |              ^~~~~~~
scripts/kconfig/qconf.cc: In member function ‘QString ConfigInfoView::debug_info(symbol*)’:
scripts/kconfig/qconf.cc:1157:69: warning: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
 1157 |    debug += QString().sprintf("prompt: <a href=\"m%p\">", prop->menu);
      |                                                                     ^
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:382:14: note: declared here
  382 |     QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
      |              ^~~~~~~
scripts/kconfig/qconf.cc: In static member function ‘static void ConfigInfoView::expr_print_help(void*, symbol*, const char*)’:
scripts/kconfig/qconf.cc:1229:53: warning: ‘QString& QString::sprintf(const char*, ...)’ is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
 1229 |   *text += QString().sprintf("<a href=\"s%p\">", sym);
      |                                                     ^
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:382:14: note: declared here
  382 |     QString &sprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
      |              ^~~~~~~
  HOSTLD  scripts/kconfig/qconf
scripts/kconfig/qconf  Kconfig
#
# using defaults found in arch/x86/configs/x86_64_defconfig
#
Any advice and/or a patch would be greatly appreciated.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-10.1.0, kernel-5.6.11-gentoo USE=experimental
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15324

PostPosted: Sat May 02, 2020 5:31 pm    Post subject: Reply with quote

The only thing I see wrong in that output is it looks like you are running this as root. No error messages are shown though. What did you see that made you think there was a problem?
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3353
Location: Gainesville, Florida

PostPosted: Sat May 02, 2020 6:50 pm    Post subject: Reply with quote

Sorry. :oops: I copy/pasted the wrong kernel output. It should have been for 5.6.9-gentoo, which is below:
Code:
gentoo-audio ~ # cd /usr/src/linux-5.6.9-gentoo
gentoo-audio /usr/src/linux-5.6.9-gentoo # make xconfig
  MOC     scripts/kconfig/qconf.moc
  HOSTCXX scripts/kconfig/qconf.o
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:385:20: error: ‘static QString QString::asprintf(const char*, ...)’ cannot be overloaded with ‘QString& QString::asprintf(const char*, ...)’
  385 |     static QString asprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(1, 2);
      |                    ^~~~~~~~
/usr/include/qt5/QtCore/qstring.h:382:14: note: previous declaration ‘QString& QString::asprintf(const char*, ...)’
  382 |     QString &asprintf(const char *format, ...) Q_ATTRIBUTE_FORMAT_PRINTF(2, 3);
      |              ^~~~~~~~
scripts/kconfig/qconf.cc: In member function ‘void ConfigItem::updateMenu()’:
scripts/kconfig/qconf.cc:157:31: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
  157 |    setText(noColIdx, QString::null);
      |                               ^~~~
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:913:23: note: declared here
  913 |     static const Null null;
      |                       ^~~~
scripts/kconfig/qconf.cc:157:31: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
  157 |    setText(noColIdx, QString::null);
      |                               ^~~~
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:913:23: note: declared here
  913 |     static const Null null;
      |                       ^~~~
scripts/kconfig/qconf.cc:158:32: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
  158 |    setText(modColIdx, QString::null);
      |                                ^~~~
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:913:23: note: declared here
  913 |     static const Null null;
      |                       ^~~~
scripts/kconfig/qconf.cc:158:32: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
  158 |    setText(modColIdx, QString::null);
      |                                ^~~~
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:913:23: note: declared here
  913 |     static const Null null;
      |                       ^~~~
scripts/kconfig/qconf.cc:159:32: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
  159 |    setText(yesColIdx, QString::null);
      |                                ^~~~
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:913:23: note: declared here
  913 |     static const Null null;
      |                       ^~~~
scripts/kconfig/qconf.cc:159:32: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
  159 |    setText(yesColIdx, QString::null);
      |                                ^~~~
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:913:23: note: declared here
  913 |     static const Null null;
      |                       ^~~~
scripts/kconfig/qconf.cc: In member function ‘void ConfigLineEdit::show(ConfigItem*)’:
scripts/kconfig/qconf.cc:279:20: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
  279 |   setText(QString::null);
      |                    ^~~~
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:913:23: note: declared here
  913 |     static const Null null;
      |                       ^~~~
scripts/kconfig/qconf.cc:279:20: warning: ‘QString::null’ is deprecated: use QString() [-Wdeprecated-declarations]
  279 |   setText(QString::null);
      |                    ^~~~
In file included from /usr/include/qt5/QtCore/qobject.h:47,
                 from /usr/include/qt5/QtWidgets/qwidget.h:45,
                 from /usr/include/qt5/QtWidgets/qmainwindow.h:44,
                 from /usr/include/qt5/QtWidgets/QMainWindow:1,
                 from scripts/kconfig/qconf.cc:9:
/usr/include/qt5/QtCore/qstring.h:913:23: note: declared here
  913 |     static const Null null;
      |                       ^~~~
scripts/kconfig/qconf.cc: In member function ‘void ConfigInfoView::menuInfo()’:
scripts/kconfig/qconf.cc:1085:24: error: ‘class QString’ has no member named ‘sprintf’; did you mean ‘vsprintf’?
 1085 |      head += QString().sprintf("<a href=\"s%p\">", sym);
      |                        ^~~~~~~
      |                        vsprintf
scripts/kconfig/qconf.cc:1094:23: error: ‘class QString’ has no member named ‘sprintf’; did you mean ‘vsprintf’?
 1094 |     head += QString().sprintf("<a href=\"s%p\">", sym);
      |                       ^~~~~~~
      |                       vsprintf
scripts/kconfig/qconf.cc:1122:22: error: ‘class QString’ has no member named ‘sprintf’; did you mean ‘vsprintf’?
 1122 |   debug += QString().sprintf("defined at %s:%d<br><br>", _menu->file->name, _menu->lineno);
      |                      ^~~~~~~
      |                      vsprintf
scripts/kconfig/qconf.cc: In member function ‘QString ConfigInfoView::debug_info(symbol*)’:
scripts/kconfig/qconf.cc:1145:23: error: ‘class QString’ has no member named ‘sprintf’; did you mean ‘vsprintf’?
 1145 |    debug += QString().sprintf("prompt: <a href=\"m%p\">", prop->menu);
      |                       ^~~~~~~
      |                       vsprintf
scripts/kconfig/qconf.cc: In static member function ‘static void ConfigInfoView::expr_print_help(void*, symbol*, const char*)’:
scripts/kconfig/qconf.cc:1217:22: error: ‘class QString’ has no member named ‘sprintf’; did you mean ‘vsprintf’?
 1217 |   *text += QString().sprintf("<a href=\"s%p\">", sym);
      |                      ^~~~~~~
      |                      vsprintf
make[1]: *** [scripts/Makefile.host:141: scripts/kconfig/qconf.o] Error 1
make: *** [Makefile:568: xconfig] Error 2
gentoo-audio /usr/src/linux-5.6.9-gentoo #


BTW, the QString::null’ is deprecated warnings were fixed in 5.7-rc, but the others were not, and 5.6.8 was still working even with the warnings. but 5.6.9 has more problems, and eventully bails out with the [Makefile:568: xconfig] Error 2 right before the xconfig qt window should open up.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-10.1.0, kernel-5.6.11-gentoo USE=experimental
Back to top
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1596

PostPosted: Sat May 02, 2020 7:01 pm    Post subject: Reply with quote

Don't how to help but saying works fine here:
Code:
amd64 kernel
 * /usr/src/linux-5.6.9-gentoo-classic done!
amd64 /usr/src/linux-5.6.9-gentoo-classic # make xconfig
scripts/kconfig/qconf  Kconfig
from root logged terminal.
Thks 4 ur attention.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15324

PostPosted: Sat May 02, 2020 7:29 pm    Post subject: Reply with quote

That looks more reasonable. Based on the Qt documentation for sprintf, you probably are supposed to rewrite this to use arg().

Your version of Qt may influence whether the existing code works.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3353
Location: Gainesville, Florida

PostPosted: Sat May 02, 2020 8:20 pm    Post subject: Reply with quote

Hmmm.... On another gentoo install on different box, make xconfig works normally on 5.6.9-gentoo. Will retry on the other box.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-10.1.0, kernel-5.6.11-gentoo USE=experimental
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3353
Location: Gainesville, Florida

PostPosted: Sat May 02, 2020 8:28 pm    Post subject: Reply with quote

Hu,
I saw that and tried to use asprintf in qconf.cc and /usr/include/qt5/QtCore/qstring.h, but didn't get the syntax right, I guess.

Could you please give me an example of what would be the correct form on the lines mentioned in the warnings? I'm pretty ignorant about coding correctly.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-10.1.0, kernel-5.6.11-gentoo USE=experimental
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15324

PostPosted: Sat May 02, 2020 11:12 pm    Post subject: Reply with quote

I don't know the correct form. I don't use those Qt functions. I stick to make menuconfig when configuring the kernel, so I have not needed to resolve this on my machines.
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3353
Location: Gainesville, Florida

PostPosted: Sun May 03, 2020 1:13 am    Post subject: Reply with quote

Hu,
Well, make xconfig has worked normally on two of my three virtually identical installations with 5.6.9-gentoo-sources, but the third one has a problem somewhere.

I'll try again with a fresh 5.6.9 source, and see if that works. Thanks much, and that Qt documentation link was great in the sense it gave me a good idea of what I don't know about understanding QT coding.

I'm in way over my head here, and obviously need to study up on this to even attempt simple things like make a corrective patch for minor warnings.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-10.1.0, kernel-5.6.11-gentoo USE=experimental
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15324

PostPosted: Sun May 03, 2020 2:07 am    Post subject: Reply with quote

What are the versions of Qt on each of the systems?
Back to top
View user's profile Send private message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3353
Location: Gainesville, Florida

PostPosted: Mon May 04, 2020 3:36 am    Post subject: Reply with quote

All three have Qt-5.14.2, Which I guess is currently the ~amd64 default. I'm thinking I did something odd and messed up. I'll try the failed one again with fresh source and config file.
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-10.1.0, kernel-5.6.11-gentoo USE=experimental
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15324

PostPosted: Tue May 05, 2020 2:33 am    Post subject: Reply with quote

I doubt that will help. Is there a reason you don't want to switch to one of the text console based configuration programs while waiting for this to be sorted out?
Back to top
View user's profile Send private message
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 837

PostPosted: Tue May 05, 2020 8:36 am    Post subject: Reply with quote

I remember having a problem a bit like this where, having installed the kernel sources and then having successfully run "make xconfig", I updated Qt. That then meant the "moc" file created by the first use of "make xconfig" was no longer valid.

The cure was to delete the "moc" file; "make xconfig" then made a new file which worked with the new Qt.
_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum