[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-notify
Subject:    MinGW-notify Digest, Vol 72, Issue 2
From:       mingw-notify-request () lists ! sourceforge ! net
Date:       2012-05-04 13:04:31
Message-ID: mailman.351381.1336136671.11409.mingw-notify () lists ! sourceforge ! net
[Download RAW message or body]

Send MinGW-notify mailing list submissions to
	mingw-notify@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/mingw-notify
or, via email, send a message with subject or body 'help' to
	mingw-notify-request@lists.sourceforge.net

You can reach the person managing the list at
	mingw-notify-owner@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MinGW-notify digest..."


This list is used to send updates of submitted patches, bug reports and file \
releases.  You are discouraged from posting to this list.  If you wish to unsubscribe \
you can do so at https://lists.sourceforge.net/lists/listinfo/mingw-notify.

Today's Topics:

   1. [ mingw-Bugs-3523436 ] make's configure cross	compiling on
      Ubuntu (SF/projects/mingw notification list)
   2. [ mingw-Support Requests-3523433 ] MinGW option:	check buffer
      overflow (SF/projects/mingw notification list)
   3. [ mingw-Support Requests-3523433 ] MinGW option:	check buffer
      overflow (SF/projects/mingw notification list)
   4. [ mingw-Support Requests-3523436 ] make's configure	cross
      compiling on Ubuntu (SF/projects/mingw notification list)
   5. [ mingw-Support Requests-3522956 ] MinGW Compiler	Flag issue,
      -Wall (SF/projects/mingw notification list)
   6. [ mingw-Support Requests-3522956 ] MinGW Compiler	Flag issue,
      -Wall (SF/projects/mingw notification list)


----------------------------------------------------------------------

Message: 1
Date: Fri, 04 May 2012 01:34:09 -0700
From: SF/projects/mingw notification list
	<mingw-notify@lists.sourceforge.net>
Subject: [MinGW-notify] [ mingw-Bugs-3523436 ] make's configure cross
	compiling on Ubuntu
To: SourceForge.net <noreply@sourceforge.net>
Message-ID:
	<mailman.351382.1336136671.11409.mingw-notify@lists.sourceforge.net>
Content-Type: text/plain; charset=UTF-8

Bugs item #3523436, was opened at 2012-05-04 01:34
Message generated for change (Tracker Item Submitted) made by jabjoe
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3523436&group_id=2435

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: MSYS
Group: component package
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Joe Burmeister (jabjoe)
Assigned to: Nobody/Anonymous (nobody)
Summary: make's configure cross compiling on Ubuntu

Initial Comment:
I was waiting to cross compile make on Ubuntu and was having a problem that WINDOWS32 \
wasn't defined. It turned out to be because the configure file is slightly wrong for \
the naming of mingw on Ubuntu.

On Ubuntu mingw is mingw32msvc so the configure file doesn't create the correct \
config.h because:

case "$host" in
  *-*-mingw32)

doesn't match mingw32msvc. Simply adding a wildcard on the end of mingw32 makes it \
match, and thus create the correct config.h, thus build. The fix is replace the above \
with the below.

case "$host" in
  *-*-mingw32*)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3523436&group_id=2435



------------------------------

Message: 2
Date: Fri, 04 May 2012 01:51:45 -0700
From: SF/projects/mingw notification list
	<mingw-notify@lists.sourceforge.net>
Subject: [MinGW-notify] [ mingw-Support Requests-3523433 ] MinGW
	option:	check buffer overflow
To: SourceForge.net <noreply@sourceforge.net>
Message-ID:
	<mailman.351383.1336136671.11409.mingw-notify@lists.sourceforge.net>
Content-Type: text/plain; charset=UTF-8

Support Requests item #3523433, was opened at 2012-05-04 01:25
Message generated for change (Settings changed) made by intergve
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=202435&aid=3523433&group_id=2435

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: MinGW
> Group: Feature Request
Status: Open
Priority: 5
Private: No
Submitted By: INTERGVE (intergve)
Assigned to: Nobody/Anonymous (nobody)
Summary: MinGW option: check buffer overflow

Initial Comment:
Hi,

I wanted to know if there were a MinGW option allowing to check a buffer overflow.
For example, I would like a warning with the following code:
int tab[10];
tab[20]=3;

I know that there is this option with in Visual C++ (/GS (Buffer Security Check)), \
but with MinGW?

Thanks,

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=202435&aid=3523433&group_id=2435



------------------------------

Message: 3
Date: Fri, 04 May 2012 04:47:40 -0700
From: SF/projects/mingw notification list
	<mingw-notify@lists.sourceforge.net>
Subject: [MinGW-notify] [ mingw-Support Requests-3523433 ] MinGW
	option:	check buffer overflow
To: SourceForge.net <noreply@sourceforge.net>
Message-ID:
	<mailman.351384.1336136671.11409.mingw-notify@lists.sourceforge.net>
Content-Type: text/plain; charset=UTF-8

Support Requests item #3523433, was opened at 2012-05-04 01:25
Message generated for change (Comment added) made by earnie
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=202435&aid=3523433&group_id=2435

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: MinGW
Group: Feature Request
> Status: Closed
Priority: 5
Private: No
Submitted By: INTERGVE (intergve)
Assigned to: Nobody/Anonymous (nobody)
Summary: MinGW option: check buffer overflow

Initial Comment:
Hi,

I wanted to know if there were a MinGW option allowing to check a buffer overflow.
For example, I would like a warning with the following code:
int tab[10];
tab[20]=3;

I know that there is this option with in Visual C++ (/GS (Buffer Security Check)), \
but with MinGW?

Thanks,

----------------------------------------------------------------------

> Comment By: Earnie Boyd (earnie)
Date: 2012-05-04 04:47

Message:
Please ask this question at mingw-users@lists.sourceforge.net.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=202435&aid=3523433&group_id=2435



------------------------------

Message: 4
Date: Fri, 04 May 2012 04:51:43 -0700
From: SF/projects/mingw notification list
	<mingw-notify@lists.sourceforge.net>
Subject: [MinGW-notify] [ mingw-Support Requests-3523436 ] make's
	configure	cross compiling on Ubuntu
To: SourceForge.net <noreply@sourceforge.net>
Message-ID:
	<mailman.351385.1336136671.11409.mingw-notify@lists.sourceforge.net>
Content-Type: text/plain; charset=UTF-8

Support Requests item #3523436, was opened at 2012-05-04 01:34
Message generated for change (Comment added) made by earnie
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=202435&aid=3523436&group_id=2435

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
> Category: None
> Group: None
> Status: Closed
Priority: 5
Private: No
Submitted By: Joe Burmeister (jabjoe)
Assigned to: Nobody/Anonymous (nobody)
Summary: make's configure cross compiling on Ubuntu

Initial Comment:
I was waiting to cross compile make on Ubuntu and was having a problem that WINDOWS32 \
wasn't defined. It turned out to be because the configure file is slightly wrong for \
the naming of mingw on Ubuntu.

On Ubuntu mingw is mingw32msvc so the configure file doesn't create the correct \
config.h because:

case "$host" in
  *-*-mingw32)

doesn't match mingw32msvc. Simply adding a wildcard on the end of mingw32 makes it \
match, and thus create the correct config.h, thus build. The fix is replace the above \
with the below.

case "$host" in
  *-*-mingw32*)


----------------------------------------------------------------------

> Comment By: Earnie Boyd (earnie)
Date: 2012-05-04 04:51

Message:
This is a user error in specifying the host for which the package is to be
residing for.  You should specify --host=mingw32 to resolve this issue. 
There is no such system as mingw32msvc.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=202435&aid=3523436&group_id=2435



------------------------------

Message: 5
Date: Fri, 04 May 2012 04:54:47 -0700
From: SF/projects/mingw notification list
	<mingw-notify@lists.sourceforge.net>
Subject: [MinGW-notify] [ mingw-Support Requests-3522956 ] MinGW
	Compiler	Flag issue, -Wall
To: SourceForge.net <noreply@sourceforge.net>
Message-ID:
	<mailman.351386.1336136671.11409.mingw-notify@lists.sourceforge.net>
Content-Type: text/plain; charset=UTF-8

Support Requests item #3522956, was opened at 2012-05-02 02:24
Message generated for change (Comment added) made by earnie
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=202435&aid=3522956&group_id=2435

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Other
Group: None
> Status: Pending
Priority: 5
Private: No
Submitted By: Melchior (joe_devore)
Assigned to: Nobody/Anonymous (nobody)
Summary: MinGW Compiler Flag issue, -Wall

Initial Comment:
I Believe there is a bug in the 
ld.exe
linker...

cpuZ
and Speccy which uses the cpuID code

are failing to run properly

Speccy is telling me it cannot load the SPC dll....
what ever that is @_@ ?_?


here is the command line I used:
g++ -Wall -March=686 -s -O3 -m32 -o TConverter_C++.exe TConverter_C++.cpp

I originally tried (the basics):
g++ -s -o TConverter_C++.exe TConverter_C++.cpp



I felt in the mood and started to port a bit of my Temperature
converter app from C to C++
after redoing a C and C++ Hello world App from memory
 though I only studied C in college 10 & 11 yrs ago...
 I did look up a bit of C++ to write a basic hello-world app..
 and used from what I remember to code this I'll attach
 Dependency Walker text files bellow as well a copy
 of my Temperature converter app
 
 after having worked out a few lol bugs as it were it compiles just fine...
 so 
 the in the file
 DependecyWalker_normal__CC1PLUS.txt
 when I ran the compiler (G++) that time...
 I had made a single change that would prevent linking to try and narrow down where \
the bug was occurring..  note the linker (ld.exe) did not run...
 I restarted Speccy and cpuZ afterwards...
 they ran fine...  
 
 I undid the temp bug (just a classic, missing a ';' lol)
 re ran  through Dependency Walker to catch it all, or at least what ever Dependency \
