Article [#5444] STLport build error

[#5444] STLport build error

Submitted By: Yi Li

Open Date

2009-08-16 18:48:30     Close Date

2010-06-11 04:46:39

Priority:

Medium     Assignee:

Nobody

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2009R1-RC6     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

2009R1-rc10

App binary format:

N/A     

Summary: STLport build error

Details:

host:/> make lib/STLport_only

make[1]: Entering directory `/home/adam/new_workspace/local_svn/kernel/2009r1/uclinux-dist/lib'

touch STLport/.sgbuilt_lib && make -C STLport -j1

make[2]: Entering directory `/home/adam/new_workspace/local_svn/kernel/2009r1/uclinux-dist/lib/STLport'

make -C build/lib -f uclinux-dist.mak install ARCH=a

make[3]: Entering directory `/home/adam/new_workspace/local_svn/kernel/2009r1/uclinux-dist/lib/STLport/build/lib'

bfin-uclinux-g++ -pipe -Wall -g -O2  -mcpu=bf537-0.2 -pthread -fexceptions -fident  -fPIC -O2 -fuse-cxa-atexit  -D_STLP_REAL_LOCALE_IMPLEMENTED -D_GNU_SOURCE  -I/home/adam/new_workspace/local_svn/kernel/2009r1/uclinux-dist/include/STLport -I/home/adam/new_workspace/local_svn/kernel/2009r1/uclinux-dist/include  -c -o obj/gcc/shared/dll_main.o ../../src/dll_main.cpp

In file included from ../../src/dll_main.cpp:29:

../../src/stlport_prefix.h:20:25: error: stl/_config.h: No such file or directory

../../src/dll_main.cpp:46:17: error: slist: No such file or directory

../../src/dll_main.cpp:48:28: error: stl/_hashtable.h: No such file or directory

../../src/dll_main.cpp:56:18: error: rope: No such file or directory

../../src/dll_main.cpp:91: error: expected constructor, destructor, or type conversion before ‘void’

../../src/dll_main.cpp:95: error: expected initializer before ‘_STLP_CALL’

../../src/dll_main.cpp:99: error: expected initializer before ‘_STLP_CALL’

../../src/dll_main.cpp:103: error: expected initializer before ‘_STLP_CALL’

../../src/dll_main.cpp:107: error: expected initializer before ‘_STLP_CALL’

../../src/dll_main.cpp:152: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __stl_debug_engine’

../../src/dll_main.cpp:152: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:155: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __node_alloc’

../../src/dll_main.cpp:155: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:156: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __node_alloc’

../../src/dll_main.cpp:156: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:157: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __debug_alloc’

../../src/dll_main.cpp:157: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:158: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __debug_alloc’

../../src/dll_main.cpp:158: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:159: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __debug_alloc’

../../src/dll_main.cpp:159: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:160: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __malloc_alloc’

../../src/dll_main.cpp:160: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:174: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC allocator’

../../src/dll_main.cpp:174: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:175: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:175: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:178: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_base’

../../src/dll_main.cpp:178: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:181: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_impl’

../../src/dll_main.cpp:181: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:184: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC __WORKAROUND_DBG_RENAME’

../../src/dll_main.cpp:184: error: expected `;' before ‘(’ token

../../src/dll_main.cpp:189: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC allocator’

../../src/dll_main.cpp:189: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:190: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:190: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:191: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_base’

../../src/dll_main.cpp:191: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:193: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_impl’

../../src/dll_main.cpp:193: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:201: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC vector’

../../src/dll_main.cpp:201: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:205: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC allocator’

../../src/dll_main.cpp:205: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:207: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:207: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:208: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_base’

../../src/dll_main.cpp:208: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:209: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Vector_impl’

../../src/dll_main.cpp:209: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:211: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _List_node’

../../src/dll_main.cpp:211: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:212: error: expected initializer before ‘<’ token

../../src/dll_main.cpp:213: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC allocator’

../../src/dll_main.cpp:213: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:214: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:214: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:215: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _List_base’

../../src/dll_main.cpp:215: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:216: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _List_impl’

../../src/dll_main.cpp:216: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:219: error: expected constructor, destructor, or type conversion before ‘template’

../../src/dll_main.cpp:222: error: expected constructor, destructor, or type conversion before ‘typedef’

../../src/dll_main.cpp:223: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:223: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:226: error: expected constructor, destructor, or type conversion before ‘template’

../../src/dll_main.cpp:227: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Slist_impl’

../../src/dll_main.cpp:227: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:230: error: expected constructor, destructor, or type conversion before ‘template’

../../src/dll_main.cpp:231: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:231: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:232: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Deque_iterator’

../../src/dll_main.cpp:232: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:233: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Deque_base’

../../src/dll_main.cpp:233: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:234: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Deque_impl’

../../src/dll_main.cpp:234: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:237: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Rb_global’

../../src/dll_main.cpp:237: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:238: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _List_global’

../../src/dll_main.cpp:238: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:241: error: expected constructor, destructor, or type conversion before ‘template’

../../src/dll_main.cpp:242: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Stl_prime’

../../src/dll_main.cpp:242: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:245: error: expected constructor, destructor, or type conversion before ‘template’

../../src/dll_main.cpp:246: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _Bs_G’

../../src/dll_main.cpp:246: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:248: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC allocator’

../../src/dll_main.cpp:248: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:249: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _STLP_alloc_proxy’

../../src/dll_main.cpp:249: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:250: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC _String_base’

../../src/dll_main.cpp:250: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:270: error: explicit instantiation of non-template ‘_STLP_CLASS_DECLSPEC basic_string’

../../src/dll_main.cpp:270: error: expected `;' before ‘<’ token

../../src/dll_main.cpp:276: error: expected constructor, destructor, or type conversion at end of input

make[3]: *** [obj/gcc/shared/dll_main.o] Error 1

make[3]: Leaving directory `/home/adam/new_workspace/local_svn/kernel/2009r1/uclinux-dist/lib/STLport/build/lib'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/home/adam/new_workspace/local_svn/kernel/2009r1/uclinux-dist/lib/STLport'

make[1]: *** [STLport_only] Error 2

make[1]: Leaving directory `/home/adam/new_workspace/local_svn/kernel/2009r1/uclinux-dist/lib'

make: *** [lib/STLport_only] Error 2

Follow-ups

--- woon chong huat                                          2009-10-14 10:21:20

someone can solve this issue?

--- Ponik Ponikovich                                         2009-10-27 10:40:00

yes, i solved but it's a "dirty" way, better use libstdc++.a (you

can find it in /opt directory)

first of all you must change your uclinux-dist.mak file:

add there next:

CC = bfin-uclinux-g++ #or other compiler you use

CXX = $(CC)

then change next:

SRCROOT = ..

then

STLPORT_INCLUDE_DIR = ../../stlport

after this you must change an include paths in the site_config.h from

ln.68(don't forget to uncomment undef and define)

for example i have next one:

#define _STLP_NATIVE_INCLUDE_PATH /usr/include/c++/4.1.2

so after this of course you can try to build, but i have undefined types with

locale functions. So, i add to c_locale_dummy.c file next:

typedef unsigned short int _Locale_mask_t;

typedef int nl_catd_type;

strange, this types are defined in c_locale.h, but when i try to include it to

.c file i still have undefined types errors

and now you can do the

make clean

make all

your lib will be in STLport/lib dir and will be called libstdc++.a

Good luck

--- Mike Frysinger                                           2009-10-29 11:04:06

you do not want to set the include path to your host headers.  that's how you

end up with broken builds.

_STLP_NATIVE_INCLUDE_PATH probably should be set to ../c++ instead

at any rate, ive imported STLport-5.2.1 and it builds for me

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.