Skip to content
New issue

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

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

Already on GitHub? # to your account

Error messages while trying to bundle install #123

Open
Jakanapes opened this issue Sep 27, 2023 · 1 comment
Open

Error messages while trying to bundle install #123

Jakanapes opened this issue Sep 27, 2023 · 1 comment

Comments

@Jakanapes
Copy link

DYLD_FALLBACK_LIBRARY_PATH= "clang -o conftest -I/Users/jakanapes/.rubies/ruby-3.1.0/include/ruby-3.1.0/x86_64-darwin20 -I/Users/jakanapes/.rubies/ruby-3.1.0/include/ruby-3.1.0/ruby/backward -I/Users/jakanapes/.rubies/ruby-3.1.0/include/ruby-3.1.0 -I.   -I/Users/jakanapes/.gem/ruby/3.1.0/gems/zookeeper-1.5.5/ext/include  -L/Users/jakanapes/.gem/ruby/3.1.0/gems/zookeeper-1.5.5/ext/lib -L/Users/jakanapes/.rubies/ruby-3.1.0/lib   -pipe conftest.c  -L/Users/jakanapes/.gem/ruby/3.1.0/gems/zookeeper-1.5.5/ext/lib  -L/Users/jakanapes/.gem/ruby/3.1.0/gems/zookeeper-1.5.5/ext/lib -L/Users/jakanapes/.rubies/ruby-3.1.0/lib -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/openssl@3/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/gdbm/lib     -lruby.3.1-static -framework CoreFoundation -lpthread -lgmp -ldl -lobjc    -lzookeeper_st_gem -lm"
In file included from conftest.c:1:
In file included from /Users/jakanapes/.rubies/ruby-3.1.0/include/ruby-3.1.0/ruby.h:38:
In file included from /Users/jakanapes/.rubies/ruby-3.1.0/include/ruby-3.1.0/ruby/ruby.h:25:
In file included from /Users/jakanapes/.rubies/ruby-3.1.0/include/ruby-3.1.0/ruby/defines.h:73:
In file included from /Users/jakanapes/.rubies/ruby-3.1.0/include/ruby-3.1.0/ruby/backward/2/attributes.h:42:
In file included from /Users/jakanapes/.rubies/ruby-3.1.0/include/ruby-3.1.0/ruby/internal/attr/pure.h:25:
/Users/jakanapes/.rubies/ruby-3.1.0/include/ruby-3.1.0/ruby/assert.h:132:1: error: '__declspec' attributes are not enabled; use '-fdeclspec' or '-fms-extensions' to enable support for __declspec attributes
RBIMPL_ATTR_NORETURN()
^
/Users/jakanapes/.rubies/ruby-3.1.0/include/ruby-3.1.0/ruby/internal/attr/noreturn.h:29:33: note: expanded from macro 'RBIMPL_ATTR_NORETURN'
# define RBIMPL_ATTR_NORETURN() __declspec(noreturn)

have tried install with both flags using with-cppflags, but no luck. Am I missing a dependency lib?

@Jakanapes
Copy link
Author

Was able to get it to compile with

bundle config build.zookeeper --with-cflags=-fms-extensions

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

No branches or pull requests

1 participant