Hi Kevin,
On Tue, May 29, 2012 at 10:22 PM, Kevin Burns <kevinpb at vt.edu> wrote:
>
> Hello,
>
> I am currently trying to install vmkit from source. I am running archlinux
> i686 with the 3.1.9-2 kernel. This output is from the directions given on
> the llvm site. Below is the configureation output along with the make
> output.
>
>
> I run ./configure with the following parameters
>
> ./configure --with-llvmsrc=../llvm
> --with-gnu-classpath-glibj=../classpath-0.97.2/lib/glibj.zip
> --with-gnu-classpath-libs=../classpath-0.97.2/lib/ --with-mmtk-plan>
org.mmtk.plan.marksweep.MS
You also need to tell vmkit where to find the binaries of llvm. This is
done by passing --with-llvmobj=wherever you compiled llvm and clang.
>
>
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking type of operating system we're going to host on... Linux
> configure: Validing GNU Classpath installation...
> checking for ../classpath-0.97.2/lib/... yes
> checking for ../classpath-0.97.2/lib//libjavaio.so... yes
> checking for ../classpath-0.97.2/lib//libjavalang.so... yes
> checking for ../classpath-0.97.2/lib//libjavalangreflect.so... yes
> checking for ../classpath-0.97.2/lib//libjavanet.so... yes
> checking for ../classpath-0.97.2/lib//libjavanio.so... yes
> checking for ../classpath-0.97.2/lib//libjavautil.so... yes
> checking for ../classpath-0.97.2/lib/glibj.zip... yes
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking how to run the C preprocessor... gcc -E
> checking whether we are using the GNU C compiler... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for gcc option to accept ISO C89... (cached) none needed
> checking for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking whether ln -s works... yes
> checking for cmp... /usr/bin/cmp
> checking for cp... /bin/cp
> checking for date... /bin/date
> checking for find... /usr/bin/find
> checking for grep... /usr/bin/grep
> checking for mkdir... /bin/mkdir
> checking for mv... /bin/mv
> checking for ranlib... ranlib
> checking for rm... /bin/rm
> checking for sed... /bin/sed
> checking for tar... /bin/tar
> checking for pwd... /bin/pwd
> checking for cat... /bin/cat
> checking for llvm-as... /usr/local/bin/llvm-as
> checking for llc... /usr/local/bin/llc
> checking for ant... /usr/bin/ant
> checking for javac... /usr/bin/javac
> checking for zip... /usr/bin/zip
> checking for a BSD-compatible install... /bin/install -c
> checking for inflate in -lz... yes
> checking for grep that handles long lines and -e... (cached) /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking zlib.h usability... yes
> checking zlib.h presence... yes
> checking for zlib.h... yes
> checking for pid_t... yes
> checking for size_t... yes
> checking whether struct tm is in sys/time.h or time.h... time.h
> checking for int64_t... yes
> checking for uint64_t... yes
> checking for setjmp... yes
> checking for longjmp... yes
> configure: creating ./config.status
> config.status: creating Makefile.common
> config.status: creating Makefile.config
> config.status: creating lib/j3/ClassLib/Classpath.h
> config.status: creating tools/llcj/LinkPaths.h
> config.status: creating mmtk/java/src/org/j3/config/Selected.java
> config.status: creating mmtk/java/build.xml
> config.status: creating include/vmkit/config.h
> config.status: include/vmkit/config.h is unchanged
> config.status: executing setup commands
> config.status: executing Makefile commands
>
> and then I run make
>
> make ENABLE_OPTIMIZED=1 VERBOSE=1
> vmkit
> Makefile.common:20: /Makefile.common: No such file or directory
> make: *** No rule to make target `/Makefile.common'. Stop.
>
>
>
> I believe this is due to llvm failing to install, I will paste the
> configure and make outputs below as well.
>
>
> checking for clang... clang
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether clang accepts -g... yes
> checking for clang option to accept ISO C89... none needed
> checking for clang++... clang++
> checking whether we are using the GNU C++ compiler... yes
> checking whether clang++ accepts -g... yes
> checking how to run the C preprocessor... clang -E
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking type of operating system we're going to host on... Linux
> checking type of operating system we're going to target... Linux
> checking target architecture... x86
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking for egrep... /usr/bin/grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking whether byte ordering is bigendian... no
> checking optimization flags... -O3
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking for GNU make... make
> checking whether ln -s works... yes
> checking for cmp... /usr/bin/cmp
> checking for cp... /bin/cp
> checking for date... /bin/date
> checking for find... /usr/bin/find
> checking for grep... (cached) /usr/bin/grep
> checking for mkdir... /bin/mkdir
> checking for mv... /bin/mv
> checking for ranlib... ranlib
> checking for ar... ar
> checking for rm... /bin/rm
> checking for sed... /bin/sed
> checking for tar... /bin/tar
> checking for pwd... /bin/pwd
> checking for Graphviz... echo Graphviz
> checking for dot... echo dot
> checking for fdp... echo fdp
> checking for neato... echo neato
> checking for twopi... echo twopi
> checking for circo... echo circo
> checking for gv... no
> checking for gsview32... no
> checking for dotty... echo dotty
> checking for xdot.py... echo xdot.py
> checking for a BSD-compatible install... /bin/install -c
> checking for bzip2... /bin/bzip2
> checking for cat... /bin/cat
> checking for doxygen... no
> checking for groff... /usr/bin/groff
> checking for gzip... /bin/gzip
> checking for pdfroff... /usr/bin/pdfroff
> checking for runtest... no
> checking for the tclsh program in tclinclude directory... none
> checking for tclsh8.4... no
> checking for tclsh8.4.8... no
> checking for tclsh8.4.7... no
> checking for tclsh8.4.6... no
> checking for tclsh8.4.5... no
> checking for tclsh8.4.4... no
> checking for tclsh8.4.3... no
> checking for tclsh8.4.2... no
> checking for tclsh8.4.1... no
> checking for tclsh8.4.0... no
> checking for tclsh8.3... no
> checking for tclsh8.3.5... no
> checking for tclsh8.3.4... no
> checking for tclsh8.3.3... no
> checking for tclsh8.3.2... no
> checking for tclsh8.3.1... no
> checking for tclsh8.3.0... no
> checking for tclsh... no
> checking for zip... /usr/bin/zip
> checking for ocamlc... no
> checking for ocamlopt... no
> checking for ocamldep... no
> checking for ocamldoc... no
> checking for gas... no
> checking for as... /usr/bin/as
> checking for linker version... 2.22.0.20111227
> checking for compiler -Wl,-R<path> option... yes
> checking for compiler -Wl,-export-dynamic option... yes
> checking for compiler -Wl,--version-script option... yes
> checking for an ANSI C-conforming const... yes
> checking for dirent.h that defines DIR... yes
> checking for library containing opendir... none required
> checking dlfcn.h usability... yes
> checking dlfcn.h presence... yes
> checking for dlfcn.h... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking which extension is used for loadable modules... .so
> checking which variable specifies run-time library path... LD_LIBRARY_PATH
> checking for the default library search path... /lib /usr/lib
> /usr/lib/libfakeroot /usr/lib/llvm /usr/lib/perl5/core_perl/CORE
> checking for objdir... .libs
> checking command to parse /usr/bin/nm -B output from object... ok
> checking whether libtool supports -dlopen/-dlpreopen... yes
> checking for shl_load... no
> checking for shl_load in -ldld... no
> checking for dlopen in -ldl... yes
> checking for dlerror... yes
> checking for _ prefix in compiled symbols... no
> checking whether deplibs are loaded by dlopen... yes
> checking argz.h usability... yes
> checking argz.h presence... yes
> checking for argz.h... yes
> checking for error_t... yes
> checking for argz_append... yes
> checking for argz_create_sep... yes
> checking for argz_insert... yes
> checking for argz_next... yes
> checking for argz_stringify... yes
> checking assert.h usability... yes
> checking assert.h presence... yes
> checking for assert.h... yes
> checking ctype.h usability... yes
> checking ctype.h presence... yes
> checking for ctype.h... yes
> checking errno.h usability... yes
> checking errno.h presence... yes
> checking for errno.h... yes
> checking malloc.h usability... yes
> checking malloc.h presence... yes
> checking for malloc.h... yes
> checking for memory.h... (cached) yes
> checking for stdlib.h... (cached) yes
> checking stdio.h usability... yes
> checking stdio.h presence... yes
> checking for stdio.h... yes
> checking for unistd.h... (cached) yes
> checking dl.h usability... no
> checking dl.h presence... no
> checking for dl.h... no
> checking sys/dl.h usability... no
> checking sys/dl.h presence... no
> checking for sys/dl.h... no
> checking dld.h usability... no
> checking dld.h presence... no
> checking for dld.h... no
> checking mach-o/dyld.h usability... no
> checking mach-o/dyld.h presence... no
> checking for mach-o/dyld.h... no
> checking for string.h... (cached) yes
> checking for strchr... yes
> checking for strrchr... yes
> checking for memcpy... yes
> checking for memmove... yes
> checking for strcmp... yes
> checking for closedir... yes
> checking for opendir... yes
> checking for readdir... yes
> checking tool compatibility... ok
> checking optional compiler flags... -Wno-variadic-macros
> -Wno-missing-field-initializers
> checking for sin in -lm... yes
> checking for library containing dlopen... -ldl
> checking for library containing mallinfo... none required
> checking for pthread_mutex_init in -lpthread... yes
> checking for library containing pthread_mutex_lock... none required
> checking for library containing pthread_rwlock_init... none required
> checking for library containing pthread_getspecific... none required
> checking for dirent.h that defines DIR... (cached) yes
> checking for library containing opendir... (cached) none required
> checking for MAP_ANONYMOUS vs. MAP_ANON... yes
> checking whether stat file-mode macros are broken... no
> checking for sys/wait.h that is POSIX.1 compatible... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking for dlfcn.h... (cached) yes
> checking execinfo.h usability... yes
> checking execinfo.h presence... yes
> checking for execinfo.h... yes
> checking fcntl.h usability... yes
> checking fcntl.h presence... yes
> checking for fcntl.h... yes
> checking for inttypes.h... (cached) yes
> checking limits.h usability... yes
> checking limits.h presence... yes
> checking for limits.h... yes
> checking link.h usability... yes
> checking link.h presence... yes
> checking for link.h... yes
> checking for malloc.h... (cached) yes
> checking setjmp.h usability... yes
> checking setjmp.h presence... yes
> checking for setjmp.h... yes
> checking signal.h usability... yes
> checking signal.h presence... yes
> checking for signal.h... yes
> checking for stdint.h... (cached) yes
> checking termios.h usability... yes
> checking termios.h presence... yes
> checking for termios.h... yes
> checking for unistd.h... (cached) yes
> checking utime.h usability... yes
> checking utime.h presence... yes
> checking for utime.h... yes
> checking windows.h usability... no
> checking windows.h presence... no
> checking for windows.h... no
> checking sys/mman.h usability... yes
> checking sys/mman.h presence... yes
> checking for sys/mman.h... yes
> checking sys/param.h usability... yes
> checking sys/param.h presence... yes
> checking for sys/param.h... yes
> checking sys/resource.h usability... yes
> checking sys/resource.h presence... yes
> checking for sys/resource.h... yes
> checking sys/time.h usability... yes
> checking sys/time.h presence... yes
> checking for sys/time.h... yes
> checking sys/uio.h usability... yes
> checking sys/uio.h presence... yes
> checking for sys/uio.h... yes
> checking for sys/types.h... (cached) yes
> checking sys/ioctl.h usability... yes
> checking sys/ioctl.h presence... yes
> checking for sys/ioctl.h... yes
> checking malloc/malloc.h usability... no
> checking malloc/malloc.h presence... no
> checking for malloc/malloc.h... no
> checking mach/mach.h usability... no
> checking mach/mach.h presence... no
> checking for mach/mach.h... no
> checking valgrind/valgrind.h usability... no
> checking valgrind/valgrind.h presence... no
> checking for valgrind/valgrind.h... no
> checking fenv.h usability... yes
> checking fenv.h presence... yes
> checking for fenv.h... yes
> checking pthread.h usability... yes
> checking pthread.h presence... yes
> checking for pthread.h... yes
> checking CrashReporterClient.h usability... no
> checking CrashReporterClient.h presence... no
> checking for CrashReporterClient.h... no
> checking __crashreporter_info__... no
> checking for HUGE_VAL sanity... yes
> checking for pid_t... yes
> checking for size_t... yes
> checking whether struct tm is in sys/time.h or time.h... time.h
> checking for int64_t... yes
> checking for uint64_t... yes
> checking for backtrace... yes
> checking for ceilf... yes
> checking for floorf... yes
> checking for roundf... yes
> checking for rintf... yes
> checking for nearbyintf... yes
> checking for getcwd... yes
> checking for powf... yes
> checking for fmodf... yes
> checking for strtof... yes
> checking for round... yes
> checking for getpagesize... yes
> checking for getrusage... yes
> checking for getrlimit... yes
> checking for setrlimit... yes
> checking for gettimeofday... yes
> checking for isatty... yes
> checking for mkdtemp... yes
> checking for mkstemp... yes
> checking for mktemp... yes
> checking for posix_spawn... yes
> checking for pread... yes
> checking for realpath... yes
> checking for sbrk... yes
> 72 checking for ANSI C header files... yes
> checking for mktemp... yes
> checking for posix_spawn... yes
> checking for realpath... yes
> checking for sbrk... yes
> checking for setrlimit... (cached) yes
> checking for strdup... yes
> checking for strerror... yes
> checking for strerror_r... yes
> checking for setenv... yes
> checking for strtoll... yes
> checking for strtoq... yes
> checking for sysconf... yes
> checking for malloc_zone_statistics... no
> checking for setjmp... yes
> checking for longjmp... yes
> checking for sigsetjmp... no
> checking for siglongjmp... yes
> checking for writev... yes
> checking if printf has the %a format character... yes
> checking for srand48/lrand48/drand48 in <stdlib.h>... yes
> checking whether strerror_s is declared... no
> checking for isnan in <math.h>... yes
> checking for isnan in <cmath>... yes
> checking for std::isnan in <cmath>... yes
> checking for isinf in <math.h>... yes
> checking for isinf in <cmath>... yes
> checking for std::isinf in <cmath>... yes
> checking for finite in <ieeefp.h>... no
> checking for stdlib.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for getpagesize... (cached) yes
> checking for working mmap... yes
> checking for mmap of files... yes
> checking if /dev/zero is needed for mmap... no
> checking for GCC atomic builtins... yes
> checking for __dso_handle... yes
> checking for compiler -fvisibility-inlines-hidden option... yes
> configure: creating ./config.status
> config.status: creating Makefile.common
> config.status: creating Makefile.llvm.config
> config.status: executing setup commands
> config.status: executing Makefile commands
> config.status: executing lib/Makefile commands
> config.status: executing lib/sample/Makefile commands
> config.status: executing tools/Makefile commands
> config.status: executing tools/sample/Makefile commands
>
> and make outputs
>
> make ENABLE_OPTIMIZED=1 VERBOSE=1
> llvm
> llvm[0]: Constructing LLVMBuild project information.
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/utils/llvm-build/llvm-build
> \
> --native-target "x86" \
> --enable-targets "X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430
> CppBackend MBlaze NVPTX Hexagon" \
> --enable-optional-components "" \
> --write-library-table
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/tools/llvm-config/LibraryDependencies.inc
> \
> --write-make-fragment
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/Makefile.llvmbuild
> Traceback (most recent call last):
> File
>
"/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/utils/llvm-build/llvm-build",
> line 3, in <module>
> import llvmbuild
> File
>
"/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/utils/llvm-build/llvmbuild/__init__.py",
> line 1, in <module>
> from main import main
> ImportError: No module named main
> for dir in lib/Support lib/TableGen utils lib/VMCore lib tools/llvm-config
> tools runtime docs unittests; do \
> (make -C $dir all ) || exit 1; \
> done
> make[1]: Entering directory
>
`/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support'
> llvm[1]: Constructing LLVMBuild project information.
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/utils/llvm-build/llvm-build
> \
> --native-target "x86" \
> --enable-targets "X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430
> CppBackend MBlaze NVPTX Hexagon" \
> --enable-optional-components "" \
> --write-library-table
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/tools/llvm-config/LibraryDependencies.inc
> \
> --write-make-fragment
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/Makefile.llvmbuild
> Traceback (most recent call last):
> File
>
"/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/utils/llvm-build/llvm-build",
> line 3, in <module>
> import llvmbuild
> File
>
"/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/utils/llvm-build/llvmbuild/__init__.py",
> line 1, in <module>
> from main import main
> ImportError: No module named main
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/autoconf/mkinstalldirs
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support/Release+Asserts
> > /dev/null
> /bin/date >
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support/Release+Asserts/.dir
> llvm[1]: Compiling APFloat.cpp for Release+Asserts build
> if clang++
> -I/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/include
>
-I/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support
> -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
> -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fvisibility-inlines-hidden
> -fno-exceptions -fPIC -Woverloaded-virtual -Wcast-qual -Wall -W
> -Wno-unused-parameter -Wwrite-strings -c -MMD -MP -MF
>
"/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support/Release+Asserts/APFloat.d.tmp"
> -MT
>
"/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support/Release+Asserts/APFloat.o"
> -MT
>
"/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support/Release+Asserts/APFloat.d"
> APFloat.cpp -o
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support/Release+Asserts/APFloat.o
> ; \
> then /bin/mv -f
>
"/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support/Release+Asserts/APFloat.d.tmp"
>
"/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support/Release+Asserts/APFloat.d";
> else /bin/rm
>
"/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support/Release+Asserts/APFloat.d.tmp";
> exit 1; fi
> In file included from APFloat.cpp:15:
> In file included from
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/include/llvm/ADT/APFloat.h:104:
> In file included from
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/include/llvm/ADT/APInt.h:18:
> In file included from
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/include/llvm/ADT/ArrayRef.h:13:
> In file included from
>
/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/include/llvm/ADT/SmallVector.h:24:
> In file included from
>
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/iterator:63:
> In file included from
>
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ostream:39:
> In file included from
> /usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ios:42:
> In file included from
>
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/bits/ios_base.h:40:
>
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ext/atomicity.h:48:45:
> error: use of undeclared identifier
> '__ATOMIC_ACQ_REL'
> { return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
> ^
>
/usr/lib/gcc/i686-pc-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ext/atomicity.h:52:38:
> error: use of undeclared identifier
> '__ATOMIC_ACQ_REL'
> { __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }
> ^
> 2 errors generated.
> make[1]: ***
>
[/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support/Release+Asserts/APFloat.o]
> Error 1
> make[1]: Leaving directory
>
`/home/pacifist/research_documents/LLVM_Play/using_directions/llvm/lib/Support'
> make: *** [all] Error 1
>
Apparently gcc 4.7 cannot compile llvm. Maybe try to use an older version.
Cheers,
Nicolas
>
>
>
>
>
>
>
> any help would be greatly appretiated.
>
> Thank you for your time,
> -Kevin Burns
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20120529/b8eabef9/attachment.html>