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

Compile error on macOS with "make -j2" command #266

Open
xuwang0010 opened this issue Nov 8, 2022 · 2 comments
Open

Compile error on macOS with "make -j2" command #266

xuwang0010 opened this issue Nov 8, 2022 · 2 comments

Comments

@xuwang0010
Copy link

I try to compile on macOS (M2 chip). ./autogen.sh and ./configure commands go well. But when I run make -j2 command, it returns error with these logs:

Making all in .
  CXX      src/bitsequence/libhdt_la-BitSequence375.lo
  CXX      src/dictionary/libhdt_la-KyotoDictionary.lo
src/bitsequence/BitSequence375.cpp:160:3: error: no matching function for call to 'bitset'
                bitset(&array[0], i);
                ^~~~~~
src/bitsequence/../util/bitutil.h:74:13: note: candidate function not viable: no known conversion from 'size_t *' (aka 'unsigned long *') to 'uint64_t *' (aka 'unsigned long long *') for 1st argument
inline void bitset(uint64_t * e, size_t p) {
            ^
src/bitsequence/../util/bitutil.h:91:13: note: candidate function not viable: no known conversion from 'size_t *' (aka 'unsigned long *') to 'uint32_t *' (aka 'unsigned int *') for 1st argument
inline void bitset(uint32_t * e, size_t p) {
            ^
src/bitsequence/BitSequence375.cpp:162:3: error: no matching function for call to 'bitclean'
                bitclean(&array[0], i);
                ^~~~~~~~
src/bitsequence/../util/bitutil.h:79:13: note: candidate function not viable: no known conversion from 'size_t *' (aka 'unsigned long *') to 'uint64_t *' (aka 'unsigned long long *') for 1st argument
inline void bitclean(uint64_t * e, size_t p) {
            ^
src/bitsequence/../util/bitutil.h:96:13: note: candidate function not viable: no known conversion from 'size_t *' (aka 'unsigned long *') to 'uint32_t *' (aka 'unsigned int *') for 1st argument
inline void bitclean(uint32_t * e, size_t p) {
            ^
src/bitsequence/BitSequence375.cpp:176:9: error: no matching function for call to 'bitget'
        return bitget(array, i);
               ^~~~~~
src/bitsequence/../util/bitutil.h:69:13: note: candidate function not viable: no known conversion from 'size_t *const' (aka 'unsigned long *const') to 'uint64_t *' (aka 'unsigned long long *') for 1st argument
inline bool bitget(uint64_t *e, size_t p) {
            ^
src/bitsequence/../util/bitutil.h:86:13: note: candidate function not viable: no known conversion from 'size_t *const' (aka 'unsigned long *const') to 'uint32_t *' (aka 'unsigned int *') for 1st argument
inline bool bitget(uint32_t *e, size_t p) {
            ^
3 errors generated.
make[2]: *** [src/bitsequence/libhdt_la-BitSequence375.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Could you help me with this issue?

@Jimflip
Copy link

Jimflip commented Sep 14, 2023

same here

zmughal added a commit to perlrdf/Alien-hdt_cpp that referenced this issue Nov 12, 2023
zmughal added a commit to perlrdf/Alien-hdt_cpp that referenced this issue Nov 12, 2023
@MarieMartin33
Copy link

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

3 participants