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

make with intel compilers fail #5473

Closed
vipinek opened this issue Jan 22, 2014 · 10 comments
Closed

make with intel compilers fail #5473

vipinek opened this issue Jan 22, 2014 · 10 comments
Labels
building Build system, or building Julia or its dependencies

Comments

@vipinek
Copy link

vipinek commented Jan 22, 2014

I am trying to build julia with Intel compiles on an Ubuntu 13, Core i7 machine with the following make command

$make -j 4 CC=icc CFLAGS="-O3 -xavx -openmp" FC=ifort FFLAGS="-O3 -xavx -openmp" USE_MKL=1 USE_INTEL_IMF=1

but, it fails and throws the below errors. Anyone encountered this issue and how can I fix it?

    LINK usr/bin/julia-readline
    LINK usr/bin/julia-basic
repl.o: In function `main':
repl.c:(.text+0x35): undefined reference to `__intel_new_feature_proc_init'
repl.c:(.text+0x56): undefined reference to `__kmpc_begin'
repl.c:(.text+0xa4): undefined reference to `__kmpc_end'
repl.c:(.text+0xce): undefined reference to `__kmpc_end'
repl.o: In function `parse_opts':
repl.c:(.text+0x1be): undefined reference to `__intel_sse4_strdup'
repl.c:(.text+0x1f6): undefined reference to `__intel_sse4_atol'
repl.c:(.text+0x216): undefined reference to `__intel_sse4_strdup'
repl.c:(.text+0x23a): undefined reference to `__intel_sse4_strdup'
repl.c:(.text+0x389): undefined reference to `__intel_sse4_strdup'
repl.c:(.text+0x41d): undefined reference to `__intel_sse4_strdup'
repl.c:(.text+0x463): undefined reference to `__intel_sse4_strdup'
repl.o: In function `ends_with_semicolon':
repl.c:(.text+0x4f4): undefined reference to `__intel_sse4_strrchr'
repl-basic.o: In function `sigcont_handler':
repl-basic.c:(.text+0x3b): undefined reference to `__intel_sse4_strlen'
repl-basic.o: In function `repl_callback_enable':
repl-basic.c:(.text+0x51a): undefined reference to `__intel_sse4_strdup'
repl-basic.c:(.text+0x563): undefined reference to `__intel_sse4_strlen'
repl-basic.c:(.text+0x61d): undefined reference to `__intel_sse4_strlen'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_sse4_strchr'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `_intel_fast_memset'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_sse4_strncmp'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_ssse3_rep_memcpy'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_ssse3_rep_memmove'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_sse4_strcpy'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `_intel_fast_memcmp'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_sse4_strpbrk'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_ssse3_strncpyrepl.o': 
In function `main':
repl.c:(.text+0x35): undefined reference to `__intel_new_feature_proc_init'
repl.c:(.text+0x56): undefined reference to `collect2: error: ld returned 1 exit status
__kmpc_begin'
repl.c:(.text+0xa4): undefined reference to `__kmpc_end'
repl.c:(.text+0xce): undefined reference to `__kmpc_end'
repl.o: In function `parse_opts':
repl.c:(.text+0x1be): undefined reference to `__intel_sse4_strdup'
repl.c:(.text+0x1f6): undefined reference to `__intel_sse4_atol'
repl.c:(.text+0x216): undefined reference to `__intel_sse4_strdup'
repl.c:(.text+0x23a): undefined reference to `__intel_sse4_strdup'
repl.c:(.text+0x389): undefined reference to `__intel_sse4_strdup'
repl.c:(.text+0x41d): undefined reference to `__intel_sse4_strdup'
repl.c:(.text+0x463): undefined reference to `__intel_sse4_strdup'
repl.o: In function `ends_with_semicolon':
repl.c:(.text+0x4f4): undefined reference to `__intel_sse4_strrchr'
repl-readline.o: In function `return_callback':
repl-readline.c:(.text+0x166): undefined reference to `__intel_sse4_strlen'
repl-readline.o: In function `complete_method_table':
repl-readline.c:(.text+0x686): undefined reference to `__intel_sse4_strchr'
repl-readline.c:(.text+0x702): undefined reference to `__intel_sse4_strchr'
repl-readline.c:(.text+0x82f): undefined reference to `__intel_sse4_strlen'
repl-readline.c:(.text+0x945): undefinedmake[2]:  reference *** [/home/dev/julia/usr/bin/julia-basic] Error 1to 
`__intel_sse4_strlen'
repl-readline.c:(.text+0x9a2make[2]: )*** Waiting for unfinished jobs....:
 undefined reference to `__intel_sse4_strlen'
repl-readline.c:(.text+0xa93): undefined reference to `__intel_sse4_strchr'
repl-readline.o: In function `line_end_callback':
repl-readline.c:(.text+0xe2c): undefined reference to `__intel_sse4_strchr'
repl-readline.o: In function `line_kill_callback':
repl-readline.c:(.text+0xefc): undefined reference to `__intel_sse4_strchr'
repl-readline.o: In function `up_callback':
repl-readline.c:(.text+0x12f8): undefined reference to `__intel_sse4_strchr'
repl-readline.o: In function `down_callback':
repl-readline.c:(.text+0x1440): undefined reference to `__intel_sse4_strchr'
repl-readline.o:repl-readline.c:(.text+0x1541): more undefined references to `__intel_sse4_strchr' follow
repl-readline.o: In function `jl_input_line_callback':
repl-readline.c:(.text+0x1760): undefined reference to `__intel_sse4_strlen'
repl-readline.o: In function `do_completions':
repl-readline.c:(.text+0x18ea): undefined reference to `__intel_sse4_strlen'
repl-readline.c:(.text+0x195b): undefined reference to `__intel_sse4_strdup'
repl-readline.o: In function `tab_complete':
repl-readline.c:(.text+0x1a02): undefined reference to `__intel_sse4_strchr'
repl-readline.o: In function `symtab_get_matches':
repl-readline.c:(.text+0x1a88): undefined reference to `__intel_sse4_strdup'
repl-readline.c:(.text+0x1b8d): undefined reference to `__intel_sse4_strlen'
repl-readline.c:(.text+0x1bcc): undefined reference to `__intel_sse4_strlen'
repl-readline.c:(.text+0x1d13): undefined reference to `__intel_sse4_strchr'
repl-readline.c:(.text+0x1d66): undefined reference to `__intel_sse4_strlen'
repl-readline.c:(.text+0x1dab): undefined reference to `__intel_sse4_strlen'
repl-readline.o: In function `symtab_search':
repl-readline.c:(.text+0x200d): undefined reference to `__intel_sse4_strchr'
repl-readline.c:(.text+0x2061): undefined reference to `__intel_sse4_strlen'
repl-readline.c:(.text+0x20a3): undefined reference to `__intel_sse4_strlen'
repl-readline.o: In function `repl_callback_enable':
repl-readline.c:(.text+0x25b2): undefined reference to `__intel_sse4_strdup'
repl-readline.o: In function `jl_init_repl':
repl-readline.c:(.text+0x282e): undefined reference to `__intel_sse4_strlen'
repl-readline.c:(.text+0x289b): undefined reference to `__intel_sse4_strlen'
repl-readline.c:(.text+0x28f4): undefined reference to `__intel_sse4_strend'
repl-readline.c:(.text+0x2945): undefined reference to `__intel_sse4_stpcpy'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `_intel_fast_memset'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_sse4_strncmp'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_ssse3_rep_memcpy'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_ssse3_rep_memmove'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_sse4_strcpy'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `_intel_fast_memcmp'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_sse4_strpbrk'
/home/dev/julia/usr/lib/libjulia.so: undefined reference to `__intel_ssse3_strncpy'
collect2: error: ld returned 1 exit status
*** Please ensure that the ncurses-devel package is installed on your OS, and try again. ***
make[2]: *** [/home/dev/julia/usr/bin/julia-readline] Error 1
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2

[pao: formatting]

@ivarne
Copy link
Member

ivarne commented Jan 22, 2014

`*** Please ensure that the ncurses-devel package is installed on your OS, and try again. ***``

Did you read the notice on ncurses in https://github.com/JuliaLang/julia#linux-build-troubleshooting?

@vipinek
Copy link
Author

vipinek commented Jan 22, 2014

I have already followed that, but to make sure tried installing again. It failed with the same error.

"libncurses5-dev is already the newest version".

@JeffBezanson
Copy link
Member

It looks like a library reference is missing. Maybe something like -limf needs to be specified in the link command?

@nolta
Copy link
Member

nolta commented Jan 23, 2014

I've built julia w/ the intel compilers, and haven't seen this error. I notice you didn't pass CXX=icpc?

@vipinek
Copy link
Author

vipinek commented Jan 23, 2014

Thanks for your suggestions, I have tried adding CXX=icpc and flags for icpc as CXXFLAGS="-O3 -xavx -openmp" in the make. Now, I get a different error.

                      at line 469 of "/usr/include/c++/4.8/bits/stl_map.h"
            instantiation of "std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type &std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const std::map<_Key, _Tp, _Compare, _Alloc>::key_type &) [with _Key=std::string, _Tp=std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>, _Compare=std::less<std::string>, _Alloc=std::allocator<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>]" at line 170 of "debuginfo.cpp"

compilation aborted for codegen.cpp (code 4)
make[2]: *** [codegen.o] Error 4
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2

@JeffBezanson
Copy link
Member

I think part of the error message is cut off. I can't tell what it's complaining about.

@vipinek
Copy link
Author

vipinek commented Jan 23, 2014

Here is the ttrimmed error log (in first and last parts)...

libtool: install: warning: relinking `libpcreposix.la'
libtool: install: warning: relinking `libpcrecpp.la'
icpc: command line warning #10006: ignoring unknown option '-dead_strip'
libtool: install: warning: relinking `libfftw3f_threads.la'
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
/sbin/ldconfig.real: File /home/dev/julia/usr/lib/libamd.so is empty, not checked.
libtool: install: warning: relinking `libfftw3_threads.la'
/sbin/ldconfig.real: File /home/dev/julia/usr/lib/libccolamd.so is empty, not checked.
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
This is not dpkg install-info anymore, but GNU install-info
See the man page for ginstall-info for command line arguments
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
utf8.c(391): warning #187: use of "=" where "==" may have been intended
      else if ((c0=='x' && (ndig=2)) ||
                           ^

utf8.c(392): warning #187: use of "=" where "==" may have been intended
               (c0=='u' && (ndig=4)) ||
                           ^

utf8.c(393): warning #187: use of "=" where "==" may have been intended
               (c0=='U' && (ndig=8))) {
                           ^

icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icpc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
In file included from /usr/include/c++/4.8/ext/alloc_traits.h(38),
                 from /usr/include/c++/4.8/bits/stl_construct.h(61),
                 from /usr/include/c++/4.8/bits/stl_tempbuf.h(60),
                 from /usr/include/c++/4.8/bits/stl_algo.h(62),
                 from /usr/include/c++/4.8/algorithm(62),
                 from /home/dev/julia/usr/include/llvm/ADT/DenseMap.h(23),
                 from /home/dev/julia/usr/include/llvm/ExecutionEngine/ExecutionEngine.h(19),
                 from codegen.cpp(27):
/usr/include/c++/4.8/bits/allocator.h(92): error: __allocator_base is not a template
      class allocator: public __allocator_base<_Tp>
                              ^

In file included from /usr/include/c++/4.8/ext/alloc_traits.h(38),
                 from /usr/include/c++/4.8/bits/stl_construct.h(61),
                 from /usr/include/c++/4.8/bits/stl_tempbuf.h(60),
                 from /usr/include/c++/4.8/bits/stl_algo.h(62),
                 from /usr/include/c++/4.8/algorithm(62),
                 from /home/dev/julia/usr/include/llvm/ADT/DenseMap.h(23),
                 from /home/dev/julia/usr/include/llvm/ExecutionEngine/ExecutionEngine.h(19),
                 from codegen.cpp(27):
/usr/include/c++/4.8/bits/allocator.h(92): error: not a class or struct name
      class allocator: public __allocator_base<_Tp>
                              ^

icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
icc: command line warning #10159: invalid argument for option '-m'
In file included from intrinsics.cpp(46),
                 from codegen.cpp(610):
ccall.cpp(734): warning #42: operand types are incompatible ("void *" and "void *(*)(jl_array_t *)")
      if (fptr == &jl_array_ptr ||
               ^

In file included from intrinsics.cpp(46),
                 from codegen.cpp(610):
ccall.cpp(741): warning #42: operand types are incompatible ("void *" and "void *(*)(jl_value_t *)")
      if (fptr == &jl_value_ptr ||
               ^

/usr/include/c++/4.8/bits/allocator.h(116): error: __allocator_base is not a template
        : __allocator_base<_Tp>(__a) { }
          ^
          detected during:
            instantiation of "std::basic_string<_CharT, _Traits, _Alloc>::_Alloc_hider::_Alloc_hider(_CharT *, const _Alloc &) [with _CharT=char, _Traits=std::char_traits<char>, _Alloc=std::allocator<char>]" at line 439 of "/usr/include/c++/4.8/bits/basic_string.h"
            instantiation of "std::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT=char, _Traits=std::char_traits<char>, _Alloc=std::allocator<char>]" at line 182 of "/home/dev/julia/usr/include/llvm/ADT/StringRef.h"

/usr/include/c++/4.8/ext/alloc_traits.h(216): error: class "std::allocator<const llvm::PassInfo *>" has no member "construct"
        { __a.construct(__p, __arg); }
              ^
          detected during:
            instantiation of "void __gnu_cxx::__alloc_traits<_Alloc>::construct(_Alloc &, __gnu_cxx::__alloc_traits<_Alloc>::pointer, const _Tp &) [with _Alloc=std::allocator<const llvm::PassInfo *>, _Tp=const llvm::PassInfo *]" at line 906 of "/usr/include/c++/4.8/bits/stl_vector.h"
            instantiation of "void std::vector<_Tp, _Alloc>::push_back(const std::vector<_Tp, _Alloc>::value_type &) [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 118 of "/home/dev/julia/usr/include/llvm/PassSupport.h"

/usr/include/c++/4.8/ext/alloc_traits.h(222): error: class "std::allocator<const llvm::PassInfo *>" has no member "max_size"
      { return __a.max_size(); }
                   ^
          detected during:
            instantiation of "__gnu_cxx::__alloc_traits<_Alloc>::size_type __gnu_cxx::__alloc_traits<_Alloc>::max_size(const _Alloc &) [with _Alloc=std::allocator<const llvm::PassInfo *>]" at line 651 of "/usr/include/c++/4.8/bits/stl_vector.h"
            instantiation of "std::vector<_Tp, _Alloc>::size_type={std::size_t={unsigned long}} std::vector<_Tp, _Alloc>::max_size() const [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 1338 of "/usr/include/c++/4.8/bits/stl_vector.h"
            instantiation of "std::vector<_Tp, _Alloc>::size_type={std::size_t={unsigned long}} std::vector<_Tp, _Alloc>::_M_check_len(std::vector<_Tp, _Alloc>::size_type={std::size_t={unsigned long}}, const char *) const [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 343 of "/usr/include/c++/4.8/bits/vector.tcc"
            instantiation of "void std::vector<_Tp, _Alloc>::_M_insert_aux(std::vector<_Tp, _Alloc>::iterator, const std::vector<_Tp, _Alloc>::value_type &) [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 913 of "/usr/include/c++/4.8/bits/stl_vector.h"
            instantiation of "void std::vector<_Tp, _Alloc>::push_back(const std::vector<_Tp, _Alloc>::value_type &) [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 118 of "/home/dev/julia/usr/include/llvm/PassSupport.h"

/usr/include/c++/4.8/bits/stl_vector.h(168): error: class "std::_Vector_base<_Tp, _Alloc>::_Vector_impl [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" has no member "allocate"
        { return __n != 0 ? _M_impl.allocate(__n) : 0; }
                                    ^
          detected during:
            instantiation of "std::_Vector_base<_Tp, _Alloc>::pointer std::_Vector_base<_Tp, _Alloc>::_M_allocate(std::size_t={unsigned long}) [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 345 of "/usr/include/c++/4.8/bits/vector.tcc"
            instantiation of "void std::vector<_Tp, _Alloc>::_M_insert_aux(std::vector<_Tp, _Alloc>::iterator, const std::vector<_Tp, _Alloc>::value_type &) [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 913
            instantiation of "void std::vector<_Tp, _Alloc>::push_back(const std::vector<_Tp, _Alloc>::value_type &) [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 118 of "/home/dev/julia/usr/include/llvm/PassSupport.h"

/usr/include/c++/4.8/ext/alloc_traits.h(219): error: class "std::allocator<const llvm::PassInfo *>" has no member "destroy"
      { __a.destroy(__p); }
            ^
          detected during:
            instantiation of "void __gnu_cxx::__alloc_traits<_Alloc>::destroy(_Alloc &, __gnu_cxx::__alloc_traits<_Alloc>::pointer) [with _Alloc=std::allocator<const llvm::PassInfo *>]" at line 377 of "/usr/include/c++/4.8/bits/vector.tcc"
            instantiation of "void std::vector<_Tp, _Alloc>::_M_insert_aux(std::vector<_Tp, _Alloc>::iterator, const std::vector<_Tp, _Alloc>::value_type &) [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 913 of "/usr/include/c++/4.8/bits/stl_vector.h"
            instantiation of "void std::vector<_Tp, _Alloc>::push_back(const std::vector<_Tp, _Alloc>::value_type &) [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 118 of "/home/dev/julia/usr/include/llvm/PassSupport.h"

/usr/include/c++/4.8/bits/stl_vector.h(174): error: class "std::_Vector_base<_Tp, _Alloc>::_Vector_impl [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" has no member "deallocate"
      _M_impl.deallocate(__p, __n);
              ^
          detected during:
            instantiation of "void std::_Vector_base<_Tp, _Alloc>::_M_deallocate(std::_Vector_base<_Tp, _Alloc>::pointer, std::size_t={unsigned long}) [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 381 of "/usr/include/c++/4.8/bits/vector.tcc"
            instantiation of "void std::vector<_Tp, _Alloc>::_M_insert_aux(std::vector<_Tp, _Alloc>::iterator, const std::vector<_Tp, _Alloc>::value_type &) [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 913
            instantiation of "void std::vector<_Tp, _Alloc>::push_back(const std::vector<_Tp, _Alloc>::value_type &) [with _Tp=const llvm::PassInfo *, _Alloc=std::allocator<const llvm::PassInfo *>]" at line 118 of "/home/dev/julia/usr/include/llvm/PassSupport.h"

/usr/include/c++/4.8/ext/alloc_traits.h(216): error: class "std::allocator<std::pair<llvm::AnalysisID, llvm::Pass *>>" has no member "construct"
        { __a.construct(__p, __arg); }
              ^
          detected during:
            instantiation of "void __gnu_cxx::__alloc_traits<_Alloc>::construct(_Alloc &, __gnu_cxx::__alloc_traits<_Alloc>::pointer, const _Tp &) [with _Alloc=std::allocator<std::pair<llvm::AnalysisID, llvm::Pass *>>, _Tp=std::pair<llvm::AnalysisID, llvm::Pass *>]" at line 906 of "/usr/include/c++/4.8/bits/stl_vector.h"
            instantiation of "void std::vector<_Tp, _Alloc>::push_back(const std::vector<_Tp, _Alloc>::value_type &) [with _Tp=std::pair<llvm::AnalysisID, llvm::Pass *>, _Alloc=std::allocator<std::pair<llvm::AnalysisID, llvm::Pass *>>]" at line 149 of "/home/dev/julia/usr/include/llvm/PassAnalysisSupport.h"

/usr/include/c++/4.8/ext/alloc_traits.h(222): error: class "std::allocator<std::pair<llvm::AnalysisID, llvm::Pass *>>" has no member "max_size"
      { return __a.max_size(); }
                   ^
          detected during:
            instantiation of "__gnu_cxx::__alloc_traits<_Alloc>::size_type __gnu_cxx::__alloc_traits<_Alloc>::max_size(const _Alloc &) [with _Alloc=std::allocator<std::pair<llvm::AnalysisID, llvm::Pass *>>]" at line 651 of "/usr/include/c++/4.8/bits/stl_vector.h"

..................................................
.....This part is trimmed.......................................
.................................................................

            instantiation of "std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::~_Rb_tree() [with _Key=std::string, _Val=std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>, _KeyOfValue=std::_Select1st<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>, _Compare=std::less<std::string>, _Alloc=std::allocator<std::pair<const std::string, std::vector<llvm::GlobalVariable *,
                      std::allocator<llvm::GlobalVariable *>>>>]" at line 96 of "/usr/include/c++/4.8/bits/stl_map.h"

/usr/include/c++/4.8/bits/stl_vector.h(168): error: class "std::_Vector_base<_Tp, _Alloc>::_Vector_impl [with _Tp=llvm::GlobalVariable *, _Alloc=std::allocator<llvm::GlobalVariable *>]" has no member "allocate"
        { return __n != 0 ? _M_impl.allocate(__n) : 0; }
                                    ^
          detected during:
            instantiation of "std::_Vector_base<_Tp, _Alloc>::pointer std::_Vector_base<_Tp, _Alloc>::_M_allocate(std::size_t={unsigned long}) [with _Tp=llvm::GlobalVariable *, _Alloc=std::allocator<llvm::GlobalVariable *>]" at line 181
            instantiation of "void std::_Vector_base<_Tp, _Alloc>::_M_create_storage(std::size_t={unsigned long}) [with _Tp=llvm::GlobalVariable *, _Alloc=std::allocator<llvm::GlobalVariable *>]" at line 136
            instantiation of "std::_Vector_base<_Tp, _Alloc>::_Vector_base(std::size_t={unsigned long}, const std::_Vector_base<_Tp, _Alloc>::allocator_type &) [with _Tp=llvm::GlobalVariable *, _Alloc=std::allocator<llvm::GlobalVariable *>]" at line 313
            instantiation of "std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc> &) [with _Tp=llvm::GlobalVariable *, _Alloc=std::allocator<llvm::GlobalVariable *>]" at line 113 of "/usr/include/c++/4.8/bits/stl_pair.h"
            instantiation of "std::pair<_T1, _T2>::pair(const _T1 &, const _T2 &) [with _T1=const std::string, _T2=std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>]" at line 469 of "/usr/include/c++/4.8/bits/stl_map.h"
            instantiation of "std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type &std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const std::map<_Key, _Tp, _Compare, _Alloc>::key_type &) [with _Key=std::string, _Tp=std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>, _Compare=std::less<std::string>, _Alloc=std::allocator<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>]" at line 170 of "debuginfo.cpp"

/usr/include/c++/4.8/bits/stl_tree.h(370): error: class "std::allocator<std::_Rb_tree_node<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>>" has no member "allocate"
        { return _M_impl._Node_allocator::allocate(1); }
                                          ^
          detected during:
            instantiation of "std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_node() [with _Key=std::string, _Val=std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>, _KeyOfValue=std::_Select1st<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>, _Compare=std::less<std::string>,
                      _Alloc=std::allocator<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>]" at line 380
            instantiation of "std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Link_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_create_node(const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::value_type &) [with _Key=std::string, _Val=std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>, _KeyOfValue=std::_Select1st<std::pair<const std::string, std::vector<llvm::GlobalVariable *,
                      std::allocator<llvm::GlobalVariable *>>>>, _Compare=std::less<std::string>, _Alloc=std::allocator<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>]" at line 1023
            instantiation of "std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::value_type &) [with _Key=std::string, _Val=std::pair<const std::string, std::vector<llvm::GlobalVariable *,
                      std::allocator<llvm::GlobalVariable *>>>, _KeyOfValue=std::_Select1st<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>, _Compare=std::less<std::string>, _Alloc=std::allocator<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>]" at line 1481
            instantiation of "std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, const std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::value_type &) [with _Key=std::string, _Val=std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>,
                      _KeyOfValue=std::_Select1st<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>, _Compare=std::less<std::string>, _Alloc=std::allocator<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>]" at line 648 of "/usr/include/c++/4.8/bits/stl_map.h"
            instantiation of "std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::insert(std::map<_Key, _Tp, _Compare, _Alloc>::iterator, const std::map<_Key, _Tp, _Compare, _Alloc>::value_type &) [with _Key=std::string, _Tp=std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>, _Compare=std::less<std::string>, _Alloc=std::allocator<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>]"
                      at line 469 of "/usr/include/c++/4.8/bits/stl_map.h"
            instantiation of "std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type &std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const std::map<_Key, _Tp, _Compare, _Alloc>::key_type &) [with _Key=std::string, _Tp=std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>, _Compare=std::less<std::string>, _Alloc=std::allocator<std::pair<const std::string, std::vector<llvm::GlobalVariable *, std::allocator<llvm::GlobalVariable *>>>>]" at line 170 of "debuginfo.cpp"

compilation aborted for codegen.cpp (code 4)
make[2]: *** [codegen.o] Error 4
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2

[pao: formatting]

@pao
Copy link
Member

pao commented Jan 23, 2014

@vipinek, two tips: First, blocks of code or console output are best quoted. GitHub uses triple-backquotes for this; you can look at the edit window for your comment to see what I did. Second, sufficiently long text (such as this) is probably better suited for a gist--go to https://gist.github.com/, paste your text, and you can post the link here.

(We now return to your regularly scheduled debugging. Thanks!)

@nolta
Copy link
Member

nolta commented Jan 24, 2014

Not sure, but it looks like your build is mixing g++ & icpc.

You might want to try cloning a fresh copy of julia, and compiling w/ the following options:

CC = icc
CXX = icpc
FC = ifort
USE_INTEL_LIBM = 1
USE_MKL = 1
MKLROOT = /path/to/intel/ics/composerxe/mkl/

i.e., drop the -j 4, CFLAGS, FFLAGS, & CXXFLAGS options.

@vtjnash
Copy link
Member

vtjnash commented Apr 25, 2014

please open a new issue if you are still unable to build. since we are close to having working AppVeyor builds, this probably has been affected along the way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies
Projects
None yet
Development

No branches or pull requests

6 participants