Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-2929

Texas Driver: Skip linker related arguments

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.10
    • Fix Version/s: 6.18
    • Component/s: Compiler Driver
    • Labels:
      None

      Description

      From the documentation:

      armcl [options] [filenames] [--run_linker [link_options] object files]]

      --run_linker (-z) Option that invokes the linker. The --run_linker option's short form is -z. See Chapter 4 for more information.

      -m (--map_file) argument should not be added to probe, it is a linker option, everything coming after --run_linker or -z should be skipped.

      Reported error:

      Call stack

      ERROR: Error during SonarScanner execution
      java.lang.IllegalStateException: java.nio.file.NoSuchFileException: C:\Users\CARDIA~1\AppData\Local\Temp\probe2160877324278972826.pp
      at com.sonar.cpp.fs.FileSystemAccess.toByteArray(FileSystemAccess.java:225)
      at com.sonar.cpp.fs.FileSystemAccess.toString(FileSystemAccess.java:198)
      at com.sonar.cpp.analyzer.TexasDriver.lambda$probeCompiler$1(TexasDriver.java:227)
      at java.base/java.util.HashMap.computeIfAbsent(Unknown Source)
      at com.sonar.cpp.analyzer.TexasDriver.probeCompiler(TexasDriver.java:206)
      at com.sonar.cpp.analyzer.TexasDriver.onCapture(TexasDriver.java:101)
      

      Log file

      15:46:47.586 DEBUG: Probing compiler: [C:\qa_systems\ti-cgt-c2000.LTS\bin\cl2000.exe, --cpp_default, --float_support=fpu32, --tmu_support=tmu0, --abi=coffabi, -mVSSMU_IT.map, --preproc_macros, C:\Users\CARDIA~1\AppData\Local\Temp\probe17630509433601316213.tmp]
      15:46:47.633 DEBUG: stdout:
       
      15:46:47.633 DEBUG: stderr:
       error: argument to option -mv (nops) is out of range
      

        Attachments

          Activity

            People

            Assignee:
            massimo.paladin Massimo PALADIN
            Reporter:
            loic.joly Loïc Joly
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: