-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure on MSYS2: cp: cannot stat 'sources/config.sub': No such file or directory
#177
Comments
I don't speak for anyone else, but I suggest: use WSL. You'll be chasing down brokenness with cl.exe/link.exe/etc. for a long while otherwise. Building GCC with MSVC at all is still somewhat painful. If you need native-to-Windows musl cross compilers, GCC (or Clang, possibly) from cygwin/mingw or similar will likely get you much farther than MSVC. |
cp: cannot stat 'sources/config.sub': No such file or directory
cp: cannot stat 'sources/config.sub': No such file or directory
cp: cannot stat 'sources/config.sub': No such file or directory
cp: cannot stat 'sources/config.sub': No such file or directory
Thank you -- you're right, my brain auto-completed the wrong thing. I meant msys2, but I started typing "MS..." and ended up writing "MSVC". I'm trying to replicate what musl.cc does, since those toolchains are super handy. Unfortunately they stopped releasing anything in 2021, so they're no longer an option. I believe that error exists on the https://github.com/jthat/musl-cross-make.git branch, however now I'm running into a situation where |
I get further if I add this to the top of the Makefile: export MSYS = winsymlinks Let's see how far it gets... |
Some more information. Apparently the more precise variable should be From my understanding (and I've been wrong here several times before):
As such, MSYS2 is easier to target. This explains why I'm able to build under MSYS2 but not Mingw64. The problem seems to come down to symlinks. And there are several of them. For starters, the
GNU tar has a problem where it will attempt to create symlinks to directories before they're extracted. For example, if your tar file has a link from Replacing As a separate issue, symlinks behave differently on NTFS. When you're in a symlinked directory, it behaves as though you're actually in that directory. Here's an example session:
The tree is as follows:
When in So while this could be worked around, it is questionable how interesting it is. Overall I'm building it for msys2 which is a good middle ground. I may take time to figure out how to get it working on mingw64 for the most compatible and highest speed compiler generation. |
The most compatible would be using WSL. The fact that you got anything to build at all is surprising. |
When building under MSYS2, it gets somewhat far, but hits a failure when trying to do something with
config.sub
:The text was updated successfully, but these errors were encountered: