[MinGW-Notify] [mingw] #40502: gcc on msys2 the compiler is failing

Back to archive index
MinGW Notification List mingw****@lists*****
Wed Jun 24 07:14:15 JST 2020


#40502: gcc on msys2 the compiler is failing

  Open Date: 2020-06-23 21:26
Last Update: 2020-06-23 23:14

URL for this Ticket:
    https://osdn.net//projects/mingw/ticket/40502
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40502

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

Last Changes/Comment on this Ticket:
2020-06-23 23:14 Updated by: keith
 * Status Update from Open to Closed

 * Resolution Update from None to Invalid


Comment:

<sigh>How many times must I reject such invalid tickets?</sigh>

MSYS2 is not a MinGW.org product ... indeed, their use of "mingw" within their
product name infringes our registered trademark. We do not offer support for
any product from such rogue projects.



---------------------------------------------------------------------
Ticket Status:

      Reporter: xero
         Owner: (None)
          Type: Issues
        Status: Closed
      Priority: 8
     MileStone: Create a 64bit build environment for the MinGW.org project.
     Component: GCC
      Severity: 5 - Medium
    Resolution: Invalid
---------------------------------------------------------------------

Ticket details:

When I use gcc on MSYS2 Package

Installation: pacman -S mingw-w64-x86_64-gcc Version: 10.1.0-3 Build Date:
2020-06-01 11:25:47

ld -v: GNU ld (GNU Binutils) 2.34 MINGW64_NT-10.0-18362 Fx 3.1.5-340.x86_64
2020-06-06 09:16 UTC x86_64 Msys

I get a problem from this sample code:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

 1.  //  myproject.c
 2.  #include <stdio.h>
 3.  #include <string.h>
 4.  
 5.  #define PROJECT_NAME "myproject"
 6.  
 7.  char *x(char *name) {
 8.      char a[100]="Hello ";
 9.      return strcat(a, name);
10.  }
11.  
12.  int main(int argc, char **argv) {
13.     printf("%s\n", x("fer"));
14.     return 0;
15.  }

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

I compile it but it's working bad :(, then I run :

command  output

|| gcc -o a1 myproject.c || $ ./a1.exe This is project myproject. ■d

||

please give me suggestion because i try it on linux, I thins the code is ok.



-- 
Ticket information of MinGW - Minimalist GNU for Windows project
MinGW - Minimalist GNU for Windows Project is hosted on OSDN

Project URL: https://osdn.net/projects/mingw/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/mingw/ticket/40502
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=3917&tid=40502



More information about the MinGW-Notify mailing list
Back to archive index