Fixes 3.2: make all fails

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Fixes 3.2: make all fails

Bart-48
Hi,

OpenSuse Tumbleweed 64-bit (in a VirtualBox VM under Win10)

Installed fpc 3.0.4 form rpm.
(b.t.w. when clicking on the link for
ftp://ftp.hu.freepascal.org/pub/fpc/dist/3.0.4/x86_64-linux/rpm/fpc-3.0.4-1.x86_64.rpm
(on the downloadpage at
https://www.freepascal.org/down/x86_64/linux-hungary.html) I get a
"550 Failed to change directory.". There is no rpm folder in
x86-64-linux. The correct reference is
/pub/fpc/dist/3.0.4/x86_64-linux/fpc-3.0.4-1.x86_64.rpm)

I can compile the classic Hello World with fpc 3.0.4.

Did: svn co https://svn.freepascal.org/svn/fpc/branches/fixes_3_2/

Then tried
~/devel/fpc/3.2.0-fixes>make all

This fails with:
make -C utils all
.....
.....
./fpmake compile --localunitdir=.. --globalunitdir=../packages
--os=linux --cpu=x86_64 -o -Ur -o -Xs -o -O2 -o -n -o -Cg -o -dx86_64
-o -dRELEASE --compiler=/home/bart/devel/fpc/3.2.0-fixes/compiler/ppcx64
-bu
.....
.....
[ 48%] Compiled package utils-fprcp
Start compiling package utils-h2pas for target x86_64-linux.
Executing command "/usr/bin/pyacc h2pas/h2pas.y h2pas/h2pas.pas"
The installer encountered the following error:
External command "/usr/bin/pyacc h2pas/h2pas.y h2pas/h2pas.pas" failed
with exit code 256. Console output:
TP Yacc Version 4.1a [April 2000], Copyright (c) 1990-2000 Albert Graef

FATAL: cannot open file /usr/lib/fpc/lexyacc/yyparse.cod

make[2]: *** [Makefile:2452: all] Fout 1
make[2]: Map '/home/bart/devel/fpc/3.2.0-fixes/utils' wordt verlaten
make[1]: *** [Makefile:2621: utils_all] Fout 2
make[1]: Map '/home/bart/devel/fpc/3.2.0-fixes' wordt verlaten
make: *** [Makefile:2826: build-stamp.x86_64-linux] Fout 2

There is no /usr/lib/fpc folder
There is /usr/lib64/fpc, but no yyparse.cod in any of it's subfolders.
That file can only be found in ~/devel/fpc/3.2.0-fixes/utils/tply and
~/devel/fpc/3.2.0-fixes/utils/h2pas

What did I do wrong?

--
Bart
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Fixes 3.2: make all fails

Bart-48
Also, rpm -i fpc-3.0.4-1.src.rpm seems to do nothing?

Bart
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Fixes 3.2: make all fails

Marco van de Voort-2
In reply to this post by Bart-48

Op 2018-12-31 om 19:22 schreef Bart:
> OpenSuse Tumbleweed 64-bit (in a VirtualBox VM under Win10)
>
> I can compile the classic Hello World with fpc 3.0.4.
>
> Did: svn co https://svn.freepascal.org/svn/fpc/branches/fixes_3_2/

> Start compiling package utils-h2pas for target x86_64-linux.
> Executing command "/usr/bin/pyacc h2pas/h2pas.y h2pas/h2pas.pas"
> The installer encountered the following error:
> External command "/usr/bin/pyacc h2pas/h2pas.y h2pas/h2pas.pas" failed
> with exit code 256. Console output:
> TP Yacc Version 4.1a [April 2000], Copyright (c) 1990-2000 Albert Graef
>
> FATAL: cannot open file /usr/lib/fpc/lexyacc/yyparse.cod
>

> What did I do wrong?

If h2pas isn't modified (recently (check svn log), it is probably that
the timestamps somehow got messed up, and h2pas.pas is now older
h2pas.y. This sometimes happened to me, specially when using atypical
filesystems. (like e.g. building on a fat partition from linux).

Solution/workaround:

touch h2pas.pas


_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Reply | Threaded
Open this post in threaded view
|

Re: Fixes 3.2: make all fails

Bart-48
On Tue, Jan 1, 2019 at 12:27 PM Marco van de Voort
<[hidden email]> wrote:

> If h2pas isn't modified (recently (check svn log), it is probably that
> the timestamps somehow got messed up, and h2pas.pas is now older
> h2pas.y. This sometimes happened to me, specially when using atypical
> filesystems. (like e.g. building on a fat partition from linux).
>
> Solution/workaround:
>
> touch h2pas.pas

Timestamps are all the same.
Anyhow, I did a make clean followed by make all and now it finished
without errors.

So, problem solved, but I have no idea how and why ;-)
--
Bart
_______________________________________________
fpc-pascal maillist  -  [hidden email]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal