Sign in Join

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

Mailing lists / fpc-pascal / 2015-08

fpc svn development version fails to build from source

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Roderick Johnstone

Hi

I'm trying to build the fpc svn development version on Red Hat Enterprise Linux 6.7. I already have the fpc-2.6.4-1.x86_64, fpc-src-2.6.4-140420.x86_64 and lazarus-1.4.2-0.x86_64 rpms installed.

The build is failing like this:

# make clean all install INSTALL_DIR=/var/tmp/testfpc .
.

[ 53%] 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]: *** [all] Error 1
make[2]: Leaving directory `/var/tmp/fpc_source/fpc/utils' make[1]: *** [utils_all] Error 2
make[1]: Leaving directory `/var/tmp/fpc_source/fpc' make: *** [build-stamp.x86_64-linux] Error 2

# locate yyparse.cod
/usr/share/fpcsrc/2.6.4/utils/h2pas/yyparse.cod
/usr/share/fpcsrc/2.6.4/utils/tply/yyparse.cod

so it seems to be looking in the wrong place for yyparse.cod, or yyparse.cod is not installed correctly

I'm wondering if this is a problem with the release rpms and whether I can fix it in a configuration file somewhere?

Thanks

Roderick Johnstone

Reply by email

Peter
to Roderick Johnstone
Roderick Johnstone wrote 16 lines
Hi I'm trying to build the fpc svn development version on Red Hat .... FATAL: cannot open file /usr/lib/fpc/lexyacc/yyparse.cod .... so it seems to be looking in the wrong place for yyparse.cod, or yyparse.cod is not installed correctly I'm wondering if this is a problem with the release rpms and whether I can fix it in a configuration file somewhere? Thanks Roderick Johnstone

FWIW, on Debian, the file /usr/lib/fpc/2.6.4/lexyacc/yyparse.cod is supplied by the fp-utils-2.6.4. package.

/usr/lib/fpc/lexyacc/yyparse.cod points to this file via symlinks. Looks like a packaging bug to me, unless the relevant package is missing.

Regards,
PB

Reply by email