View Issue Details

IDProjectCategoryView StatusLast Update
0002281SkyChart1-Softwarepublic20-02-02 20:49
ReporterMattia Verga Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status newResolutionopen 
Summary0002281: Build failures on Fedora arch ppc64le
DescriptionNot sure if this is fixable by you or it's a compiler problem.
Fedora has done some big changes (GCC 10, FreePascal 3.2) on rawhide and has enabled builds on several new architectures (previously disabled).
Now I see build failures on PPC64le arch due to Bgrabitmap compilation error:
bgradefaultbitmap.pas(2264,3) Fatal: Internal error 2002090904

This only happens only on that architecture, while arm and aarch64 builds fine:
https://koji.fedoraproject.org/koji/taskinfo?taskID=41309935
https://kojipkgs.fedoraproject.org//work/tasks/9944/41309944/build.log

The same happens for CCDciel:
https://koji.fedoraproject.org/koji/taskinfo?taskID=41309672
https://kojipkgs.fedoraproject.org//work/tasks/9685/41309685/build.log

Do you have any advice on how to solve or where to report this? Is this a bgrabitmap error or compiler error in your opinion?
TagsNo tags attached.

Activities

Patrick Chevalley

20-02-01 12:32

administrator   ~0006306

Hi Mattia,

This error "Internal error 2002090904" is from the Free Pascal compiler.
The source code that give the error is:
https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/compiler/powerpc64/cgcpu.pas?revision=42046&view=markup#l510

This let me think this architecture is not yet fully supported by the compiler.

I am also surprised that FPC 3.2 is included in Fedora because it is still not released and receive daily fix:
https://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/fixes_3_2/?view=log

I use this version of the compiler only for aarch64 because this is not supported by the stable version.
But I have to disable all the compiler optimization because of bug.

I am not sure anyone want to use my software on a Power8 server. Can you disable the architecture by package?

Mattia Verga

20-02-02 20:25

reporter   ~0006309

Thank you for the information. Yes, I can easily disable that architecture (for the moment, I will try in future when FPC 3.2 will officially be released to see if something changes).
FPC 3.2 has landed in Fedora rawhide (32) which is scheduled to be released by April/May, so we are currently testing how things are going.

BTW, for Fedora I use `-O1 -gw3 -fPIC` and it seems to work under aarch64 and armv7hl

Patrick Chevalley

20-02-02 20:49

administrator   ~0006310

There is a problem at execution only with aarch64 compiled with any optimization, even -O1. I have to change to -O- for aarch64.
When using the default parametric star display it try to make the star so big they fill the screen and this finish with a timeout.
This as been reported here:
https://www.ap-i.net/mantis/view.php?id=2269#c6284

The problem is the value of AAWidth is multiplied by 100 after this test when AAWidth is greater than 1:
https://github.com/pchev/skychart/blob/1eaf718f9f54911f7e5de7191c948cac86dfbd24/skychart/cu_plot.pas#L982

I try to reproduce in a simple program to report the bug but without success.

Issue History

Date Modified Username Field Change
20-02-01 12:08 Mattia Verga New Issue
20-02-01 12:32 Patrick Chevalley Note Added: 0006306
20-02-02 20:25 Mattia Verga Note Added: 0006309
20-02-02 20:49 Patrick Chevalley Note Added: 0006310