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

MSI: Cannot build native extensions #129

Closed
ashie opened this issue Jul 9, 2020 · 3 comments
Closed

MSI: Cannot build native extensions #129

ashie opened this issue Jul 9, 2020 · 3 comments
Assignees

Comments

@ashie
Copy link
Member

ashie commented Jul 9, 2020

When I tried to install a C extension of Ruby on Windows, I got the following error:

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lx64-msvcrt-ruby270
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:261: bson_native.so] 繧ィ繝ゥ繝シ 1

make failed, exit code 2

Gem files will remain installed in C:/opt/td-agent/lib/ruby/gems/2.7.0/gems/bson-4.9.4 for inspection.
Results logged to C:/opt/td-agent/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/bson-4.9.4/gem_make.out

The cause is that td-agent-builder removes libx64-msvcrt-ruby270.dll.a in RubyInstaller.

@kenhys kenhys self-assigned this Jul 9, 2020
@kenhys
Copy link
Contributor

kenhys commented Jul 10, 2020

@ashie
Copy link
Member Author

ashie commented Jul 10, 2020

A workaround for released td-agent-4.0.0-x64.msi:

Extract libx64-msvcrt-ruby270.dll.a in rubyinstaller-2.7.1-1-x64.7z and put it into C:\opt\td-agent\lib

@ashie
Copy link
Member Author

ashie commented Jul 10, 2020

Fixed via #130

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