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

./configure $'\r': command not found #2

Open
K0rrid0r opened this issue Mar 30, 2021 · 10 comments
Open

./configure $'\r': command not found #2

K0rrid0r opened this issue Mar 30, 2021 · 10 comments

Comments

@K0rrid0r
Copy link

K0rrid0r commented Mar 30, 2021

image

I've tried for hours now. I cant get it to work, or am I missing something? some extra lib?

Irsim is cloned into C:\cygwin64\usr\local\src
from there i do ./configure

./configure --disable-usersubckt
gives the same error as well

I have Magic working from the same method so i really don't understand this :)

I'm on Windows 8.1

@RTimothyEdwards
Copy link
Owner

I'm a bit weirded out by the comment about the dollar sign followed by the carriage return. It sounds like the "configure" script has got a break after the $ that shouldn't be there. Line 7 of "configure" should be

( CFLAGS="-g" ; export CFLAGS ; cd scripts ; ./configure "$@" )

all on one line.

Note that the only thing that this "configure" script in the top level source directory does is to invoke the configure script in the scripts/ directory, so you could just as easily cd to the scripts directory and run the configure script there. It will accomplish the same thing.

@K0rrid0r
Copy link
Author

K0rrid0r commented Mar 31, 2021

Line 7 in configure is what you wrote above

image

Invoking ./configure in:
C:\cygwin64\usr\local\src\irsim\scripts
image

Shows a slightly different error

image

@RTimothyEdwards
Copy link
Owner

Seems like some kind of issue with DOS-style vs. UNIX-style carriage-return/linefeed characters?

I haven't used cygwin for a very long time. It was basically made obsolete by WSL. But on Windows 8.1 you don't have that choice.

@K0rrid0r
Copy link
Author

K0rrid0r commented Mar 31, 2021

hmm, that might be it.

i came a bit further when i converted configure to UNIX style in notepad++

image

maybe i should just convert all those files in scripts

converted config.sub also

image

converted all the files in scripts

image

4

adding the logfile also
config.log

this seems to be the problem
image

i see im missing a few -maybe- essential gcc libs, im adding them and see if its works
EDIT: damn that didnt help...

@K0rrid0r
Copy link
Author

K0rrid0r commented Mar 31, 2021

Right some update
I managed to build irsim by replacing the configure file from the one in the magic directory.

only thing left now is this

image

strange because the file is there
image

@RTimothyEdwards
Copy link
Owner

The question here is whether there is such a file "/usr/local/lib/irsim/tcl/tclirsim.dll". The "make" process should have created the DLL file, and "(sudo) make install" should have installed it.

I would expect issues with just using magic's "configure" script, although they are very similar. You might want to try doing "cd scripts ; aclocal ; autoconf " to generate a new configure script, if nothing else seems to be working.

@K0rrid0r
Copy link
Author

K0rrid0r commented Mar 31, 2021

had to do the following

git clone git://opencircuitdesign.com/irsim

dos2unix the whole dir with:
find . -type f -print0 | xargs -0 dos2unix

create a new configure file with (thanks)
aclocal ; autoconf

and finally cd to: usr\local\src\irsim
./configure --disable-usersubckt
make
make install

and i think its correct now, it looks like it at least?

image

(now i just need to learn how to combine it with magic etc)

@RTimothyEdwards
Copy link
Owner

Yes, that looks good. Also good do know that the build process still works with Cygwin. Thanks for writing down the instructions that get it all to work right.

@K0rrid0r
Copy link
Author

K0rrid0r commented Apr 3, 2021

more exact install note for win 8.1 requires 'wget' and 'dos2unix' from cygwin package install, if you want you can put these instaructions on the homepage.

launch the Xserver with startxwin

place the file in C:\cygwin64
wget http://opencircuitdesign.com/cygwin/archive/irsim_9_7_92.tgz
tar xfz netgen_1_5_46.tgz

place the git clone in C:\cygwin64\usr\local\src
git clone git://opencircuitdesign.com/irsim
cd irsim
find . -type f -print0 | xargs -0 dos2unix
cd scripts
rename configure.in to configure.ac and remove the 'configure' file
aclocal ; autoconf
cd ..
./configure --disable-usersubckt
make
make install
irsim

@umarcor
Copy link

umarcor commented May 21, 2022

FTR, using git config --global core.autocrlf input might prevent the need for dos2unix.

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

3 participants