Cannot compile stlport-icc on -stable

Krzysztof Parzyszek kristof at swissmail.org
Thu Apr 17 23:26:08 PDT 2003


On Thu, Apr 17, 2003 at 05:52:54PM +0200, Alexander Leidinger wrote:
> 
> I don't have much time to look at it (or the update of icc) myself until
> next week, so could you please test if adding "-I/usr/include" after
> -I${PREFIX}/intel/compiler70/ia32/include
> -I${PREFIX}/intel/compiler70/ia32/include/substitute_headers in the most
> recent version of patch-ia32::bin::icc and patch-ia32::bin::icpc solves
> the problem too?

Nope.  See below.

Krzysztof



===>  Building for stlport-icc-4.5.3_1
echo "Note : this makefile requires gmake on FreeBSD"
Note : this makefile requires gmake on FreeBSD
icpc -I../stlport -w1 -D_THREAD_SAFE -D_REENTRANT -mt -O -ip -axiMKW -KPIC dll_main.cpp -c -o ../lib/obj/ICC-FREEBSD/ReleaseD/dll_main.o
../stlport/stl/_alloc.h(134): error: identifier "__stl_new" is undefined
    static void* _STLP_CALL  allocate(size_t __n) {  return __stl_new(__n); }
                                                            ^

../stlport/stl/_alloc.h(135): error: identifier "__stl_delete" is undefined
    static void _STLP_CALL deallocate(void* __p, size_t) { __stl_delete(__p); }
                                                           ^

../stlport/stl/_alloc.c(58): error: namespace "_STL" has no member "__stl_new"
  inline void* __stlp_chunk_malloc(size_t __bytes) { return _STLP_STD::__stl_new(__bytes); }
                                                                       ^

../stlport/stl/_limits.h(266): error: identifier "WCHAR_MIN" is undefined
    : public _Integer_limits<wchar_t, WCHAR_MIN, WCHAR_MAX, -1, true>
                                      ^

../stlport/stl/_limits.h(266): error: identifier "WCHAR_MAX" is undefined
    : public _Integer_limits<wchar_t, WCHAR_MIN, WCHAR_MAX, -1, true>
                                                 ^

../stlport/stdexcept(57): error: not a class or struct name
  class _STLP_CLASS_DECLSPEC __Named_exception : public _STLP_EXCEPTION_BASE {
                                                        ^

../stlport/stl/_pthread_alloc.c(81): error: namespace "_STL" has no member "bad_alloc"
        __THROW_BAD_ALLOC;  // failed
        ^
          detected during instantiation of "_STL::_Pthread_alloc_per_thread_state<_Max_size> *_STL::_Pthread_alloc<_Max_size>::_S_get_per_thread_state() [with _Max_size=128U]" 

../stlport/stl/_pthread_alloc.c(90): error: namespace "_STL" has no member "bad_alloc"
        __THROW_BAD_ALLOC;
        ^
          detected during instantiation of "_STL::_Pthread_alloc_per_thread_state<_Max_size> *_STL::_Pthread_alloc<_Max_size>::_S_get_per_thread_state() [with _Max_size=128U]" 

../stlport/stl/_alloc.h(251): error: identifier "__stl_new" is undefined
    static void * _STLP_CALL allocate(size_t __n) { return (__n > (size_t)_MAX_BYTES) ?  __stl_new(__n) : _M_allocate(__n); }
                                                                                         ^
          detected during instantiation of "void *_STL::__node_alloc<__threads, __inst>::allocate(size_t={unsigned int}) [with __threads=false, __inst=0]" 

../stlport/stl/_alloc.h(253): error: identifier "__stl_delete" is undefined
    static void _STLP_CALL deallocate(void *__p, size_t __n) { if (__n > (size_t)_MAX_BYTES) __stl_delete(__p); else _M_deallocate(__p, __n); }
                                                                                             ^
          detected during instantiation of "void _STL::__node_alloc<__threads, __inst>::deallocate(void *, size_t={unsigned int}) [with __threads=false, __inst=0]" 

../stlport/stl/_alloc.h(251): error: identifier "__stl_new" is undefined
    static void * _STLP_CALL allocate(size_t __n) { return (__n > (size_t)_MAX_BYTES) ?  __stl_new(__n) : _M_allocate(__n); }
                                                                                         ^
          detected during instantiation of "void *_STL::__node_alloc<__threads, __inst>::allocate(size_t={unsigned int}) [with __threads=true, __inst=0]" 

../stlport/stl/_alloc.h(253): error: identifier "__stl_delete" is undefined
    static void _STLP_CALL deallocate(void *__p, size_t __n) { if (__n > (size_t)_MAX_BYTES) __stl_delete(__p); else _M_deallocate(__p, __n); }
                                                                                             ^
          detected during instantiation of "void _STL::__node_alloc<__threads, __inst>::deallocate(void *, size_t={unsigned int}) [with __threads=true, __inst=0]" 

../stlport/stl/_alloc.c(75): error: namespace "_STL" has no member "bad_alloc"
      if (0 == __my_malloc_handler) { __THROW_BAD_ALLOC; }
                                      ^
          detected during instantiation of "void *_STL::__malloc_alloc<__inst>::_S_oom_malloc(size_t={unsigned int}) [with __inst=0]" 

compilation aborted for dll_main.cpp (code 2)
gmake: *** [../lib/obj/ICC-FREEBSD/ReleaseD/dll_main.o] Error 2
*** Error code 2

Stop in /usr/ports/devel/stlport-icc.




More information about the freebsd-ports mailing list