Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installing julia on Ubuntu with bug #22358

Closed
dreamqin68 opened this issue Jun 13, 2017 · 9 comments
Closed

installing julia on Ubuntu with bug #22358

dreamqin68 opened this issue Jun 13, 2017 · 9 comments

Comments

@dreamqin68
Copy link

dreamqin68 commented Jun 13, 2017

the error report:

/home/julia/usr/tools/llvm-config: error while loading shared libraries: libLLVM-3.9.so: cannot open shared object file: No such file or directory
/home/julia/usr/tools/llvm-config: error while loading shared libraries: libLLVM-3.9.so: cannot open shared object file: No such file or directory
/home/julia/usr/tools/llvm-config: error while loading shared libraries: libLLVM-3.9.so: cannot open shared object file: No such file or directory
/home/julia/usr/tools/llvm-config: error while loading shared libraries: libLLVM-3.9.so: cannot open shared object file: No such file or directory
/home/julia/usr/tools/llvm-config: error while loading shared libraries: libLLVM-3.9.so: cannot open shared object file: No such file or directory
    CC src/APInt-C.o
In file included from /usr/include/c++/5/cinttypes:35:0,
                 from /home/julia/usr/include/llvm/Support/DataTypes.h:39,
                 from /home/julia/usr/include/llvm/ADT/Hashing.h:48,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \
  ^
In file included from /home/julia/usr/include/llvm/ADT/Hashing.h:48:0,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/Support/DataTypes.h:59:3: error: #error "The standard header <cstdint> is not C++11 compliant. Must #define " "__STDC_LIMIT_MACROS before #including Support/DataTypes.h"
 # error "The standard header <cstdint> is not C++11 compliant. Must #define "\
   ^
/home/julia/usr/include/llvm/Support/DataTypes.h:64:3: error: #error "The standard header <cstdint> is not C++11 compliant. Must #define " "__STDC_CONSTANT_MACROS before #including Support/DataTypes.h"
 # error "The standard header <cstdint> is not C++11 compliant. Must #define "\
   ^
