Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autosetup-find-tclsh generates without UNIX line endings. #331

Open
will-eberhard-mscst opened this issue Dec 22, 2024 · 0 comments
Open

Comments

@will-eberhard-mscst
Copy link

When installing libjimtcl using Cygwin, I get the following error:

$ make install clean
libjimtcl is not currently installed.
Finished processing dependencies for libjimtcl.
Fetching libjimtcl from https://github.com/msteveb/jimtcl.git ...
Cloning into 'libjimtcl-1.0.0'...
remote: Enumerating objects: 9901, done.
remote: Counting objects: 100% (765/765), done.
remote: Compressing objects: 100% (170/170), done.
remote: Total 9901 (delta 666), reused 604 (delta 595), pack-reused 9136 (from 3)
Receiving objects: 100% (9901/9901), 16.43 MiB | 1.12 MiB/s, done.
Resolving deltas: 100% (6406/6406), done.
Copying SCM checkout of libjimtcl ...
Copying KOS files...
make[1]: Entering directory '/home/Will/dc/kos-ports/libjimtcl/build/libjimtcl-1.0.0'
CC=kos-cc  ./configure --prefix=/home/Will/dc/kos/../kos-ports/libjimtcl/inst --host=sh-elf --without-ext="aio,zlib" ; \
        make libjim.a
/autosetup-find-tclsh: No such file or directory
./configure: line 4: exec: : not found
make[2]: Entering directory '/home/Will/dc/kos-ports/libjimtcl/build/libjimtcl-1.0.0'
make[2]: *** No rule to make target 'libjim.a'.  Stop.
make[2]: Leaving directory '/home/Will/dc/kos-ports/libjimtcl/build/libjimtcl-1.0.0'
make[1]: *** [KOSMakefile.mk:11: build-libjim] Error 2
make[1]: Leaving directory '/home/Will/dc/kos-ports/libjimtcl/build/libjimtcl-1.0.0'
make: *** [/home/Will/dc/kos/../kos-ports/scripts/build.mk:35: build-stamp] Error 2

The key error here is "/autosetup-find-tclsh: No such file or directory." This file is generated after the make command and can be found within the "./build/libjimtcl-1.0.0/autosetup/autosetup-find-tclsh" path. But I believe the issue is that the autosetup-find-tclsh file is not generated with Unix line endings.

If I run autosetup-find-tclsh directly, this is the error I get:

$ ./build/libjimtcl-1.0.0/autosetup/autosetup-find-tclsh
./build/libjimtcl-1.0.0/autosetup/autosetup-find-tclsh: line 7: syntax error near unexpected token `$'do\r''
./build/libjimtcl-1.0.0/autosetup/autosetup-find-tclsh: line 7: `for tclsh in ./'imsh0 $autosetup_tclsh jimsh tclsh tclsh8.5 tclsh8.6 tclsh8.7; do

If I change the line endings of autosetup-find-tclsh to UNIX, then I can run autosetup-find-tclsh, but then the entire make command cannot run because it always generates with Windows line endings.

Is there a way to get around this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant