[fpc-pascal] fpc svn development version fails to build from source

Roderick Johnstone rmj at ast.cam.ac.uk
Fri Aug 7 14:41:40 CEST 2015


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



More information about the fpc-pascal mailing list