Quantcast

mingw compiling git

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

mingw compiling git

Peter Bohning
Hi,
   I'm trying to compile git from source, I got mingw from the package installer.
 
   It complained about "cc" so I added a link to gcc, but now I'm getting:
 
    CC credential-store.o
In file included from c:\mingw\include\winsock2.h:22:0,
                 from git-compat-util.h:153,
                 from cache.h:4,
                 from credential-store.c:1:
c:\mingw\include\windows.h:41:20: fatal error: stdarg.h: No such file or directory
 #include <stdarg.h>
                    ^
compilation terminated.
make: *** [credential-store.o] Error 1
 
I thought it might be backslashes in the include paths as per gcc -v, but they work with compiling other things so I'm not sure what the problem with git is.  Any help would be appreciated.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mingw compiling git

Eli Zaretskii
> From: "Peter Bohning" <[hidden email]>
> Date: Sat, 23 Jul 2016 09:19:52 +0200
>
> CC credential-store.o
> In file included from c:\mingw\include\winsock2.h:22:0,
> from git-compat-util.h:153,
> from cache.h:4,
> from credential-store.c:1:
> c:\mingw\include\windows.h:41:20: fatal error: stdarg.h: No such file or directory
> #include <stdarg.h>
> ^
> compilation terminated.
> make: *** [credential-store.o] Error 1

Your MinGW installation seems to be broken.  stdarg.h comes with GCC,
and should be in lib/gcc/mingw32/5.3.0/include/ (assuming your GCC is
version 5.3.0, the latest).

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mingw compiling git

Peter Bohning
 
 
Sent: Saturday, July 23, 2016 at 3:54 AM
From: "Eli Zaretskii" <[hidden email]>
To: "MinGW Users List" <[hidden email]>
Subject: Re: [Mingw-users] mingw compiling git
> From: "Peter Bohning" <[hidden email]>
> Date: Sat, 23 Jul 2016 09:19:52 +0200
>
> CC credential-store.o
> In file included from c:\mingw\include\winsock2.h:22:0,
> from git-compat-util.h:153,
> from cache.h:4,
> from credential-store.c:1:
> c:\mingw\include\windows.h:41:20: fatal error: stdarg.h: No such file or directory
> #include <stdarg.h>
> ^
> compilation terminated.
> make: *** [credential-store.o] Error 1

Your MinGW installation seems to be broken. stdarg.h comes with GCC,
and should be in lib/gcc/mingw32/5.3.0/include/ (assuming your GCC is
version 5.3.0, the latest).
 
Its there, 4.9.3, but the git Makefile from ./configure can't find it.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mingw compiling git

Eli Zaretskii
> From: "Peter Bohning" <[hidden email]>
> Date: Sat, 23 Jul 2016 16:25:36 +0200
>
> > In file included from c:\mingw\include\winsock2.h:22:0,
> > from git-compat-util.h:153,
> > from cache.h:4,
> > from credential-store.c:1:
> > c:\mingw\include\windows.h:41:20: fatal error: stdarg.h: No such file or directory
> > #include <stdarg.h>
> > ^
> > compilation terminated.
> > make: *** [credential-store.o] Error 1
>
> Your MinGW installation seems to be broken. stdarg.h comes with GCC,
> and should be in lib/gcc/mingw32/5.3.0/include/ (assuming your GCC is
> version 5.3.0, the latest).
> Its there, 4.9.3, but the git Makefile from ./configure can't find it.

The error message is from GCC, not from Makefile.  So the problem is
indeed in your GCC installation.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mingw compiling git

Peter Bohning
 
Sent: Saturday, July 23, 2016 at 10:47 AM
From: "Eli Zaretskii" <[hidden email]>
To: "Peter Bohning" <[hidden email]>
Cc: [hidden email]
Subject: Re: [Mingw-users] mingw compiling git
> From: "Peter Bohning" <[hidden email]>
> Date: Sat, 23 Jul 2016 16:25:36 +0200
>
> > In file included from c:\mingw\include\winsock2.h:22:0,
> > from git-compat-util.h:153,
> > from cache.h:4,
> > from credential-store.c:1:
> > c:\mingw\include\windows.h:41:20: fatal error: stdarg.h: No such file or directory
> > #include <stdarg.h>
> > ^
> > compilation terminated.
> > make: *** [credential-store.o] Error 1
>
> Your MinGW installation seems to be broken. stdarg.h comes with GCC,
> and should be in lib/gcc/mingw32/5.3.0/include/ (assuming your GCC is
> version 5.3.0, the latest).
> Its there, 4.9.3, but the git Makefile from ./configure can't find it.

