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

Error in compiling (current elevel2.0), Freebsd 9.2 [JIRA: RIAK-2046] #124

Open
Dryymoon opened this issue Aug 5, 2014 · 3 comments
Open

Comments

@Dryymoon
Copy link

Dryymoon commented Aug 5, 2014

c++ -Wall -O3 -fPIC -I /usr/FROBILL/ROOT_NEW/APPLICATION/deps/eleveldb/c_src/system/include -I. -I./include -fno-builtin-memcmp -D_REENTRANT -DOS_FREEBSD -DLEVELDB_PLATFORM_POSIX -DSNAPPY -O2 -g -DNDEBUG -fPIC -c port/port_posix.cc -o port/port_posix.o
rm -f libleveldb.a
ar -rs libleveldb.a db/builder.o db/c.o db/db_impl.o db/db_iter.o db/dbformat.o db/filename.o db/log_reader.o db/log_writer.o db/memtable.o db/repair.o db/table_cache.o db/version_edit.o db/version_set.o db/write_batch.o table/block.o table/block_builder.o table/filter_block.o table/format.o table/iterator.o table/merger.o table/table.o table/table_builder.o table/two_level_iterator.o util/arena.o util/bloom.o util/bloom2.o util/cache.o util/cache2.o util/coding.o util/comparator.o util/crc32c.o util/db_list.o util/env.o util/env_posix.o util/filter_policy.o util/flexcache.o util/hash.o util/histogram.o util/hot_threads.o util/logging.o util/murmurhash.o util/options.o util/perf_count.o util/status.o util/throttle.o port/port_posix.o
ar: warning: creating libleveldb.a
gmake[1]: Leaving directory `/usr/FROBILL/ROOT_NEW/APPLICATION/deps/eleveldb/c_src/leveldb'
Compiled src/eleveldb_bump.erl
Compiled src/eleveldb.erl
Compiling /usr/FROBILL/ROOT_NEW/APPLICATION/deps/eleveldb/c_src/eleveldb.cc
/usr/FROBILL/ROOT_NEW/APPLICATION/deps/eleveldb/c_src/eleveldb.cc: In function 'ERL_NIF_TERM parse_init_option(ErlNifEnv_, ERL_NIF_TERM, EleveldbOptions&)':
/usr/FROBILL/ROOT_NEW/APPLICATION/deps/eleveldb/c_src/eleveldb.cc:244: error: invalid conversion from 'size_t_' to 'long unsigned int_'
/usr/FROBILL/ROOT_NEW/APPLICATION/deps/eleveldb/c_src/eleveldb.cc:244: error: initializing argument 3 of 'int enif_get_ulong(ErlNifEnv_, ERL_NIF_TERM, long unsigned int_)'
/usr/FROBILL/ROOT_NEW/APPLICATION/deps/eleveldb/c_src/eleveldb.cc: In function 'ERL_NIF_TERM parse_open_option(ErlNifEnv_, ERL_NIF_TERM, leveldb::Options&)':
/usr/FROBILL/ROOT_NEW/APPLICATION/deps/eleveldb/c_src/eleveldb.cc:332: error: invalid conversion from 'size_t_' to 'long unsigned int_'
/usr/FROBILL/ROOT_NEW/APPLICATION/deps/eleveldb/c_src/eleveldb.cc:332: error: initializing argument 3 of 'int enif_get_ulong(ErlNifEnv_, ERL_NIF_TERM, long unsigned int_)'
ERROR: compile failed while processing /usr/FROBILL/ROOT_NEW/APPLICATION/deps/eleveldb: rebar_abort
gmake: *** [deps] Error 1

@matthewvon
Copy link
Contributor

This a 32 bit platform?

@Dryymoon
Copy link
Author

yes, 32 bit platform

@ptribble
Copy link

I'm seeing the same error on illumos (again, in 32-bits). As enif_get_ulong() will always require an unsigned long, why is memory_sz declared as a size_t? Looking at the usage of the result, it's not clear to me why it needs to be a size_t (and if it is, then maybe cast it when necessary).

@Basho-JIRA Basho-JIRA changed the title Error in compiling (current elevel2.0), Freebsd 9.2 Error in compiling (current elevel2.0), Freebsd 9.2 [JIRA: RIAK-2046] Jul 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants