c++: error: unrecognized command line option '-fast'

User 685 | 9/7/2014, 9:37:57 AM

Hi,

I'm compiling 'graphlab' on a MacBook Pro:

David-Laxers-MacBook-Pro:release davidlaxer$ g++ --version g++ (MacPorts gcc48 4.8.3_0) 4.8.3

David-Laxers-MacBook-Pro:release davidlaxer$ uname -a Darwin David-Laxers-MacBook-Pro.local 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASEX8664 x86_64

David-Laxers-MacBook-Pro:CMakeFiles davidlaxer$ clang++ -v Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.3.0 Thread model: posix

============================================================ libjson version: 7.6.0 target: OS: Darwin ============================================================ c++: error: unrecognized command line option '-fast' make[3]: * [Objects_static/internalJSONNode.o] Error 1 make[2]: [../deps/json/src/libjson-stamp/libjson-build] Error 2 make[1]: ** [CMakeFiles/libjson.dir/all] Error 2 make: *** [all] Error 2

'-fast' appears to be an optimizer setting on Suns':

https://gcc.gnu.org/ml/gcc/1999-09n/msg00152.html

Any ideas?

Thanks in advance!

Comments

User 685 | 9/7/2014, 2:08:10 PM

Also, I'm running OS X 10.9.4 Mavericks on a dual core 3.0GHz machine with 8Gb of DRAM.


User 685 | 9/8/2014, 2:02:03 AM

http://stackoverflow.com/questions/25706131/c-error-unrecognized-command-line-option-fast


User 6 | 9/10/2014, 5:36:58 AM

Hi David, Which toolkit are you compiling? I suggest the following workaround 1) comment the following lines in the makefile: https://github.com/graphlab-code/graphlab/blob/master/CMakeLists.txt#L369-L382 2) ./configure 3) cd release/toolkits/collaborative_filtering/ # or any other 4) make

Let me know if this works for you.


User 685 | 9/10/2014, 7:10:02 AM

Progress.

I compiled 'debug'.

make[3]: * [all-local] Error 139 make[2]: [../deps/tcmalloc/src/libtcmalloc-stamp/libtcmalloc-build] Error 2 make[1]: ** [CMakeFiles/libtcmalloc.dir/all] Error 2 make: *** [all] Error 2


User 6 | 9/10/2014, 7:41:23 AM

the error message itself is missing. please send us the full msg!


User 685 | 9/10/2014, 9:26:02 AM

Here's 'release':

David-Laxers-MacBook-Pro:debug davidlaxer$ cd ../release David-Laxers-MacBook-Pro:release davidlaxer$ make Scanning dependencies of target libbz2 [ 4%] Built target libbz2 Scanning dependencies of target boost [ 7%] Built target boost Scanning dependencies of target eigen [ 11%] Built target eigen Scanning dependencies of target libevent [ 15%] Built target libevent Scanning dependencies of target libtcmalloc [ 15%] Performing build step for 'libtcmalloc' /bin/sh: line 1: 36738 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36742 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36745 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36748 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36751 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" make[3]: * [all-local] Error 139 make[2]: [../deps/tcmalloc/src/libtcmalloc-stamp/libtcmalloc-build] Error 2 make[1]: ** [CMakeFiles/libtcmalloc.dir/all] Error 2 make: *** [all] Error 2 D


User 685 | 9/10/2014, 4:20:54 PM

I tried attaching a log of the build, but it's not being uploaded. Is there a size threshold on upload file?

-rw-r--r-- 1 davidlaxer staff 539682 Sep 10 10:15 build.out


User 685 | 9/10/2014, 8:51:46 PM

libtool: link: g++ -DTHREADSAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posixmemalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fno-omit-frame-pointer -g -O2 -DTHREADSAFE -o .libs/tcmallocandprofilerunittest tcmallocandprofilerunittest-tcmallocunittest.o tcmallocandprofilerunittest-testutil.o -Wl,-bindatload ./.libs/libtcmallocandprofiler.dylib /bin/sh: line 1: 35109 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 35113 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 35116 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" objcopy(35119,0x7fff7da5a310) malloc: * error for object 0x7f92b2800420: pointer being freed was not allocated * set a breakpoint in mallocerrorbreak to debug /bin/sh: line 1: 35119 Abort trap: 6 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 35122 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrow_t -W ZdlPv -W ZdaPv "$lib" make[3]: * [all-local] Error 139 make[2]: [../deps/tcmalloc/src/libtcmalloc-stamp/libtcmalloc-build] Error 2 make[1]: ** [CMakeFiles/libtcmalloc.dir/all] Error 2 make: *** [all] Error 2


