[JIRA] (JENKINS-59118) GHS MULTI Errors (Absolute Path and Illegal Char) In Warnings Next Generation Plugin

0 views
Skip to first unread message

s.kipping@denso-sales.co.uk (JIRA)

unread,
Aug 28, 2019, 6:27:03 AM8/28/19
to jenkinsc...@googlegroups.com
Steve Kipping created an issue
 
Jenkins / Bug JENKINS-59118
GHS MULTI Errors (Absolute Path and Illegal Char) In Warnings Next Generation Plugin
Issue Type: Bug Bug
Assignee: Ulli Hafner
Components: warnings-ng-plugin
Created: 2019-08-28 10:26
Environment: CloudBees Jenkins Distribution 2.164.3.2-rolling
Analysis Model API Plug-in 5.3.0
Warnings Next Generation Plugin 4.0
Windows Server
Labels: plugin pipeline warnings
Priority: Minor Minor
Reporter: Steve Kipping

I'm running recordIssues on a Greenhills MULTI compiler build and get the following errors

09:46:54 [GHS Multi Compiler] [-ERROR-] Can't resolve absolute paths for some files: 09:46:54 [GHS Multi Compiler] [-ERROR-] - 749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/stdarg.h 09:46:54 [GHS Multi Compiler] [-ERROR-] - 904Z] "../../../../Sources/CPU/BSW/MCAL/Mcu/Mcu_std.c 09:46:54 [GHS Multi Compiler] [-ERROR-] - 749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/ghs_valist.h 09:46:54 [GHS Multi Compiler] [-ERROR-] - 122Z] "../../../../Sources/CPU/TEST/Test_Ccm/Test_Ccm.c 09:46:54 [GHS Multi Compiler] [-ERROR-] Can't create fingerprints for some files: 09:46:54 [GHS Multi Compiler] [-ERROR-] - '749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/ghs_valist.h', IO exception has been thrown: java.nio.file.InvalidPathException: Illegal char <"> at index 6: 749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/ghs_valist.h 09:46:54 [GHS Multi Compiler] [-ERROR-] - '749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/ghs_valist.h', IO exception has been thrown: java.nio.file.InvalidPathException: Illegal char <"> at index 6: 749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/ghs_valist.h 09:46:54 [GHS Multi Compiler] [-ERROR-] - '749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/ghs_valist.h', IO exception has been thrown: java.nio.file.InvalidPathException: Illegal char <"> at index 6: 749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/ghs_valist.h 09:46:54 [GHS Multi Compiler] [-ERROR-] - '749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/stdarg.h', IO exception has been thrown: java.nio.file.InvalidPathException: Illegal char <"> at index 6: 749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/stdarg.h 09:46:54 [GHS Multi Compiler] [-ERROR-] - '749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/stdarg.h', IO exception has been thrown: java.nio.file.InvalidPathException: Illegal char <"> at index 6: 749Z] "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/stdarg.h 09:46:54 [GHS Multi Compiler] [-ERROR-] - '122Z] "../../../../Sources/CPU/TEST/Test_Ccm/Test_Ccm.c', IO exception has been thrown: java.nio.file.InvalidPathException: Illegal char <"> at index 6: 122Z] "../../../../Sources/CPU/TEST/Test_Ccm/Test_Ccm.c

There are many more of the Illegal char errors as well, which is included in the attached log file.

The absolute paths look OK for files like stdarg.h etc. and the Illegal char <"> doesn't make much sense as I don't know where it's referring to this char. 

I raised this on the Gitter chat and it was suggested that it's a bug so I've raised this on JIRA.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

s.kipping@denso-sales.co.uk (JIRA)

unread,
Aug 28, 2019, 6:32:03 AM8/28/19
to jenkinsc...@googlegroups.com
Steve Kipping updated an issue
Change By: Steve Kipping
Attachment: GHS MULTI Warnings NG Plugin Errors 20190828.txt

s.kipping@denso-sales.co.uk (JIRA)

unread,
Aug 28, 2019, 6:33:05 AM8/28/19
to jenkinsc...@googlegroups.com
Steve Kipping updated an issue
Change By: Steve Kipping
Environment:
CloudBees Jenkins Distribution 2.164.3.2-rolling
Analysis Model API Plug-in 5.3.0
Warnings Next Generation Plugin 4.0
Windows Server 2016 Standard

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 1, 2019, 2:27:02 PM9/1/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-59118
 
Re: GHS MULTI Errors (Absolute Path and Illegal Char) In Warnings Next Generation Plugin

Can you please also attach a compiler log that produces the wrong file names? Otherwise it is hard to write a test case...

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 1, 2019, 2:28:02 PM9/1/19
to jenkinsc...@googlegroups.com
Ulli Hafner edited a comment on Bug JENKINS-59118
Can you please also attach a compiler log that produces the wrong file names? Otherwise it is hard to write a test case... I think a couple of actual GHS warnings are sufficient.  

s.kipping@denso-sales.co.uk (JIRA)

unread,
Sep 6, 2019, 6:38:05 AM9/6/19
to jenkinsc...@googlegroups.com
Steve Kipping updated an issue
Change By: Steve Kipping
Attachment: GHS MULTI Warnings NG Plugin Errors with Compiler Output 20190828.zip

s.kipping@denso-sales.co.uk (JIRA)

unread,
Sep 6, 2019, 6:40:05 AM9/6/19
to jenkinsc...@googlegroups.com

s.kipping@denso-sales.co.uk (JIRA)

unread,
Sep 6, 2019, 6:41:04 AM9/6/19
to jenkinsc...@googlegroups.com

s.kipping@denso-sales.co.uk (JIRA)

unread,
Sep 6, 2019, 6:43:03 AM9/6/19
to jenkinsc...@googlegroups.com
Steve Kipping commented on Bug JENKINS-59118
 
Re: GHS MULTI Errors (Absolute Path and Illegal Char) In Warnings Next Generation Plugin

Hi, sorry for the delayed response. Outlook had carefully filed away the notification in my Junk folder. I've attached a zip of the output with the compiler info.

I've used a password on this just to protect the data and will email the password to you by email at your gmail account.

Thanks

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 6, 2019, 4:50:02 PM9/6/19
to jenkinsc...@googlegroups.com
Ulli Hafner started work on Bug JENKINS-59118
 
Change By: Ulli Hafner
Status: Open In Progress

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 6, 2019, 4:50:03 PM9/6/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 6, 2019, 5:54:02 PM9/6/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 6, 2019, 5:56:02 PM9/6/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on Bug JENKINS-59118
 
Re: GHS MULTI Errors (Absolute Path and Illegal Char) In Warnings Next Generation Plugin

I released a fix that at least handles paths like "C:/ProjectTools/ProjectX/GHS/TRICORE.V2018.1.5/comp_201815/ansi/ghs_valist.h" correctly. There are also some relative paths like "../../../../Sources/CPU/TEST/Test_Ccm/Test_Ccm.c". They will stay relative so I do not know if they will be found afterwards. Is there an option to always produce absolute paths in the log?

s.kipping@denso-sales.co.uk (JIRA)

unread,
Sep 9, 2019, 4:11:02 AM9/9/19
to jenkinsc...@googlegroups.com

Hi, thanks for the fix. It seems to have fixed the absolute path files thanks.

I'm looking at how I can use absolute paths for the other files. They are currently specified as relative in the GreenHills projects file which is used for the build. I'm not sure if I can change that, but maybe I can update the output somehow.

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 9, 2019, 5:15:02 PM9/9/19
to jenkinsc...@googlegroups.com

If you could print something like

make[1]: Entering directory `/dir1/dir2'

before the GreenHills build, then this directory would be used as prefix automatically.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

s.kipping@denso-sales.co.uk (JIRA)

unread,
Sep 10, 2019, 6:14:02 AM9/10/19
to jenkinsc...@googlegroups.com

That worked really well thanks. I echo'd it to the console output and it's picking up the files and the results now show the full file too (it wasn't doing that before). It's a great plugin

I'm just getting this error now

10:53:26 [GHS Multi Compiler] [-ERROR-] Can't create fingerprints for some files:
10:53:26 [GHS Multi Compiler] [-ERROR-] - 'C:/Jenkins/workspace/PROJECTX/EXT_SW_RemoteBuild_MYPCNAME/feature/PRJX-1050-integrate-qac-execution-in-jenkins/BuildWorkspace/Sources/CPU/BSW/MCAL/Mcu/Mcu_Std.c', IO exception has been thrown: java.io.UncheckedIOException: java.nio.charset.UnmappableCharacterException: Input length = 1

Do you have any suggestions about what could be causing this?

Our C files have some Japanese characters in them, but these should only ever be in the comments.

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 10, 2019, 2:48:03 PM9/10/19
to jenkinsc...@googlegroups.com

The finger printing algorithm reads the source files in order to detect if a warnings is the same in two different builds. Can't you set the sourceCodeEncoding parameter to the correct locale?

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 10, 2019, 2:49:02 PM9/10/19
to jenkinsc...@googlegroups.com
Ulli Hafner edited a comment on Bug JENKINS-59118
The finger printing algorithm reads the source files in order to detect if a warnings warning is the same in two different builds. Can't you set the {{sourceCodeEncoding}} parameter to the correct locale?

s.kipping@denso-sales.co.uk (JIRA)

unread,
Sep 11, 2019, 9:45:02 AM9/11/19
to jenkinsc...@googlegroups.com

That fixed that problem too (UTF-8). Thanks again for all your support.

Reply all
Reply to author
Forward
0 new messages