What a day! This morning the ubuntu laptop refused to boot. It would power on, shut itself off, then power on, then off, then on... The screen was completely dark all the time. I tried removing power and battery then reinstall the battery. Same thing.
Then I started to look at cygwin on the Windows laptop. I wanted to make NetBeans work. I did
echo "PATH=/usr/local/bin:/usr/bin:/bin" >> /etc/profile && source /etc/profile
Initially NetBeans was happy to import the project without the usual problem of finding a wrong gmake.exe in one of the Windows paths. But when it tried to build the project one of the program (I think gcc but not sure) had trouble parsing Windows directories with names containing spaces. So I moved the entire project to a different directory that does not have spaces in any folder names. But then NetBeans had the same old problem of finding a wrong gmake.exe in one of the Windows paths when trying to import the project! The project was imported but some kind of code assistant was not. I then tried to build from NetBeans and it came back saying cmake failed, lacking a dll. I went back to the X-term and typed
cmake .. #
which had been working fine before but now it says it's missing
I wiped cygwin and reinstalled - twice - the same thing.
What a day!