The error message is from GCC, not from Makefile. So the problem is
indeed in your GCC installation.
 
Well but if I use gcc on a different file with stdarg, it finds it.  So its something about the way git calls the compiler that maybe uses strings with backslashes wrong or something.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mingw compiling git

Eli Zaretskii
> From: "Peter Bohning" <[hidden email]>
> Date: Sat, 23 Jul 2016 17:26:29 +0200
> Sensitivity: Normal
>
> Well but if I use gcc on a different file with stdarg, it finds it. So its something about the way git calls the
> compiler that maybe uses strings with backslashes wrong or something.

Could be, but then how can we help you here, unless you tell more
about the build process, like some environment variables set by it, or
GCC options it uses?

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mingw compiling git

Peter Bohning
 
 
Sent: Saturday, July 23, 2016 at 12:53 PM
From: "Eli Zaretskii" <[hidden email]>
To: "MinGW Users List" <[hidden email]>
Subject: Re: [Mingw-users] mingw compiling git
> From: "Peter Bohning" <[hidden email]>
> Date: Sat, 23 Jul 2016 17:26:29 +0200
> Sensitivity: Normal
>
> Well but if I use gcc on a different file with stdarg, it finds it. So its something about the way git calls the
> compiler that maybe uses strings with backslashes wrong or something.

Could be, but then how can we help you here, unless you tell more
about the build process, like some environment variables set by it, or
GCC options it uses?
 
I'm not sure if configure failed before and I didn't notice, but I tried it again and got a socklen_t cannot find replacement type, so I altered the configure file and added #include <ws2tcpip.h>.  Configure works but now I'm getting more make file errors:
 
<command-line>:0:18: error: redefinition of 'struct sockaddr_in'
In file included from git-compat-util.h:153:0,
from cache.h:4,
from credential-store.c:1:
c:\mingw\include\winsock2.h:254:8 note originally defined here
struct sockaddr_in {
 
redefinition of struct itimerval
compat/mingw.h: originally defined here
 
compat/bswap.h:12:15: error: unknown type name 'uint32_t'
static inline uint32_t default_swab32(uint32_t val)

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mingw compiling git

Peter Bohning
 
 
Sent: Saturday, July 23, 2016 at 3:40 PM
From: "Peter Bohning" <[hidden email]>
To: [hidden email], [hidden email]
Subject: Re: [Mingw-users] mingw compiling git
 
 
Sent: Saturday, July 23, 2016 at 12:53 PM
From: "Eli Zaretskii" <[hidden email]>
To: "MinGW Users List" <[hidden email]>
Subject: Re: [Mingw-users] mingw compiling git
> From: "Peter Bohning" <[hidden email]>
> Date: Sat, 23 Jul 2016 17:26:29 +0200
> Sensitivity: Normal
>
> Well but if I use gcc on a different file with stdarg, it finds it. So its something about the way git calls the
> compiler that maybe uses strings with backslashes wrong or something.

Could be, but then how can we help you here, unless you tell more
about the build process, like some environment variables set by it, or
GCC options it uses?
 
I'm not sure if configure failed before and I didn't notice, but I tried it again and got a socklen_t cannot find replacement type, so I altered the configure file and added #include <ws2tcpip.h>.  Configure works but now I'm getting more make file errors:
 
<command-line>:0:18: error: redefinition of 'struct sockaddr_in'
In file included from git-compat-util.h:153:0,
from cache.h:4,
from credential-store.c:1:
c:\mingw\include\winsock2.h:254:8 note originally defined here
struct sockaddr_in {
 
redefinition of struct itimerval
compat/mingw.h: originally defined here
 
compat/bswap.h:12:15: error: unknown type name 'uint32_t'
static inline uint32_t default_swab32(uint32_t val)
 
I fixed some of the errors and then it had trouble compiling compat/mingw.c and I gave up and installed msysgit.  Sorry for bothering the list, thanks anyway.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
MinGW-users mailing list
[hidden email]

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:[hidden email]?subject=unsubscribe
Loading...