Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. how to view all linker errors instead of a few while using qmake for wasm
Forum Updated to NodeBB v4.3 + New Features

how to view all linker errors instead of a few while using qmake for wasm

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
5 Posts 3 Posters 675 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shome
    wrote on last edited by shome
    #1

    I am getting linker error message which ends with
    wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
    How to enable viewing of all errors. What flag do I need to set in the .pro file?

    wasm-ld: error: MyGLCanvas.o: undefined symbol: gluPerspective
    wasm-ld: error: MyGLCanvas.o: undefined symbol: glShadeModel
    wasm-ld: error: MyGLCanvas.o: undefined symbol: glLightModelfv
    wasm-ld: error: MyGLCanvas.o: undefined symbol: glLightfv
    ....
    wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
    
    
    jsulmJ 1 Reply Last reply
    0
    • S shome

      I am getting linker error message which ends with
      wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
      How to enable viewing of all errors. What flag do I need to set in the .pro file?

      wasm-ld: error: MyGLCanvas.o: undefined symbol: gluPerspective
      wasm-ld: error: MyGLCanvas.o: undefined symbol: glShadeModel
      wasm-ld: error: MyGLCanvas.o: undefined symbol: glLightModelfv
      wasm-ld: error: MyGLCanvas.o: undefined symbol: glLightfv
      ....
      wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
      
      
      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @shome I would say:

      QMAKE_LFLAGS=-error-limit=0
      

      https://doc.qt.io/qt-6/qmake-variable-reference.html#qmake-lflags

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      1
      • jsulmJ jsulm

        @shome I would say:

        QMAKE_LFLAGS=-error-limit=0
        

        https://doc.qt.io/qt-6/qmake-variable-reference.html#qmake-lflags

        S Offline
        S Offline
        shome
        wrote on last edited by shome
        #3

        @jsulm I tried the above flag in the .pro file. But I still get the same message:
        wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)

        My .pro has QMAKE_LFLAGS += -error-limit=0 at the beginning. I also tried QMAKE_LFLAGS=-error-limit=0. But same effect.

        TEMPLATE = app
        
        # Minimum required CMake version
        CONFIG += c++17
        
        # Set compiler options
        QMAKE_CXXFLAGS += -fPIC
        
        QMAKE_LFLAGS += -error-limit=0
        

        Should I put the QMAKE_LFLAGS at any particular position to make it work? I am using qt6.6.2 and emscripten 3.1.37

        jsulmJ 1 Reply Last reply
        0
        • S shome

          @jsulm I tried the above flag in the .pro file. But I still get the same message:
          wasm-ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)

          My .pro has QMAKE_LFLAGS += -error-limit=0 at the beginning. I also tried QMAKE_LFLAGS=-error-limit=0. But same effect.

          TEMPLATE = app
          
          # Minimum required CMake version
          CONFIG += c++17
          
          # Set compiler options
          QMAKE_CXXFLAGS += -fPIC
          
          QMAKE_LFLAGS += -error-limit=0
          

          Should I put the QMAKE_LFLAGS at any particular position to make it work? I am using qt6.6.2 and emscripten 3.1.37

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @shome Did you also do a complete rebuild after changing the pro file?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • O Offline
            O Offline
            orgads
            Qt Champions 2017
            wrote on last edited by
            #5

            This worked for me:

            QMAKE_LFLAGS += -Wl,-error-limit=0
            
            1 Reply Last reply
            2

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved