chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing Chicken 5.2.0 on Windows - chicken-install -update-db han


From: Mark Fisher
Subject: Re: Installing Chicken 5.2.0 on Windows - chicken-install -update-db hanging
Date: Wed, 25 Aug 2021 20:03:32 +0100

> My patches had an error, instead of HANDLE there should have been
> intptr_t

Thanks Jani

Firstly, I completely wiped all mingw64/msys2, and chocolatey installs from my PC before trying this.
My system is absolutely pristine new installs, versions are as follows:

    $ uname -a
    MINGW64_NT-10.0-19043 mypcname 3.2.0-340.x86_64 2021-08-02 16:30 UTC x86_64 Msys

    $ make --version
    GNU Make 4.3
    Built for x86_64-pc-msys

    $ gcc --version
    gcc.exe (Rev5, Built by MSYS2 project) 10.3.0

I applied that patch, and ran make.

I'm doing this from within a MINGW64 shell, with the command:

    make PLATFORM=mingw-msys PREFIX=C:/msys64/usr/local
    make PLATFORM=mingw-msys PREFIX=C:/msys64/usr/local install

After some initial issues with the fact I don't have chicken installed anywhere, and the scm files were trying to compile to c files with chicken, I had to rebuild 5.2.0 to get a working "chicken.exe" on my path so I could continue compiling chicken-5.3.0rc1 with your patch.

Then I popped back into my 5.3.0rc1 directory with your patches, and compiled again.

The compilation worked, and chicken-install appears to partially work.
Certainly, make install finished without hanging this time (which itself runs -update-db).

When I manually run chicken-install, it seems good:

    $ chicken-install -update-db
    loading import libraries ...
    generating database ...

and checking where it thinks the repository is works:

    $ chicken-install -repository
    C:/msys64/usr/local/lib/chicken/11

However, when I actually try and install an egg, it fails:

    $ chicken-install uri-common
    fetching uri-common
    'xcopy' is not recognized as an internal or external command,
    operable program or batch file.

    Error: (open-input-file) cannot open file - No such file or directory: "C:\\Users\\redacted\\AppData\\Local\\chicken-install\\uri-common\\uri-common.egg"

It looks like it's mixing mingw64 for windows and mingw64/sys2 concepts.
The "xcopy" error is from it thinking that's the system copy (instead of "cp" as I'm in msys2 environment)
The path is then looking in my windows appdata local dir instead of the reported repository directory from "chicken-install -repository".

So a step forward, but still no working chicken-install.

Then, I cleaned, touched all scm files (to force a recompile of the c files) and remade the whole package, as this time it would be compiling with chicken-5.3.0 instead of 5.2.0

    make clean confclean
    touch *.scm
    make PLATFORM=mingw-msys PREFIX=C:/msys64/usr/local
    make PLATFORM=mingw-msys PREFIX=C:/msys64/usr/local install

This all worked, but still the same error trying to install an egg:

    $ chicken-install uri-common
    fetching uri-common
    'xcopy' is not recognized as an internal or external command,
    operable program or batch file.

    Error: (open-input-file) cannot open file - No such file or directory: "C:\\Users\\redacted\\AppData\\Local\\chicken-install\\uri-common\\uri-common.egg"

I just can't get this working.

Mark

reply via email to

[Prev in Thread] Current Thread [Next in Thread]