Walker can catch...  using:
 -s  -m32 -o TConverter_C++.exe TConverter_C++.cpp
 and.... lol WoW Speccy seems to be running normally....
 so I ran my App... (9KB)
 O_O ;_; bug/issue did *Not* occur o_O
 Run-Ok: {g++ -s -m32 -o TConverter_C++.exe TConverter_C++.cpp}
 Run-Ok: {g++ -s -O3 -m32 -o TConverter_C++.exe TConverter_C++.cpp}
 Run-OK: {g++ -March=686 -s -O3 -m32 -o TConverter_C++.exe TConverter_C++.cpp}
 
 Compile&Link:Ok {g++ -Wall -s -O3 -m32 -o TConverter_C++.exe TConverter_C++.cpp}
 When I go to run my App then I ran Speccy... It FAILS to function normally!...
 so I narrowed it down to the '-Wall' switch
 
 I remember it back from my Class days(2001-'02).. but of course I was using the \
CS-Lab's MS Visual Studios  then so the -Wall apparently is no good with MinGW... \
no... I guess I was mistaken  it is also used in the makefile for zsnes a SNES \
Emulator...  I don't remember if I saw it else where or not.. sorry..   
 Isn't it supposed to be the... Warn on 'ALL' Errors command switch?
 -Wall
 a system restart is needed to remedy the issue?
 
 So I wonder what the issue is...
 If its a bug in my app I do Apologize I don't mean to waste anyone's time loi.

----------------------------------------------------------------------

> Comment By: Earnie Boyd (earnie)
Date: 2012-05-04 04:54

Message:
Oh, I didn't catch it in my first reply.  It is -march=i586 instead.  The i
being for Intel.

----------------------------------------------------------------------

Comment By: Melchior (joe_devore)
Date: 2012-05-03 20:31

Message:
Thx for the heads up, yeah of course that's  case sensitive loi

but I just tried it lowercase.. compiler fails..

g++ -march=586 -s -O3 -m32 -o TConverter_C++.exe TConverter_C++.cpp
TConverter_C++.cpp:1:0: error: bad value (586) for -march= switch

----------------------------------------------------------------------

Comment By: Earnie Boyd (earnie)
Date: 2012-05-02 04:57

Message:
Firstly, -March=586 should be -march=586, I'll take a look at the source
later.

----------------------------------------------------------------------

Comment By: Melchior (joe_devore)
Date: 2012-05-02 02:56

Message:
I re ran the compiler/batch file:
compile_C++.cmd::
{
> > Windows Command Line Batch file, 
> > for Compiling test programs for learning.
g++ -March=586 -s -O3 -m32 -o TConverter_C++_Normal.exe TConverter_C++.cpp
g++ -Wall  -March=586 -s -O3 -m32 -o TConverter_C++_Wall.exe
TConverter_C++.cpp
pause
}

so they would compile at the same time...
Speccy, and cpuZ, both load after... so it seems more likely its a
byproduct of the flag and not so much the Compiler/Linker itself?

I executed the "normal" one 1st, aok, Speccy and cpuZ load fine.
I then ran the one compiled with the "-Wall" compiler flag, through
Dependency Walker
ok app loaded waiting for my Temperature input... Speccy loads...
I enter a temperature... I get an output, Speccy Runs again...... waiting
at {cin.get();} holding the console window open so I can read the
output....

ok just weird... Speccy/cpuZ still ran fine......

The only difference i can think of is I currently, have a Wifi Signal, ie
Internet access... I don't have in-house internet (($$))



I noted two Dependencies as stated in Dependency Walker:
LIBGCC_S_DW2-1.DLL
LIBSTDC++-6.DLL

would such a simple and tiny app not have any dependencies as it would get
compiled into it?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=202435&aid=3522956&group_id=2435



------------------------------

Message: 6
Date: Fri, 04 May 2012 06:04:31 -0700
From: SF/projects/mingw notification list
	<mingw-notify@lists.sourceforge.net>
Subject: [MinGW-notify] [ mingw-Support Requests-3522956 ] MinGW
	Compiler	Flag issue, -Wall
To: SourceForge.net <noreply@sourceforge.net>
Message-ID:
	<mailman.351387.1336136671.11409.mingw-notify@lists.sourceforge.net>
Content-Type: text/plain; charset=UTF-8

Support Requests item #3522956, was opened at 2012-05-02 02:24
Message generated for change (Comment added) made by joe_devore
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=202435&aid=3522956&group_id=2435

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Other
Group: None
Status: Pending
Priority: 5
Private: No
Submitted By: Melchior (joe_devore)
Assigned to: Nobody/Anonymous (nobody)
Summary: MinGW Compiler Flag issue, -Wall

Initial Comment:
I Believe there is a bug in the 
ld.exe
linker...

cpuZ
and Speccy which uses the cpuID code

are failing to run properly

Speccy is telling me it cannot load the SPC dll....
what ever that is @_@ ?_?


here is the command line I used:
g++ -Wall -March=686 -s -O3 -m32 -o TConverter_C++.exe TConverter_C++.cpp

I originally tried (the basics):
g++ -s -o TConverter_C++.exe TConverter_C++.cpp



I felt in the mood and started to port a bit of my Temperature
converter app from C to C++
after redoing a C and C++ Hello world App from memory
 though I only studied C in college 10 & 11 yrs ago...
 I did look up a bit of C++ to write a basic hello-world app..
 and used from what I remember to code this I'll attach
 Dependency Walker text files bellow as well a copy
 of my Temperature converter app
 
 after having worked out a few lol bugs as it were it compiles just fine...
 so 
 the in the file
 DependecyWalker_normal__CC1PLUS.txt
 when I ran the compiler (G++) that time...
 I had made a single change that would prevent linking to try and narrow down where \
the bug was occurring..  note the linker (ld.exe) did not run...
 I restarted Speccy and cpuZ afterwards...
 they ran fine...  
 
 I undid the temp bug (just a classic, missing a ';' lol)
 re ran  through Dependency Walker to catch it all, or at least what ever Dependency \
Walker can catch...  using:
 -s  -m32 -o TConverter_C++.exe TConverter_C++.cpp
 and.... lol WoW Speccy seems to be running normally....
 so I ran my App... (9KB)
 O_O ;_; bug/issue did *Not* occur o_O
 Run-Ok: {g++ -s -m32 -o TConverter_C++.exe TConverter_C++.cpp}
 Run-Ok: {g++ -s -O3 -m32 -o TConverter_C++.exe TConverter_C++.cpp}
 Run-OK: {g++ -March=686 -s -O3 -m32 -o TConverter_C++.exe TConverter_C++.cpp}
 
 Compile&Link:Ok {g++ -Wall -s -O3 -m32 -o TConverter_C++.exe TConverter_C++.cpp}
 When I go to run my App then I ran Speccy... It FAILS to function normally!...
 so I narrowed it down to the '-Wall' switch
 
 I remember it back from my Class days(2001-'02).. but of course I was using the \
CS-Lab's MS Visual Studios  then so the -Wall apparently is no good with MinGW... \
no... I guess I was mistaken  it is also used in the makefile for zsnes a SNES \
Emulator...  I don't remember if I saw it else where or not.. sorry..   
 Isn't it supposed to be the... Warn on 'ALL' Errors command switch?
 -Wall
 a system restart is needed to remedy the issue?
 
 So I wonder what the issue is...
 If its a bug in my app I do Apologize I don't mean to waste anyone's time loi.

----------------------------------------------------------------------

Comment By: Melchior (joe_devore)
Date: 2012-05-04 06:04

Message:
so if  its lowercase  'm'
 -march=i586

-March=586 seems to be taken... no compile errors or is it just ignored?

eyy no worries loi

-march=native,
 still works right? compile for the cpu your currently running?

----------------------------------------------------------------------

Comment By: Earnie Boyd (earnie)
Date: 2012-05-04 04:54

Message:
Oh, I didn't catch it in my first reply.  It is -march=i586 instead.  The i
being for Intel.

----------------------------------------------------------------------

Comment By: Melchior (joe_devore)
Date: 2012-05-03 20:31

Message:
Thx for the heads up, yeah of course that's  case sensitive loi

but I just tried it lowercase.. compiler fails..

g++ -march=586 -s -O3 -m32 -o TConverter_C++.exe TConverter_C++.cpp
TConverter_C++.cpp:1:0: error: bad value (586) for -march= switch

----------------------------------------------------------------------

Comment By: Earnie Boyd (earnie)
Date: 2012-05-02 04:57

Message:
Firstly, -March=586 should be -march=586, I'll take a look at the source
later.

----------------------------------------------------------------------

Comment By: Melchior (joe_devore)
Date: 2012-05-02 02:56

Message:
I re ran the compiler/batch file:
compile_C++.cmd::
{
> > Windows Command Line Batch file, 
> > for Compiling test programs for learning.
g++ -March=586 -s -O3 -m32 -o TConverter_C++_Normal.exe TConverter_C++.cpp
g++ -Wall  -March=586 -s -O3 -m32 -o TConverter_C++_Wall.exe
TConverter_C++.cpp
pause
}

so they would compile at the same time...
Speccy, and cpuZ, both load after... so it seems more likely its a
byproduct of the flag and not so much the Compiler/Linker itself?

I executed the "normal" one 1st, aok, Speccy and cpuZ load fine.
I then ran the one compiled with the "-Wall" compiler flag, through
Dependency Walker
ok app loaded waiting for my Temperature input... Speccy loads...
I enter a temperature... I get an output, Speccy Runs again...... waiting
at {cin.get();} holding the console window open so I can read the
output....

ok just weird... Speccy/cpuZ still ran fine......

The only difference i can think of is I currently, have a Wifi Signal, ie
Internet access... I don't have in-house internet (($$))



I noted two Dependencies as stated in Dependency Walker:
LIBGCC_S_DW2-1.DLL
LIBSTDC++-6.DLL

would such a simple and tiny app not have any dependencies as it would get
compiled into it?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=202435&aid=3522956&group_id=2435



------------------------------

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

------------------------------

_______________________________________________
MinGW-notify mailing list
MinGW-notify@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-notify


End of MinGW-notify Digest, Vol 72, Issue 2
*******************************************


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic