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++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » thread-local storage not supported for this target
thread-local storage not supported for this target [message #23344] Mon, 12 October 2009 16:20 Go to next message
jiuzhi is currently offline  jiuzhi
Messages: 10
Registered: October 2009
Promising Member
I make a new project with template "CtrLib application with mainwindow",and selected "Imagelist file"&"Multithreaded" flags

And then, I press F5 to build it.There some errors.How can I make it work.

In file included from f:/upp/out/Core/MINGW.Debug.Debug_full.Gui.Mt\$blitz.cpp:10:
f:\upp\uppsrc\Core\Mt.cpp:75: error: thread-local storage not supported for this target
f:\upp\uppsrc\Core\Mt.cpp:433: error: thread-local storage not supported for this target
f:\upp\uppsrc\Core\Mt.cpp:434: error: thread-local storage not supported for this target
In file included from f:/upp/out/Core/MINGW.Debug.Debug_full.Gui.Mt\$blitz.cpp:134 :
f:\upp\uppsrc\Core\Random.cpp:180: error: thread-local storage not supported for this target
f:\upp\uppsrc\Core\Random.cpp:181: error: thread-local storage not supported for this target
heaputil.cpp
lheap.cpp
In file included from f:/upp/out/Draw/MINGW.Debug.Debug_full.Gui.Mt\$blitz.cpp:3:
f:\upp\uppsrc\Draw\DrawLock.cpp:11: error: thread-local storage not supported for this target
In file included from f:/upp/out/Draw/MINGW.Debug.Debug_full.Gui.Mt\$blitz.cpp:10:
f:\upp\uppsrc\Draw\Font.cpp:266: error: thread-local storage not supported for this target
f:\upp\uppsrc\Draw\Font.cpp:328: error: thread-local storage not supported for this target
f:\upp\uppsrc\Draw\Font.cpp:355: error: thread-local storage not supported for this target
f:\upp\uppsrc\Draw\Font.cpp:356: error: thread-local storage not supported for this target
f:\upp\uppsrc\Draw\Font.cpp:357: error: thread-local storage not supported for this target
Re: thread-local storage not supported for this target [message #23345 is a reply to message #23344] Mon, 12 October 2009 21:02 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
jiuzhi wrote on Mon, 12 October 2009 10:20

I make a new project with template "CtrLib application with mainwindow",and selected "Imagelist file"&"Multithreaded" flags

And then, I press F5 to build it.There some errors.How can I make it work.

In file included from f:/upp/out/Core/MINGW.Debug.Debug_full.Gui.Mt\$blitz.cpp:10:
f:\upp\uppsrc\Core\Mt.cpp:75: error: thread-local storage not supported for this target
f:\upp\uppsrc\Core\Mt.cpp:433: error: thread-local storage not supported for this target
f:\upp\uppsrc\Core\Mt.cpp:434: error: thread-local storage not supported for this target
In file included from f:/upp/out/Core/MINGW.Debug.Debug_full.Gui.Mt\$blitz.cpp:134 :
f:\upp\uppsrc\Core\Random.cpp:180: error: thread-local storage not supported for this target
f:\upp\uppsrc\Core\Random.cpp:181: error: thread-local storage not supported for this target
heaputil.cpp
lheap.cpp
In file included from f:/upp/out/Draw/MINGW.Debug.Debug_full.Gui.Mt\$blitz.cpp:3:
f:\upp\uppsrc\Draw\DrawLock.cpp:11: error: thread-local storage not supported for this target
In file included from f:/upp/out/Draw/MINGW.Debug.Debug_full.Gui.Mt\$blitz.cpp:10:
f:\upp\uppsrc\Draw\Font.cpp:266: error: thread-local storage not supported for this target
f:\upp\uppsrc\Draw\Font.cpp:328: error: thread-local storage not supported for this target
f:\upp\uppsrc\Draw\Font.cpp:355: error: thread-local storage not supported for this target
f:\upp\uppsrc\Draw\Font.cpp:356: error: thread-local storage not supported for this target
f:\upp\uppsrc\Draw\Font.cpp:357: error: thread-local storage not supported for this target


U++ needs TLS. Mingw does not provide one.

Save yourself the trouble and get free M$ Windows SDK (with compiler).

Mirek
Re: thread-local storage not supported for this target [message #23346 is a reply to message #23345] Tue, 13 October 2009 01:55 Go to previous messageGo to next message
jiuzhi is currently offline  jiuzhi
Messages: 10
Registered: October 2009
Promising Member
[quote title=luzr wrote on Tue, 13 October 2009 03:02
U++ needs TLS. Mingw does not provide one.

Save yourself the trouble and get free M$ Windows SDK (with compiler).

Mirek[/quote]
Under Chinese version windows, vs2005+(vs2003 excepted) cannot compile utf8 encoded source files properly.There're will be many C2001 errors,therefore I chose mingw to take the compiler.

Can I use other thread library?If can, what have to pay attention?

Because I look at upp just now two days, if asked the question is too bothersome or too tired with, I felt that was sorry very much.

[Updated on: Tue, 13 October 2009 01:56]

Report message to a moderator

Re: thread-local storage not supported for this target [message #23347 is a reply to message #23344] Tue, 13 October 2009 07:20 Go to previous messageGo to next message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
jiuzhi wrote on Mon, 12 October 2009 16:20

I make a new project with template "CtrLib application with mainwindow",and selected "Imagelist file"&"Multithreaded" flags

And then, I press F5 to build it.There some errors.How can I make it work.


Hello, Jiang.

You didn't say about your version of GCC.
With 4.4.1 version of TDM's GCC such a package can be compiled.

[Updated on: Tue, 13 October 2009 07:22]

Report message to a moderator

Re: thread-local storage not supported for this target [message #23348 is a reply to message #23347] Tue, 13 October 2009 10:28 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Unfortunately, this does help in not getting the error but as reported here:
http://www.ultimatepp.org/forum/index.php?t=msg&th=4583& amp;start=0&
it is very slow.
At least that is with Apps using GuiLock mechanism.

Regards,
Matthias
icon14.gif  Re: thread-local storage not supported for this target [message #23349 is a reply to message #23348] Tue, 13 October 2009 12:30 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
... I think that Sender is right. There are new news about it ... Smile

Best regards
Iñaki
Re: thread-local storage not supported for this target [message #23350 is a reply to message #23349] Tue, 13 October 2009 13:33 Go to previous messageGo to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Koldo, have you tried the latest build (08/10/2009) ?
If that works I will also update my MingW installation.

Regards,
Matthias
Re: thread-local storage not supported for this target [message #23351 is a reply to message #23346] Tue, 13 October 2009 14:10 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
[quote title=jiuzhi wrote on Mon, 12 October 2009 19:55]
luzr wrote on Tue, 13 October 2009 03:02
U++ needs TLS. Mingw does not provide one.

Save yourself the trouble and get free M$ Windows SDK (with compiler).

Mirek[/quote


Under Chinese version windows, vs2005+(vs2003 excepted) cannot compile utf8 encoded source files properly.There're will be many C2001 errors,therefore I chose mingw to take the compiler.



Yes, that is unfortunately true. We were trying to workaround this problem for years.... to no avail. The only known fix is to set your XP locals to English...

Quote:


Can I use other thread library?If can, what have to pay attention?



TLS is quite important building block of any serious MT effort, thus I guess it will be limiting issue anyway.

Of course, depends on what are you planing to do with MT. If performance is your concern, a good TLS implementation is a big plus.
Re: thread-local storage not supported for this target [message #23352 is a reply to message #23350] Tue, 13 October 2009 14:10 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Matthias

Sender Ghost did it before me!

TDM developed a new GCC 4.4.1 in 2009-10-08 (http://www.tdragon.net/recentgcc/)

In the TDM main page, News area, they say:
Quote:

2009-10-08
The second TDM release of GCC 4.4.1 is finally available, fixing the bug that caused a major slowdown in nearly any non-trivial program. (This is the only change from the first release.)


This matches exactly with the problem we found in http://www.ultimatepp.org/forum/index.php?t=msg&goto=228 00&

GuiLock and GuiMT examples now work perfectly (my own MT applications too).

Really good news for MinGW supporters Smile.

Best regards
Koldo

PD. If anybody uses SysInfo Bazaar package (in windows), please do not forget to copy additional include and lib files over new mingw install as documented


Best regards
Iñaki
Re: thread-local storage not supported for this target [message #23426 is a reply to message #23352] Sun, 18 October 2009 21:32 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Tue, 13 October 2009 08:10

Hello Matthias

Sender Ghost did it before me!

TDM developed a new GCC 4.4.1 in 2009-10-08 (http://www.tdragon.net/recentgcc/)

In the TDM main page, News area, they say:
Quote:

2009-10-08
The second TDM release of GCC 4.4.1 is finally available, fixing the bug that caused a major slowdown in nearly any non-trivial program. (This is the only change from the first release.)


This matches exactly with the problem we found in http://www.ultimatepp.org/forum/index.php?t=msg&goto=228 00&

GuiLock and GuiMT examples now work perfectly (my own MT applications too).

Really good news for MinGW supporters Smile.

Best regards
Koldo

PD. If anybody uses SysInfo Bazaar package (in windows), please do not forget to copy additional include and lib files over new mingw install as documented



Intereseting. Do you thing that they have not better TLS support?

Have you checked in disassembler?

Mirek
Previous Topic: package organizer add/remove flags
Next Topic: Building with Windows 7 SDK (on Vista x64)
Goto Forum:
  


Current Time: Fri Mar 29 06:38:20 CET 2024

Total time taken to generate the page: 0.01265 seconds