Comments (24)
Which architecture? Have you called autorebase.bat
first? Have you built debug versions? Have you tried to get a stack trace via gdb
?
from git.
- x64
- no
- no
- no
How can I help you?
from git.
How can I help you?
Please build debug versions by deleting -O2
from the CFLAGS
in /usr/src/git/Makefile
and then calling make
in /usr/src/git
to rebuild.
Then run gdb -args /usr/src/git/git.exe version
, call r
and when it segfaults, obtain a stacktrace via bt
.
from git.
Result:
GIT_VERSION = 0
* new build flags
0 [main] mkdir 6572 stdio_init: couldn't make stderr distinct from stdout
CC credential-store.o
How to fix this?
from git.
Whoa. The only thing I can think of is to use DuckDuckGo for the rescue. And it came up with a possible explanation: http://stackoverflow.com/questions/11868017/couldnt-make-stderr-distinct-from-stdout-when-running-cygwin-commands
from git.
I think make should be fine, as it is a cygwin make.
Maybe 64bit make is the problem?
c:\winprg\git-sdk-64\usr\src\git>make --version
GNU Make 4.1
Built for x86_64-unknown-cygwin
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
from git.
Is it a fatal error, or more like a warning?
from git.
It's an error:
Makefile:1872: recipe for target 'credential-store.o' failed
make: *** [credential-store.o] Error 1
from git.
It may be also caused by path.
from git.
Added
c:\cygwin64\bin
to path, instead of:
c:\GnuWin32\bin
so different version of make is found, and now can reach unix commands, too.
Now shows following error:
c:\git-sdk-64\usr\src\git>make
* new build flags
CC credential-store.o
CC archive-tar.o
CC archive-zip.o
Makefile:2052:
recipe for target 'GIT-PREFIX' failed
make: *** [GIT-PREFIX] Error 1
from git.
Added
c:\cygwin64\bin
to path, instead of:
c:\GnuWin32\bin
so different version of make is found
The intention is to use MSys2's own make
. No other make
is supported, if they fail for you, you are on your own.
from git.
It's an error:
Makefile:1872: recipe for target 'credential-store.o' failed make: *** [credential-store.o] Error 1
So here is a valuable lesson learned: do not truncate error messages. It will only result in useless back and forth until the complete error message is known anyway.
from git.
The intention is to use MSys2's own make. No other make is supported, if they fail for you, you are on your own.
So I should addc:\git-sdk-64\usr\bin\
to the path, right?
from git.
Ok, changed make path to c:\git-sdk-64\usr\bin:
c:\winprg\git-sdk-64\usr\src\git>make --version
GNU Make 4.1
Built for x86_64-pc-msys
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Make error:
c:\git-sdk-64\usr\src\git>make
FIND: Hibás paraméterformátum. (translated: bad parameter format or invalid argument)
* new build flags
Makefile:1872: recipe for target 'credential-store.o' failed
make: *** [credential-store.o] Error 127
from git.
So I should add
c:\git-sdk-64\usr\bin\
to the path, right?
If you have to add that manually, I have to ask: do you use the Git SDK at all?
from git.
I don't use the SDK itself, just want to compile latest git version to use it, because the current Git for Windows release is only 1.9.5.
from git.
The Git for Windows 1.x project is still maintained elsewhere: https://github.com/msysgit.
This here issue tracker concerns Git for Windows 2.x, the successor, switching from the development environment called "msysgit" to the development environment we henceforth will call "Git SDK".
I am afraid that you really will have to specify exactly what you did, based on what software, to avoid a conversation that is as frustrating to both of us as the above one.
from git.
I installed git v2.3.5 using net-installer:
[...]
I don't use the SDK itself, just want to compile latest git version to use it, because the current Git for Windows release is only 1.9.5.
Whoa, now I am really, really confused. These two statements are contradicting each other.
from git.
Whoa, now I am really, really confused. These two statements are contradicting each other.
Well, I suppose SDK is for developing & testing GIT itself.
I don't develop GIT, just want to compile GIT to use it in my developments.
from git.
This here issue tracker concerns Git for Windows 2.x, the successor, switching from the development environment called "msysgit" to the development environment we henceforth will call "Git SDK".
Ok, this is more clear now.
It was renamed.
from git.
I followed instructions on this page:
#13 (comment)
For the ones who does want to try out the current state of development, and even want to help test it, here is a little HOWTO:
- Download net-installer for the Git for Windows SDK and install it.
- Startup the MinGW Git for Windows SDK shell (Look for shortcuts in the Git for Windows SDK install folder)
- Clone the build-extra repository and checkout the feature branch portable-release within the Git for Windows SDK.
- Change in the portable directory of the new clone.
- Run the ./release.sh <version-no> shell script. That should create you a portable installer for Git for Windows in your home directory.
- Test it!
Well, after using net-installer, everything went fine, but I got seg-fault in command line, when starting a git command.
from git.
Well, I suppose SDK is for developing & testing GIT itself.
I don't develop GIT, just want to compile GIT to use it in my developments.
Well, the SDK is for developing, building and testing. From my point of view it makes no sense to refuse to use the SDK when one wants to build Git.
In any case, you reported a bug that I cannot reproduce, so if you want to see this bug fixed, I am afraid that you have to do something about it, i.e. build with debug information and then debug in the way I patiently described.
from git.
I will now try net-installer again, after the path conflict was fixed.
It might happen, that path conflict was the cause of seg-fault.
from git.
OK. Successful install.
No more seg-fault.
c:\git-sdk-64\cmd>git --version
git version 2.3.5.windows.6
Likely the path conflict caused the seg-fault, while was built using libraries not in the SDK itself.
Thanks for your help.
I learned something again.
from git.
Related Issues (20)
- (invalid)
- [New git version] v2.46.0
- git update-git-for-windows fails with curl error HOT 17
- Unexpected error message `=: line 1: =: command not found` printed when using git in PowerShell or nushell HOT 1
- git update-git-for-windows 2.246.0 ERROR HOT 2
- find: Failed to save initial working directory: No such file or directory HOT 3
- [New curl version] 8.9.1 HOT 2
- git log -n1 --format=%H%n have no return; if delete %n it will fine; why HOT 5
- [New bash version] 6 new items HOT 1
- SSH packaged with git can't find home directory for known_hosts HOT 7
- (Spam) HOT 1
- sshd.exe does not install HOT 2
- Question - Why does building git always package /cmd/git.exe from the sdk?
- File changes lost after merging branch back to its parent branch, despite file not getting touched on parent branch in the meantime? HOT 2
- error: failed to push... HOT 2
- "Git Bash" Windows Terminal fragment profile uses unquoted commandline path HOT 2
- include/includeIf Not working HOT 1
- Definir versão do NodeJS
- [New 7-zip version] 15 new items HOT 1
- error writing public keyring '[keyboxd]' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git.