[fpc-devel] Failing Lazarus Codetools Pas2JS-related tests
Michael Van Canneyt
michael at freepascal.org
Tue Dec 26 09:49:42 CET 2023
On Mon, 25 Dec 2023, Maxim Ganetsky wrote:
> 25.12.2023 18:35, Michael Van Canneyt via fpc-devel пишет:
>>
>>
>> On Mon, 25 Dec 2023, Maxim Ganetsky via fpc-devel wrote:
>>
>>>> ||
>>>> -Fu$CfgDir../lib/fpc/3.3.1/pas2js/rtl/src
>>>> |
>>>
>>> I see that there are missing directory separators after $CfgDir, maybe this
>>> is the reason?
>>
>> I added it.
>>
> Thanks. But still no luck. It seems like asterisks in config file are not
> expanded properly. See the output of compilation run for a trivial "Hello,
> World!" program:
They are expanded. I've been using it for quite some time now.
I don't think I've been hallucinating. See below :-)
> ||
> Info: Macro defined: UNICODE
> ||
> Info: Compiler exe: "/usr/local/bin/pas2js"
> ||
> Info: Using working directory:
> "/builds/freepascal.org/lazarus-sandbox/lazarus-test-4"
> ||
> Info: Using unit path: "/usr/local/lib/fpc/3.3.1/pas2js/*/src"
> ||
> Note: unit path not found: "/usr/local/lib/fpc/3.3.1/pas2js/*/src"
Is the path correct to begin with ?
i.e. do the directories /usr/local/lib/fpc/3.3.1/pas2js/*/src actually exist ?
Partial output here:
> pas2js -va hello.pas
Debug: quick handling option "hello.pas"
Info: Configfile search: /home/michael/.pas2js.cfg
Info: Reading options from file "/home/michael/.pas2js.cfg"
Debug: interpreting file option "#ifdef FPC_SUBTARGET_NAMESPACED"
.pas2js.cfg(1,1) Debug: cfg directive "#ifdef FPC_SUBTARGET_NAMESPACED": false
-> skip
Debug: interpreting file option
"-Fu/home/michael/P2JS/main/packages/*/namespaced"
Debug: interpreting file option "-Fi/home/michael/P2JS/main/packages/*/src"
Debug: interpreting file option "#else"
.pas2js.cfg(4,1) Debug: cfg directive "#else": execute
Debug: interpreting file option "-Fu/home/michael/P2JS/main/packages/*/src"
...
Info: Using unit path: "/home/michael/P2JS/main/packages/nodejs/src"
Info: Using unit path: "/home/michael/P2JS/main/packages/opentok/src"
Info: Using unit path: "/home/michael/P2JS/main/packages/pdfjs/src"
Info: Using unit path: "/home/michael/P2JS/main/packages/pushjs/src"
Info: Using unit path: "/home/michael/P2JS/main/packages/tinyeditor/src"
Info: Using unit path: "/home/michael/P2JS/main/packages/vscode/src"
Info: Using unit path: "/home/michael/P2JS/main/packages/wasi/src"
Info: Using unit path: "/home/michael/P2JS/main/packages/webwidget/src"
Info: Using unit path: "/home/michael/P2JS/main/packages/xterm/src"
So the path is definitely expanded.
Michael.
More information about the fpc-devel
mailing list