User 685 | 9/10/2014, 10:30:51 PM

libtool: link: g++ -DTHREADSAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posixmemalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fno-omit-frame-pointer -g -O2 -DTHREADSAFE -o .libs/tcmallocandprofilerunittest tcmallocandprofilerunittest-tcmallocunittest.o tcmallocandprofilerunittest-testutil.o -Wl,-bindatload ./.libs/libtcmallocandprofiler.dylib /bin/sh: line 1: 35109 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 35113 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 35116 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" objcopy(35119,0x7fff7da5a310) malloc: * error for object 0x7f92b2800420: pointer being freed was not allocated * set a breakpoint in mallocerrorbreak to debug /bin/sh: line 1: 35119 Abort trap: 6 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 35122 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrow_t -W ZdlPv -W ZdaPv "$lib" make[3]: * [all-local] Error 139 make[2]: [../deps/tcmalloc/src/libtcmalloc-stamp/libtcmalloc-build] Error 2 make[1]: ** [CMakeFiles/libtcmalloc.dir/all] Error 2 make: *** [all] Error 2


User 6 | 9/11/2014, 1:42:55 AM

From some reason tcmalloc install fails. The error looks strange. You may be out of disk space, memory, writing privileges or some other resource issue. At any way you can try to configure without tcmalloc using the config option: ./configure --no_tcmalloc

let us know if this works for you. I suggest to switch machine if it does not work.


User 685 | 9/11/2014, 1:51:38 PM

[ 39%] Building CXX object modules/highgui/CMakeFiles/opencvhighgui.dir/src/windowcocoa.mm.o In file included from /Users/davidlaxer/graphlab/deps/local/include/Eigen/Core:248:0, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/core/include/opencv2/core/internal.hpp:192, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/precomp.hpp:50, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:43: /Users/davidlaxer/graphlab/deps/local/include/Eigen/src/Core/util/Memory.h: In function 'Index Eigen::internal::firstaligned(const Scalar*, Index)': /Users/davidlaxer/graphlab/deps/local/include/Eigen/src/Core/util/Memory.h:449:48: warning: typedef 'Packet' locally defined but not used [-Wunused-local-typedefs] typedef typename packettraits<Scalar>::type Packet; ^ In file included from /Users/davidlaxer/graphlab/deps/local/include/Eigen/Core:324:0, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/core/include/opencv2/core/internal.hpp:192, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/precomp.hpp:50, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:43: /Users/davidlaxer/graphlab/deps/local/include/Eigen/src/Core/products/SelfadjointMatrixVector.h: In static member function 'static void Eigen::internal::selfadjointmatrixvector_product<Scalar, Index, StorageOrder, UpLo, ConjugateLhs, ConjugateRhs, Version>::run(Index, const Scalar, Index, const Scalar, Index, Scalar*, Scalar)': /Users/davidlaxer/graphlab/deps/local/include/Eigen/src/Core/products/SelfadjointMatrixVector.h:38:44: warning: typedef 'RealScalar' locally defined but not used [-Wunused-local-typedefs] typedef typename NumTraits<Scalar>::Real RealScalar; ^ /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm: In function 'void cvDestroyAllWindows()': /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:200:23: error: expected ';' before 'in' for(NSString *key in list) { ^ /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:200:23: error: 'in' was not declared in this scope /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:200:26: error: expected ';' before 'list' for(NSString *key in list) { ^ /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:200:26: warning: for increment expression has no effect [-Wunused-value] /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm: In function 'void cvShowImage(const char, const CvArr)': /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:230:31: error: expected ';' before 'in' for(NSString *key in [window sliders]) { ^ /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:230:31: error: 'in' was not declared in this scope /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:230:42: error: expected ']' before 'sliders' for(NSString *key in [window sliders]) { ^ /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:230:42: error: expected ';' before 'sliders' /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:230:42: error: 'sliders' was not declared in this scope /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:230:49: error: expected ')' before ']' token for(NSString *key in [window sliders]) {

...


User 6 | 9/11/2014, 1:56:47 PM

Hi David, This error is known and Virginia Tech is working on providing a fix soon. I suggest compiling toolkits which do not depend on the opencv module, for example collaborativefiltering or graphanalytics.


User 685 | 9/11/2014, 3:42:30 PM

Thank YOU!

:)


User 685 | 9/11/2014, 5:54:53 PM

/Users/davidlaxer/graphlab/src/graphlab/options/graphlab_options.hpp:38:10: fatal error: 'omp.h' file not found

include <omp.h>

Is this part of openmpi?

David-Laxers-MacBook-Pro:graphlab davidlaxer$ sudo port install openmpi Password: ---> Computing dependencies for openmpi ---> Cleaning openmpi ---> Scanning binaries for linking errors ---> No broken files found.

David-Laxers-MacBook-Pro:graphlab davidlaxer$ port list select openmpi openmpi @1.7.5 science/openmpi

Scanning dependencies of target graphlab [ 43%] Building CXX object src/graphlab/CMakeFiles/graphlab.dir/options/commandlineoptions.cpp.o In file included from /Users/davidlaxer/graphlab/src/graphlab/options/commandlineoptions.cpp:22: In file included from /Users/davidlaxer/graphlab/src/graphlab/options/commandlineoptions.hpp:31: In file included from /Users/davidlaxer/graphlab/deps/local/include/boost/programoptions.hpp:15: In file included from /Users/davidlaxer/graphlab/deps/local/include/boost/programoptions/optionsdescription.hpp:16: In file included from /Users/davidlaxer/graphlab/deps/local/include/boost/sharedptr.hpp:17: /Users/davidlaxer/graphlab/deps/local/include/boost/smartptr/sharedptr.hpp:491:41: warning: rvalue references are a C++11 extension [-Wc++11-extensions] sharedptr( std::uniqueptr< Y, D > && r ): px( r.get() ), pn() ^ /Users/davidlaxer/graphlab/deps/local/include/boost/smartptr/sharedptr.hpp:556:51: warning: rvalue references are a C++11 extension [-Wc++11-extensions] sharedptr & operator=( std::uniqueptr<Y, D> && r ) ^ /Users/davidlaxer/graphlab/deps/local/include/boost/smartptr/sharedptr.hpp:558:55: warning: rvalue references are a C++11 extension [-Wc++11-extensions] thistype( staticcast< std::uniqueptr<Y, D> && >( r ) ).swap(*this); ^ In file included from /Users/davidlaxer/graphlab/src/graphlab/options/commandlineoptions.cpp:22: In file included from /Users/davidlaxer/graphlab/src/graphlab/options/commandlineoptions.hpp:34: /Users/davidlaxer/graphlab/src/graphlab/options/graphlaboptions.hpp:38:10: fatal error: 'omp.h' file not found

include <omp.h>

     ^

3 warnings and 1 error generated. make[2]: * [src/graphlab/CMakeFiles/graphlab.dir/options/commandlineoptions.cpp.o] Error 1 make[1]: [src/graphlab/CMakeFiles/graphlab.dir/all] Error 2 make: ** [all] Error 2


User 685 | 9/11/2014, 11:16:28 PM

Here's a stackoverflow thread that discusses the issue:

http://stackoverflow.com/questions/20340117/omp-h-library-isnt-found-in-the-gcc-version-4-2-1-in-mavericks

David-Laxers-MacBook-Pro:caffe davidlaxer$ which gcc /opt/local/bin/gccp 11 13:45:16 on ttys018 David-Laxers-MacBook-Pro:caffe davidlaxer$ gcc --version gcc (MacPorts gcc48 4.8.3_0) 4.8.3


User 6 | 9/15/2014, 6:42:44 PM

Hi David, Can you try the following. I think it's due to the patch file located in patches/opencvapplerpath.patch. You can ignore this patch by commenting the line 315(patch_command) in CMakeLists.txt, if you are not on an APPLE system.


User 752 | 9/20/2014, 7:14:19 PM

  1. I saw "VT is looking into this", so I had to comment.

Neither of these problems (omp.h not found and -fast problem with libjson) seem to be relevant to VT contributed code (CV or Graphical Models toolkits). The first problem (omp.h) seems to be about lack of openmpi support in clang, and the second seems to be about the use of an incorrect CXX flag (-fast instead of -Ofast or -O3) with g++ (from brew or macports).

  1. Having said, I am actually looking into this because right now I'm stuck as well. Can't seem to compile graphlab on Mac OS 10.9.5 with gcc 4.9.1 (from brew) or clang version 6.

Dhruv


User 752 | 9/20/2014, 7:41:42 PM

Found the culprit for the -fast flag problem. Look at libjson makefile L133:

Defaults

ifeq ($(OS), Darwin) cxxflagsdefault = -c -fast -ffast-math -fexpensive-optimizations -DNDEBUG else cxxflagsdefault = -c -O3 -ffast-math -fexpensive-optimizations -DNDEBUG endif

It's adding -fast on Macs. Not sure why. I believe clang just issues a warning about that flag and moves on. gcc (with brew) gives an error.

Since libjson is being downloaded from graphlab.org, please get someone from the graphlab team to update the download link (changing -fast to -Ofast).


User 752 | 9/20/2014, 9:50:14 PM

Wow, talk about a massive timesink. I fixed the omp.h problem.

Main graphlab codebase had a bug. It had nothing to do with the toolkits or any VT contributed code.

src/graphlab/graphlaboptions.hpp:L38 should have been checking whether __NOOPENMP__ is defined (which it is on Macs because clang doesn't support it; not out of the box anyway).

I will be sending a pull request.

Danny -- someone from more familiar with the main code should have been looking at this. I am not sure I'll be able to fix anything deeper than this.


User 6 | 9/21/2014, 5:19:45 AM

Thanks Dhruv for your great help! Regarding libjson command line flags we will fix it ASAP. Regarding open mp, the problem is that without openmp you will be running on a single core and thus performance will suck. A subset of the compilers on MAC OS support open mp, need to switch compiler to gcc.


User 685 | 9/22/2014, 1:08:25 PM

Hi,

I did a 'pull' request to GitHub to incorporate the latest changes then did:

$ ./configure --notcmalloc $ cd toolkits/topicmodeling $ make ...

3 warnings generated. Linking CXX executable cgs_lda ld: library not found for -ljson clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: * [toolkits/topicmodeling/cgslda] Error 1 make[1]: * [toolkits/topicmodeling/CMakeFiles/cgslda.dir/all] Error 2 make: *** [all] Error 2


User 6 | 9/22/2014, 1:34:34 PM

Hi David, Please take the latest (using git pull) and reconfigure. I have commented out the dependency for libjson since it was hardly used in the code anyway.


User 685 | 9/22/2014, 3:04:21 PM

ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: * [toolkits/topicmodeling/cgslda] Error 1 make[1]: * [toolkits/topicmodeling/CMakeFiles/cgslda.dir/all] Error 2 make: *** [all] Error 2

Please see make.txt for detailed output.


User 6 | 9/22/2014, 3:19:49 PM

Now boost is not detected property.. :-) Maybe you got into a stale condition try to cd graphlab make clean rm -fR deps ./configure

and compile again everything


User 685 | 9/22/2014, 6:20:30 PM

Same result:

533 cd graphlab 534 make clean 535 rm -fR deps 536 ./configure --notcmalloc 537 cd debug/toolkits/topicmodeling/ 538 make clean 539 make

ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: * [toolkits/topicmodeling/cgslda] Error 1 make[1]: * [toolkits/topicmodeling/CMakeFiles/cgslda.dir/all] Error 2 make: *** [all] Error 2


User 6 | 9/22/2014, 6:33:41 PM

error is truncated - please add a few more lines - which symbols are missing?


User 685 | 9/22/2014, 7:00:00 PM

Attached some of the output. Please let me know if you need more.

THANKS FOR YOUR HELP!


User 6 | 9/23/2014, 6:03:17 AM

Very long output but no error is inside this output... Maybe the error was printed to stderr and this is why it is not present in your file?


User 685 | 9/23/2014, 1:21:14 PM

It looks like it's still not finding boost... (see make2.txt below).


User 685 | 9/25/2014, 4:31:18 PM

[ 40%] Building CXX object modules/highgui/CMakeFiles/opencvhighgui.dir/src/windowcocoa.mm.o In file included from /Users/davidlaxer/graphlab/deps/local/include/Eigen/Core:248:0, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/core/include/opencv2/core/internal.hpp:192, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/precomp.hpp:50, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:43: /Users/davidlaxer/graphlab/deps/local/include/Eigen/src/Core/util/Memory.h: In function 'Index Eigen::internal::firstaligned(const Scalar*, Index)': /Users/davidlaxer/graphlab/deps/local/include/Eigen/src/Core/util/Memory.h:449:48: warning: typedef 'Packet' locally defined but not used [-Wunused-local-typedefs] typedef typename packettraits<Scalar>::type Packet; ^ In file included from /Users/davidlaxer/graphlab/deps/local/include/Eigen/Core:324:0, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/core/include/opencv2/core/internal.hpp:192, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/precomp.hpp:50, from /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:43: /Users/davidlaxer/graphlab/deps/local/include/Eigen/src/Core/products/SelfadjointMatrixVector.h: In static member function 'static void Eigen::internal::selfadjointmatrixvector_product<Scalar, Index, StorageOrder, UpLo, ConjugateLhs, ConjugateRhs, Version>::run(Index, const Scalar, Index, const Scalar, Index, Scalar*, Scalar)': /Users/davidlaxer/graphlab/deps/local/include/Eigen/src/Core/products/SelfadjointMatrixVector.h:38:44: warning: typedef 'RealScalar' locally defined but not used [-Wunused-local-typedefs] typedef typename NumTraits<Scalar>::Real RealScalar; ^ /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm: In function 'void cvDestroyAllWindows()': /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:200:23: error: expected ';' before 'in' for(NSString *key in list) { ^ /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:200:23: error: 'in' was not declared in this scope /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:200:26: error: expected ';' before 'list' for(NSString *key in list) { ^ ...

/Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm: At global scope: /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:756:1: warning: unused parameter 'value' [-Wunused-parameter] @end ^ /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:756:1: warning: unused parameter 'value' [-Wunused-parameter] /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:756:1: warning: unused parameter 'value' [-Wunused-parameter] /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:756:1: warning: unused parameter 'value' [-Wunused-parameter] /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:756:1: warning: unused parameter 'value' [-Wunused-parameter] /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm:756:1: warning: unused parameter 'value' [-Wunused-parameter] /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowcocoa.mm: In function '-[CVView setFrameSize:]': /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/window_cocoa.mm:845:23: error: expected ';' before 'in' for(NSString *key in [cvwindow sliders]) { ^ /Users/davidlaxer/graphlab/deps/opencv/src/opencv/modules/highgui/src/windowHTTP/1.1 200 OK Transfer-Encoding: chunked Date: Thu, 21 Jul 2016 23:13:36 GMT Server: Warp/3.2.6 Content-Type: application/json

016A ["37zyefqi2sweveyp","42fn7zeo6v5ui427","66pt5sk2wz2jrbzu","awoljknjigytdyls","cj2lanoogknwopto","cnm3adnh35xmsx3f","ebxs4t2y6xr5izzy","eg5zus2pz72mr7xb","exshwew2w2jv3n7r","hxrxgzvgms3incmf","hymu5oh2f5ctk5jr","jkisbjnul226jria","lag7djeljbjng6bu","o3l65o4qzcxs327j","qsk2jzo2zh523r24","t7k6g7fkndoggutd","xfllvjyax4inadxh","ygtjzi2wkfonj3z7","yycjajwpguyno4je"] 0


User 685 | 9/25/2014, 4:31:18 PM

From Release:

[ 15%] Performing build step for 'libtcmalloc' /bin/sh: line 1: 36738 <b class="Bold"><i class="Italic">Segmentation fault:</i></b> 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36742 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36745 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36748 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36751 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" make[3]: * [all-local] Error 139 make[2]: [../deps/tcmalloc/src/libtcmalloc-stamp/libtcmalloc-build] Error 2 make[1]: ** [CMakeFiles/libtcmalloc.dir/all] Error 2 make: *** [all] Error 2

From Debug:

libtool: link: g++ -DTHREADSAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posixmemalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fno-omit-frame-pointer -g -O2 -DTHREADSAFE -o .libs/tcmallocandprofilerunittest tcmallocandprofilerunittest-tcmallocunittest.o tcmallocandprofilerunittest-testutil.o -Wl,-bindatload ./.libs/libtcmallocandprofiler.dylib /bin/sh: line 1: 35109 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 35113 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 35116 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" objcopy(35119,0x7fff7da5a310) malloc: * error for object 0x7f92b2800420: pointer being freed was not allocated * set a breakpoint in mallocerror_break to debug /bin/sh: line 1: 35119 Abort trap: 6 objcopy -W mallocHTTP/1.1 200 OK Transfer-Encoding: chunked Date: Thu, 21 Jul 2016 23:13:36 GMT Server: Warp/3.2.6 Content-Type: application/json

016A ["37zyefqi2sweveyp","42fn7zeo6v5ui427","66pt5sk2wz2jrbzu","awoljknjigytdyls","cj2lanoogknwopto","cnm3adnh35xmsx3f","ebxs4t2y6xr5izzy","eg5zus2pz72mr7xb","exshwew2w2jv3n7r","hxrxgzvgms3incmf","hymu5oh2f5ctk5jr","jkisbjnul226jria","lag7djeljbjng6bu","o3l65o4qzcxs327j","qsk2jzo2zh523r24","t7k6g7fkndoggutd","xfllvjyax4inadxh","ygtjzi2wkfonj3z7","yycjajwpguyno4je"] 0


User 685 | 9/25/2014, 4:31:18 PM

From Release:

[ 15%] Performing build step for 'libtcmalloc' /bin/sh: line 1: 36738 <b class="Bold"><i class="Italic">Segmentation fault:</i></b> 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36742 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36745 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36748 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 36751 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" make[3]: * [all-local] Error 139 make[2]: [../deps/tcmalloc/src/libtcmalloc-stamp/libtcmalloc-build] Error 2 make[1]: ** [CMakeFiles/libtcmalloc.dir/all] Error 2 make: *** [all] Error 2

From Debug:

libtool: link: g++ -DTHREADSAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -fno-builtin-malloc -fno-builtin-free -fno-builtin-realloc -fno-builtin-calloc -fno-builtin-cfree -fno-builtin-memalign -fno-builtin-posixmemalign -fno-builtin-valloc -fno-builtin-pvalloc -Wno-unused-result -fno-omit-frame-pointer -g -O2 -DTHREADSAFE -o .libs/tcmallocandprofilerunittest tcmallocandprofilerunittest-tcmallocunittest.o tcmallocandprofilerunittest-testutil.o -Wl,-bindatload ./.libs/libtcmallocandprofiler.dylib /bin/sh: line 1: 35109 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 35113 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" /bin/sh: line 1: 35116 Segmentation fault: 11 objcopy -W malloc -W free -W realloc -W calloc -W cfree -W memalign -W posixmemalign -W valloc -W pvalloc -W mallocstats -W mallopt -W mallinfo -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv -W Znwm -W ZnwmRKSt9nothrowt -W Znam -W ZnamRKSt9nothrowt -W ZdlPv -W ZdaPv "$lib" objcopy(35119,0x7fff7da5a310) malloc: * error for object 0x7f92b2800420: pointer being freed was not allocated * set a breakpoint in mallocerror_break to debug /bin/sh: line 1: 35119 Abort trap: 6 objcopy -W mallocHTTP/1.1 200 OK Transfer-Encoding: chunked Date: Thu, 21 Jul 2016 23:13:36 GMT Server: Warp/3.2.6 Content-Type: application/json

016A ["37zyefqi2sweveyp","42fn7zeo6v5ui427","66pt5sk2wz2jrbzu","awoljknjigytdyls","cj2lanoogknwopto","cnm3adnh35xmsx3f","ebxs4t2y6xr5izzy","eg5zus2pz72mr7xb","exshwew2w2jv3n7r","hxrxgzvgms3incmf","hymu5oh2f5ctk5jr","jkisbjnul226jria","lag7djeljbjng6bu","o3l65o4qzcxs327j","qsk2jzo2zh523r24","t7k6g7fkndoggutd","xfllvjyax4inadxh","ygtjzi2wkfonj3z7","yycjajwpguyno4je"] 0