[fpc-pascal] Re: What is the syntax for generating fpc.cfg from a new compiler stored at location xxxx with fpcmkcfg ?
Frank Church
vfclists at gmail.com
Tue May 10 13:20:40 CEST 2011
I tried to build FreePascal 2.5.1 using FPC 2.4.2 and when it comes to
generating the .fpc.cfg using samplecfg there is an error message about -p
option not present.
rchurch at serverone:~$ fpcmkcfg --help
> Error: Unknown option.--help
> Usage: fpcmkcfg [options]
> Where options is one or more of
> -t filename Template file name. Default is built-in
> -o filename Set output file. Default is standard output.
> -d name=value define name=value pair.
> -h show this help and exit.
> -u name remove name from list of name/value pairs.
> -l filename read name/value pairs from filename
> -b show builtin template and exit.
> -v be verbose.
> -0 use built in fpc.cfg template (default)
> -1 use built in fp.cfg template
> -2 use built in fp.ini template
>
When I use the just built fpc 2.5.1 it is okay. Did some regression creep
into the 2.4.2 version?
rchurch at serverone:~$
> /home/rchurch/Programs/fpc/2.5.1/fpc_251_17411/bin/fpcmkcfg --help
> Error: Unknown option.--help
> Usage: fpcmkcfg [options]
> Where options is one or more of
> -t filename Template file name. Default is built-in
> -o filename Set output file. Default is standard output.
> -d name=value define name=value pair.
> -h show this help and exit.
> -u name remove name from list of name/value pairs.
> -m show builtin macros and exit.
> -b show builtin template and exit.
> -s skip the creation of a backup-file.
> -p force directory creation.
> -v be verbose.
> -0 use built in fpc.cfg template (default)
> -1 use built in fp.cfg template
> -2 use built in fp.ini template
> -3 use built in fppkg.cfg template
> -4 use built in fppkg default compiler template
>
The fpcmkcfg that comes with 2.4.2 has a problem, so I modified my script,
copying the newly built version samplecfg into my on ~/bin directory for the
build to succeed.
On 9 May 2011 20:43, Frank Church <vfclists at gmail.com> wrote:
>
> I am currently generating my fpc.cfg in the build script with this command
>
> mkdir -p ${FPC_SETTINGS_DIR}
>> ${FPC_INSTALL_DIR}/lib/fpc/${FPCVER}/samplecfg
>> ${FPC_INSTALL_DIR}/lib/fpc/${FPCVER} ${FPC_SETTINGS_DIR}
>> cp ${FPC_SETTINGS_DIR}/fpc.cfg ${HOMEDIR}/.fpc.cfg
>>
>
> based on (with some new modifications) my script blogged at
> http://devblog.brahmancreations.com/content/build-scripts-for-installing-freepascal-and-lazarus-from-source
> .
>
> It looks like it will be better if the samplecfg uses the fpcmkcfg created
> with the new build. Has it been updated since the 2005 date it was created?
>
> How does the normal installation script create the proper fpc.cfg?
>
> --
> Frank Church
>
> =======================
> http://devblog.brahmancreations.com
>
--
Frank Church
=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110510/cc15c949/attachment.html>
More information about the fpc-pascal
mailing list