Skip to content

Compilation error on Windows #4

@agrimm

Description

@agrimm

Running the following command on Windows with RubyInstaller installed Ruby

gem install --verbose --force pkg\laser-0.5.2.gem

gave me

Building native extensions.  This could take a while...
ERROR:  Error installing pkg\laser-0.5.2.gem:
        ERROR: Failed to build gem native extension.

        C:/Ruby19/bin/ruby.exe extconf.rb
checking for main() in -lstdc++... yes
creating Makefile

make
g++ -I. -IC:/Ruby19/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby19/include/ruby-1.9.1/ruby/backward -I/C/Ruby19/include/ruby-1.9.1 -I.   -O2 -g -Wall -Wno-parentheses     -o BasicBlock.o -c BasicBlock.cp
p
In file included from BasicBlock.cpp:1:0:
BasicBlock.h: In constructor 'Laser::BasicBlock::BasicBlock()':
BasicBlock.h:26:100: warning: converting to non-pointer type 'VALUE' from NULL
BasicBlock.h:26:100: warning: converting to non-pointer type 'VALUE' from NULL
g++ -shared -s -o BasicBlock.so BasicBlock.o -L. -LC:/Ruby19/lib -L.  -Wl,--enable-auto-image-base,--enable-auto-import   -lmsvcrt-ruby191 -lstdc++  -lshell32 -lws2_32
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1\libstdc++.a(stdexcept.o):stdexcept.cc:(.text+0x0): multiple definition of `std::logic_error::what() const'
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1/libstdc++.dll.a(d000700.o):(.text+0x0): first defined here
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1\libstdc++.a(stdexcept.o):stdexcept.cc:(.text+0xb0): multiple definition of `std::logic_error::~logic_error()'
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1/libstdc++.dll.a(d001554.o):(.text+0x0): first defined here
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1\libstdc++.a(stdexcept.o):stdexcept.cc:(.text+0x148): multiple definition of `std::logic_error::logic_error(std::string const&)'
c:/devkit/mingw/bin/../lib/gcc/mingw32/4.5.1/libstdc++.dll.a(d001551.o):(.text+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [BasicBlock.so] Error 1


Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/laser-0.5.2 for inspection.
Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/laser-0.5.2/ext/laser/gem_make.out

Let me know if you need more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions