VS Code environment with Clangd - c++
I try to configure my VS Code environment for C/C++. I do it based on this guide: https://steelph0enix.github.io/posts/vscode-cpp-setup/
Currently I have a problem with Clangd. It doesn't seem to find the standard headers (e.g. iostream, 'iostream' file not foundclang(pp_file_not_found)). As I know Clangd get information where to look for standard headers from compile_commands.json. My compile_commands.json looks like:
[
{
"directory": "E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/build",
"command": "C:/cygwin64/bin/x86_64-pc-cygwin-g++.exe #CMakeFiles/steelph0enix_vs_tutorial.dir/includes_CXX.rsp -g -o CMakeFiles/steelph0enix_vs_tutorial.dir/src/lib.cpp.obj -c E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/lib.cpp",
"file": "E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/lib.cpp"
},
{
"directory": "E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/build",
"command": "C:/cygwin64/bin/x86_64-pc-cygwin-g++.exe #CMakeFiles/steelph0enix_vs_tutorial.dir/includes_CXX.rsp -g -o CMakeFiles/steelph0enix_vs_tutorial.dir/src/main.cpp.obj -c E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp",
"file": "E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp"
}
]
Clangd output (with -log=verbose argument):
I[17:55:14.307] clangd version 13.0.0 (https://github.com/llvm/llvm-project d7b669b3a30345cfcdb2fde2af6f48aa4b94845d)
I[17:55:14.307] Features: windows+grpc
I[17:55:14.307] PID: 11728
I[17:55:14.307] Working directory: e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial
I[17:55:14.307] argv[0]: c:\Users\User\AppData\Roaming\Code\User\globalStorage\llvm-vs-code-extensions.vscode-clangd\install\13.0.0\clangd_13.0.0\bin\clangd.exe
I[17:55:14.307] argv[1]: -log=verbose
V[17:55:14.310] User config file is C:\Users\User\AppData\Local\clangd\config.yaml
I[17:55:14.310] Starting LSP over stdin/stdout
V[17:55:14.311] <<< {"id":0,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"general":{"markdown":{"parser":"marked","version":"1.1.0"},"regularExpressions":{"engine":"ECMAScript","version":"ES2020"},"staleRequestSupport":{"cancel":true,"retryOnContentModified":["textDocument/semanticTokens/full","textDocument/semanticTokens/range","textDocument/semanticTokens/full/delta"]}},"textDocument":{"callHierarchy":{"dynamicRegistration":true},"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dataSupport":true,"disabledSupport":true,"dynamicRegistration":true,"honorsChangeAnnotations":false,"isPreferredSupport":true,"resolveSupport":{"properties":["edit"]}},"codeLens":{"dynamicRegistration":true},"colorProvider":{"dynamicRegistration":true},"completion":{"completionItem":{"commitCharactersSupport":true,"deprecatedSupport":true,"documentationFormat":["markdown","plaintext"],"insertReplaceSupport":true,"insertTextModeSupport":{"valueSet":[1,2]},"labelDetailsSupport":true,"preselectSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"snippetSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"contextSupport":true,"dynamicRegistration":true,"editsNearCursor":true},"declaration":{"dynamicRegistration":true,"linkSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"documentHighlight":{"dynamicRegistration":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"documentSymbol":{"dynamicRegistration":true,"hierarchicalDocumentSymbolSupport":true,"labelSupport":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]}},"foldingRange":{"dynamicRegistration":true,"lineFoldingOnly":true,"rangeLimit":5000},"formatting":{"dynamicRegistration":true},"hover":{"contentFormat":["markdown","plaintext"],"dynamicRegistration":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"linkedEditingRange":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"publishDiagnostics":{"codeDescriptionSupport":true,"dataSupport":true,"relatedInformation":true,"tagSupport":{"valueSet":[1,2]},"versionSupport":false},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"honorsChangeAnnotations":true,"prepareSupport":true,"prepareSupportDefaultBehavior":1},"selectionRange":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"formats":["relative"],"multilineTokenSupport":false,"overlappingTokenSupport":false,"requests":{"full":{"delta":true},"range":true},"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator"]},"signatureHelp":{"contextSupport":true,"dynamicRegistration":true,"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}}},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true}},"window":{"showDocument":{"support":true},"showMessage":{"messageActionItem":{"additionalPropertiesSupport":true}},"workDoneProgress":true},"workspace":{"applyEdit":true,"codeLens":{"refreshSupport":true},"configuration":true,"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"executeCommand":{"dynamicRegistration":true},"fileOperations":{"didCreate":true,"didDelete":true,"didRename":true,"dynamicRegistration":true,"willCreate":true,"willDelete":true,"willRename":true},"semanticTokens":{"refreshSupport":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]}},"workspaceEdit":{"changeAnnotationSupport":{"groupsOnLabel":true},"documentChanges":true,"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"resourceOperations":["create","rename","delete"]},"workspaceFolders":true}},"clientInfo":{"name":"Visual Studio Code","version":"1.64.0"},"initializationOptions":{"clangdFileStatus":true,"fallbackFlags":[]},"locale":"en-us","processId":2420,"rootPath":"e:\\Karol\\Visual_Studio_repo\\steelph0enix_vs_tutorial","rootUri":"file:///e%3A/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial","trace":"off","workspaceFolders":[{"name":"steelph0enix_vs_tutorial","uri":"file:///e%3A/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial"}]}}
I[17:55:14.311] <-- initialize(0)
I[17:55:14.317] --> reply:initialize(0) 6 ms
V[17:55:14.317] >>> {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"astProvider":true,"callHierarchyProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"compilationDatabase":{"automaticReload":true},"completionProvider":{"allCommitCharacters":[" ","\t","(",")","[","]","{","}","<",">",":",";",",","+","-","/","*","%","^","&","#","?",".","=","\"","'","|"],"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"\n","moreTriggerCharacter":[]},"documentRangeFormattingProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"hoverProvider":true,"implementationProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":["declaration","deprecated","deduced","readonly","static","abstract","dependentName","defaultLibrary","functionScope","classScope","fileScope","globalScope"],"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","interface","enum","enumMember","type","type","unknown","namespace","typeParameter","concept","type","macro","comment"]},"range":false},"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 13.0.0 (https://github.com/llvm/llvm-project d7b669b3a30345cfcdb2fde2af6f48aa4b94845d) windows+grpc x86_64-pc-windows-msvc"}}}
V[17:55:14.322] <<< {"jsonrpc":"2.0","method":"initialized","params":{}}
I[17:55:14.322] <-- initialized
V[17:55:14.322] <<< {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"cpp","text":"#include <iostream>\r\n#include \"lib.hpp\"\r\n\r\nint main(void)\r\n{\r\n std::cout << \"Helsdaslow world!\" << std::endl;\r\n for\r\n f(42);\r\n}","uri":"file:///e%3A/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp","version":1}}}
I[17:55:14.322] <-- textDocument/didOpen
V[17:55:14.323] config note at e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\.clangd:1:0: Parsing config fragment
E[17:55:14.323] config error at e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\.clangd:1:0: Config should be a dictionary
V[17:55:14.323] config note at e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\.clangd:1:0: Parsed 0 fragments from file
I[17:55:14.323] --> textDocument/publishDiagnostics
V[17:55:14.323] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"message":"Config should be a dictionary","range":{"end":{"character":0,"line":0},"start":{"character":0,"line":0}},"relatedInformation":[],"severity":1,"source":"clangd-config"}],"uri":"file:///e:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/.clangd"}}
I[17:55:14.323] Loaded compilation database from e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\build/compile_commands.json
V[17:55:14.323] Broadcasting compilation database from e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial
I[17:55:14.324] ASTWorker building file e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp version 1 with command
[E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/build]
"C:\\cygwin64\\bin\\x86_64-pc-cygwin-g++.exe" --target=x86_64-pc-cygwin --driver-mode=g++ -IE:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/include -g -o CMakeFiles/steelph0enix_vs_tutorial.dir/src/main.cpp.obj -c "-resource-dir=c:\\Users\\User\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\13.0.0\\clangd_13.0.0\\lib\\clang\\13.0.0" -- "e:\\Karol\\Visual_Studio_repo\\steelph0enix_vs_tutorial\\src\\main.cpp"
V[17:55:14.324] config note at E:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\.clangd:1:0: Parsing config fragment
E[17:55:14.324] config error at E:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\.clangd:1:0: Config should be a dictionary
V[17:55:14.324] config note at E:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\.clangd:1:0: Parsed 0 fragments from file
I[17:55:14.324] --> textDocument/publishDiagnostics
V[17:55:14.324] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"message":"Config should be a dictionary","range":{"end":{"character":0,"line":0},"start":{"character":0,"line":0}},"relatedInformation":[],"severity":1,"source":"clangd-config"}],"uri":"file:///E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/.clangd"}}
I[17:55:14.324] --> window/workDoneProgress/create(0)
V[17:55:14.324] >>> {"id":0,"jsonrpc":"2.0","method":"window/workDoneProgress/create","params":{"token":"backgroundIndexProgress"}}
I[17:55:14.324] Enqueueing 2 commands for indexing
V[17:55:14.324] Failed to load shard: E:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp
V[17:55:14.324] Failed to load shard: E:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\lib.cpp
V[17:55:14.325] <<< {"id":0,"jsonrpc":"2.0","result":null}
I[17:55:14.325] <-- reply(0)
I[17:55:14.325] --> $/progress
V[17:55:14.325] Driver produced command: cc1 -cc1 -triple x86_64-pc-windows-cygnus -fsyntax-only -disable-free -disable-llvm-verifier -discard-value-names -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -mframe-pointer=none -fmath-errno -fno-rounding-math -mconstructor-aliases -munwind-tables -target-cpu x86-64 -tune-cpu generic -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb -fcoverage-compilation-dir=E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/build -resource-dir "c:\\Users\\User\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\13.0.0\\clangd_13.0.0\\lib\\clang\\13.0.0" -I E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/include -fdeprecated-macro -fdebug-compilation-dir=E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/build -ferror-limit 19 -fno-use-cxa-atexit -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -faddrsig -x c++ "e:\\Karol\\Visual_Studio_repo\\steelph0enix_vs_tutorial\\src\\main.cpp"
V[17:55:14.325] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"begin","percentage":0,"title":"indexing"}}}
I[17:55:14.325] --> $/progress
I[17:55:14.325] --> textDocument/clangd.fileStatus
V[17:55:14.325] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"1/3","percentage":33}}}
V[17:55:14.325] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"parsing includes, running Update (1)","uri":"file:///e:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp"}}
V[17:55:14.325] Building first preamble for e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp version 1
V[17:55:14.325] Indexing E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp (digest:=F5459C87439E7F41)
V[17:55:14.325] Indexing E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/lib.cpp (digest:=07BE53FD0DE2F8E8)
V[17:55:14.328] Ignored diagnostic. E:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp:1:10:'iostream' file not found
V[17:55:14.328] Ignored diagnostic. E:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\lib.cpp:2:10:'iostream' file not found
I[17:55:14.329] Indexed E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp (2 symbols, 2 refs, 2 files)
I[17:55:14.329] Failed to compile E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp, index may be incomplete
I[17:55:14.329] Indexed E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/lib.cpp (1 symbols, 2 refs, 2 files)
I[17:55:14.329] Failed to compile E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/lib.cpp, index may be incomplete
V[17:55:14.331] <<< {"id":1,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///e%3A/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp"}}}
I[17:55:14.331] <-- textDocument/documentSymbol(1)
V[17:55:14.331] <<< {"id":2,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[]},"range":{"end":{"character":1,"line":4},"start":{"character":1,"line":4}},"textDocument":{"uri":"file:///e%3A/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp"}}}
I[17:55:14.331] <-- textDocument/codeAction(2)
V[17:55:14.332] <<< {"id":3,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///e%3A/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp"}}}
I[17:55:14.332] <-- textDocument/documentLink(3)
I[17:55:14.332] --> $/progress
V[17:55:14.332] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"report","message":"2/3","percentage":66}}}
V[17:55:14.333] BackgroundIndex: building version 1 when background indexer is idle
V[17:55:14.333] BackgroundIndex: serving version 1 (31808 bytes)
I[17:55:14.333] --> $/progress
V[17:55:14.333] >>> {"jsonrpc":"2.0","method":"$/progress","params":{"token":"backgroundIndexProgress","value":{"kind":"end"}}}
V[17:55:14.333] indexed preamble AST for e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp version 1:
symbol slab: 1 symbols, 4456 bytes
ref slab: 0 symbols, 0 refs, 136 bytes
relations slab: 0 relations, 24 bytes
V[17:55:14.333] Build dynamic index for header symbols with estimated memory usage of 6940 bytes
V[17:55:14.334] Built preamble of size 214092 for file e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp version 1
I[17:55:14.334] --> workspace/semanticTokens/refresh(1)
V[17:55:14.334] >>> {"id":1,"jsonrpc":"2.0","method":"workspace/semanticTokens/refresh","params":null}
I[17:55:14.334] --> textDocument/clangd.fileStatus
V[17:55:14.334] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"parsing includes, running Build AST for (1)","uri":"file:///e:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp"}}
V[17:55:14.335] <<< {"id":1,"jsonrpc":"2.0","result":null}
I[17:55:14.335] <-- reply(1)
V[17:55:14.339] <<< {"id":4,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full","params":{"textDocument":{"uri":"file:///e%3A/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp"}}}
I[17:55:14.339] <-- textDocument/semanticTokens/full(4)
V[17:55:14.341] Trying to fix unresolved name "cout" in scopes: [std::]
V[17:55:14.341] Dex query tree: false
V[17:55:14.341] Dex query tree: false
V[17:55:14.342] Trying to fix unresolved name "endl" in scopes: [std::]
V[17:55:14.342] Dex query tree: false
V[17:55:14.342] Dex query tree: false
V[17:55:14.342] indexed file AST for e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp version 1:
symbol slab: 1 symbols, 4456 bytes
ref slab: 1 symbols, 1 refs, 4256 bytes
relations slab: 0 relations, 24 bytes
V[17:55:14.342] Build dynamic index for main-file symbols with estimated memory usage of 11536 bytes
I[17:55:14.342] --> textDocument/publishDiagnostics
V[17:55:14.342] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[{"code":"pp_file_not_found","message":"'iostream' file not found","range":{"end":{"character":19,"line":0},"start":{"character":9,"line":0}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":7,"line":5},"start":{"character":4,"line":5}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"undeclared_var_use","message":"Use of undeclared identifier 'std'","range":{"end":{"character":43,"line":5},"start":{"character":40,"line":5}},"relatedInformation":[],"severity":1,"source":"clang"},{"code":"expected_lparen_after","message":"Expected '(' after 'for'","range":{"end":{"character":5,"line":7},"start":{"character":4,"line":7}},"relatedInformation":[],"severity":1,"source":"clang"}],"uri":"file:///e:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp","version":1}}
V[17:55:14.342] ASTWorker running DocumentSymbols on version 1 of e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp
I[17:55:14.342] --> reply:textDocument/documentSymbol(1) 10 ms
V[17:55:14.342] >>> {"id":1,"jsonrpc":"2.0","result":[{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":8},"start":{"character":0,"line":3}},"selectionRange":{"end":{"character":8,"line":3},"start":{"character":4,"line":3}}}]}
V[17:55:14.342] ASTWorker running EnumerateTweaks on version 1 of e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp
I[17:55:14.342] --> reply:textDocument/codeAction(2) 10 ms
V[17:55:14.342] >>> {"id":2,"jsonrpc":"2.0","result":[]}
V[17:55:14.342] ASTWorker running DocumentLinks on version 1 of e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp
I[17:55:14.342] --> reply:textDocument/documentLink(3) 10 ms
V[17:55:14.342] >>> {"id":3,"jsonrpc":"2.0","result":[{"range":{"end":{"character":18,"line":1},"start":{"character":9,"line":1}},"target":"file:///E:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/include/lib.hpp"}]}
V[17:55:14.342] ASTWorker running SemanticHighlights on version 1 of e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp
I[17:55:14.342] --> reply:textDocument/semanticTokens/full(4) 3 ms
V[17:55:14.342] >>> {"id":4,"jsonrpc":"2.0","result":{"data":[3,4,4,3,2049],"resultId":"1"}}
I[17:55:14.342] --> textDocument/clangd.fileStatus
V[17:55:14.342] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///e:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp"}}
V[17:55:14.605] <<< {"id":5,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[]},"range":{"end":{"character":1,"line":4},"start":{"character":1,"line":4}},"textDocument":{"uri":"file:///e%3A/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp"}}}
I[17:55:14.606] <-- textDocument/codeAction(5)
V[17:55:14.606] ASTWorker running EnumerateTweaks on version 1 of e:\Karol\Visual_Studio_repo\steelph0enix_vs_tutorial\src\main.cpp
I[17:55:14.606] --> reply:textDocument/codeAction(5) 0 ms
V[17:55:14.606] >>> {"id":5,"jsonrpc":"2.0","result":[]}
I[17:55:14.606] --> textDocument/clangd.fileStatus
V[17:55:14.606] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///e:/Karol/Visual_Studio_repo/steelph0enix_vs_tutorial/src/main.cpp"}}
I also would like to mention that .clangd file is empty.
Try using the --query-driver argument to clangd, as described in this FAQ entry.
Related
How to configure Coverity for IAR ARM (iccarm)
I configured Coverity with The build is successful, but I receive Recoverable errors in the system headers (see build-log.txt) For me it’s not clear why these errors occur (build is successful) and how to configure Coverity that these errors don’t occur at all? 2022-10-20T13:38:11.227719Z|cov-build|66594|info|> cov-build 2022.3.3 (build d37b3c67c6 p-2022.3-push-69) 2022-10-20T13:38:11.227742Z|cov-build|66594|info|> Coverity Build Capture (64-bit) version 2022.3.3 on Linux 5.15.0-48-generic x86_64 2022-10-20T13:38:11.227742Z|cov-build|66594|info|> Internal version numbers: d37b3c67c6 p-2022.3-push-69 2022-10-20T13:38:11.227742Z|cov-build|66594|info|> 2022-10-20T13:38:11.227757Z|cov-build|66594|info|> Dumping from hostname : ci 2022-10-20T13:38:11.227757Z|cov-build|66594|info|> 2022-10-20T13:38:11.227764Z|cov-build|66594|info|> Platform info: 2022-10-20T13:38:11.227764Z|cov-build|66594|info|> Sysname = Linux 2022-10-20T13:38:11.227764Z|cov-build|66594|info|> Release = 5.15.0-48-generic 2022-10-20T13:38:11.227764Z|cov-build|66594|info|> Machine = x86_64 2022-10-20T13:38:11.227764Z|cov-build|66594|info|> 2022-10-20T13:38:11.227764Z|cov-build|66594|info|> 2022-10-20T13:38:11.227780Z|cov-build|66594|info|> cov-build command: cov-build --dir build/test/icc cmake --build . 2022-10-20T13:38:11.227786Z|cov-build|66594|info|> cov-build expanded command: cov-build --dir build/test/icc cmake --build . 2022-10-20T13:38:11.227957Z|cov-build|66594|info|> build command: /usr/bin/cmake --build . 2022-10-20T13:38:11.227966Z|cov-build|66594|info|> thunk command: /opt/coverity/cov-analysis-2022-3/bin/cov-internal-thunk.sh cmake --build . 2022-10-20T13:38:11.227966Z|cov-build|66594|info|> 2022-10-20T13:38:11.227974Z|cov-build|66594|info|> Set UseSharedCompilation to false. 2022-10-20T13:38:11.227982Z|cov-build|66594|info|> Set COVERITY_BIN to /opt/coverity/cov-analysis-2022-3/bin 2022-10-20T13:38:11.227993Z|cov-build|66594|info|> Set COVERITY_SITE_CC to iccarm 2022-10-20T13:38:11.227999Z|cov-build|66594|info|> Set COVERITY_SITE_CC_CAPTURE_DESCENDANTS to 2022-10-20T13:38:11.228005Z|cov-build|66594|info|> Set COVERITY_TEMP to /tmp/cov-repo/61cbee90e75bbbfcd24d03a3fa896a77 2022-10-20T13:38:11.228015Z|cov-build|66594|info|> Set COVERITY_COMMON_TEMP to /tmp 2022-10-20T13:38:11.228023Z|cov-build|66594|info|> Set COVERITY_IDIR to /home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc 2022-10-20T13:38:11.228048Z|cov-build|66594|info|> Set COVERITY_OUTPUT to /home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc/build-log.txt 2022-10-20T13:38:11.228053Z|cov-build|66594|info|> Set COVERITY_LOG to /home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc/build-log.txt 2022-10-20T13:38:11.228061Z|cov-build|66594|info|> Set COVERITY_OUTPUT_ENCODING to US-ASCII 2022-10-20T13:38:11.228066Z|cov-build|66594|info|> Set COVERITY_SYSTEM_ENCODING to US-ASCII 2022-10-20T13:38:11.228073Z|cov-build|66594|info|> Set COVERITY_EMIT to /home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc/emit 2022-10-20T13:38:11.228095Z|cov-build|66594|info|> Set COVERITY_IS_COMPILER to 0 2022-10-20T13:38:11.228100Z|cov-build|66594|info|> Set COVERITY_TOP_PROCESS to 0 2022-10-20T13:38:11.228103Z|cov-build|66594|info|> Set COVERITY_IS_COMPILER_DESCENDANT to 0 2022-10-20T13:38:11.228107Z|cov-build|66594|info|> Set COVERITY_DISENGAGE_EXES to "qemuwrapper;qemu-aarch64;qemu-alpha;qemu-arm;qemu-armeb;qemu-cris;qemu-i386;qemu-m68k;qemu-microblaze;qemu-mips;qemu-mipsel;qemu-nios2;qemu-ppc;qemu-ppc64;qemu-ppc64abi32;qemu-sh4;qemu-sh4eb;qemu-sparc;qemu-sparc32plus;qemu-sparc64;qemu-x86_64" 2022-10-20T13:38:11.228123Z|cov-build|66594|info|> 2022-10-20T13:38:11.228123Z|cov-build|66594|info|> 2022-10-20T13:38:11.228123Z|cov-build|66594|info|> Dumping Environment Variables: 2022-10-20T13:38:11.228123Z|cov-build|66594|info|> 2022-10-20T13:38:11.228142Z|cov-build|66594|info|> JENKINS_HOME=/home/repo/.jenkins 2022-10-20T13:38:11.228146Z|cov-build|66594|info|> GIT_PREVIOUS_SUCCESSFUL_COMMIT=5ecdaedd1ad5f4173cc5aa22a7ff06a2d7aa659b 2022-10-20T13:38:11.228151Z|cov-build|66594|info|> CI=true 2022-10-20T13:38:11.228154Z|cov-build|66594|info|> RUN_CHANGES_DISPLAY_URL=http://unconfigured-jenkins-location/job/xxx/324/display/redirect?page=changes 2022-10-20T13:38:11.228158Z|cov-build|66594|info|> HOSTNAME=ci 2022-10-20T13:38:11.228167Z|cov-build|66594|info|> NODE_LABELS=built-in 2022-10-20T13:38:11.228171Z|cov-build|66594|info|> GIT_COMMIT=c8902b01612b12a90701b3949e8be64e65775ba7 2022-10-20T13:38:11.228175Z|cov-build|66594|info|> HOME=/home/repo 2022-10-20T13:38:11.228179Z|cov-build|66594|info|> HUDSON_COOKIE=94d36788-17b8-4a07-a30e-6e22a28d86dc 2022-10-20T13:38:11.228183Z|cov-build|66594|info|> JENKINS_SERVER_COOKIE=durable-d67ab9cc6fd15cde89a20cb1f752777478da5dc72dc942e65e59bab789c478c1 2022-10-20T13:38:11.228187Z|cov-build|66594|info|> WORKSPACE=/home/repo/.jenkins/workspace/xxx 2022-10-20T13:38:11.228190Z|cov-build|66594|info|> CROSS_ROOT=/opt/iarsystems/bxarm-9.30.1/arm 2022-10-20T13:38:11.228194Z|cov-build|66594|info|> NODE_NAME=built-in 2022-10-20T13:38:11.228198Z|cov-build|66594|info|> RUN_ARTIFACTS_DISPLAY_URL=http://unconfigured-jenkins-location/job/xxx/324/display/redirect?page=artifacts 2022-10-20T13:38:11.228201Z|cov-build|66594|info|> ASM=iasmarm 2022-10-20T13:38:11.228205Z|cov-build|66594|info|> STAGE_NAME=Icc Arm + Coverity 2022-10-20T13:38:11.228209Z|cov-build|66594|info|> EXECUTOR_NUMBER=0 2022-10-20T13:38:11.228213Z|cov-build|66594|info|> GIT_BRANCH=origin/master 2022-10-20T13:38:11.228217Z|cov-build|66594|info|> TERM=xterm 2022-10-20T13:38:11.228220Z|cov-build|66594|info|> RUN_TESTS_DISPLAY_URL=http://unconfigured-jenkins-location/job/xxx/324/display/redirect?page=tests 2022-10-20T13:38:11.228224Z|cov-build|66594|info|> BUILD_DISPLAY_NAME=#324 2022-10-20T13:38:11.228228Z|cov-build|66594|info|> HUDSON_HOME=/home/repo/.jenkins 2022-10-20T13:38:11.228232Z|cov-build|66594|info|> JOB_BASE_NAME=xxx 2022-10-20T13:38:11.228236Z|cov-build|66594|info|> PATH=/opt/coverity/cov-analysis-2022-3/bin:/opt/SEGGER/JLink_V766:/opt/iarsystems/bxarm-9.30.1/common/bin:/opt/iarsystems/bxarm-9.30.1/arm/bin:/opt/gcc-arm-none-eabi-10.3-2021.07/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 2022-10-20T13:38:11.228240Z|cov-build|66594|info|> TOOLCHAIN_FILE=../../../cmake/platforms/$TOOLCHAIN_FILENAME 2022-10-20T13:38:11.228244Z|cov-build|66594|info|> BUILD_ID=324 2022-10-20T13:38:11.228247Z|cov-build|66594|info|> BUILD_TAG=jenkins-xxx-324 2022-10-20T13:38:11.228251Z|cov-build|66594|info|> GIT_URL=file:///home/repo/repository 2022-10-20T13:38:11.228255Z|cov-build|66594|info|> BUILD_NUMBER=324 2022-10-20T13:38:11.228259Z|cov-build|66594|info|> JENKINS_NODE_COOKIE=a1e213c4-5eae-41f4-bff8-c26bcc76eacd 2022-10-20T13:38:11.228262Z|cov-build|66594|info|> CXX=iccarm 2022-10-20T13:38:11.228266Z|cov-build|66594|info|> RUN_DISPLAY_URL=http://unconfigured-jenkins-location/job/xxx/324/display/redirect 2022-10-20T13:38:11.228270Z|cov-build|66594|info|> HUDSON_SERVER_COOKIE=e67de7100ca0e18a 2022-10-20T13:38:11.228274Z|cov-build|66594|info|> JOB_DISPLAY_URL=http://unconfigured-jenkins-location/job/xxx/display/redirect 2022-10-20T13:38:11.228278Z|cov-build|66594|info|> JOB_NAME=xxx 2022-10-20T13:38:11.228282Z|cov-build|66594|info|> PWD=/home/repo/.jenkins/workspace/xxx/build/test/icc 2022-10-20T13:38:11.228286Z|cov-build|66594|info|> GIT_PREVIOUS_COMMIT=6ec26434a11544368ba767770e88c74dd3391906 2022-10-20T13:38:11.228290Z|cov-build|66594|info|> WORKSPACE_TMP=/home/repo/.jenkins/workspace/xxx#tmp 2022-10-20T13:38:11.228293Z|cov-build|66594|info|> CC=iccarm 2022-10-20T13:38:11.228297Z|cov-build|66594|info|> TOOLCHAIN_FILENAME=toolchain-iar-iccarm.cmake 2022-10-20T13:38:11.228301Z|cov-build|66594|info|> COVERITY_PREV_XML_CATALOG_FILES= 2022-10-20T13:38:11.228305Z|cov-build|66594|info|> COVERITY_TOP_CONFIG=/tmp/cov-repo/61cbee90e75bbbfcd24d03a3fa896a77/cov-configure/coverity_config.xml 2022-10-20T13:38:11.228309Z|cov-build|66594|info|> COVERITY_BUILD_INVOCATION_ID=1 2022-10-20T13:38:11.228313Z|cov-build|66594|info|> COVERITY_CONFIG_FILE=/opt/coverity/cov-analysis-2022-3/config/coverity_config.xml 2022-10-20T13:38:11.228317Z|cov-build|66594|info|> UseSharedCompilation=false 2022-10-20T13:38:11.228321Z|cov-build|66594|info|> COVERITY_BIN=/opt/coverity/cov-analysis-2022-3/bin 2022-10-20T13:38:11.228325Z|cov-build|66594|info|> COVERITY_SITE_CC=iccarm 2022-10-20T13:38:11.228332Z|cov-build|66594|info|> COVERITY_SITE_CC_CAPTURE_DESCENDANTS= 2022-10-20T13:38:11.228336Z|cov-build|66594|info|> COVERITY_TEMP=/tmp/cov-repo/61cbee90e75bbbfcd24d03a3fa896a77 2022-10-20T13:38:11.228340Z|cov-build|66594|info|> COVERITY_COMMON_TEMP=/tmp 2022-10-20T13:38:11.228344Z|cov-build|66594|info|> COVERITY_IDIR=/home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc 2022-10-20T13:38:11.228348Z|cov-build|66594|info|> COVERITY_REWRITE_FROM= 2022-10-20T13:38:11.228352Z|cov-build|66594|info|> COVERITY_REWRITE_TO= 2022-10-20T13:38:11.228356Z|cov-build|66594|info|> COVERITY_ENABLE_JAVA_ANNOTATION_FRAMEWORK_SUPPORT=1 2022-10-20T13:38:11.228360Z|cov-build|66594|info|> COVERITY_OUTPUT=/home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc/build-log.txt 2022-10-20T13:38:11.228364Z|cov-build|66594|info|> COVERITY_LOG=/home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc/build-log.txt 2022-10-20T13:38:11.228367Z|cov-build|66594|info|> COVERITY_OUTPUT_ENCODING=US-ASCII 2022-10-20T13:38:11.228371Z|cov-build|66594|info|> COVERITY_SYSTEM_ENCODING=US-ASCII 2022-10-20T13:38:11.228375Z|cov-build|66594|info|> COVERITY_EMIT=/home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc/emit 2022-10-20T13:38:11.228379Z|cov-build|66594|info|> COVERITY_IS_COMPILER=0 2022-10-20T13:38:11.228383Z|cov-build|66594|info|> COVERITY_TOP_PROCESS=0 2022-10-20T13:38:11.228387Z|cov-build|66594|info|> COVERITY_IS_COMPILER_DESCENDANT=0 2022-10-20T13:38:11.228390Z|cov-build|66594|info|> COVERITY_DISENGAGE_EXES=qemuwrapper;qemu-aarch64;qemu-alpha;qemu-arm;qemu-armeb;qemu-cris;qemu-i386;qemu-m68k;qemu-microblaze;qemu-mips;qemu-mipsel;qemu-nios2;qemu-ppc;qemu-ppc64;qemu-ppc64abi32;qemu-sh4;qemu-sh4eb;qemu-sparc;qemu-sparc32plus;qemu-sparc64;qemu-x86_64 2022-10-20T13:38:11.228395Z|cov-build|66594|info|> COVERITY_COMPILER_PATH_MISMATCH_FILE=/home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc/has_path_mismatches 2022-10-20T13:38:11.228399Z|cov-build|66594|info|> COVERITY_PATHLESS_CONFIGS_FILE=/home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc/has_pathless_configs 2022-10-20T13:38:11.228405Z|cov-build|66594|info|> 2022-10-20T13:38:11.228405Z|cov-build|66594|info|> 2022-10-20T13:38:11.228405Z|cov-build|66594|info|> Dumping configuration: 2022-10-20T13:38:11.228405Z|cov-build|66594|info|> 2022-10-20T13:38:11.228415Z|cov-build|66594|info|> User/default configuration: 2022-10-20T13:38:11.228415Z|cov-build|66594|info|> 2022-10-20T13:38:11.228421Z|cov-build|66594|info|> Configuration read from: command-line 2022-10-20T13:38:11.228421Z|cov-build|66594|info|> Node: coverity 2022-10-20T13:38:11.228421Z|cov-build|66594|info|> Node: config 2022-10-20T13:38:11.228421Z|cov-build|66594|info|> Node: include Value: /opt/coverity/cov-analysis-2022-3/config/coverity_config.xml 2022-10-20T13:38:11.228421Z|cov-build|66594|info|> Node: config 2022-10-20T13:38:11.228421Z|cov-build|66594|info|> Node: prevent 2022-10-20T13:38:11.228421Z|cov-build|66594|info|> Node: dir Value: /home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc 2022-10-20T13:38:11.228421Z|cov-build|66594|info|> 2022-10-20T13:38:11.228444Z|cov-build|66594|info|> Configuration read from: /opt/coverity/cov-analysis-2022-3/config/coverity_config.xml 2022-10-20T13:38:11.228444Z|cov-build|66594|info|> Node: coverity 2022-10-20T13:38:11.228444Z|cov-build|66594|info|> Node: cit_version Value: 1 2022-10-20T13:38:11.228444Z|cov-build|66594|info|> Node: config 2022-10-20T13:38:11.228444Z|cov-build|66594|info|> Node: include Value: /opt/coverity/cov-analysis-2022-3/config/template-iar_cxx_arm-config-0/coverity_config.xml 2022-10-20T13:38:11.228444Z|cov-build|66594|info|> 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Configuration read from: /opt/coverity/cov-analysis-2022-3/config/template-iar_cxx_arm-config-0/coverity_config.xml 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: coverity 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: cit_version Value: 1 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: config 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: build 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: compiler 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: template_compiler Value: true 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: comp_name Value: iccarm 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: comp_translator Value: iar_cxx:arm 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: comp_lang Value: C++ 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: comp_generic Value: iar/arm 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: options 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: id Value: iar_cxx:arm-iccarm-.* 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: opt_preinclude_file Value: /opt/coverity/cov-analysis-2022-3/config/template-iar_cxx_arm-config-0/../user_nodefs.h 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: begin_command_line_config 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> Node: md5 Value: 5f6642eb878a88db1dfb16309fb4338b 2022-10-20T13:38:11.228461Z|cov-build|66594|info|> 2022-10-20T13:38:11.230365Z|cov-build|66594|info|> Using LD_PRELOAD = /opt/coverity/cov-analysis-2022-3/bin/libcapture-linux64-${PLATFORM}.so [73713] EXECUTING: /opt/iarsystems/bxarm-9.30.1/arm/bin/ielfdumparm --source test.out ... [73394] EXECUTING: grep dev [STATUS] Compiling /home/repo/.jenkins/workspace/xxx/src/nodynalloc/new_del.cpp /opt/coverity/cov-analysis-2022-3/bin/cov-emit --dir=/home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc --ignore_path=/tmp/cov-repo/61cbee90e75bbbfcd24d03a3fa896a77/cov-configure --ignore_path=/tmp/cov-repo/61cbee90e75bbbfcd24d03a3fa896a77/cov-repo/ab3163e8db5f4764170d37b222c3d703 --pre_preinclude /home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc/emit/ci/config/5092253b194ec0553c3a9de3b66cf08a/iar_cxx_arm-config-0/coverity-macro-compat.h --pre_preinclude /home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc/emit/ci/config/5092253b194ec0553c3a9de3b66cf08a/iar_cxx_arm-config-0/coverity-compiler-compat.h --c++ --dollar --allow_qualified_anonymous_unions --allow_global_anonymous_union --no_const_string_literals --unsigned_chars --trigraphs --enable_user_sections --add_type_modifier=__absolute,__big_endian --add_type_modifier=__little_endian --add_type_modifier=__packed,__pcrel --add_type_modifier=__sbrel,__global_reg --add_type_modifier=__coverity_16bit_float --allow_qualified_operator_new_return --lazy_hex_pp_number --short_enums --user_defined_literals --macro_preempts_udl_suffix --ppp_translator "replace/_Mem \*operator new(\[\])? _Mem/*operator new$1" --ppp_translator "replace/operator new mem/operator new" --ppp_translator replace/0.Infinity/1.0\/0.0 --ppp_translator replace/0.Na[Nn]/0.0\/0.0 --allow_injected_template_symbol --arg_dependent_overload --class_scope_noexcept --no_predefined_cplusplus -w --no_predefines --comp_ver 9030001 --char_bit_size=8 --wchar_t_keyword --no_multiline_string --ignore_calling_convention --no_enable_80bit_float --no_enable_128bit_float --macro_stack_pragmas --type_traits_helpers --rtti --inline_keyword --has_include_macro --has_include_next_macro --has_cpp_attribute_macro --no_predefines --preinclude /opt/coverity/cov-analysis-2022-3/config/template-iar_cxx_arm-config-0/../user_nodefs.h --c++17 --c++17 --no_rtti --no_exceptions --short_enums --gnu_version=50400 --macro_stack_pragmas --add_type_modifier=__data:1,__code --no_stdarg_builtin --sys_include /opt/iarsystems/bxarm-9.30.1/arm/inc/c --sys_include /opt/iarsystems/bxarm-9.30.1/arm/inc/c/aarch32 --sys_include /opt/iarsystems/bxarm-9.30.1/arm/inc/cpp --ppp_translator replace/(#include\s+)u8/$1 --ppp_translator replace/(#define\s+_DLIB_CONFIG_FILE_HEADER_NAME\s+)u8/$1 --ppp_translator replace/(#define\s+_DLIB_CONFIG_FILE_STRING\s+)u8/$1 --ppp_translator replace/(typedef\s+_Align_type<)::/$1 -DNDEBUG -U__EXCEPTIONS -D__coverity_undefine___EXCEPTIONS -D__FAR_RUNTIME_ATTRIBUTE__=__near_func -U__FOR_DEBUG__ -D__coverity_undefine___FOR_DEBUG__ -D__LITTLE_ENDIAN__=1 -U__PLACEMENT_DELETE -D__coverity_undefine___PLACEMENT_DELETE -U__RTTI -D__coverity_undefine___RTTI -U__STDC_VERSION__ -D__coverity_undefine___STDC_VERSION__ -U__coverity_undefine___STDC_VERSION__ -D__coverity_undefine___coverity_undefine___STDC_VERSION__ -U__cpp_exceptions -D__coverity_undefine___cpp_exceptions -U__cpp_rtti -D__coverity_undefine___cpp_rtti --type_sizes=dex8Pfilw4s2 --type_alignments=dex8Pfilw4s2 --size_t_type=j --ptrdiff_t_type=i /home/repo/.jenkins/workspace/xxx/src/nodynalloc/new_del.cpp [73393] EXECUTING: /bin/mount "/opt/iarsystems/bxarm-9.30.1/arm/inc/c/xstddef0", line 16: warning #59: function call is not allowed in a constant expression #if _HAS_NOEXCEPT || !_HAS_EXCEPTIONS ^ [73399] EXECUTING: grep dev "/opt/iarsystems/bxarm-9.30.1/arm/inc/c/xstddef0", line 16: warning #59: function call is not allowed in a constant expression #if _HAS_NOEXCEPT || !_HAS_EXCEPTIONS ^ [73398] EXECUTING: /bin/mount "/opt/iarsystems/bxarm-9.30.1/arm/inc/c/xstddef0", line 16: warning #59: function call is not allowed in a constant expression #if _HAS_NOEXCEPT || !_HAS_EXCEPTIONS ^ "/opt/iarsystems/bxarm-9.30.1/arm/inc/c/yvals.h", line 159: warning #59: function call is not allowed in a constant expression #if _HAS_NOEXCEPT ^ "/opt/iarsystems/bxarm-9.30.1/arm/inc/c/xstddef0", line 16: warning #59: function call is not allowed in a constant expression #if _HAS_NOEXCEPT || !_HAS_EXCEPTIONS ^ "/opt/iarsystems/bxarm-9.30.1/arm/inc/c/xmemnew", line 7: warning #59: function call is not allowed in a constant expression #if __has_feature(cxx_noexcept) ^ "/opt/iarsystems/bxarm-9.30.1/arm/inc/c/xmemnew", line 7: warning #59: function call is not allowed in a constant expression #if __has_feature(cxx_noexcept) ^ [73403] EXECUTING: /bin/mount [73404] EXECUTING: grep dev "/opt/iarsystems/bxarm-9.30.1/arm/inc/c/xmemnew", line 7: warning #59: function call is not allowed in a constant expression #if __has_feature(cxx_noexcept) ... 2022-10-20T13:38:39.392031Z|cov-build|66594|info|> Invoking cov-security-da with commands: /opt/coverity/cov-analysis-2022-3/bin/cov-security-da --dir /home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc 2022-10-20T13:38:39.401624Z|cov-build|66594|info|> Dynamic analyzer took 9 ms 2022-10-20T13:38:39.401624Z|cov-build|66594|info|> Build time (cov-build overall): 00:00:28.195804 2022-10-20T13:38:39.401624Z|cov-build|66594|info|> 2022-10-20T13:38:39.402216Z|cov-build|66594|info|> Build time (C/C++ emits total): 00:06:17.288925 2022-10-20T13:38:39.402216Z|cov-build|66594|info|> 2022-10-20T13:38:39.402216Z|cov-build|66594|info|> 2022-10-20T13:38:39.402240Z|cov-build|66594|info|> Emitted 15 C/C++ compilation units (100%) successfully 2022-10-20T13:38:39.402240Z|cov-build|66594|info|> [WARNING] Recoverable errors were encountered during 12 of these C/C++ compilation units. 2022-10-20T13:38:39.402240Z|cov-build|66594|info|> 2022-10-20T13:38:39.402240Z|cov-build|66594|info|> 15 C/C++ compilation units (100%) are ready for analysis 2022-10-20T13:38:39.402240Z|cov-build|66594|info|> For more details, please look at: 2022-10-20T13:38:39.402240Z|cov-build|66594|info|> /home/repo/.jenkins/workspace/xxx/build/test/icc/build/test/icc/build-log.txt
Regarding the question in the title (how to configure for IAR), your cov-configure command line looks right to me. The warning messages (function call is not allowed in a constant expression) are from the Coverity compiler, which believes the input is not valid C++, and hence is warning about it. But these warnings appear to be of a kind that will not cause any problem for analysis; the compiler just notes the problem but continues anyway, like with any other compiler warning. (When the analysis runs, if there is a consequence for fidelity, you would see RW.ROUTINE_NOT_EMITTED issues reported.) Because the problem arises from inside the Coverity compiler, there isn't any easy way for the user to suppress these messages. My recommendation would be to create a minimal reproducer and send it to Coverity support for them to eventually fix in the product. If you really want to fix it yourself, you could probably fix it using a ppp_translator ("ppp" stands for "pre-preprocessor") element in the compiler configuration to rewrite the offending code on the fly, but that's a non-trivial undertaking.
Please see (contains a workaround and also the information with which release it shall be fixed) https://community.synopsys.com/s/article/warning-59-function-call-is-not-allowed-in-a-constant-expression-if-HAS-NOEXCEPT
Can't Build Container Optimized OS | sed: -e expression #2, char 60: unknown option to `s' [duplicate]
This question already has answers here: Using different delimiters in sed commands and range addresses (3 answers) Closed 1 year ago. When following their documentation and running ./build_packages --board=lakitu, I get the following error. Using ubuntu 16.0.4. Looks like a sed syntax error? Am I missing a variable? Does sed work differently in different operating systems or is something wrong with their documentation/scripts? Followed their documentation to the t and didn't add or configure anything. Waiting for a successful run first. Looking at similar questions, they all appear to be syntax errors... * Package: sys-boot/shim-14.0.20180308-r4 * Repository: lakitu * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox sandbox splitdebug userpriv usersandbox * Running stacked hooks for pre_pkg_setup * sysroot_build_bin_dir ... [ ok ] * Running stacked hooks for post_pkg_setup * python_eclass_hack ... [ ok ] * Running stacked hooks for pre_src_unpack * python_multilib_setup ... [ ok ] >>> Unpacking source... >>> Unpacking shim-14.0.20180308.tar.gz to /build/lakitu/tmp/portage/sys-boot/shim-14.0.20180308-r4/work >>> Source unpacked in /build/lakitu/tmp/portage/sys-boot/shim-14.0.20180308-r4/work * Running stacked hooks for post_src_unpack * asan_init ... [ ok ] >>> Preparing source in /build/lakitu/tmp/portage/sys-boot/shim-14.0.20180308-r4/work/shim-79cdb2a215de2ace7d1bf0a294165a04b726c70a ... >>> Source prepared. >>> Configuring source in /build/lakitu/tmp/portage/sys-boot/shim-14.0.20180308-r4/work/shim-79cdb2a215de2ace7d1bf0a294165a04b726c70a ... >>> Source configured. >>> Compiling source in /build/lakitu/tmp/portage/sys-boot/shim-14.0.20180308-r4/work/shim-79cdb2a215de2ace7d1bf0a294165a04b726c70a ... make -j8 ARCH=x86_64 CROSS_COMPILE=x86_64-cros-linux-gnu- EFI_INCLUDE=/build/lakitu//usr/include/efi EFI_PATH=/build/lakitu//usr/lib64 ARCH_LDFLAGS=--no-experimental-use-relr COMMITID=79cdb2a215de2ace7d1bf0a294165a04b726c70a DEFAULT_LOADER=\\\\grub-lakitu.efi shimx64.efi sed -e "s,##VERSION##,14," \ -e "s,##UNAME##,Linux x86_64 Intel Xeon E312xx (Sandy Bridge, IBRS update) GenuineIntel GNU/Linux," \ -e "s,##COMMIT##,79cdb2a215de2ace7d1bf0a294165a04b726c70a," \ < /build/lakitu/tmp/portage/sys-boot/shim-14.0.20180308-r4/work/shim-79cdb2a215de2ace7d1bf0a294165a04b726c70a/version.c.in > version.c sed: -e expression #2, char 60: unknown option to `s' make: *** [Makefile:183: version.c] Error 1 * ERROR: sys-boot/shim-14.0.20180308-r4::lakitu failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=sys-boot/shim-14.0.20180308-r4::lakitu'`, * the complete build log and the output of `emerge -pqv '=sys-boot/shim-14.0.20180308-r4::lakitu'`. * The complete build log is located at '/build/lakitu/tmp/portage/logs/sys-boot:shim-14.0.20180308-r4:20190531-002217.log'. * For convenience, a symlink to the build log is located at '/build/lakitu/tmp/portage/sys-boot/shim-14.0.20180308-r4/temp/build.log'. * The ebuild environment file is located at '/build/lakitu/tmp/portage/sys-boot/shim-14.0.20180308-r4/temp/environment'. * Working directory: '/build/lakitu/tmp/portage/sys-boot/shim-14.0.20180308-r4/work/shim-79cdb2a215de2ace7d1bf0a294165a04b726c70a' * S: '/build/lakitu/tmp/portage/sys-boot/shim-14.0.20180308-r4/work/shim-79cdb2a215de2ace7d1bf0a294165a04b726c70a'
There's a , after Bridge -e "s,##UNAME##,Linux x86_64 Intel Xeon E312xx (Sandy Bridge, IBRS update) GenuineIntel GNU/Linux," \ Change to -e "s###UNAME###Linux x86_64 Intel Xeon E312xx (Sandy Bridge, IBRS update) GenuineIntel GNU/Linux#" \
Clang: reliably detect supported C++ standard from command line or Python
In a Python script, I am trying to determine the highest C++ standard supported by the installed Clang. One problem is that I cannot rely on the output of clang --version to always be the same - the best example is AppleClang on OSX. Trying to compile a hello world .cpp file with test-flags like -std=c++11, -std=c++14, ... does not seem the most robust approach and would require the creation of temporary files. Is there any command one could run to test if a certain dialect is available without actually compiling anything?
Is there any command one could run to test if a certain dialect is available without actually compiling anything? Yes. You can ask the compiler just to preprocess an empty file. It will do that without complaint: $ clang++ --version clang version 4.0.1-6 (tags/RELEASE_401/final) Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/bin $ echo '' | clang++ -x c++ -E - # 1 "<stdin>" # 1 "<built-in>" 1 # 1 "<built-in>" 3 # 329 "<built-in>" 3 # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "<stdin>" 2 $ echo $? 0 You can then incidentally add a -std option. If the compiler supports it: $ echo '' | clang++ -std=c++98 -x c++ -E - # 1 "<stdin>" # 1 "<built-in>" 1 # 1 "<built-in>" 3 # 326 "<built-in>" 3 # 1 "<command line>" 1 # 1 "<built-in>" 2 # 1 "<stdin>" 2 $ echo $? 0 still no complaint. But if not: $ echo '' | clang++ -std=c++17 -x c++ -E - error: invalid value 'c++17' in '-std=c++17' $ echo $? 1 In a python script, you can conveniently supply an empty input file in the form of an empty string to an invocation of subprocess.run that executes the compiler probing command, and at the same time swallows the unwanted stdout. You'd iterate such invocations over a chronologically sorted list of -std-values to find the latest supported. It would be prudent not simply to test the return code but also to capture the stderr and, in case of failure, parse it for the right sort of diagnostic, in case the command has failed for some surprise reason. Here's a shot that serves for GCC as well as clang: $ cat std_max.py #!/usr/bin/python3 import subprocess standards = ['98','03','11','14','17'] gpp_barf_pattern = "error: unrecognized command line option ‘-std=c++{0}’" clangpp_barf_pattern = "error: invalid value 'c++{0}'" def has_standard(compiler, std_year, barf_pattern): std_opt = '-std=c++' + std_year try: subprocess.run([compiler,std_opt,'-x','c++','-E','-'],\ check=True,input=b'',stdout=subprocess.PIPE,stderr=subprocess.PIPE) except subprocess.CalledProcessError as e: barf = barf_pattern.format(std_year) strerr = e.stderr.decode('utf8','strict') if barf in strerr: return False raise return True def get_std_max(compiler,standards,barf_pattern): max_std = standards[0] if len(standards) else '' for std_year in standards: if not has_standard(compiler,std_year,barf_pattern): break max_std = 'c++' + std_year return max_std which will tell me, correctly: $ python3 Python 3.6.3 (default, Oct 3 2017, 21:45:48) [GCC 7.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from std_max import * >>> get_std_max('clang++',standards,clangpp_barf_pattern) 'c++14' >>> get_std_max('g++',standards,gpp_barf_pattern) 'c++17' >>> No C++20 yet: >>> has_standard('g++','20',gpp_barf_pattern) False >>>
gi._glib.GError: no element "pocketsphinx" error on running livedemo
I am using ubuntu 14.04 I am trying to get a python program to get speech to text from microphone. For this, I have installed sphinxbase and pocketsphinx. pocketsphinx_continuous works. thekindlyone#deepthought:.../lib$ pocketsphinx_continuous -inmic yes INFO: cmd_ln.c(691): Parsing command line: pocketsphinx_continuous \ -inmic yes Current configuration: [NAME] [DEFLT] [VALUE] -adcdev -agc none none -agcthresh 2.0 2.000000e+00 -alpha 0.97 9.700000e-01 -argfile -ascale 20.0 2.000000e+01 -aw 1 1 -backtrace no no -beam 1e-48 1.000000e-48 -bestpath yes yes -bestpathlw 9.5 9.500000e+00 -bghist no no -ceplen 13 13 -cmn current current -cmninit 8.0 8.0 -compallsen no no -debug 0 -dict -dictcase no no -dither no no -doublebw no no -ds 1 1 -fdict -feat 1s_c_d_dd 1s_c_d_dd -featparams -fillprob 1e-8 1.000000e-08 -frate 100 100 -fsg -fsgusealtpron yes yes -fsgusefiller yes yes -fwdflat yes yes -fwdflatbeam 1e-64 1.000000e-64 -fwdflatefwid 4 4 -fwdflatlw 8.5 8.500000e+00 -fwdflatsfwin 25 25 -fwdflatwbeam 7e-29 7.000000e-29 -fwdtree yes yes -hmm -infile -input_endian little little -jsgf -kdmaxbbi -1 -1 -kdmaxdepth 0 0 -kdtree -latsize 5000 5000 -lda -ldadim 0 0 -lextreedump 0 0 -lifter 0 0 -lm -lmctl -lmname default default -logbase 1.0001 1.000100e+00 -logfn -logspec no no -lowerf 133.33334 1.333333e+02 -lpbeam 1e-40 1.000000e-40 -lponlybeam 7e-29 7.000000e-29 -lw 6.5 6.500000e+00 -maxhmmpf -1 -1 -maxnewoov 20 20 -maxwpf -1 -1 -mdef -mean -mfclogdir -min_endfr 0 0 -mixw -mixwfloor 0.0000001 1.000000e-07 -mllr -mmap yes yes -ncep 13 13 -nfft 512 512 -nfilt 40 40 -nwpen 1.0 1.000000e+00 -pbeam 1e-48 1.000000e-48 -pip 1.0 1.000000e+00 -pl_beam 1e-10 1.000000e-10 -pl_pbeam 1e-5 1.000000e-05 -pl_window 0 0 -rawlogdir -remove_dc no no -round_filters yes yes -samprate 16000 1.600000e+04 -seed -1 -1 -sendump -senlogdir -senmgau -silprob 0.005 5.000000e-03 -smoothspec no no -svspec -time no no -tmat -tmatfloor 0.0001 1.000000e-04 -topn 4 4 -topn_beam 0 0 -toprule -transform legacy legacy -unit_area yes yes -upperf 6855.4976 6.855498e+03 -usewdphones no no -uw 1.0 1.000000e+00 -var -varfloor 0.0001 1.000000e-04 -varnorm no no -verbose no no -warp_params -warp_type inverse_linear inverse_linear -wbeam 7e-29 7.000000e-29 -wip 0.65 6.500000e-01 -wlen 0.025625 2.562500e-02 INFO: cmd_ln.c(691): Parsing command line: \ -nfilt 20 \ -lowerf 1 \ -upperf 4000 \ -wlen 0.025 \ -transform dct \ -round_filters no \ -remove_dc yes \ -svspec 0-12/13-25/26-38 \ -feat 1s_c_d_dd \ -agc none \ -cmn current \ -cmninit 56,-3,1 \ -varnorm no Current configuration: [NAME] [DEFLT] [VALUE] -agc none none -agcthresh 2.0 2.000000e+00 -alpha 0.97 9.700000e-01 -ceplen 13 13 -cmn current current -cmninit 8.0 56,-3,1 -dither no no -doublebw no no -feat 1s_c_d_dd 1s_c_d_dd -frate 100 100 -input_endian little little -lda -ldadim 0 0 -lifter 0 0 -logspec no no -lowerf 133.33334 1.000000e+00 -ncep 13 13 -nfft 512 512 -nfilt 40 20 -remove_dc no yes -round_filters yes no -samprate 16000 1.600000e+04 -seed -1 -1 -smoothspec no no -svspec 0-12/13-25/26-38 -transform legacy dct -unit_area yes yes -upperf 6855.4976 4.000000e+03 -varnorm no no -verbose no no -warp_params -warp_type inverse_linear inverse_linear -wlen 0.025625 2.500000e-02 INFO: acmod.c(246): Parsed model-specific feature parameters from /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/feat.params INFO: feat.c(713): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='current', VARNORM='no', AGC='none' INFO: cmn.c(142): mean[0]= 12.00, mean[1..12]= 0.0 INFO: acmod.c(167): Using subvector specification 0-12/13-25/26-38 INFO: mdef.c(517): Reading model definition: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/mdef INFO: mdef.c(528): Found byte-order mark BMDF, assuming this is a binary mdef file INFO: bin_mdef.c(336): Reading binary model definition: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/mdef INFO: bin_mdef.c(513): 50 CI-phone, 143047 CD-phone, 3 emitstate/phone, 150 CI-sen, 5150 Sen, 27135 Sen-Seq INFO: tmat.c(205): Reading HMM transition probability matrices: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/transition_matrices INFO: acmod.c(121): Attempting to use SCHMM computation module INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/means INFO: ms_gauden.c(292): 1 codebook, 3 feature, size: INFO: ms_gauden.c(294): 256x13 INFO: ms_gauden.c(294): 256x13 INFO: ms_gauden.c(294): 256x13 INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/variances INFO: ms_gauden.c(292): 1 codebook, 3 feature, size: INFO: ms_gauden.c(294): 256x13 INFO: ms_gauden.c(294): 256x13 INFO: ms_gauden.c(294): 256x13 INFO: ms_gauden.c(354): 0 variance values floored INFO: s2_semi_mgau.c(903): Loading senones from dump file /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/sendump INFO: s2_semi_mgau.c(927): BEGIN FILE FORMAT DESCRIPTION INFO: s2_semi_mgau.c(1022): Using memory-mapped I/O for senones INFO: s2_semi_mgau.c(1296): Maximum top-N: 4 Top-N beams: 0 0 0 INFO: dict.c(317): Allocating 137543 * 32 bytes (4298 KiB) for word entries INFO: dict.c(332): Reading main dictionary: /usr/share/pocketsphinx/model/lm/en_US/cmu07a.dic INFO: dict.c(211): Allocated 1010 KiB for strings, 1664 KiB for phones INFO: dict.c(335): 133436 words read INFO: dict.c(341): Reading filler dictionary: /usr/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k/noisedict INFO: dict.c(211): Allocated 0 KiB for strings, 0 KiB for phones INFO: dict.c(344): 11 words read INFO: dict2pid.c(396): Building PID tables for dictionary INFO: dict2pid.c(404): Allocating 50^3 * 2 bytes (244 KiB) for word-initial triphones INFO: dict2pid.c(131): Allocated 60400 bytes (58 KiB) for word-final triphones INFO: dict2pid.c(195): Allocated 60400 bytes (58 KiB) for single-phone word triphones INFO: ngram_model_arpa.c(77): No \data\ mark in LM file INFO: ngram_model_dmp.c(142): Will use memory-mapped I/O for LM file INFO: ngram_model_dmp.c(196): ngrams 1=5001, 2=436879, 3=418286 INFO: ngram_model_dmp.c(242): 5001 = LM.unigrams(+trailer) read INFO: ngram_model_dmp.c(288): 436879 = LM.bigrams(+trailer) read INFO: ngram_model_dmp.c(314): 418286 = LM.trigrams read INFO: ngram_model_dmp.c(339): 37293 = LM.prob2 entries read INFO: ngram_model_dmp.c(359): 14370 = LM.bo_wt2 entries read INFO: ngram_model_dmp.c(379): 36094 = LM.prob3 entries read INFO: ngram_model_dmp.c(407): 854 = LM.tseg_base entries read INFO: ngram_model_dmp.c(463): 5001 = ascii word strings read INFO: ngram_search_fwdtree.c(99): 788 unique initial diphones INFO: ngram_search_fwdtree.c(147): 0 root, 0 non-root channels, 60 single-phone words INFO: ngram_search_fwdtree.c(186): Creating search tree INFO: ngram_search_fwdtree.c(191): before: 0 root, 0 non-root channels, 60 single-phone words INFO: ngram_search_fwdtree.c(326): after: max nonroot chan increased to 13428 INFO: ngram_search_fwdtree.c(338): after: 457 root, 13300 non-root channels, 26 single-phone words INFO: ngram_search_fwdflat.c(156): fwdflat: min_ef_width = 4, max_sf_win = 25 INFO: continuous.c(371): pocketsphinx_continuous COMPILED ON: Dec 22 2013, AT: 20:43:21 Then I ran livedemo.py from pocketsphinx/src/gst-plugin This is the error I get: thekindlyone#deepthought:~/.../gst-plugin$ python livedemo.py Using pygtkcompat and Gst from gi Traceback (most recent call last): File "livedemo.py", line 102, in <module> app = DemoApp() File "livedemo.py", line 31, in __init__ self.init_gst() File "livedemo.py", line 53, in init_gst + '! pocketsphinx configured=true ! fakesink') gi._glib.GError: no element "pocketsphinx" thekindlyone#deepthought:~/.../gst-plugin$ I found that I have export a new path as per cmusphinx wiki. But /usr/local/lib/gstreamer-1.0 is not present. What should I do next? output of gst-inspect-1.0 pocketsphinx No such element or plugin 'pocketsphinx' output of gst-inspect pocketsphinx Factory Details: Long name: PocketSphinx Class: Filter/Audio Description: Convert speech to text Author(s): David Huggins-Daines <dhuggins#cs.cmu.edu> Rank: none (0) Plugin Details: Name: pocketsphinx Description: PocketSphinx plugin Filename: /usr/lib/gstreamer-0.10/libgstpocketsphinx.so Version: 0.8 License: BSD Source module: pocketsphinx Binary package: PocketSphinx Origin URL: http://cmusphinx.sourceforge.net/ GObject +----GstObject +----GstElement +----GstPocketSphinx Pad Templates: SINK template: 'sink' Availability: Always Capabilities: audio/x-raw-int width: 16 depth: 16 signed: true endianness: 1234 channels: 1 rate: 8000 SRC template: 'src' Availability: Always Capabilities: text/plain Element Flags: no flags set Element Implementation: Has change_state() function: gst_element_change_state_func Has custom save_thyself() function: gst_element_save_thyself Has custom restore_thyself() function: gst_element_restore_thyself Element has no clocking capabilities. Element has no indexing capabilities. Element has no URI handling capabilities. Pads: SRC: 'src' Implementation: Has custom eventfunc(): gst_pad_event_default Has custom queryfunc(): gst_pad_query_default Has custom iterintlinkfunc(): gst_pad_iterate_internal_links_default Has getcapsfunc(): gst_pad_get_fixed_caps_func Has acceptcapsfunc(): gst_pad_acceptcaps_default Pad Template: 'src' SINK: 'sink' Implementation: Has chainfunc(): 0x7f4e0c00c4f0 Has custom eventfunc(): 0x7f4e0c00c1b0 Has custom queryfunc(): gst_pad_query_default Has custom iterintlinkfunc(): gst_pad_iterate_internal_links_default Has getcapsfunc(): gst_pad_get_fixed_caps_func Has acceptcapsfunc(): gst_pad_acceptcaps_default Pad Template: 'sink' Element Properties: name : The name of the object flags: readable, writable String. Default: "pocketsphinx0" hmm : Directory containing acoustic model parameters flags: readable, writable String. Default: null lm : Language model file flags: readable, writable String. Default: null lmctl : Language model control file (for class LMs) flags: readable, writable String. Default: null lmname : Language model name (to select LMs from lmctl) flags: readable, writable String. Default: "default" dict : Dictionary File flags: readable, writable String. Default: null mllr : MLLR file flags: readable, writable String. Default: null fsg : Finite state grammar file flags: readable, writable String. Default: null fsg-model : Finite state grammar object (fsg_model_t *) flags: writable Pointer. Write only fwdflat : Enable Flat Lexicon Search flags: readable, writable Boolean. Default: false bestpath : Enable Graph Search flags: readable, writable Boolean. Default: false maxhmmpf : Maximum number of HMMs searched per frame flags: readable, writable Integer. Range: 1 - 100000 Default: 2000 maxwpf : Maximum number of words searched per frame flags: readable, writable Integer. Range: 1 - 100000 Default: 20 beam : Beam width applied to every frame in Viterbi search flags: readable, writable Float. Range: -1 - 1 Default: 0 wbeam : Beam width applied to phone transitions flags: readable, writable Float. Range: -1 - 1 Default: 0 pbeam : Beam width applied to phone transitions flags: readable, writable Float. Range: -1 - 1 Default: 0 dsratio : Evaluate acoustic model every N frames flags: readable, writable Integer. Range: 1 - 10 Default: 1 latdir : Output Directory for Lattices flags: readable, writable String. Default: null lattice : Word lattice object for most recent result flags: readable Boxed pointer of type "PSLattice" nbest : N-best results flags: readable Array of GValues of type "gchararray" nbest-size : Number of hypothesis in the N-best list flags: readable, writable Integer. Range: 1 - 1000 Default: 10 decoder : The underlying decoder flags: readable Boxed pointer of type "PSDecoder" configured : Set this to finalize configuration flags: readable, writable Boolean. Default: false Element Signals: "partial-result" : void user_function (GstElement* object, gchararray arg0, gchararray arg1, gpointer user_data); "result" : void user_function (GstElement* object, gchararray arg0, gchararray arg1, gpointer user_data); UPDATES: I downloaded fresh copies from github and installed, no change. sphinxbase build sphinxbase install pocketsphinx build pocketsphinx install
5th attempt on clean install worked. /usr/local/lib/gstreamer1.0 created. Adding this to GST_PLUGIN_PATH worked.
perl Inline cpp not working windows 32 bit
I'm using perl Inline::CPP with this sample code from cpan documentation use Inline CPP; print "9 + 16 = ", add(9, 16), "\n"; print "9 - 16 = ", subtract(9, 16), "\n"; __END__ __CPP__ int add(int x, int y) { return x + y; } int subtract(int x, int y) { return x - y; } The Error Log C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp -type "C:\strawberry\perl\lib\ExtUtils\typemap" inline_pl_172d.xs > inline_pl_172 sc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv -- inline_pl_ d.xsc inline_pl_172d.c Didn't find a 'MODULE ... PACKAGE ... PREFIX' line g++ -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEX DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\ 00\" -DXS_VERSION=\"0.00\" "-IC:\strawberry\perl\lib\CORE" inline_pl_17 c inline_pl_172d.xs:28:2: error: 'MODULE' does not name a type dmake: Error code 129, while making 'inline_pl_172d.o' A problem was encountered while attempting to compile and install your Inline CPP code. The command that failed was: dmake > out.make 2>&1 The build directory was: D:\university\phd\data\datamail\Chordata2\_Inline\build\inline_pl_172d To debug the problem, cd to the build directory, and inspect the output files at D:\university\phd\data\datamail\Chordata2\inline.pl line 0. ...propagated at C:/strawberry/perl/site/lib/Inline/C.pm line 772. INIT failed--call queue aborted. If the package is not installed well on my machine How to know and fix it ?
The your code works for me without modification once I installed Inline::CPP from CPAN... c:\Perl> c:\Perl>perl StackOverflow.pl Set up gcc environment - 3.4.5 (mingw-vista special r3) 9 + 16 = 25 9 - 16 = -7 c:\Perl> This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2012, Larry Wall Binary build 1603 [296746] provided by ActiveState http://www.ActiveState.com Built Mar 13 2013 11:29:21 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. c:\Perl> This is on a Win7 32 bit system running ActivePerl 5.16.3 multi-thread and Inline::CPP 0.46 using the default install settings in the Inline::CPP module setup. From the looks of things Perl appears to be using GCC 3.4.5 as the module compiler... c:\Perl>gcc -v Reading specs from C:/Perl/site/lib/auto/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-s jlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.5 (mingw-vista special r3) c:\Perl> The make utility used is dmake 4.11... c:\Perl>dmake -V MAKE_VERSION dmake.exe - Version 4.11-20080107-SHAY (Windows / MS Visual C++) Copyright (c) 1990,...,1997 by WTI Corp. Default Configuration: MAXLINELENGTH := 32766 MAXPROCESSLIMIT := 4 MAXPROCESS := 1 .IMPORT .IGNORE: DMAKEROOT .MAKEFILES : makefile.mk makefile .SOURCE : .NULL DMAKEROOT *= $(ABSMAKECMD:d)startup MAKESTARTUP := $(DMAKEROOT)\startup.mk Please read the NEWS file for the latest release notes. c:\Perl> Complete Inline::CPP CPAN module install log... c:\Perl>cpan Set up gcc environment - 3.4.5 (mingw-vista special r3) cpan shell -- CPAN exploration and modules installation (v2.00) Enter 'h' for help. cpan> install Inline::CPP Reading 'C:\Perl\cpan\Metadata' Database was generated on Mon, 28 Oct 2013 11:08:37 GMT Fetching with LWP: http://ppm.activestate.com/CPAN/authors/01mailrc.txt.gz Reading 'C:\Perl\cpan\sources\authors\01mailrc.txt.gz' ............................................................................DONE Fetching with LWP: http://ppm.activestate.com/CPAN/modules/02packages.details.txt.gz Reading 'C:\Perl\cpan\sources\modules\02packages.details.txt.gz' Database was generated on Tue, 05 Nov 2013 20:53:02 GMT Warning: This index file is 40 days old. Please check the host you chose as your CPAN mirror for staleness. I'll continue but problems seem likely to happen. ............................................................................DONE Fetching with LWP: http://ppm.activestate.com/CPAN/modules/03modlist.data.gz Reading 'C:\Perl\cpan\sources\modules\03modlist.data.gz' ............................................................................DONE Writing C:\Perl\cpan\Metadata Running install for module 'Inline::CPP' Running make for D/DA/DAVIDO/Inline-CPP-0.46.tar.gz Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/D/DA/DAVIDO/Inline-CPP-0.46.tar.gz Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/D/DA/DAVIDO/CHECKSUMS Checksum for C:\Perl\cpan\sources\authors\id\D\DA\DAVIDO\Inline-CPP-0.46.tar.gz ok Scanning cache C:\Perl/cpan/build for sizes ...........................................................................-DONE DEL(1/2): C:\Perl\cpan\build\Math-Polynomial-1.005-ahaC2G DEL(2/2): C:\Perl\cpan\build\Math-Polynomial-1.005-ahaC2G.yml Inline-CPP-0.46/ Inline-CPP-0.46/Makefile.PL Inline-CPP-0.46/META.yml Inline-CPP-0.46/README Inline-CPP-0.46/MANIFEST Inline-CPP-0.46/TESTED Inline-CPP-0.46/Changes Inline-CPP-0.46/MANIFEST.SKIP Inline-CPP-0.46/t/ Inline-CPP-0.46/t/03prefix.t Inline-CPP-0.46/t/02basic.t Inline-CPP-0.46/t/14changes.t Inline-CPP-0.46/t/11rewrite_config.t Inline-CPP-0.46/t/04charptr.t Inline-CPP-0.46/t/07perlcritic.t Inline-CPP-0.46/t/00load_prereqs.t Inline-CPP-0.46/t/01fn_cans.t Inline-CPP-0.46/t/10kwalitee.t Inline-CPP-0.46/t/06fn_regress.t Inline-CPP-0.46/t/08cppguess.t Inline-CPP-0.46/t/09pod_coverage.t Inline-CPP-0.46/t/13version_numbers.t Inline-CPP-0.46/t/12custom_libs.t Inline-CPP-0.46/t/05pod.t Inline-CPP-0.46/grammar/ Inline-CPP-0.46/grammar/Makefile.PL Inline-CPP-0.46/grammar/grammar.pm Inline-CPP-0.46/grammar/t/ Inline-CPP-0.46/grammar/t/03inline.t Inline-CPP-0.46/grammar/t/02scope.t Inline-CPP-0.46/grammar/t/10struct.t Inline-CPP-0.46/grammar/t/01nherit.t Inline-CPP-0.46/grammar/t/05virt.t Inline-CPP-0.46/grammar/t/09purevt.t Inline-CPP-0.46/grammar/t/11minhrt.t Inline-CPP-0.46/grammar/t/15stvar.t Inline-CPP-0.46/grammar/t/14const.t Inline-CPP-0.46/grammar/t/00pod_coverage.t Inline-CPP-0.46/grammar/t/16varlst.t Inline-CPP-0.46/grammar/t/13vararg.t Inline-CPP-0.46/grammar/t/12retlst.t Inline-CPP-0.46/grammar/t/17memberarray.t Inline-CPP-0.46/grammar/t/06deflt.t Inline-CPP-0.46/grammar/t/07static.t Inline-CPP-0.46/grammar/t/08anon.t Inline-CPP-0.46/grammar/t/04const.t Inline-CPP-0.46/CPP.pm Inline-CPP-0.46/META.json Inline-CPP-0.46/lib/ Inline-CPP-0.46/lib/Inline/ Inline-CPP-0.46/lib/Inline/CPP/ Inline-CPP-0.46/lib/Inline/CPP/Config.pm Inline-CPP-0.46/lib/Inline/CPP.pod CPAN.pm: Building D/DA/DAVIDO/Inline-CPP-0.46.tar.gz Set up gcc environment - 3.4.5 (mingw-vista special r3) Warning: prerequisite Inline version 0.53 not found. at Makefile.PL line 49. Warning: prerequisite Inline::C version 0.53 not found. at Makefile.PL line 49. This will configure and build Inline::C++. What default C++ compiler would you like to use? [C:\Perl\site\bin\g++.exe] What default libraries would you like to include? [-lstdc++] Detected <iostream> style headers. ('.h' not needed.) Checking if your kit is complete... Looks good Warning: prerequisite Inline 0.53 not found. We have 0.52. Warning: prerequisite Inline::C 0.53 not found. We have 0.52. Writing Makefile for Inline::CPP::grammar Writing MYMETA.yml and MYMETA.json Writing Makefile for Inline::CPP Writing MYMETA.yml and MYMETA.json ---- Unsatisfied dependencies detected during ---- ---- DAVIDO/Inline-CPP-0.46.tar.gz ---- Inline::C [requires] Inline [requires] Running make test Delayed until after prerequisites Running make install Delayed until after prerequisites Running install for module 'Inline::C' Running make for S/SI/SISYPHUS/Inline-0.53.tar.gz Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/S/SI/SISYPHUS/Inline-0.53.tar.gz Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/S/SI/SISYPHUS/CHECKSUMS Checksum for C:\Perl\cpan\sources\authors\id\S\SI\SISYPHUS\Inline-0.53.tar.gz ok Inline-0.53/ Inline-0.53/C/ Inline-0.53/C/C-Cookbook.pod Inline-0.53/C/C.pm Inline-0.53/C/C.pod Inline-0.53/C/Changes Inline-0.53/C/lib/ Inline-0.53/C/lib/Inline/ Inline-0.53/C/lib/Inline/C/ Inline-0.53/C/lib/Inline/C/ParseRecDescent.pm Inline-0.53/C/lib/Inline/C/ParseRegExp.pm Inline-0.53/C/Makefile.PL Inline-0.53/C/README Inline-0.53/C/rt/ Inline-0.53/C/rt/grammars.t Inline-0.53/C/t/ Inline-0.53/C/t/00init.t Inline-0.53/C/t/01syntax.t Inline-0.53/C/t/02config.t Inline-0.53/C/t/03typemap.t Inline-0.53/C/t/04perlapi.t Inline-0.53/C/t/05xsmode.t Inline-0.53/C/t/06parseregexp.t Inline-0.53/C/t/07typemap_multi.t Inline-0.53/C/t/08taint.t Inline-0.53/C/t/08taint_1.p Inline-0.53/C/t/08taint_2.p Inline-0.53/C/t/08taint_3.p Inline-0.53/C/t/09parser.t Inline-0.53/C/t/10callback.t Inline-0.53/C/t/11default_readonly.t Inline-0.53/C/t/12taint_old.t Inline-0.53/C/t/14void_arg.t Inline-0.53/C/t/15ccflags.t Inline-0.53/C/t/16ccflagsex.t Inline-0.53/C/t/17prehead.t Inline-0.53/C/t/18quote_space.t Inline-0.53/C/t/19INC.t Inline-0.53/C/t/20eval.t Inline-0.53/C/t/21read_DATA.t Inline-0.53/C/t/22read_DATA_2.t Inline-0.53/C/t/23validate.t Inline-0.53/C/t/bar/ Inline-0.53/C/t/bar/find_me_in_bar.h Inline-0.53/C/t/foo/ Inline-0.53/C/t/foo/find_me_in_foo.h Inline-0.53/C/t/prehead.in Inline-0.53/C/t/soldier_typemap Inline-0.53/C/t/typemap Inline-0.53/Changes Inline-0.53/Inline-API.pod Inline-0.53/Inline-FAQ.pod Inline-0.53/Inline-Support.pod Inline-0.53/Inline.pm Inline-0.53/Inline.pod Inline-0.53/kobes.log Inline-0.53/lib/ Inline-0.53/lib/Inline/ Inline-0.53/lib/Inline/denter.pm Inline-0.53/lib/Inline/Foo.pm Inline-0.53/lib/Inline/MakeMaker/ Inline-0.53/lib/Inline/MakeMaker/Changes Inline-0.53/lib/Inline/MakeMaker.pm Inline-0.53/Makefile.PL Inline-0.53/MANIFEST Inline-0.53/modules/ Inline-0.53/modules/Math/ Inline-0.53/modules/Math/Simple/ Inline-0.53/modules/Math/Simple/Changes Inline-0.53/modules/Math/Simple/Makefile.PL Inline-0.53/modules/Math/Simple/MANIFEST Inline-0.53/modules/Math/Simple/Simple.pm Inline-0.53/modules/Math/Simple/test.pl Inline-0.53/README Inline-0.53/symbols.perl Inline-0.53/t/ Inline-0.53/t/00init.t Inline-0.53/t/01usages.t Inline-0.53/t/02config.t Inline-0.53/t/03errors.t Inline-0.53/t/04create.t Inline-0.53/t/05files.t Inline-0.53/t/06rewrite_config.p Inline-0.53/t/06rewrite_config.t Inline-0.53/t/07rewrite2_config.p Inline-0.53/t/07rewrite2_config.t Inline-0.53/t/file Inline-0.53/ToDo CPAN.pm: Building S/SI/SISYPHUS/Inline-0.53.tar.gz Set up gcc environment - 3.4.5 (mingw-vista special r3) Checking if your kit is complete... Looks good Inline::C is packaged with Inline.pm because it is the most commonly used Inline Language Support Module (ILSM). See also: Inline::ASM, ::Awk, ::BC, ::Basic, ::Befunge, ::CPP (C++), ::CPR, ::Foo, ::Guile, ::Java, ::Octave, ::PERL, ::Python, ::Ruby, ::TT, ::Tcl and ::WebChat. Config.pm indicates that your version of Perl was built with this C compiler: C:\Perl\site\bin\gcc.exe I have located this compiler on your system. Do you want to install Inline::C? [y] y Writing Makefile for Inline::C Writing MYMETA.yml and MYMETA.json Writing Makefile for Inline Writing MYMETA.yml and MYMETA.json Fixing Makefile for MSWin32 cp Inline.pod blib\lib\Inline.pod cp lib/Inline/MakeMaker/Changes blib\lib\Inline\MakeMaker\Changes cp lib/Inline/denter.pm blib\lib\Inline\denter.pm AutoSplitting blib\lib\Inline\denter.pm (blib\lib\auto\Inline\denter) cp Inline.pm blib\lib\Inline.pm AutoSplitting blib\lib\Inline.pm (blib\lib\auto\Inline) cp lib/Inline/Foo.pm blib\lib\Inline\Foo.pm cp Inline-API.pod blib\lib\Inline-API.pod cp lib/Inline/MakeMaker.pm blib\lib\Inline\MakeMaker.pm cp Inline-FAQ.pod blib\lib\Inline-FAQ.pod cp Inline-Support.pod blib\lib\Inline-Support.pod cp lib/Inline/C/ParseRegExp.pm ..\blib\lib\Inline\C\ParseRegExp.pm cp C-Cookbook.pod ..\blib\lib\Inline\C-Cookbook.pod cp C.pm ..\blib\lib\Inline\C.pm cp C.pod ..\blib\lib\Inline\C.pod cp lib/Inline/C/ParseRecDescent.pm ..\blib\lib\Inline\C\ParseRecDescent.pm SISYPHUS/Inline-0.53.tar.gz C:\Perl\site\bin\dmake.exe -- OK Running make test C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/00init.t ............. ok t/01usages.t ........... ok t/02config.t ........... ok t/03errors.t ........... ok t/04create.t ........... ok t/05files.t ............ ok t/06rewrite_config.t ... ok t/07rewrite2_config.t .. ok All tests successful. Files=8, Tests=19, 15 wallclock secs ( 0.11 usr + 0.06 sys = 0.17 CPU) Result: PASS C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, '..\blib\lib', '..\blib\arch')" t/*.t t/00init.t .............. ok t/01syntax.t ............ ok t/02config.t ............ ok t/03typemap.t ........... ok t/04perlapi.t ........... ok t/05xsmode.t ............ ok t/06parseregexp.t ....... ok t/07typemap_multi.t ..... ok t/08taint.t ............. ok t/09parser.t ............ This test could take a couple of minutes to run t/09parser.t ............ ok t/10callback.t .......... ok t/11default_readonly.t .. ok t/12taint_old.t ......... Skipped - applies only to perl 5.6.x t/12taint_old.t ......... ok t/14void_arg.t .......... ok t/15ccflags.t ........... ok t/16ccflagsex.t ......... ok t/17prehead.t ........... ok t/18quote_space.t ....... ok t/19INC.t ............... ok t/20eval.t .............. ok t/21read_DATA.t ......... ok t/22read_DATA_2.t ....... ok t/23validate.t .......... ok All tests successful. Files=23, Tests=71, 165 wallclock secs ( 0.12 usr + 0.05 sys = 0.17 CPU) Result: PASS SISYPHUS/Inline-0.53.tar.gz C:\Perl\site\bin\dmake.exe test -- OK Running make install Prepending C:\Perl\cpan\build\Inline-0.53-JPPUvK/blib/arch C:\Perl\cpan\build\Inline-0.53-JPPUvK/blib/lib to PERL5LIB for 'install' Installing C:\Perl\site\lib\Inline.pm Installing C:\Perl\site\lib\Inline.pod Installing C:\Perl\site\lib\Inline\C.pm Installing C:\Perl\site\lib\Inline\MakeMaker.pm Installing C:\Perl\site\lib\Inline\MakeMaker\Changes Appending installation info to C:\Perl\lib/perllocal.pod SISYPHUS/Inline-0.53.tar.gz C:\Perl\site\bin\dmake.exe install -- OK Inline is up to date (0.53). Running make for D/DA/DAVIDO/Inline-CPP-0.46.tar.gz Has already been unwrapped into directory C:\Perl\cpan\build\Inline-CPP-0.46-QMmSMq CPAN.pm: Building D/DA/DAVIDO/Inline-CPP-0.46.tar.gz cp lib/Inline/CPP/Config.pm blib\lib\Inline\CPP\Config.pm cp CPP.pm blib\lib\Inline\CPP.pm cp lib/Inline/CPP.pod blib\lib\Inline\CPP.pod cp grammar.pm ..\blib\lib\Inline\CPP\grammar.pm DAVIDO/Inline-CPP-0.46.tar.gz C:\Perl\site\bin\dmake.exe -- OK Running make test C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/00load_prereqs.t ..... # $Config{osname}: MSWin32 # $Config{cc}: C:\Perl\site\bin\gcc.exe # $Config{gccversion}: 3.4.5 (mingw-vista special r3) t/00load_prereqs.t ..... ok t/01fn_cans.t .......... ok t/02basic.t ............ ok t/03prefix.t ........... ok t/04charptr.t .......... ok t/05pod.t .............. skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run. t/06fn_regress.t ....... ok t/07perlcritic.t ....... skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run. t/08cppguess.t ......... # ExtUtils::CppGuess not installed. This set of tests and diagnostics # is more thorough when ExtUtils::CppGuess can be loaded. # Detected basic defaults (Strawberry, etc.). # # Compiler guess: t/08cppguess.t ......... 1/2 # Makefile.PL approach: [C:\Perl\site\bin\g++.exe]. # # Linker guess: # Makefile.PL approach: [-lstdc++]. t/08cppguess.t ......... ok t/09pod_coverage.t ..... skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run. t/10kwalitee.t ......... skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run. t/11rewrite_config.t ... skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run. t/12custom_libs.t ...... ok t/13version_numbers.t .. skipped: Author Test: Set $ENV{RELEASE_TESTING} to a true value to run. t/14changes.t .......... skipped: Author tests skipped. Set $ENV{RELEASE_TESTING} to run All tests successful. Files=15, Tests=29, 22 wallclock secs ( 0.09 usr + 0.05 sys = 0.14 CPU) Result: PASS C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, '..\blib\lib', '..\blib\arch')" t/*.t t/00pod_coverage.t .. ok t/01nherit.t ........ ok t/02scope.t ......... ok t/03inline.t ........ ok t/04const.t ......... ok t/05virt.t .......... ok t/06deflt.t ......... ok t/07static.t ........ ok t/08anon.t .......... ok t/09purevt.t ........ ok t/10struct.t ........ ok t/11minhrt.t ........ ok t/12retlst.t ........ ok t/13vararg.t ........ ok t/14const.t ......... ok t/15stvar.t ......... ok t/16varlst.t ........ ok t/17memberarray.t ... ok All tests successful. Test Summary Report ------------------- t/11minhrt.t (Wstat: 0 Tests: 38 Failed: 0) TODO passed: 28-31 Files=18, Tests=79, 89 wallclock secs ( 0.14 usr + 0.00 sys = 0.14 CPU) Result: PASS DAVIDO/Inline-CPP-0.46.tar.gz C:\Perl\site\bin\dmake.exe test -- OK Running make install Prepending C:\Perl\cpan\build\Inline-CPP-0.46-QMmSMq/blib/arch C:\Perl\cpan\build\Inline-CPP-0.46-QMmSMq/blib/lib to PERL5LIB for 'install' Installing C:\Perl\site\lib\Inline\CPP.pm Installing C:\Perl\site\lib\Inline\CPP.pod Installing C:\Perl\site\lib\Inline\CPP\Config.pm Installing C:\Perl\site\lib\Inline\CPP\grammar.pm Appending installation info to C:\Perl\lib/perllocal.pod DAVIDO/Inline-CPP-0.46.tar.gz C:\Perl\site\bin\dmake.exe install -- OK cpan> exit Lockfile removed. c:\Perl> Hopes this helps.