Bug#813452: [Pkg-pascal-devel] Bug#813452: [Core] Bug#813452: Bug#813452: fpc-3.0 regression in armhf and armel architectures
Hi >I'm not sure but if you checkout (untar) a snpashot on abel.debian.org and >just run make all it would work. I did: wget ftp://ftp.freepascal.org/pub/fpc/snapshot/fixes/source/fpcbuild.zip unzip fpcbuild.zip cd fpcsrc make all. the builds fails with as -o /home/locutusofborg/fpc-3.1~alpha+dfsg/fpcsrc/rtl/units/arm-linux/ucprt0.o arm/ucprt0.as /usr/bin/ppcarm -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE. -FU/home/locutusofborg/fpc-3.1~alpha+dfsg/fpcsrc/rtl/units/arm-linux -darm -dRELEASE -Us -Sg system.pp arm.inc(18,2) Error: Illegal assembler style specified "GAS" system.inc(1824,8) Warning: Implicit string type conversion from "RawByteString" to "UnicodeString" I tried also to patch the debian packaging to work with the latest trunk and I'm attaching it) the packaging didn't change too much, just an arm64 patch deleted, and some patch refresh. amd64 build went fine, so this seems to be an armhf regression. >Normally you need to checkout the fpcbuild repository and just replace debian >folder by the one from our git. If things did not diverge too much it should >work. >I'll see if this works for amd64 and puch the changes. the problem is on armel and armhf, so I'm trying the latter, that should be faster :) let me know if you have some more fixes to test, I deleted line 18 on arm.inc and restarted the build. with the newly shiny built fpc 3.0.1 I did a rebuild of hedgewars on my local pbuilder-dist armhf chroot. same result. make[1]: Entering directory '/hedgewars-0.9.22-dfsg/obj-arm-linux-gnueabihf' Running tests... /usr/bin/ctest --force-new-ctest-process -j1 Test project /hedgewars-0.9.22-dfsg/obj-arm-linux-gnueabihf Start 1: drillrockets_drill.lua 1/6 Test #1: drillrockets_drill.lua ...***Failed0.33 sec An unhandled exception occurred at $000C054C: EInOutError: File not open $000C054C WriteLn, line 467 of /hedgewars-0.9.22-dfsg/hedgewars/uUtils.pas Start 2: drillrockets_boom.lua 2/6 Test #2: drillrockets_boom.lua ***Failed0.22 sec An unhandled exception occurred at $000C054C: EInOutError: File not open $000C054C WriteLn, line 467 of /hedgewars-0.9.22-dfsg/hedgewars/uUtils.pas Start 3: twothousandmines.lua 3/6 Test #3: twothousandmines.lua .***Failed0.22 sec An unhandled exception occurred at $000C054C: EInOutError: File not open $000C054C WriteLn, line 467 of /hedgewars-0.9.22-dfsg/hedgewars/uUtils.pas Start 4: hellfire_burns.lua 4/6 Test #4: hellfire_burns.lua ...***Failed0.23 sec An unhandled exception occurred at $000C054C: EInOutError: File not open $000C054C WriteLn, line 467 of /hedgewars-0.9.22-dfsg/hedgewars/uUtils.pas Start 5: luaAPI/zoom_get_set.lua 5/6 Test #5: luaAPI/zoom_get_set.lua ..***Failed0.22 sec An unhandled exception occurred at $000C054C: EInOutError: File not open $000C054C WriteLn, line 467 of /hedgewars-0.9.22-dfsg/hedgewars/uUtils.pas Start 6: luaAPI/gravity_get_set.lua 6/6 Test #6: luaAPI/gravity_get_set.lua ...***Failed0.22 sec An unhandled exception occurred at $000C054C: EInOutError: File not open $000C054C WriteLn, line 467 of /hedgewars-0.9.22-dfsg/hedgewars/uUtils.pas 0% tests passed, 6 tests failed out of 6 Total Test time (real) = 1.48 sec The following tests FAILED: 1 - drillrockets_drill.lua (Failed) 2 - drillrockets_boom.lua (Failed) 3 - twothousandmines.lua (Failed) 4 - hellfire_burns.lua (Failed) 5 - luaAPI/zoom_get_set.lua (Failed) 6 - luaAPI/gravity_get_set.lua (Failed) Errors while running CTest Makefile:129: recipe for target 'test' failed make[1]: *** [test] Error 8 make[1]: Leaving directory '/hedgewars-0.9.22-dfsg/obj-arm-linux-gnueabihf' dh_auto_test: make -j1 test ARGS+=-j1 returned exit code 2 fpc Free Pascal Compiler version 3.0.1+dfsg-1 [2016/02/25] for arm Copyright (c) 1993-2015 by Florian Klaempfl and others /usr/bin/fpc-3.0.1 [options] [options] so fPIC seems to be *not* fixed in current trunk (unless I did something seriously wrong). Moreover current trunk doesn't build :) cheers, HTH G. fpc_3.0.1~alpha+dfsg-1.debian.tar.xz Description: application/xz
Bug#813452: [Pkg-pascal-devel] Bug#813452: [Core] Bug#813452: Bug#813452: fpc-3.0 regression in armhf and armel architectures
Hi Sven, On Mon, 2016-02-22 at 17:44 +0100, Abou Al Montacir wrote: > Hi Sven > > On Mon, 2016-02-22 at 07:58 +0100, Sven Barth wrote: > > > Looks like PIC code was broken in 3.0. Is there anyone aware of that? How > > can we fix that? > > > > > Would you please try the current development version of FPC (3.1.1) to check > > whether the issue persists there? > Yes, sure I'll do and let you know. I've tested the FPC trunk and it works well. Here is the log of both wersions: (sid_armel-dchroot)abou@abel:~/hedgewars-0.9.22-dfsg/obj-arm-linux-gnueabi/hedgewars$ fpc -fPIC test2 && ./test2 Free Pascal Compiler version 3.0.0+dfsg-2 [2016/01/28] for arm Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for ARMEL Compiling test2.pas Assembling test Linking test2 /usr/bin/ld.bfd: warning: link.res contains output sections; did you forget -T? 4 lines compiled, 0.3 sec Runtime error 103 at $000101D8 $000101D8 $00010124 (sid_armel-dchroot)abou@abel:~/hedgewars-0.9.22-dfsg/obj-arm-linux-gnueabi/hedgewars$ /home/abou/fpc-3.1.1/fpc-3.1.1/build/fpc-3.1.1/fpcsrc/compiler/ppcarm -Fu/home/abou/fpc-3.1.1/fpc-3.1.1/build/fpc-3.1.1/fpcsrc/ -Fu/home/abou/fpc-3.1.1/fpc-3.1.1/build/fpc-3.1.1/fpcsrc/rtl/units/arm-linux -fPIC test2 && ./test2 Free Pascal Compiler version 3.1.1-0 [2016/02/24] for arm Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for ARMEL Compiling test2.pas Linking test2 4 lines compiled, 0.2 sec Hello (sid_armel-dchroot)abou@abel:~/hedgewars-0.9.22-dfsg/obj-arm-linux-gnueabi/hedgewars$ This shows that the issue was fixed in trunk. Can you please help finding the revision that may fixed that so we can extract a patch and fix 3.0.0? As long as this bug is open, fpc transition to testing is blocked and this is quite unpleasing for many of our users. -- Cheers, Abou Al Montacir signature.asc Description: This is a digitally signed message part
Bug#813452: [Pkg-pascal-devel] Bug#813452: [Core] Bug#813452: Bug#813452: fpc-3.0 regression in armhf and armel architectures
Hi Paul, Hi Gianfranco, On Tue, 2016-02-23 at 20:39 +0100, Paul Gevers wrote: > Hi Gianfranco, > > On 23-02-16 17:18, Gianfranco Costamagna wrote: > > Paul do you have any way to upload a deb file somewhere? (even experimental > > would be awesome) I'm not sure but if you checkout (untar) a snpashot on abel.debian.org and just run make all it would work. I can try to provide a binary, but you will also need RTL. As Paul said, making .deb is probably much more complicated. > Not anytime soon. Getting snapshots into a shape suitable for building > That answers my question in the other mail. > packages was a not so nice experience when Graham and I tried to debug > the relro issue on arm* in the summer of 2015 (I didn't manage before > 3.0.0~rc1 was released). We/I don't have a working way-of-working yet, > so I like to postpone that until close to a new release. I used to keep FPC trunk able to generate .deb snapshots, but I have les and less time to do that. Normally you need to checkout the fpcbuild repository and just replace debian folder by the one from our git. If things did not diverge too much it should work. I'll see if this works for amd64 and puch the changes. -- Cheers, Abou Al Montacir signature.asc Description: This is a digitally signed message part
Bug#813452: [Pkg-pascal-devel] Bug#813452: [Core] Bug#813452: Bug#813452: fpc-3.0 regression in armhf and armel architectures
Hi Sven On Mon, 2016-02-22 at 07:58 +0100, Sven Barth wrote: > > Looks like PIC code was broken in 3.0. Is there anyone aware of that? How > can we fix that? > > > Would you please try the current development version of FPC (3.1.1) to check > whether the issue persists there? Yes, sure I'll do and let you know. -- Cheers, Abou Al Montacir signature.asc Description: This is a digitally signed message part