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 » Community » U++ community news and announcements » 708-dev2b
708-dev2b [message #11206] Mon, 27 August 2007 16:38 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I have uploaded a quick critical fix of issues of current dev releases (fixes problem with mingw compiles).

Mirek
Re: 708-dev2b [message #11207 is a reply to message #11206] Mon, 27 August 2007 18:22 Go to previous messageGo to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Works for me here on vista with mingw besides the following warning and errors:

C:\upp\uppsrc\RichText\ParseRTF.cpp: In member function `Upp::String Upp::RTFParser::ReadBinHex(char&) const':
C:\upp\uppsrc\RichText\ParseRTF.cpp:902: warning: converting of negative value `-0x000000001' to `unsigned int'

This seems to be a path-problem and is not new but still present:
gcc: Files\MySQL\MySQL\: No such file or directory
gcc: Server\: No such file or directory
gcc: 5.0\include: No such file or directory

And the building-time is 5-times longer compared to xp:
OK. (5:17.65)

With XP it build my project within 1:30
Re: 708-dev2b [message #11208 is a reply to message #11207] Mon, 27 August 2007 18:36 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Have you tried with M$ compiler?

Mirek
Re: 708-dev2b [message #11209 is a reply to message #11206] Mon, 27 August 2007 18:38 Go to previous messageGo to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
No, only testing with mingw. I have no MS-Compiler available.
Re: 708-dev2b [message #11210 is a reply to message #11209] Mon, 27 August 2007 19:01 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
You can download it for free...

Mirek
icon12.gif  Re: 708-dev2b [message #11213 is a reply to message #11206] Mon, 27 August 2007 20:11 Go to previous messageGo to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Yes, i know. I just prefer gcc.
Re: 708-dev2b [message #11216 is a reply to message #11213] Mon, 27 August 2007 20:58 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
No problem with that. But right know it would help us to know whether this is GCC or TheIDE problem Smile

BTW, there is AFAIK a new mingw, perhaps you could try that too.

Mirek
Re: 708-dev2b [message #11220 is a reply to message #11206] Tue, 28 August 2007 06:51 Go to previous messageGo to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
I'm sure for the building-speed problem it's vista and gcc. Same UPP-Version with XP and gcc builds fast.
Re: 708-dev2b [message #11221 is a reply to message #11220] Tue, 28 August 2007 08:34 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Yes, but it still could be theide problem, there can be a bug in the way how compiler is launched and its output captured...
Re: 708-dev2b [message #11222 is a reply to message #11206] Tue, 28 August 2007 08:55 Go to previous messageGo to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
Ok, i can try the MS-Compiler.

Downloaded and installed Visual C++ Express 2005 with SP1 and Platform SDK.

But there is a problem:

The IDE seems to access the PATH where the SDK-Image was placed while installing the SDK?

c:\upp\uppsrc\richtext\txtop.cpp(54) : fatal error C1001: Interner Compilerfehler.
(Compilerdatei "F:\SP\vctools\compiler\utc\src\P2\main.c[0x10BF5F00:0x0000002C]", Zeile 182)
 Vereinfachen oder  Ëndern Sie das Programm im Umfeld der oben aufgef Èhrten Positionen. W Ëhlen 
Sie im Men È "Hilfe" von Visual C++ den Befehl "Technischer Support", 
oder  Ûffnen Sie die Hilfedatei des technischen Supports, um weitere Informationen zu erhalten.
Interner Compilerfehler in C:\Programme\Microsoft Visual Studio 8\Vc\Bin\cl.exe. Sie werden aufgefordert, sp Ëter einen Fehlerbericht an Mi
	crosoft zu senden.

[Updated on: Tue, 28 August 2007 09:39]

Report message to a moderator

Re: 708-dev2b [message #11223 is a reply to message #11222] Tue, 28 August 2007 10:11 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
No, this is quite known problem - you are compiling Release with BLITZ.

Please, use BLITZ in debug mode only... (ok, we should finally add some lock there unlocked in expert mode only... Smile

Mirek
Re: 708-dev2b [message #11224 is a reply to message #11207] Tue, 28 August 2007 10:14 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
michael wrote on Mon, 27 August 2007 12:22

Works for me here on vista with mingw besides the following warning and errors:
This seems to be a path-problem and is not new but still present:
gcc: Files\MySQL\MySQL\: No such file or directory
gcc: Server\: No such file or directory
gcc: 5.0\include: No such file or directory

And the building-time is 5-times longer compared to xp:
OK. (5:17.65)

With XP it build my project within 1:30


Can you please activate "Setup/Verbose" and then post here a commandline used to invoke gcc? (Will be printed in console.).

Mirek
Re: 708-dev2b [message #11225 is a reply to message #11223] Tue, 28 August 2007 10:29 Go to previous messageGo to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
luzr wrote on Tue, 28 August 2007 10:11

No, this is quite known problem - you are compiling Release with BLITZ.

Please, use BLITZ in debug mode only... (ok, we should finally add some lock there unlocked in expert mode only... Smile

Mirek




But in the build methods BLITZ isn't checked for release mode default.
Re: 708-dev2b [message #11226 is a reply to message #11224] Tue, 28 August 2007 10:33 Go to previous messageGo to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
luzr wrote on Tue, 28 August 2007 10:14

michael wrote on Mon, 27 August 2007 12:22

Works for me here on vista with mingw besides the following warning and errors:
This seems to be a path-problem and is not new but still present:
gcc: Files\MySQL\MySQL\: No such file or directory
gcc: Server\: No such file or directory
gcc: 5.0\include: No such file or directory

And the building-time is 5-times longer compared to xp:
OK. (5:17.65)

With XP it build my project within 1:30


Can you please activate "Setup/Verbose" and then post here a commandline used to invoke gcc? (Will be printed in console.).

Mirek


Something like that?

ChWin32.cpp
c++ -c  -I"G:\Entwicklung\UPP" -I"C:\upp\uppsrc" -I"C:\upp\mingw\include" -I"C:\Programme\MySQL\MySQL Server 5.0\include" -DflagGUI -Dflag
	GCC -DflagBLITZ -DflagWIN32 -DbmYEAR=2007 -DbmMONTH=8 -DbmDAY=28 -DbmHOUR=10 -DbmMINUTE=29 -DbmSECOND=47 -static   -fexceptions  -Os -
	finline-limit=20 -ffunction-sections -x c++ "C:\upp\uppsrc\CtrlLib\ChWin32.cpp" -o "C:/upp/out/CtrlLib/MINGW.Blitz.Gui\ChWin32.o"
compiled in (0:00.01)
Re: 708-dev2b [message #11227 is a reply to message #11226] Tue, 28 August 2007 11:40 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Yes. Interesting, now there is "Programme", while the original obviously had "Program Files"?
Re: 708-dev2b [message #11228 is a reply to message #11206] Tue, 28 August 2007 11:50 Go to previous messageGo to next message
michael is currently offline  michael
Messages: 153
Registered: May 2007
Location: Germany
Experienced Member
What do you mean by original? The other posting http://www.ultimatepp.org/forum/index.php?t=msg&th=2630& amp; amp;start=0& was from my vista system at home. These output is from my xp system at work.

But both have the same error:

gcc: Files\MySQL\MySQL\: No such file or directory
gcc: Server\: No such file or directory
gcc: 5.0\include: No such file or directory


I will post the verbose output from vista when i'm at home again.

[Updated on: Tue, 28 August 2007 11:55]

Report message to a moderator

Re: 708-dev2b [message #11229 is a reply to message #11206] Tue, 28 August 2007 12:53 Go to previous messageGo to next message
dmcgeoch is currently offline  dmcgeoch
Messages: 52
Registered: November 2006
Location: New Jersey
Member
Hi,

I installed and tried to use 708-dev2b for an application that I've been working on and got the following error messages:

In file included from C:/upp/out/Core/MINGW.Debug_full.Gui.Mt\$blitz.cpp:7:
C:\upp\uppsrc\Core\Mt.cpp: In member function `bool Upp::Thread::Run(Upp::Callback)':
C:\upp\uppsrc\Core\Mt.cpp:85: error: `_beginthreadex' undeclared (first use this function)
C:\upp\uppsrc\Core\Mt.cpp:85: error: (Each undeclared identifier is reported only once for each function it appears in.)
OL_Set.cpp


This did not happen prior to the new release.

Thanks,

Dave
Re: 708-dev2b [message #11233 is a reply to message #11229] Tue, 28 August 2007 13:44 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
dmcgeoch wrote on Tue, 28 August 2007 06:53

Hi,

I installed and tried to use 708-dev2b for an application that I've been working on and got the following error messages:

In file included from C:/upp/out/Core/MINGW.Debug_full.Gui.Mt\$blitz.cpp:7:
C:\upp\uppsrc\Core\Mt.cpp: In member function `bool Upp::Thread::Run(Upp::Callback)':
C:\upp\uppsrc\Core\Mt.cpp:85: error: `_beginthreadex' undeclared (first use this function)
C:\upp\uppsrc\Core\Mt.cpp:85: error: (Each undeclared identifier is reported only once for each function it appears in.)
OL_Set.cpp


This did not happen prior to the new release.

Thanks,

Dave


Ops.

Quickfix Core/Core.h:

			#include <stdarg.h>
			#include <windef.h>
			#include <winbase.h>
			#include <wingdi.h>
			#include <winuser.h>
		#define byte win32_byte_ // RpcNdr defines byte -> class with Upp::byte
		#define CY win32_CY_
			#include <objidl.h>
		#undef byte
		#undef CY
			typedef DWORD LCTYPE;
		#else
			#define _WINSOCKAPI_   /* Prevent inclusion of winsock.h in windows.h */
			#include <windows.h>
			#include <stdint.h>
		#endif
		#include <process.h>
	#endif

	#ifdef RGBA
		#undef RGBA
	#endif
#endif


(moved #include <process.h> further in the code, to be included for mingw too).

BTW, mingw has associated huge performance penalty with MT code as it does not support thread variables - means it is not possible to use per-thread allocator cache.

Mirek
Re: 708-dev2b [message #11236 is a reply to message #11233] Tue, 28 August 2007 16:15 Go to previous messageGo to next message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Hmmm, think I will leave dev2b alone for now and wait for dev2c.

However, FYI Mirek, I get excellent performance with MT on mingw. I'm using it in a very basic way. I have large grids on which I carry out calculations which took a long time and made testing slow so I now do four grid lines at a time and get almost 400% performance on my Q6600. I am very impressed with UPP MT under mingw.

My two pence.

Nick
Re: 708-dev2b [message #11242 is a reply to message #11236] Tue, 28 August 2007 18:01 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
nixnixnix wrote on Tue, 28 August 2007 10:15

Hmmm, think I will leave dev2b alone for now and wait for dev2c.

However, FYI Mirek, I get excellent performance with MT on mingw. I'm using it in a very basic way. I have large grids on which I carry out calculations which took a long time and made testing slow so I now do four grid lines at a time and get almost 400% performance on my Q6600. I am very impressed with UPP MT under mingw.

My two pence.

Nick


Off course, it depends on what the code is doing.

In my multicore website generation, on dual core machine, mingw MT is SLOWER than single threaded... Because there is a lot of string / array manipulation and it gets hurt badly by poor performance of locking allocator.

Mirek
Previous Topic: svn 'doc' rights
Next Topic: svn public mirror
Goto Forum:
  


Current Time: Fri Mar 29 00:43:49 CET 2024

Total time taken to generate the page: 0.03002 seconds