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

Install error on windows rubyinstaller2 #1

Open
dsisnero opened this issue Apr 17, 2018 · 3 comments
Open

Install error on windows rubyinstaller2 #1

dsisnero opened this issue Apr 17, 2018 · 3 comments

Comments

@dsisnero
Copy link

$ pacman -Ss mingw-w64-x86_64-fftw
mingw64/mingw-w64-x86_64-fftw 3.3.7-1 [installed]

in windows cmd:

c:\Dominic\programming\ruby\try_numo>gem install numo-fftw
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing numo-fftw:
ERROR: Failed to build gem native extension.

current directory: c:/Dominic/rubies/Ruby25-x64/lib/ruby/gems/2.5.0/gems/numo-fftw-0.1.1/ext/numo/fftw

c:/Dominic/rubies/Ruby25-x64/bin/ruby.exe -r ./siteconf20180417-19488-1ipt2ra.rb extconf.rb
checking for numo/narray.h... yes
checking for fftw3.h... yes
checking for -lfftw3... yes
creating Makefile

current directory: c:/Dominic/rubies/Ruby25-x64/lib/ruby/gems/2.5.0/gems/numo-fftw-0.1.1/ext/numo/fftw
make "DESTDIR=" clean

current directory: c:/Dominic/rubies/Ruby25-x64/lib/ruby/gems/2.5.0/gems/numo-fftw-0.1.1/ext/numo/fftw
make "DESTDIR="
generating fftw-x64-mingw32.def
erb -T- fftw.erb.c > fftw.c
compiling fftw.c
linking shared-object numo/fftw.so
fftw.o:fftw.c:(.text+0x9d): undefined reference to nary_check_contiguous' fftw.o:fftw.c:(.text+0x12a): undefined reference to nary_s_new_like'
fftw.o:fftw.c:(.text+0x136): undefined reference to nary_get_pointer_for_read' fftw.o:fftw.c:(.text+0x141): undefined reference to nary_get_pointer_for_write'
fftw.o:fftw.c:(.text+0x1d8): undefined reference to nary_get_pointer_for_read_write' fftw.o:fftw.c:(.text+0x1f1): undefined reference to nary_dup'
fftw.o:fftw.c:(.text+0x37f): undefined reference to na_ndloop3' fftw.o:fftw.c:(.text+0x4dc): undefined reference to na_ndloop3'
fftw.o:fftw.c:(.text+0x623): undefined reference to na_ndloop3' fftw.o:fftw.c:(.rdata$.refptr.nary_eDimensionError[.refptr.nary_eDimensionError]+0x0): undefined reference to nary_eDimensionError'
fftw.o:fftw.c:(.rdata$.refptr.na_data_type[.refptr.na_data_type]+0x0): undefined reference to na_data_type' fftw.o:fftw.c:(.rdata$.refptr.numo_cDComplex[.refptr.numo_cDComplex]+0x0): undefined reference to numo_cDComplex'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:259: fftw.so] Error 1

make failed, exit code 2

Gem files will remain installed in c:/Dominic/rubies/Ruby25-x64/lib/ruby/gems/2.5.0/gems/numo-fftw-0.1.1 for inspection.
Results logged to c:/Dominic/rubies/Ruby25-x64/lib/ruby/gems/2.5.0/extensions/x64-mingw32/2.5.0/numo-fftw-0.1.1/gem_make.out

@ghost
Copy link

ghost commented Dec 15, 2020

Any fix for this issue?

@icm7216
Copy link
Contributor

icm7216 commented Jan 27, 2021

Hi all:
My PR #3 to solve this problem has been merged. Try the latest commits.

in windows cmd:

>ridk exec pacman -S mingw-w64-x86_64-fftw
>git clone https://github.com/ruby-numo/numo-fftw.git
>cd numo-fftw
>gem build numo-fftw.gemspec
>gem install numo-fftw-0.1.1.gem

@ghost
Copy link

ghost commented Jan 27, 2021

This has installed successfully, but now Lurn still does not work.

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

2 participants