Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2015-10

3.0.0~rc1 in Debian

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Edmund Grimley Evans

3.0.0~rc1 has arrived in Debian experimental, but has failed to build on several architectures:

https://buildd.debian.org/status/package.php?p=fpc&suite=experimental

Debian applies various patches, of course, but I was able to reproduce the i386 failure on Debian unstable with the upstream source, and I've suggested a solution here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800811

The error on armhf is weird. Click on "Build-Attempted" in the appropriate line to see the full log. The error is:

flt_pack.inc(119,5) Error: Syntax error while parsing a conditional compiling expression

Can anyone say what the problem is there?

Edmund

Reply by email

Michael Ring
to Edmund Grimley Evans

When I remember correctly this error is caused by optimization. Try building with -O-

Michael

Edmund Grimley Evans wrote 22 lines
3.0.0~rc1 has arrived in Debian experimental, but has failed to build on several architectures: https://buildd.debian.org/status/package.php?p=fpc&suite=experimental Debian applies various patches, of course, but I was able to reproduce the i386 failure on Debian unstable with the upstream source, and I've suggested a solution here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800811 The error on armhf is weird. Click on "Build-Attempted" in the appropriate line to see the full log. The error is: flt_pack.inc(119,5) Error: Syntax error while parsing a conditional compiling expression Can anyone say what the problem is there? Edmund _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Jonas Maebe
to Edmund Grimley Evans: 3.0.0~rc1 has arrived in Debian experimental, but has failed to build on several…

Edmund Grimley Evans wrote on Sun, 04 Oct 2015:

Show quoted text 10 lines
3.0.0~rc1 has arrived in Debian experimental, but has failed to build on several architectures: https://buildd.debian.org/status/package.php?p=fpc&suite=experimental Debian applies various patches, of course, but I was able to reproduce the i386 failure on Debian unstable with the upstream source, and I've suggested a solution here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800811

We should probably apply that patch to trunk.

Show quoted text 7 lines
The error on armhf is weird. Click on "Build-Attempted" in the appropriate line to see the full log. The error is: flt_pack.inc(119,5) Error: Syntax error while parsing a conditional compiling expression Can anyone say what the problem is there?

As mentioned by Michael Ring, this is a bug in the 2.6.4 Debian ARMHF compiler that gets triggered by the newer compiler sources. I don't think it happens with any other FPC 2.6.4 as starting compiler.

Jonas

Reply by email

Edmund Grimley Evans
to Jonas Maebe

Jonas:

As mentioned by Michael Ring, this is a bug in the 2.6.4 Debian ARMHF compiler that gets triggered by the newer compiler sources. I don't think it happens with any other FPC 2.6.4 as starting compiler.

So I would guess that the solution is to add "OPTLEVEL1=-O-" to the CYCLEOPTS which are used in the following line in debian/rules (https://sources.debian.net/src/fpc/3.0.0~rc1%2Bdfsg-1/debian/rules/#L253):

$(MAKE) -C fpcsrc compiler_cycle $(CYCLEOPTS)

And this could be done just on armhf, or on all architectures.

Thanks,

Edmund

Reply by email

Jonas Maebe
to Edmund Grimley Evans

Edmund Grimley Evans wrote on Mon, 05 Oct 2015:

Show quoted text 7 lines
So I would guess that the solution is to add "OPTLEVEL1=-O-" to the CYCLEOPTS which are used in the following line in debian/rules (https://sources.debian.net/src/fpc/3.0.0~rc1%2Bdfsg-1/debian/rules/#L253): $(MAKE) -C fpcsrc compiler_cycle $(CYCLEOPTS) And this could be done just on armhf, or on all architectures.

Indeed, I hadn't thought of that compiler Makefile flag.

Jonas

Reply by email