<div dir="ltr">Hi,<div><br></div><div>I got the latest LLVM code from git repo, and tried to compile that on my OSX 10.9.4 machine. But I got the error at "make" step: </div><div><br></div><div>    "Makefile:151: /Makefile.rules: No such file or directory"</div><div><br></div><div>Below is the output of "configure" & "make". Any idea what is wrong?</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div><div>







<p class="">$ ./configure --enable-targets=mips</p><p class="">checking for clang... clang</p><p class="">checking for C compiler default output file name... a.out</p><p class="">checking whether the C compiler works... yes</p><p class="">checking whether we are cross compiling... no</p><p class="">checking for suffix of executables... </p><p class="">checking for suffix of object files... o</p><p class="">checking whether we are using the GNU C compiler... yes</p><p class="">checking whether clang accepts -g... yes</p><p class="">checking for clang option to accept ISO C89... none needed</p><p class="">checking for clang++... clang++</p><p class="">checking whether we are using the GNU C++ compiler... yes</p><p class="">checking whether clang++ accepts -g... yes</p><p class="">checking how to run the C preprocessor... clang -E</p><p class="">checking whether clang works... yes</p><p class="">checking whether GCC or Clang is our host compiler... clang</p><p class="">checking build system type... x86_64-apple-darwin13.3.0</p><p class="">checking host system type... x86_64-apple-darwin13.3.0</p><p class="">checking target system type... x86_64-apple-darwin13.3.0</p><p class="">checking type of operating system we're going to host on... Darwin</p><p class="">checking type of operating system we're going to target... Darwin</p><p class="">checking target architecture... x86_64</p><p class="">checking whether Clang is new enough... yes</p><p class="">checking whether Clang will select a modern C++ standard library... yes</p><p class="">checking optimization flags... -O3</p><p class="">checking for GNU make... make</p><p class="">checking whether ln -s works... yes</p><p class="">checking for nm... /opt/local/bin/nm</p><p class="">checking for cmp... /usr/bin/cmp</p><p class="">checking for cp... /bin/cp</p><p class="">checking for date... /bin/date</p><p class="">checking for find... /usr/bin/find</p><p class="">checking for grep... /usr/bin/grep</p><p class="">checking for mkdir... /bin/mkdir</p><p class="">checking for mv... /bin/mv</p><p class="">checking for ranlib... ranlib</p><p class="">checking for ar... ar</p><p class="">checking for rm... /bin/rm</p><p class="">checking for sed... /usr/bin/sed</p><p class="">checking for tar... /usr/bin/tar</p><p class="">checking for pwd... /bin/pwd</p><p class="">checking for dot... echo dot</p><p class="">checking for a BSD-compatible install... /usr/bin/install -c</p><p class="">checking for bzip2... /usr/bin/bzip2</p><p class="">checking for cat... /bin/cat</p><p class="">checking for doxygen... no</p><p class="">checking for groff... /usr/bin/groff</p><p class="">checking for gzip... /usr/bin/gzip</p><p class="">checking for pdfroff... /usr/bin/pdfroff</p><p class="">checking for zip... /usr/bin/zip</p><p class="">checking for ocamlc... no</p><p class="">checking for ocamlopt... no</p><p class="">checking for ocamldep... no</p><p class="">checking for ocamldoc... no</p><p class="">checking for gas... no</p><p class="">checking for as... /opt/local/bin/as</p><p class="">checking for linker version... 136</p><p class="">checking for compiler -Wl,-R<path> option... no</p><p class="">checking for compiler -rdynamic option... yes</p><p class="">checking for compiler -Wl,--version-script option... no</p><p class="">checking for grep that handles long lines and -e... (cached) /usr/bin/grep</p><p class="">checking for egrep... /usr/bin/grep -E</p><p class="">checking for ANSI C header files... yes</p><p class="">checking for sys/types.h... yes</p><p class="">checking for sys/stat.h... yes</p><p class="">checking for stdlib.h... yes</p><p class="">checking for string.h... yes</p><p class="">checking for memory.h... yes</p><p class="">checking for strings.h... yes</p><p class="">checking for inttypes.h... yes</p><p class="">checking for stdint.h... yes</p><p class="">checking for unistd.h... yes</p><p class="">checking errno.h usability... yes</p><p class="">checking errno.h presence... yes</p><p class="">checking for errno.h... yes</p><p class="">checking tool compatibility... ok</p><p class="">checking optional compiler flags... -Wno-variadic-macros -Wno-missing-field-initializers -Wcovered-switch-default -Wno-uninitialized </p><p class="">checking for python... /usr/bin/python</p><p class="">checking for python >= 2.5... /usr/bin/python (2.7.5)</p><p class="">checking for sin in -lm... yes</p><p class="">checking for library containing dlopen... none required</p><p class="">checking for library containing clock_gettime... no</p><p class="">checking for library containing setupterm... -lcurses</p><p class="">checking for library containing el_init... -ledit</p><p class="">checking for library containing mallinfo... no</p><p class="">checking for pthread_mutex_init in -lpthread... yes</p><p class="">checking for library containing pthread_mutex_lock... none required</p><p class="">checking for library containing pthread_rwlock_init... none required</p><p class="">checking for library containing pthread_getspecific... none required</p><p class="">checking for compress2 in -lz... yes</p><p class="">checking for xml2-config... xml2-config</p><p class="">checking for libxml2 includes... -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2</p><p class="">checking for xmlReadFile in -lxml2... yes</p><p class="">checking for dirent.h that defines DIR... yes</p><p class="">checking for library containing opendir... none required</p><p class="">checking for MAP_ANONYMOUS vs. MAP_ANON... no</p><p class="">checking whether stat file-mode macros are broken... no</p><p class="">checking for sys/wait.h that is POSIX.1 compatible... yes</p><p class="">checking whether time.h and sys/time.h may both be included... yes</p><p class="">checking how to run the C++ preprocessor... clang++ -E</p><p class="">checking cxxabi.h usability... yes</p><p class="">checking cxxabi.h presence... yes</p><p class="">checking for cxxabi.h... yes</p><p class="">checking dlfcn.h usability... yes</p><p class="">checking dlfcn.h presence... yes</p><p class="">checking for dlfcn.h... yes</p><p class="">checking execinfo.h usability... yes</p><p class="">checking execinfo.h presence... yes</p><p class="">checking for execinfo.h... yes</p><p class="">checking fcntl.h usability... yes</p><p class="">checking fcntl.h presence... yes</p><p class="">checking for fcntl.h... yes</p><p class="">checking for inttypes.h... (cached) yes</p><p class="">checking link.h usability... no</p><p class="">checking link.h presence... no</p><p class="">checking for link.h... no</p><p class="">checking malloc.h usability... no</p><p class="">checking malloc.h presence... no</p><p class="">checking for malloc.h... no</p><p class="">checking setjmp.h usability... yes</p><p class="">checking setjmp.h presence... yes</p><p class="">checking for setjmp.h... yes</p><p class="">checking signal.h usability... yes</p><p class="">checking signal.h presence... yes</p><p class="">checking for signal.h... yes</p><p class="">checking for stdint.h... (cached) yes</p><p class="">checking termios.h usability... yes</p><p class="">checking termios.h presence... yes</p><p class="">checking for termios.h... yes</p><p class="">checking for unistd.h... (cached) yes</p><p class="">checking utime.h usability... yes</p><p class="">checking utime.h presence... yes</p><p class="">checking for utime.h... yes</p><p class="">checking sys/mman.h usability... yes</p><p class="">checking sys/mman.h presence... yes</p><p class="">checking for sys/mman.h... yes</p><p class="">checking sys/param.h usability... yes</p><p class="">checking sys/param.h presence... yes</p><p class="">checking for sys/param.h... yes</p><p class="">checking sys/resource.h usability... yes</p><p class="">checking sys/resource.h presence... yes</p><p class="">checking for sys/resource.h... yes</p><p class="">checking sys/time.h usability... yes</p><p class="">checking sys/time.h presence... yes</p><p class="">checking for sys/time.h... yes</p><p class="">checking sys/uio.h usability... yes</p><p class="">checking sys/uio.h presence... yes</p><p class="">checking for sys/uio.h... yes</p><p class="">checking sys/ioctl.h usability... yes</p><p class="">checking sys/ioctl.h presence... yes</p><p class="">checking for sys/ioctl.h... yes</p><p class="">checking malloc/malloc.h usability... yes</p><p class="">checking malloc/malloc.h presence... yes</p><p class="">checking for malloc/malloc.h... yes</p><p class="">checking mach/mach.h usability... yes</p><p class="">checking mach/mach.h presence... yes</p><p class="">checking for mach/mach.h... yes</p><p class="">checking valgrind/valgrind.h usability... no</p><p class="">checking valgrind/valgrind.h presence... no</p><p class="">checking for valgrind/valgrind.h... no</p><p class="">checking fenv.h usability... yes</p><p class="">checking fenv.h presence... yes</p><p class="">checking for fenv.h... yes</p><p class="">checking whether FE_ALL_EXCEPT is declared... yes</p><p class="">checking whether FE_INEXACT is declared... yes</p><p class="">checking pthread.h usability... yes</p><p class="">checking pthread.h presence... yes</p><p class="">checking for pthread.h... yes</p><p class="">checking zlib.h usability... yes</p><p class="">checking zlib.h presence... yes</p><p class="">checking for zlib.h... yes</p><p class="">checking CrashReporterClient.h usability... no</p><p class="">checking CrashReporterClient.h presence... no</p><p class="">checking for CrashReporterClient.h... no</p><p class="">checking __crashreporter_info__... yes</p><p class="">checking for HUGE_VAL sanity... yes</p><p class="">checking for pid_t... yes</p><p class="">checking for size_t... yes</p><p class="">checking whether struct tm is in sys/time.h or time.h... time.h</p><p class="">checking for int64_t... yes</p><p class="">checking for uint64_t... yes</p><p class="">checking for backtrace... yes</p><p class="">checking for ceilf... yes</p><p class="">checking for floorf... yes</p><p class="">checking for roundf... yes</p><p class="">checking for rintf... yes</p><p class="">checking for nearbyintf... yes</p><p class="">checking for getcwd... yes</p><p class="">checking for powf... yes</p><p class="">checking for fmodf... yes</p><p class="">checking for strtof... yes</p><p class="">checking for round... yes</p><p class="">checking for log... yes</p><p class="">checking for log2... yes</p><p class="">checking for log10... yes</p><p class="">checking for exp... yes</p><p class="">checking for exp2... yes</p><p class="">checking for getpagesize... yes</p><p class="">checking for getrusage... yes</p><p class="">checking for getrlimit... yes</p><p class="">checking for setrlimit... yes</p><p class="">checking for gettimeofday... yes</p><p class="">checking for isatty... yes</p><p class="">checking for mkdtemp... yes</p><p class="">checking for mkstemp... yes</p><p class="">checking for mktemp... yes</p><p class="">checking for posix_spawn... yes</p><p class="">checking for pread... yes</p><p class="">checking for realpath... yes</p><p class="">checking for sbrk... yes</p><p class="">checking for setrlimit... (cached) yes</p><p class="">checking for strerror... yes</p><p class="">checking for strerror_r... yes</p><p class="">checking for setenv... yes</p><p class="">checking for strtoll... yes</p><p class="">checking for strtoq... yes</p><p class="">checking for sysconf... yes</p><p class="">checking for malloc_zone_statistics... yes</p><p class="">checking for setjmp... yes</p><p class="">checking for longjmp... yes</p><p class="">checking for sigsetjmp... yes</p><p class="">checking for siglongjmp... yes</p><p class="">checking for writev... yes</p><p class="">checking for futimes... yes</p><p class="">checking for futimens... no</p><p class="">checking if printf has the %a format character... yes</p><p class="">checking for srand48/lrand48/drand48 in <stdlib.h>... yes</p><p class="">checking whether arc4random is declared... yes</p><p class="">checking whether strerror_s is declared... no</p><p class="">checking for isnan in <math.h>... yes</p><p class="">checking for isnan in <cmath>... yes</p><p class="">checking for std::isnan in <cmath>... yes</p><p class="">checking for isinf in <math.h>... yes</p><p class="">checking for isinf in <cmath>... yes</p><p class="">checking for std::isinf in <cmath>... yes</p><p class="">checking for finite in <ieeefp.h>... no</p><p class="">checking for stdlib.h... (cached) yes</p><p class="">checking for unistd.h... (cached) yes</p><p class="">checking for getpagesize... (cached) yes</p><p class="">checking for working mmap... yes</p><p class="">checking for mmap of files... yes</p><p class="">checking if /dev/zero is needed for mmap... no</p><p class="">checking for GCC atomic builtins... yes</p><p class="">checking for __dso_handle... yes</p><p class="">checking for compiler -fvisibility-inlines-hidden option... yes</p><p class="">configure: creating ./config.status</p><p class="">config.status: creating include/llvm/Config/Targets.def</p><p class="">config.status: creating include/llvm/Config/AsmPrinters.def</p><p class="">config.status: creating include/llvm/Config/AsmParsers.def</p><p class="">config.status: creating include/llvm/Config/Disassemblers.def</p><p class="">config.status: creating Makefile.config</p><p class="">config.status: creating llvm.spec</p><p class="">config.status: creating docs/doxygen.cfg</p><p class="">config.status: creating bindings/ocaml/llvm/META.llvm</p><p class="">config.status: creating include/llvm/Config/config.h</p><p class="">config.status: creating include/llvm/Config/llvm-config.h</p><p class="">config.status: creating include/llvm/Support/DataTypes.h</p><p class="">config.status: include/llvm/Support/DataTypes.h is unchanged</p><p class="">config.status: executing setup commands</p><p class="">config.status: executing Makefile commands</p><p class="">config.status: executing Makefile.common commands</p><p class="">config.status: executing examples/Makefile commands</p><p class="">config.status: executing lib/Makefile commands</p><p class="">config.status: executing test/Makefile commands</p><p class="">config.status: executing test/Makefile.tests commands</p><p class="">config.status: executing unittests/Makefile commands</p><p class="">config.status: executing tools/Makefile commands</p><p class="">config.status: executing utils/Makefile commands</p><p class="">config.status: executing projects/Makefile commands</p><p class="">config.status: executing bindings/Makefile commands</p><p class="">config.status: executing bindings/ocaml/Makefile.ocaml commands</p></div><div><br></div><div>$ make ENABLE_OPTIMIZED=1</div>








<p class="">Makefile:151: /Makefile.rules: No such file or directory</p>
<p class="">make: *** No rule to make target `/Makefile.rules'.  Stop.</p><p class="">$</p></div>