Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-72912

configure ignoring arguments after an invalid one, but still generating makefiles?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.12.2, 5.14.0 Alpha
    • 5.12.0
    • Build tools: qmake
    • None
    • Redhat 6, gcc 4.8 compiler. Custom built qt with custom built deps libraries
      The config is put in config.opt then i launch configure -redo
    • c2b0bca98429853bcd1f91dff5ae44742b48bc1f (qt/qtbase/5.12)

    Description

      My qt build script build a config.opt in the shadow build folder, then runs configure -redo

      I had tried adding -gtkstyle in config.opt. Configure complained about it being invalid at the end of the configure test summary.

      But some other config tests strangely failed (used to work at 5.11.1 build with the same script). Among them, the tests of some external dependencies. Indeed, in config. opt, AFTER "-gtkstyle", there was the "-system-xxx", "-I", and "-L" options to find my png, jpeg, freetype, openssl,... . Include folders were thus not added to the config tests compilation without ecplanation why, and configure detected only the third party libs included in qt sources.

      Only removing -gtkstyle made the system libs detected properly again

      To me it would make sense to either

       - Handle the other aguments after the invalid one, if that's technically possible

       - Or if not, then configure could run the config tests, but should stop before makefile generation, since it can not understand the full command line.

       - Or at the very least, print all the remaining config options that were ignored so we can know about it. Not seeing an error about the options, but seeing them not used is a bit confusing

      Attachments

        For Gerrit Dashboard: QTBUG-72912
        # Subject Branch Project Status CR V

        Activity

          People

            qtbuildsystem Qt Build System Team
            bartoli Olivier BARTHELEMY
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes