Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Just plain fails #58

Closed
BrianAtDocumentedDesigns opened this issue Feb 22, 2018 · 10 comments
Closed

Just plain fails #58

BrianAtDocumentedDesigns opened this issue Feb 22, 2018 · 10 comments

Comments

@BrianAtDocumentedDesigns
Copy link

BrianAtDocumentedDesigns commented Feb 22, 2018

I don't see many replies to the issues posted but I'll give it a try.

I unzipped into a user directory and got errors running pacman

-- Running pacman --noconfirm -Sy
mkdir: cannot change permissions of '/dev/shm': Permission denied
mkdir: cannot change permissions of '/dev/mqueue': Permission denied

A little while later I got this

looking for conflicting packages...
:: msys2-runtime and catgets are in conflict. Remove catgets? [y/N] error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: msys2-runtime and catgets are in conflict
CMake Error at KiCad-Winbuilder.cmake:285 (message):
  Error running pacman --noconfirm --needed -S bash pacman pacman-mirrors
  msys2-runtime

   Output in: C:/Users/Brian_17/kicad-winbuilder-master/.logs/last_error
Call Stack (most recent call first):
  KiCad-Winbuilder.cmake:295 (execute_msys2_bash)

and the batchfile exited.

It seemed to go further then I got

upgrading pkgfile...
      0 [main] pacman 2060 fork: child -1 - forked process 13748 died unexpectedly, retry 0, exit code 0xC0000139, errno 11
      0 [main] pacman 2060 fork: child -1 - forked process 13748 died unexpectedly, retry 0, exit code 0xC0000139, errno 11
error: could not fork a new process (Resource temporarily unavailable)

Now, this is mentioned in the readme (for some reason kicad-builder is downloading an ancient version of MSYS2.

The readme.txt file says

  1. Launch msys2_shell.bat
  2. run command 'update-core'
  3. exit shell, now the rest of the Winbuilder process will work (although the pacman_initial log file should be removed to re-run the pacman updates)

But there is no msys2_shell.bat file.

There is an msys64 directory. Running msys2.exe in it and invoking update-core
gets you this

$ update-core
-bash: update-core: command not found

Research on the web suggests

update-core is deprecated; its functionality is now handled by pacman; run pacman -Syuu

Running pacman -Syuu has no effect (like typing enter).

Any effort to run make immediately fails

Here is a trace of my results

Winbuilder trace.txt

Thanks

@nickoe
Copy link
Contributor

nickoe commented Feb 22, 2018

I guess it is related to msys2/MSYS2-packages#1141
Your post is hard to read, please consider to put snippets copied from logs or console in a codeblock to have proper formatting.

@BrianAtDocumentedDesigns
Copy link
Author

I'm not sure I understand about my post being hard to read. I did include the entire output from windows in the text file WIndbuilder Trace.txt - is that what you mean?

@nickoe
Copy link
Contributor

nickoe commented Feb 22, 2018

I updated your description, it is much more readable with some better text formatting.

@nickoe
Copy link
Contributor

nickoe commented Feb 22, 2018

The msys2 base package it downloads is the latest from msys2.org.

@BrianAtDocumentedDesigns
Copy link
Author

Thank you. I thought it was 2016 and Msys 2 had a very recent package.

I am not sure I understand the thread you linked to. Is there a resolution? I am not very advanced with respect to various linux tools: I wrote a utility for Kicad (renumKiCadPCB) and I am hoping to figure out how to integrate it into PCBNew.

Every time I try follow Windows build instructions (i.e. from Kicad or here) I hit a brick wall, even though I follow the instructions precisely.

Any help would be appreciated.

@BrianAtDocumentedDesigns
Copy link
Author

Is it possible the fact I have multiple Msys2 installations (associated with different Kicad builder solutions) is to blame?

@nickoe
Copy link
Contributor

nickoe commented Feb 23, 2018

I don't think so.

@BrianAtDocumentedDesigns
Copy link
Author

I do find it interesting that when I enter pacman -Syuu in Msys2 associated with kicad-winbuilder nothing happens
BrianP@DESKTOP-FA1TEPK MSYS ~
$ pacman -Syuu

BrianP@DESKTOP-FA1TEPK MSYS ~

and yet when I do that under the Msys2 I installed associated with the Kicad make instructions (which fail) I get this

BrianP@DESKTOP-FA1TEPK MSYS ~
$ pacman -Syuu
:: Synchronizing package databases...
mingw32 is up to date
mingw64 is up to date
msys is up to date
:: Starting core system upgrade...
there is nothing to do
:: Starting full system upgrade...
there is nothing to do

BrianP@DESKTOP-FA1TEPK MSYS ~

The behavior is different in response to the command and the path BrianP@DESKTOP-FA1TEPK MSYS is the same.

@nickoe
Copy link
Contributor

nickoe commented Mar 26, 2018

Hmm, it just worked for me today. Are you sure that your machine did not go to sleep while it ran? I had troble and I just left the machine when it worked, until I realized that windows got sleepy. I changed my power settings to never sleep and not I got at least one good build...

@BrianAtDocumentedDesigns
Copy link
Author

No, it did not go to sleep. I abandoned software and got the Kicad devs to investigate and update the directions for building under Msys2.

@nickoe nickoe closed this as completed Mar 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants