Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Compile error "thread-local storage not supported ..."
Compile error "thread-local storage not supported ..." [message #9318] Thu, 26 April 2007 18:35 Go to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi,

I get the following output when compiling theIDE 704.r59 (checked it out yesterday) in MT mode:

----- ide\Common ( GUI MT GCC WIN32 ) (1 / 27)
----- ide\LayDes ( GUI MT GCC WIN32 ) (2 / 27)
----- ide\IconDes ( GUI MT GCC WIN32 ) (3 / 27)
----- ide\Builders ( GUI MT GCC WIN32 ) (4 / 27)
----- ide\Debuggers ( GUI MT GCC WIN32 ) (5 / 27)
----- ide\Browser ( GUI MT GCC WIN32 ) (6 / 27)
----- CodeEditor ( GUI MT GCC WIN32 ) (7 / 27)
----- CtrlLib ( GUI MT GCC WIN32 ) (8 / 27)
----- Web ( GUI MT GCC WIN32 ) (9 / 27)
----- plugin\bz2 ( GUI MT GCC WIN32 ) (10 / 27)
----- HexView ( GUI MT GCC WIN32 ) (11 / 27)
----- Esc ( GUI MT GCC WIN32 ) (12 / 27)
----- Core ( GUI MT GCC WIN32 ) (13 / 27)
lheap.cpp
d:\programs\upp-uvs\uppsrc\Core\/HeapImp.h:41: error: thread-local storage not supported for this targe
	t
heap.cpp
d:\programs\upp-uvs\uppsrc\Core\/HeapImp.h:41: error: thread-local storage not supported for this targe
	t
d:\programs\upp-uvs\uppsrc\Core\heap.cpp:144: error: thread-local storage not supported for this target
	
String.cpp
d:\programs\upp-uvs\uppsrc\Core\/HeapImp.h:41: error: thread-local storage not supported for this targe
	t
WString.cpp
d:\programs\upp-uvs\uppsrc\Core\/HeapImp.h:41: error: thread-local storage not supported for this targe
	t
Creating library...
Core: 4 file(s) built in (0:06.57), 1644 msecs / file, duration = 6609 msecs

There were errors. (0:06.80)


2007.1 compiles fine in MT mode.

System: WinXP, MingW 4.1.1, 704.r59 (not MT)

Any idea?

Matthias
Re: Compile error "thread-local storage not supported ..." [message #9325 is a reply to message #9318] Fri, 27 April 2007 10:27 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Yes, I know about this, but see no good solution.

There is no way how to have TLS variables in MingW.

The only possible option is to change the code of allocator to work without them (or use USEMALLOC). But that will cripple MT performance big big time (anything you would gain by going multicore you will loose by this quirk).

Mirek
Re: Compile error "thread-local storage not supported ..." [message #9326 is a reply to message #9325] Fri, 27 April 2007 10:32 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Ok, but then USEMALLOC is at least a workaround to get program compiled.

As I understand you right there is not a big performance difference in using either the old MT Core or the new MT Core with USEMALLOC.
Or is the performance then even worse?

Matthias
Re: Compile error "thread-local storage not supported ..." [message #9327 is a reply to message #9326] Fri, 27 April 2007 10:57 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
masu wrote on Fri, 27 April 2007 04:32

Ok, but then USEMALLOC is at least a workaround to get program compiled.

As I understand you right there is not a big performance difference in using either the old MT Core or the new MT Core with USEMALLOC.
Or is the performance then even worse?

Matthias



I have not measured. But the new allocator is much better with MT (it has much reduced mutex locking, using that TLS thing).

Frankly, using MingW to do any serious stuff does not seem as a good idea anymore....

Mirek
Re: Compile error "thread-local storage not supported ..." [message #9328 is a reply to message #9327] Fri, 27 April 2007 11:04 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
The program I did is not so important Wink, so I can live with that right now (I don't want to fill my system folder with lots of DLLs with installing MSCx).

When using USEMALLOC there are still errors (even though fewer):

----- CtrlLib ( GUI MT USEMALLOC GCC WIN32 ) (1 / 9)
----- CtrlCore ( GUI MT USEMALLOC GCC WIN32 ) (2 / 9)
----- RichText ( GUI MT USEMALLOC GCC WIN32 ) (3 / 9)
----- Draw ( GUI MT USEMALLOC GCC WIN32 ) (4 / 9)
----- Core ( GUI MT USEMALLOC GCC WIN32 ) (5 / 9)
String.cpp
d:\programs\upp-uvs\uppsrc\Core\/HeapImp.h:41: error: thread-local storage not supported for this targe
	t
WString.cpp
d:\programs\upp-uvs\uppsrc\Core\/HeapImp.h:41: error: thread-local storage not supported for this targe
	t
Creating library...
Core: 2 file(s) built in (0:03.05), 1527 msecs / file, duration = 3095 msecs

There were errors. (0:03.20)


Is there an #ifdef missing somewhere?

Matthias
Re: Compile error "thread-local storage not supported ..." [message #9330 is a reply to message #9328] Fri, 27 April 2007 13:30 Go to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Yes, most likely... Smile

Mirek
Previous Topic: are there any sorting routines?
Next Topic: IsUpper bug?
Goto Forum:
  


Current Time: Wed May 29 05:28:58 CEST 2024

Total time taken to generate the page: 0.01965 seconds