Sign in Join

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

Mailing lists / fpc-pascal / 2018-12

Fixes 3.2: make all fails

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Bart

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

Reply by email

Marco van de Voort
to Bart: OpenSuse Tumbleweed 64-bit (in a VirtualBox VM under Win10) Installed fpc 3.0.4 form rpm.…

Op 2018-12-31 om 19:22 schreef Bart:

Show quoted text 17 lines
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

Reply by email

Bart
to Marco van de Voort
PM Marco van de Voort wrote 8 lines
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

Reply by email