In file included from /home/julia/usr/include/llvm/ADT/StringRef.h:13:0,
                 from /home/julia/usr/include/llvm/ADT/StringMap.h:17,
                 from /home/julia/usr/include/llvm/Support/Host.h:17,
                 from /home/julia/usr/include/llvm/ADT/Hashing.h:49,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/ADT/iterator_range.h:63:1: warning: identifier ‘decltype’ is a keyword in C++11 [-Wc++0x-compat]
 iterator_range<decltype(begin(std::declval<T>()))> drop_begin(T &&t, int n) {
 ^
In file included from /home/julia/usr/include/llvm/ADT/StringMap.h:17:0,
                 from /home/julia/usr/include/llvm/Support/Host.h:17,
                 from /home/julia/usr/include/llvm/ADT/Hashing.h:49,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/ADT/StringRef.h:69:18: warning: identifier ‘nullptr’ is a keyword in C++11 [-Wc++0x-compat]
     /*implicit*/ StringRef() : Data(nullptr), Length(0) {}
                  ^
In file included from /home/julia/usr/include/llvm/ADT/SmallVector.h:18:0,
                 from /home/julia/usr/include/llvm/Support/Allocator.h:24,
                 from /home/julia/usr/include/llvm/ADT/StringMap.h:18,
                 from /home/julia/usr/include/llvm/Support/Host.h:17,
                 from /home/julia/usr/include/llvm/ADT/Hashing.h:49,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/Support/AlignOf.h:78:3: warning: identifier ‘constexpr’ is a keyword in C++11 [-Wc++0x-compat]
   static constexpr unsigned Alignment = static_cast<unsigned int>(
   ^
/home/julia/usr/include/llvm/Support/SwapByteOrder.h:82:23: warning: use of C++11 long long integer constant [-Wlong-long]
 #elif __LONG_MAX__ == __LONG_LONG_MAX__
                       ^
In file included from /home/julia/usr/include/llvm/ADT/SmallVector.h:20:0,
                 from /home/julia/usr/include/llvm/Support/Allocator.h:24,
                 from /home/julia/usr/include/llvm/ADT/StringMap.h:18,
                 from /home/julia/usr/include/llvm/Support/Host.h:17,
                 from /home/julia/usr/include/llvm/ADT/Hashing.h:49,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/Support/MathExtras.h:112:3: warning: identifier ‘static_assert’ is a keyword in C++11 [-Wc++0x-compat]
   static_assert(std::numeric_limits<T>::is_integer &&
   ^
In file included from /home/julia/usr/include/llvm/ADT/Hashing.h:48:0,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/Support/DataTypes.h:128:21: warning: use of C++11 long long integer constant [-Wlong-long]
 # define UINT64_MAX 0xffffffffffffffffULL
                     ^
/home/julia/usr/include/llvm/Support/MathExtras.h:333:10: note: in expansion of macro ‘UINT64_MAX’
   return UINT64_MAX >> (64 - N);
          ^
In file included from /home/julia/usr/include/llvm/ADT/SmallVector.h:20:0,
                 from /home/julia/usr/include/llvm/Support/Allocator.h:24,
                 from /home/julia/usr/include/llvm/ADT/StringMap.h:18,
                 from /home/julia/usr/include/llvm/Support/Host.h:17,
                 from /home/julia/usr/include/llvm/ADT/Hashing.h:49,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/Support/MathExtras.h:635:10: warning: use of C++11 long long integer constant [-Wlong-long]
   return 1ull << (63 - countLeadingZeros(A, ZB_Undefined));
          ^
In file included from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13:0,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/ADT/Hashing.h:162:28: warning: use of C++11 long long integer constant [-Wlong-long]
 static const uint64_t k0 = 0xc3a5c85c97cb3127ULL;
                            ^
/home/julia/usr/include/llvm/ADT/Hashing.h:163:28: warning: use of C++11 long long integer constant [-Wlong-long]
 static const uint64_t k1 = 0xb492b66fbe98f273ULL;
                            ^
/home/julia/usr/include/llvm/ADT/Hashing.h:164:28: warning: use of C++11 long long integer constant [-Wlong-long]
 static const uint64_t k2 = 0x9ae16a3b2f90404fULL;
                            ^
/home/julia/usr/include/llvm/ADT/Hashing.h:165:28: warning: use of C++11 long long integer constant [-Wlong-long]
 static const uint64_t k3 = 0xc949d7c7509e6557ULL;
                            ^
/home/julia/usr/include/llvm/ADT/Hashing.h:181:25: warning: use of C++11 long long integer constant [-Wlong-long]
   const uint64_t kMul = 0x9ddfea08eb382d69ULL;
                         ^
/home/julia/usr/include/llvm/ADT/Hashing.h:328:31: warning: use of C++11 long long integer constant [-Wlong-long]
   const uint64_t seed_prime = 0xff51afd7ed558ccdULL;
                               ^
In file included from /home/julia/src/APInt-C.cpp:5:0:
/home/julia/usr/include/llvm/ADT/APInt.h:127:12: warning: use of C++11 long long integer constant [-Wlong-long]
     return 1ULL << whichBit(bitPosition);
            ^
/home/julia/usr/include/llvm/ADT/APInt.h:146:31: warning: use of C++11 long long integer constant [-Wlong-long]
     uint64_t mask = ~uint64_t(0ULL) >> (APINT_BITS_PER_WORD - wordBits);
                               ^
/home/julia/usr/include/llvm/ADT/APInt.h:405:46: warning: use of C++11 long long integer constant [-Wlong-long]
   uint64_t getLimitedValue(uint64_t Limit = ~0ULL) const {
                                              ^
In file included from /home/julia/usr/include/llvm/ADT/Hashing.h:48:0,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/Support/DataTypes.h:128:21: warning: use of C++11 long long integer constant [-Wlong-long]
 # define UINT64_MAX 0xffffffffffffffffULL
                     ^
/home/julia/usr/include/llvm/ADT/APInt.h:455:27: note: in expansion of macro ‘UINT64_MAX’
     return APInt(numBits, UINT64_MAX, true);
                           ^
In file included from /home/julia/src/APInt-C.cpp:5:0:
/home/julia/usr/include/llvm/ADT/APInt.h:522:30: warning: use of C++11 long long integer constant [-Wlong-long]
       return APInt(numBits, ~0ULL << shiftAmt);
                              ^
In file included from /home/julia/usr/include/llvm/ADT/Hashing.h:48:0,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/Support/DataTypes.h:128:21: warning: use of C++11 long long integer constant [-Wlong-long]
 # define UINT64_MAX 0xffffffffffffffffULL
                     ^
/home/julia/usr/include/llvm/ADT/APInt.h:538:29: note: in expansion of macro ‘UINT64_MAX’
       return APInt(numBits, UINT64_MAX);
                             ^
/home/julia/usr/include/llvm/Support/DataTypes.h:128:21: warning: use of C++11 long long integer constant [-Wlong-long]
 # define UINT64_MAX 0xffffffffffffffffULL
                     ^
/home/julia/usr/include/llvm/ADT/APInt.h:541:29: note: in expansion of macro ‘UINT64_MAX’
       return APInt(numBits, UINT64_MAX >> (APINT_BITS_PER_WORD - loBitsSet));
                             ^
/home/julia/usr/include/llvm/Support/DataTypes.h:128:21: warning: use of C++11 long long integer constant [-Wlong-long]
 # define UINT64_MAX 0xffffffffffffffffULL
                     ^
/home/julia/usr/include/llvm/ADT/APInt.h:1229:13: note: in expansion of macro ‘UINT64_MAX’
       VAL = UINT64_MAX;
             ^
/home/julia/usr/include/llvm/Support/DataTypes.h:128:21: warning: use of C++11 long long integer constant [-Wlong-long]
 # define UINT64_MAX 0xffffffffffffffffULL
                     ^
/home/julia/usr/include/llvm/ADT/APInt.h:1233:19: note: in expansion of macro ‘UINT64_MAX’
         pVal[i] = UINT64_MAX;
                   ^
/home/julia/usr/include/llvm/Support/DataTypes.h:128:21: warning: use of C++11 long long integer constant [-Wlong-long]
 # define UINT64_MAX 0xffffffffffffffffULL
                     ^
/home/julia/usr/include/llvm/ADT/APInt.h:1260:14: note: in expansion of macro ‘UINT64_MAX’
       VAL ^= UINT64_MAX;
              ^
/home/julia/usr/include/llvm/Support/DataTypes.h:128:21: warning: use of C++11 long long integer constant [-Wlong-long]
 # define UINT64_MAX 0xffffffffffffffffULL
                     ^
/home/julia/usr/include/llvm/ADT/APInt.h:1263:20: note: in expansion of macro ‘UINT64_MAX’
         pVal[i] ^= UINT64_MAX;
                    ^
In file included from /home/julia/usr/include/llvm/ADT/StringRef.h:13:0,
                 from /home/julia/usr/include/llvm/ADT/StringMap.h:17,
                 from /home/julia/usr/include/llvm/Support/Host.h:17,
                 from /home/julia/usr/include/llvm/ADT/Hashing.h:49,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/ADT/iterator_range.h:39:28: error: expected ‘,’ or ‘...’ before ‘&&’ token
   iterator_range(Container &&c)
                            ^
/home/julia/usr/include/llvm/ADT/iterator_range.h: In constructor ‘llvm::iterator_range<IteratorT>::iterator_range(Container)’:
/home/julia/usr/include/llvm/ADT/iterator_range.h:41:24: error: ‘c’ was not declared in this scope
       : begin_iterator(c.begin()), end_iterator(c.end()) {}
                        ^
/home/julia/usr/include/llvm/ADT/iterator_range.h: In constructor ‘llvm::iterator_range<IteratorT>::iterator_range(IteratorT, IteratorT)’:
/home/julia/usr/include/llvm/ADT/iterator_range.h:43:24: error: ‘move’ is not a member of ‘std’
       : begin_iterator(std::move(begin_iterator)),
                        ^
/home/julia/usr/include/llvm/ADT/iterator_range.h:44:22: error: ‘move’ is not a member of ‘std’
         end_iterator(std::move(end_iterator)) {}
                      ^
/home/julia/usr/include/llvm/ADT/iterator_range.h: In function ‘llvm::iterator_range<T> llvm::make_range(T, T)’:
/home/julia/usr/include/llvm/ADT/iterator_range.h:55:28: error: ‘move’ is not a member of ‘std’
   return iterator_range<T>(std::move(x), std::move(y));
                            ^
/home/julia/usr/include/llvm/ADT/iterator_range.h:55:42: error: ‘move’ is not a member of ‘std’
   return iterator_range<T>(std::move(x), std::move(y));
                                          ^
/home/julia/usr/include/llvm/ADT/iterator_range.h: In function ‘llvm::iterator_range<T> llvm::make_range(std::pair<T, T>)’:
/home/julia/usr/include/llvm/ADT/iterator_range.h:59:28: error: ‘move’ is not a member of ‘std’
   return iterator_range<T>(std::move(p.first), std::move(p.second));
                            ^
/home/julia/usr/include/llvm/ADT/iterator_range.h:59:48: error: ‘move’ is not a member of ‘std’
   return iterator_range<T>(std::move(p.first), std::move(p.second));
                                                ^
/home/julia/usr/include/llvm/ADT/iterator_range.h: At global scope:
/home/julia/usr/include/llvm/ADT/iterator_range.h:63:31: error: ‘declval’ is not a member of ‘std’
 iterator_range<decltype(begin(std::declval<T>()))> drop_begin(T &&t, int n) {
                               ^
/home/julia/usr/include/llvm/ADT/iterator_range.h:63:48: error: a function call cannot appear in a constant-expression
 iterator_range<decltype(begin(std::declval<T>()))> drop_begin(T &&t, int n) {
                                                ^
/home/julia/usr/include/llvm/ADT/iterator_range.h:63:49: error: a function call cannot appear in a constant-expression
 iterator_range<decltype(begin(std::declval<T>()))> drop_begin(T &&t, int n) {
                                                 ^
/home/julia/usr/include/llvm/ADT/iterator_range.h:63:50: error: template argument 1 is invalid
 iterator_range<decltype(begin(std::declval<T>()))> drop_begin(T &&t, int n) {
                                                  ^
/home/julia/usr/include/llvm/ADT/iterator_range.h:63:65: error: expected ‘,’ or ‘...’ before ‘&&’ token
 iterator_range<decltype(begin(std::declval<T>()))> drop_begin(T &&t, int n) {
                                                                 ^
/home/julia/usr/include/llvm/ADT/iterator_range.h: In function ‘int llvm::drop_begin(T)’:
/home/julia/usr/include/llvm/ADT/iterator_range.h:64:21: error: ‘next’ is not a member of ‘std’
   return make_range(std::next(begin(t), n), end(t));
                     ^
/home/julia/usr/include/llvm/ADT/iterator_range.h:64:37: error: ‘t’ was not declared in this scope
   return make_range(std::next(begin(t), n), end(t));
                                     ^
/home/julia/usr/include/llvm/ADT/iterator_range.h:64:38: error: there are no arguments to ‘begin’ that depend on a template parameter, so a declaration of ‘begin’ must be available [-fpermissive]
   return make_range(std::next(begin(t), n), end(t));
                                      ^
/home/julia/usr/include/llvm/ADT/iterator_range.h:64:38: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/julia/usr/include/llvm/ADT/iterator_range.h:64:41: error: ‘n’ was not declared in this scope
   return make_range(std::next(begin(t), n), end(t));
                                         ^
/home/julia/usr/include/llvm/ADT/iterator_range.h:64:50: error: there are no arguments to ‘end’ that depend on a template parameter, so a declaration of ‘end’ must be available [-fpermissive]
   return make_range(std::next(begin(t), n), end(t));
                                                  ^
In file included from /home/julia/usr/include/llvm/ADT/StringMap.h:17:0,
                 from /home/julia/usr/include/llvm/Support/Host.h:17,
                 from /home/julia/usr/include/llvm/ADT/Hashing.h:49,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/ADT/StringRef.h: At global scope:
/home/julia/usr/include/llvm/ADT/StringRef.h:31:43: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
                             unsigned long long &Result);
                                           ^
/home/julia/usr/include/llvm/ADT/StringRef.h:33:63: warning: ISO C++ 1998 does not support ‘long long’ [-Wlong-long]
   bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
                                                               ^
/home/julia/usr/include/llvm/ADT/StringRef.h:365:19: error: ‘enable_if’ in namespace ‘std’ does not name a template type
     typename std::enable_if<std::numeric_limits<T>::is_signed, bool>::type
                   ^
/home/julia/usr/include/llvm/ADT/StringRef.h:365:28: error: expected unqualified-id before ‘<’ token
     typename std::enable_if<std::numeric_limits<T>::is_signed, bool>::type
                            ^
/home/julia/usr/include/llvm/ADT/StringRef.h:376:19: error: ‘enable_if’ in namespace ‘std’ does not name a template type
     typename std::enable_if<!std::numeric_limits<T>::is_signed, bool>::type
                   ^
/home/julia/usr/include/llvm/ADT/StringRef.h:376:28: error: expected unqualified-id before ‘<’ token
     typename std::enable_if<!std::numeric_limits<T>::is_signed, bool>::type
                            ^
/home/julia/usr/include/llvm/ADT/StringRef.h: In constructor ‘llvm::StringRef::StringRef()’:
/home/julia/usr/include/llvm/ADT/StringRef.h:69:37: error: ‘nullptr’ was not declared in this scope
     /*implicit*/ StringRef() : Data(nullptr), Length(0) {}
                                     ^
In file included from /home/julia/usr/include/llvm/ADT/SmallVector.h:18:0,
                 from /home/julia/usr/include/llvm/Support/Allocator.h:24,
                 from /home/julia/usr/include/llvm/ADT/StringMap.h:18,
                 from /home/julia/usr/include/llvm/Support/Host.h:17,
                 from /home/julia/usr/include/llvm/ADT/Hashing.h:49,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/Support/AlignOf.h: At global scope:
/home/julia/usr/include/llvm/Support/AlignOf.h:28:30: error: ‘is_abstract’ is not a member of ‘std’
 template <typename T, bool = std::is_abstract<T>::value>
                              ^
/home/julia/usr/include/llvm/Support/AlignOf.h:28:48: error: expected primary-expression before ‘>’ token
 template <typename T, bool = std::is_abstract<T>::value>
                                                ^
/home/julia/usr/include/llvm/Support/AlignOf.h:28:51: error: ‘value’ in namespace ‘::’ does not name a type
 template <typename T, bool = std::is_abstract<T>::value>
                                                   ^
/home/julia/usr/include/llvm/Support/AlignOf.h:42:2: warning: extra ‘;’ [-Wpedantic]
 };
  ^
/home/julia/usr/include/llvm/Support/AlignOf.h:57:8: error: ‘AlignmentCalcImpl’ is not a class template
 struct AlignmentCalcImpl<T, true> : AlignmentCalcImplBase, T {
        ^
/home/julia/usr/include/llvm/Support/AlignOf.h:58:22: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
   ~AlignmentCalcImpl() override = 0;
                      ^
/home/julia/usr/include/llvm/Support/AlignOf.h:78:10: error: ‘constexpr’ does not name a type
   static constexpr unsigned Alignment = static_cast<unsigned int>(
          ^
/home/julia/usr/include/llvm/Support/AlignOf.h:78:10: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/home/julia/usr/include/llvm/Support/AlignOf.h:86:42: error: ‘Alignment’ was not declared in this scope
   enum { Alignment_GreaterEqual_2Bytes = Alignment >= 2 ? 1 : 0 };
                                          ^
/home/julia/usr/include/llvm/Support/AlignOf.h:87:42: error: ‘Alignment’ was not declared in this scope
   enum { Alignment_GreaterEqual_4Bytes = Alignment >= 4 ? 1 : 0 };
                                          ^
/home/julia/usr/include/llvm/Support/AlignOf.h:88:42: error: ‘Alignment’ was not declared in this scope
   enum { Alignment_GreaterEqual_8Bytes = Alignment >= 8 ? 1 : 0 };
                                          ^
/home/julia/usr/include/llvm/Support/AlignOf.h:89:43: error: ‘Alignment’ was not declared in this scope
   enum { Alignment_GreaterEqual_16Bytes = Alignment >= 16 ? 1 : 0 };
                                           ^
/home/julia/usr/include/llvm/Support/AlignOf.h:91:39: error: ‘Alignment’ was not declared in this scope
   enum { Alignment_LessEqual_2Bytes = Alignment <= 2 ? 1 : 0 };
                                       ^
/home/julia/usr/include/llvm/Support/AlignOf.h:92:39: error: ‘Alignment’ was not declared in this scope
   enum { Alignment_LessEqual_4Bytes = Alignment <= 4 ? 1 : 0 };
                                       ^
/home/julia/usr/include/llvm/Support/AlignOf.h:93:39: error: ‘Alignment’ was not declared in this scope
   enum { Alignment_LessEqual_8Bytes = Alignment <= 8 ? 1 : 0 };
                                       ^
/home/julia/usr/include/llvm/Support/AlignOf.h:94:40: error: ‘Alignment’ was not declared in this scope
   enum { Alignment_LessEqual_16Bytes = Alignment <= 16 ? 1 : 0 };
                                        ^
/home/julia/usr/include/llvm/Support/AlignOf.h:98:23: error: ‘constexpr’ does not name a type
 template <typename T> constexpr unsigned AlignOf<T>::Alignment;
                       ^
/home/julia/usr/include/llvm/Support/AlignOf.h:98:23: note: C++11 ‘constexpr’ only available with -std=c++11 or -std=gnu++11
/home/julia/usr/include/llvm/Support/AlignOf.h:226:19: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
   AlignerImpl() = delete;
                   ^
In file included from /home/julia/usr/include/llvm/Support/MathExtras.h:18:0,
                 from /home/julia/usr/include/llvm/ADT/SmallVector.h:20,
                 from /home/julia/usr/include/llvm/Support/Allocator.h:24,
                 from /home/julia/usr/include/llvm/ADT/StringMap.h:18,
                 from /home/julia/usr/include/llvm/Support/Host.h:17,
                 from /home/julia/usr/include/llvm/ADT/Hashing.h:49,
                 from /home/julia/usr/include/llvm/ADT/ArrayRef.h:13,
                 from /home/julia/src/APInt-C.cpp:4:
/home/julia/usr/include/llvm/Support/SwapByteOrder.h:27:8: error: ‘uint16_t’ does not name a type
 inline uint16_t SwapByteOrder_16(uint16_t value) {
        ^
/home/julia/usr/include/llvm/Support/SwapByteOrder.h:41:8: error: ‘uint32_t’ does not name a type
 inline uint32_t SwapByteOrder_32(uint32_t value) {
        ^
/home/julia/usr/include/llvm/Support/SwapByteOrder.h:57:8: error: ‘uint64_t’ does not name a type
 inline uint64_t SwapByteOrder_64(uint64_t value) {
        ^
/home/julia/usr/include/llvm/Support/SwapByteOrder.h: In function ‘short unsigned int llvm::sys::getSwappedBytes(short unsigned int)’:
/home/julia/usr/include/llvm/Support/SwapByteOrder.h:73:84: error: ‘SwapByteOrder_16’ was not declared in this scope
 inline unsigned short getSwappedBytes(unsigned short C) { return SwapByteOrder_16(C); }
                                                                                    ^
/home/julia/usr/include/llvm/Support/SwapByteOrder.h: In function ‘short int llvm::sys::getSwappedBytes(short int)’:
/home/julia/usr/include/llvm/Support/SwapByteOrder.h:74:84: error: ‘SwapByteOrder_16’ was not declared in this scope
 inline   signed short getSwappedBytes(  signed short C) { return SwapByteOrder_16(C); }
                                                                                    ^
/home/julia/usr/include/llvm/Support/SwapByteOrder.h: In function ‘unsigned int llvm::sys::getSwappedBytes(unsigned int)’:
/home/julia/usr/include/llvm/Support/SwapByteOrder.h:76:84: error: ‘SwapByteOrder_32’ was not declared in this scope
 inline unsigned int   getSwappedBytes(unsigned int   C) { return SwapByteOrder_32(C); }
                                                                                    ^
/home/julia/usr/include/llvm/Support/SwapByteOrder.h: In function ‘int llvm::sys::getSwappedBytes(int)’:
/home/julia/usr/include/llvm/Support/SwapByteOrder.h:77:84: error: ‘SwapByteOrder_32’ was not declared in this scope
 inline   signed int   getSwappedBytes(  signed int   C) { return SwapByteOrder_32(C); }
                                                                                    ^
  ...........

/home/julia/usr/include/llvm/Support/MathExtras.h:532:8: error: ‘uint64_t’ does not name a type
 inline uint64_t GreatestCommonDivisor64(uint64_t A, uint64_t B) {
        ^
/home/julia/usr/include/llvm/Support/MathExtras.h:543:28: error: ‘llvm::BitsToDouble’ declared as an ‘inline’ variable
 inline double BitsToDouble(uint64_t Bits) {
                            ^
/home/julia/usr/include/llvm/Support/MathExtras.h:543:28: error: ‘uint64_t’ was not declared in this scope
/home/julia/usr/include/llvm/Support/MathExtras.h:543:43: error: expected ‘,’ or ‘;’ before ‘{’ token
 inline double BitsToDouble(uint64_t Bits) {
                                           ^
In file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/immintrin.h:33:0,
                 from ./julia_threads.h:24,
                 from /home/julia/src/julia.h:59,
                 from /home/julia/src/APInt-C.cpp:12:
/usr/lib/gcc/x86_64-linux-gnu/5/include/pmmintrin.h:34:25: error: expected ‘}’ before end of line
/usr/lib/gcc/x86_64-linux-gnu/5/include/pmmintrin.h:34:25: error: expected declaration before end of line
Makefile:153: recipe for target 'APInt-C.o' failed
make[1]: *** [APInt-C.o] Error 1
Makefile:94: recipe for target 'julia-src-release' failed
make: *** [julia-src-release] Error 2

the systerm:Linux ubuntu 4.4.0-79-generic

@JeffBezanson
Copy link
Member

Your compiler might be too old. Try installing at least gcc-4.8 and putting the following in Make.user in the julia directory:

override CC = gcc-4.8
override CXX = g++-4.8
CXXFLAGS = -std=c++11

@ViralBShah
Copy link
Member

Why not use the precompiled binaries?

@dreamqin68
Copy link
Author

@JeffBezanson this is the gcc version in the systerm
gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

and where the Make.user ? I didn't find it.

@ViralBShah I'm sorry that how to use the precompiled binaries?

@vtjnash
Copy link
Member

vtjnash commented Jun 13, 2017

will be fixed by #22352

@ararslan
Copy link
Member

how to use the precompiled binaries?

curl -OL https://status.julialang.org/download/linux-x86_64
mkdir julia-nightly
tar xf linux-x86_64 -C julia-nightly --strip-components=1
cd julia-nightly
./bin/julia

@Keno
Copy link
Member

Keno commented Jun 13, 2017

Since #22352 is merged, this should be addressed.

@Keno Keno closed this as completed Jun 13, 2017
@JeffBezanson
Copy link
Member

@dreamqin68 Make.user is a file you create in the top-level julia directory to make it easier to pass options to the build.

@StefanKarpinski
Copy link
Member

It's not in the git repo because the whole point is that it is a local file specific to your system.

@expnn
Copy link

expnn commented Jun 26, 2017

It could be the conflict between the llvm-config commands.
For example, on my system, the python distribution (i.e., anaconda) provides a command named llvm-config.

$ which llvm-config
/opt/anaconda/bin/llvm-config
$ llvm-config --ldflags
-L/opt/anaconda/lib  -lz -lpthread -lrt -ldl -lm

It seems julia uses its own llvm-config, which is in the directory of ${JULIA_SRC_ROOT}/usr/tools.

$ cd ${JULIA_SRC_ROOT}
$ usr/tools/llvm-config --ldflags
-L/home/cyc/Data/src/julia/usr/lib

Apparently, the two llvm-config commands produce different results. The julia provided llvm-config output the correct result, because libLLVM-3.9.so is in the resulting directory.

In this case, you can execute the following commands before compiling to fix it.

export PATH=/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
unset LD_LIBRARY_PATH
unset JULIA_HOME
unset JULIA_ROOT

The JULIA_HOME and JULIA_ROOT environment variables may interfere with the installation procedure.

Then,

$ make -j4
$ prefix=/path/to/install make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants