{"action":"opened","issue":{"url":"https://api.github.com/repos/mquinson/simgrid/issues/63","repository_url":"https://api.github.com/repos/mquinson/simgrid","labels_url":"https://api.github.com/repos/mquinson/simgrid/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/mquinson/simgrid/issues/63/comments","events_url":"https://api.github.com/repos/mquinson/simgrid/issues/63/events","html_url":"https://github.com/mquinson/simgrid/issues/63","id":135463457,"number":63,"title":"Cannot build SimGrid 3.12 on mac ","user":{"login":"aliomarabdelazim","id":17411469,"avatar_url":"https://avatars.githubusercontent.com/u/17411469?v=3","gravatar_id":"","url":"https://api.github.com/users/aliomarabdelazim","html_url":"https://github.com/aliomarabdelazim","followers_url":"https://api.github.com/users/aliomarabdelazim/followers","following_url":"https://api.github.com/users/aliomarabdelazim/following{/other_user}","gists_url":"https://api.github.com/users/aliomarabdelazim/gists{/gist_id}","starred_url":"https://api.github.com/users/aliomarabdelazim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliomarabdelazim/subscriptions","organizations_url":"https://api.github.com/users/aliomarabdelazim/orgs","repos_url":"https://api.github.com/users/aliomarabdelazim/repos","events_url":"https://api.github.com/users/aliomarabdelazim/events{/privacy}","received_events_url":"https://api.github.com/users/aliomarabdelazim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-22T16:12:21Z","updated_at":"2016-02-22T16:12:21Z","closed_at":null,"body":"Hi, \r\n I’m trying to install SimGrid 3.12 on mac book pro, I have downloaded the source and when I used clang compiler to compile it, i got a lot of file not found errors, so I used GNU C compiler, in the terminal I wrote , \r\n“cmake -DCMAKE_C_COMPILER=gcc-5  -DCMAKE_CXX_COMPILER=G++-5 -DCC=gcc-5 -DCXX=g++-5 -DCMAKE_INSTALL_PREFIX=/opt/simgrid .”  \r\n\r\nand the output is \r\n“ Cmake version 3.4.3\r\n-- The C compiler identification is GNU 5.2.0\r\n-- The CXX compiler identification is GNU 5.2.0\r\n-- Checking whether C compiler has -isysroot\r\n-- Checking whether C compiler has -isysroot - yes\r\n-- Checking whether C compiler supports OSX deployment target flag\r\n-- Checking whether C compiler supports OSX deployment target flag - yes\r\n-- Check for working C compiler: /usr/local/bin/gcc-5\r\n-- Check for working C compiler: /usr/local/bin/gcc-5 -- works\r\n-- Detecting C compiler ABI info\r\n-- Detecting C compiler ABI info - done\r\n-- Detecting C compile features\r\n-- Detecting C compile features - done\r\n-- Checking whether CXX compiler has -isysroot\r\n-- Checking whether CXX compiler has -isysroot - yes\r\n-- Checking whether CXX compiler supports OSX deployment target flag\r\n-- Checking whether CXX compiler supports OSX deployment target flag - yes\r\n-- Check for working CXX compiler: /usr/local/bin/G++-5\r\n-- Check for working CXX compiler: /usr/local/bin/G++-5 -- works\r\n-- Detecting CXX compiler ABI info\r\n-- Detecting CXX compiler ABI info - done\r\nCMake Warning (dev) at /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/CMakeDetermineCompilerABI.cmake:88 (if):\r\n  Policy CMP0054 is not set: Only interpret if() arguments as variables or\r\n  keywords when unquoted.  Run \"cmake --help-policy CMP0054\" for policy\r\n  details.  Use the cmake_policy command to set the policy and suppress this\r\n  warning.\r\n\r\n  Quoted variables like \"CXX\" will no longer be dereferenced when the policy\r\n  is set to NEW.  Since the policy is not set the OLD behavior will be used.\r\nCall Stack (most recent call first):\r\n  /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/CMakeTestCXXCompiler.cmake:68 (CMAKE_DETERMINE_COMPILER_ABI)\r\n  CMakeLists.txt:5 (project)\r\nThis warning is for project developers.  Use -Wno-dev to suppress it.\r\n\r\n-- Performing Test HAVE_C_STACK_CLEANER\r\n-- Performing Test HAVE_C_STACK_CLEANER - Failed\r\n-- Performing Test COMPILER_SUPPORTS_CXX11\r\n-- Performing Test COMPILER_SUPPORTS_CXX11 - Success\r\n-- Performing Test COMPILER_SUPPORTS_C11\r\n-- Performing Test COMPILER_SUPPORTS_C11 - Success\r\n-- Found Perl: /usr/bin/perl (found version \"5.18.2\") \r\n-- System processor: x86_64 (x86_64, 64 bits)\r\n-- Looking for agraph.h\r\n-- Looking for agraph.h - not found\r\n-- Looking for cgraph.h\r\n-- Looking for cgraph.h - found\r\n-- Looking for graph.h\r\n-- Looking for graph.h - not found\r\n-- Looking for lib agraph\r\n-- Looking for lib agraph - not found\r\n-- Looking for lib cgraph\r\n-- Looking for lib cgraph - found\r\n-- Looking for lib graph\r\n-- Looking for lib graph - not found\r\n-- Looking for lib cdt\r\n-- Looking for lib cdt - found\r\n-- Looking for sigc++/sigc++.h\r\n-- Looking for sigc++/sigc++.h - not found\r\n-- Looking for sigc++config.h\r\n-- Looking for sigc++config.h - not found\r\n-- Looking for libsigc++\r\n-- Looking for libsigc++ - not found\r\n-- Boost version: 1.60.0\r\n-- Boost version: 1.60.0\r\n-- Found the following Boost libraries:\r\n--   context\r\nFound Boost.Context API v2\r\n-- Looking for dlopen in dl\r\n-- Looking for dlopen in dl - found\r\n-- Looking for backtrace in execinfo\r\n-- Looking for backtrace in execinfo - not found\r\n-- Looking for clock_gettime in rt\r\n-- Looking for clock_gettime in rt - not found\r\n-- Looking for pthread_create in pthread\r\n-- Looking for pthread_create in pthread - found\r\n-- Looking for sem_init in pthread\r\n-- Looking for sem_init in pthread - found\r\n-- Looking for sem_open in pthread\r\n-- Looking for sem_open in pthread - found\r\n-- Looking for sem_timedwait in pthread\r\n-- Looking for sem_timedwait in pthread - not found\r\n-- Looking for pthread_mutex_timedlock in pthread\r\n-- Looking for pthread_mutex_timedlock in pthread - not found\r\n-- Looking for 4 include files stdlib.h, ..., float.h\r\n-- Looking for 4 include files stdlib.h, ..., float.h - found\r\n-- Looking for valgrind/valgrind.h\r\n-- Looking for valgrind/valgrind.h - not found\r\n-- Looking for socket.h\r\n-- Looking for socket.h - not found\r\n-- Looking for stat.h\r\n-- Looking for stat.h - not found\r\n-- Looking for sys/stat.h\r\n-- Looking for sys/stat.h - found\r\n-- Looking for sys/ptrace.h\r\n-- Looking for sys/ptrace.h - not found\r\n-- Looking for windows.h\r\n-- Looking for windows.h - not found\r\n-- Looking for errno.h\r\n-- Looking for errno.h - found\r\n-- Looking for unistd.h\r\n-- Looking for unistd.h - found\r\n-- Looking for execinfo.h\r\n-- Looking for execinfo.h - found\r\n-- Looking for signal.h\r\n-- Looking for signal.h - found\r\n-- Looking for sys/time.h\r\n-- Looking for sys/time.h - found\r\n-- Looking for sys/param.h\r\n-- Looking for sys/param.h - found\r\n-- Looking for sys/sysctl.h\r\n-- Looking for sys/sysctl.h - found\r\n-- Looking for time.h\r\n-- Looking for time.h - found\r\n-- Looking for string.h\r\n-- Looking for string.h - found\r\n-- Looking for ucontext.h\r\n-- Looking for ucontext.h - found\r\n-- Looking for stdio.h\r\n-- Looking for stdio.h - found\r\n-- Looking for linux/futex.h\r\n-- Looking for linux/futex.h - not found\r\n-- Looking for gettimeofday\r\n-- Looking for gettimeofday - found\r\n-- Looking for nanosleep\r\n-- Looking for nanosleep - found\r\n-- Looking for getdtablesize\r\n-- Looking for getdtablesize - found\r\n-- Looking for sysconf\r\n-- Looking for sysconf - found\r\n-- Looking for readv\r\n-- Looking for readv - found\r\n-- Looking for popen\r\n-- Looking for popen - found\r\n-- Looking for signal\r\n-- Looking for signal - found\r\n-- Looking for snprintf\r\n-- Looking for snprintf - found\r\n-- Looking for vsnprintf\r\n-- Looking for vsnprintf - found\r\n-- Looking for asprintf\r\n-- Looking for asprintf - found\r\n-- Looking for vasprintf\r\n-- Looking for vasprintf - found\r\n-- Looking for makecontext\r\n-- Looking for makecontext - found\r\n-- Looking for process_vm_readv\r\n-- Looking for process_vm_readv - not found\r\n-- Looking for mmap\r\n-- Looking for mmap - found\r\n-- Looking for bin gfortran\r\n-- SMPI Fortran is disabled on Windows and MacOS platforms. Please contact the SimGrid team if you need it.\r\n-- Fortran support for smpi is disabled.\r\n-- Warning:  no support for SMPI automatic privatization on this platform\r\n-- Looking for dlfcn.h\r\n-- Looking for dlfcn.h - found\r\n-- We are using GNU dynamic linker\r\n-- sem_open is compilable\r\n-- sem_open is executable\r\n/Users/abdelazi/simgrid/tools/cmake/test_prog/prog_sem_init.c: In function 'main':\r\n/Users/abdelazi/simgrid/tools/cmake/test_prog/prog_sem_init.c:15:3: warning: 'sem_init' is deprecated [-Wdeprecated-declarations]\r\n   if (sem_init(&s, 0, 0) != 0) \r\n   ^\r\nIn file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/semaphore.h:29:0,\r\n                 from /Users/abdelazi/simgrid/tools/cmake/test_prog/prog_sem_init.c:10:\r\n/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/semaphore.h:55:5: note: declared here\r\n int sem_init(sem_t *, int, unsigned int) __deprecated;\r\n     ^\r\n-- sem_init is compilable\r\n-- Bin /Users/abdelazi/simgrid/sem_init exists!\r\n-- Warning: sem_init not executable\r\n-- Compilation output: ''\r\n-- Exit result of sem_init: 1\r\n-- Support for thread context factory\r\n-- Git version: 7f819b2 more cleanups in XML files\r\n-- Git date: 2016-02-18 14:14:03 +0100\r\n-- LTO does not seem usable -- try updating your build chain.\r\n-- Found Doxygen: /usr/local/bin/doxygen (found version \"1.8.11\") \r\n-- Doxygen version: 1.8.11\r\n\r\nConfiguration of package `simgrid':\r\n        BUILDNAME ...................: APPLE\r\n        SITE ........................: Darwin_15.3.0_x86_64\r\n        Release .....................: simgrid-3.13-devel (release build)\r\n\r\n        Compiler: C .................: /usr/local/bin/gcc-5 (GNU)\r\n                version .............: 5.2.0\r\n        Compiler: C++ ...............: /usr/local/bin/G++-5 (GNU)\r\n                version .............: 5.2.0\r\n        Linker: .....................: /usr/bin/ld\r\n                version .............: \r\n\r\n        CFlags ......................:  -g3 -std=gnu11   -O3 -funroll-loops -fno-strict-aliasing  -finline-functions   -D_XOPEN_SOURCE=700 -D_DARWIN_C_SOURCE\r\n        CXXFlags ....................:  -g3 -std=gnu++11 -O3 -funroll-loops -fno-strict-aliasing  -finline-functions \r\n        LDFlags .....................: -Wl,-search_paths_first -Wl,-headerpad_max_install_names\r\n        with LTO ....................: OFF\r\n\r\n        Compile NS-3 ................: NO  (hint: )\r\n        Compile Java ................: NO\r\n        Compile Scala................: \r\n        Compile Lua .................: \r\n        Compile Smpi ................: 1\r\n        Compile MPI testsuite .......: OFF\r\n        Compile Smpi f77 ............: 0\r\n        Compile Smpi f90 ............: 0\r\n        Compile Boost.Context support: 2\r\n\r\n        Maintainer mode .............: OFF\r\n        Documentation................: ON\r\n        Model checking ..............: 0\r\n        Tracing mode ................: ON\r\n        Jedule  mode ................: OFF\r\n        Latency bound ...............: OFF\r\n        Graphviz mode ...............: 1\r\n        Sigc++ mode .................: 0\r\n        Mallocators .................: ON\r\n\r\n        Simgrid dependencies ........: -lm /usr/local/lib/libboost_context-mt.dylib -lcgraph -Wl,-U -Wl,_smpi_simulated_main\r\n\r\n        INSTALL_PREFIX ..............: /opt/simgrid\r\n-- Configuring done\r\nCMake Warning (dev):\r\n  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run \"cmake\r\n  --help-policy CMP0042\" for policy details.  Use the cmake_policy command to\r\n  set the policy and suppress this warning.\r\n\r\n  MACOSX_RPATH is not specified for the following targets:\r\n\r\n   simgrid\r\n\r\nThis warning is for project developers.  Use -Wno-dev to suppress it.\r\n\r\n-- Generating done\r\nCMake Warning:\r\n  Manually-specified variables were not used by the project:\r\n\r\n    CC\r\n“ \r\n\r\nAfter that I typed make and it stopped at 5% \r\n“[ %5 ] Building CXX object CMakeFiles/simgrid.dir/src/simdag/sd_dotloader.cpp.o\r\nIn file included from /Users/abdelazi/simgrid/include/xbt/sysdep.h:14:0,\r\n                 from /Users/abdelazi/simgrid/include/xbt.h:13,\r\n                 from /Users/abdelazi/simgrid/include/simgrid/forward.h:10,\r\n                 from /Users/abdelazi/simgrid/include/simgrid/link.h:12,\r\n                 from /Users/abdelazi/simgrid/include/simgrid/simdag.h:14,\r\n                 from /Users/abdelazi/simgrid/src/simdag/simdag_private.h:11,\r\n                 from /Users/abdelazi/simgrid/src/simdag/sd_dotloader.cpp:7:\r\n/Users/abdelazi/simgrid/src/simdag/sd_dotloader.cpp: In function 'xbt_dynar_s* SD_dotload_generic(const char*, seq_par_t, bool)':\r\n/Users/abdelazi/simgrid/src/simdag/sd_dotloader.cpp:251:101: error: 'basename' was not declared in this scope\r\n     XBT_ERROR(\"The DOT described in %s is not a DAG. It contains a cycle.\", basename((char*)filename));\r\n                                                                                                     ^\r\n/Users/abdelazi/simgrid/include/xbt/log.h:649:40: note: in definition of macro XBT_ERROR'\r\n           _xbt_log_event_log(&_log_ev, __VA_ARGS__);                        \\\r\n                                        ^\r\nmake[2]: *** [CMakeFiles/simgrid.dir/src/simdag/sd_dotloader.cpp.o] Error 1\r\nmake[1]: *** [CMakeFiles/simgrid.dir/all] Error 2\r\nmake: *** [all] Error 2”\r\n\r\n\r\nanyone can help ? "}}