UKB and MAC OS X

33 views
Skip to first unread message

Luigi Asprino

unread,
May 26, 2016, 12:59:22 PM5/26/16
to ukblist
Hi,

Did anyone compile UKB on MAC OS X?
I've tried but I got this message from the make file.

$ make
g++ -c -O3 -Wall -Wno-deprecated -o common.o -I /usr/local/include common.cc
2.1.36.g3a2743d
g++ -c -O3 -Wall -Wno-deprecated -o globalVars.o -I /usr/local/include globalVars.cc
g++ -c -O3 -Wall -Wno-deprecated -o configFile.o -I /usr/local/include configFile.cc
g++ -c -O3 -Wall -Wno-deprecated -o fileElem.o -I /usr/local/include fileElem.cc
g++ -c -O3 -Wall -Wno-deprecated -o kbGraph.o -I /usr/local/include kbGraph.cc
g++ -c -O3 -Wall -Wno-deprecated -o kbGraph_common.o -I /usr/local/include kbGraph_common.cc
g++ -c -O3 -Wall -Wno-deprecated -o kbGraph_v16.o -I /usr/local/include kbGraph_v16.cc
In file included from kbGraph_v16.cc:4:
./wdict.h:172:28: error: field of type 'value_type' (aka '__wrap_iter<const ukb::winvdict_item_t *>') has private constructor
                        freq_const_iterator() : m_current(0) {}
                                                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:1239:31: note: declared private here
    _LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT : __i(__x) {}
                              ^
1 error generated.
make: *** [kbGraph_v16.o] Error 1

Any suggestions is welcome.

Thanks,
Luigi

Aitor Soroa

unread,
May 27, 2016, 2:51:14 AM5/27/16
to ukb...@googlegroups.com
Hi,

sorry but I don't know how to fix this issue. I don't have any mac
computer (nor have I any means to log-in to one) and thus can't try any
workaround.

best,
aitor

Luigi Asprino

unread,
May 30, 2016, 9:59:06 AM5/30/16
to ukblist
Hi,

In order to compile on my mac I changed the line 172 of the header wdict.h

- freq_const_iterator() : m_current(0) {}
+freq_const_iterator() : m_current() {}

This worked for me.

I got only the following waring
g++ -c -O3 -Wall -Wno-deprecated -o walkandprint.o -I /usr/local/include walkandprint.cc
In file included from walkandprint.cc:1:
./walkandprint.h:72:10: warning: private field 'm_bsize' is not used [-Wunused-private-field]
                size_t m_bsize; // bucket size
                       ^
Best,
Luigi

Aitor Soroa

unread,
May 30, 2016, 12:07:16 PM5/30/16
to ukb...@googlegroups.com
Hi,

thanks! I will apply the code in github repo.

best,
aitor
> --
> You received this message because you are subscribed to the Google Groups "ukblist" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ukblist+u...@googlegroups.com.
> To post to this group, send email to ukb...@googlegroups.com.
> Visit this group at https://groups.google.com/group/ukblist.
> For more options, visit https://groups.google.com/d/optout.


--
ondo izan
aitor
Reply all
Reply to author
Forward
0 new messages