Page 1 of 1

mintty not found

Posted: October 11th, 2015, 7:47 pm
by danieldb
ARGH! I can't get apgnano to work, because I can't find the cygwin terminal. The desktop shortcut says "Windows is searching for minnty" and I need to know where the cygwin terminal is to use apgnano.

Re: mintty not found

Posted: October 11th, 2015, 7:49 pm
by danieldb
never mind! Happy searching!

Re: mintty not found

Posted: October 11th, 2015, 7:53 pm
by danieldb
Now I get an error saying "./apgnano is a directory" What do I do?

Re: mintty not found

Posted: October 11th, 2015, 8:03 pm
by danieldb
Now this when I type make:

$ make
g++ -c -Wall -O3 -fopenmp -DUSE_OPEN_MP main.cpp -o main.o
In file included from main.cpp:38:0:
life128.h: In member function ‘int life128::totalPopulation()’:
life128.h:1714:74: error: unknown register name ‘xmm3’ in ‘asm’
: "rax", "ebx", "xmm0", "xmm1", "xmm2", "xmm3", "memory");
^
life128.h:1714:74: error: unknown register name ‘xmm2’ in ‘asm’
life128.h:1714:74: error: unknown register name ‘xmm1’ in ‘asm’
life128.h:1714:74: error: unknown register name ‘xmm0’ in ‘asm’
life128.h: In member function ‘void life128::updateTile(SimdTile*)’:
life128.h:1370:183: error: unknown register name ‘xmm15’ in ‘asm’
: "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7", "xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15", "rax", "rcx", "ebx", "memory");
^
life128.h:1370:183: error: unknown register name ‘xmm14’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm13’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm12’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm11’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm10’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm9’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm8’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm7’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm6’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm5’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm4’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm3’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm2’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm1’ in ‘asm’
life128.h:1370:183: error: unknown register name ‘xmm0’ in ‘asm’
makefile:48: recipe for target 'main.o' failed
make: *** [main.o] Error 1

Re: mintty not found

Posted: October 12th, 2015, 4:33 am
by Billabob
First, type

Code: Select all

cd apgnano
Then type

Code: Select all

make
...and then you can start searching.

EDIT: Sigh.

Re: mintty not found

Posted: October 12th, 2015, 11:48 am
by danieldb
Still didn't work.

Re: mintty not found

Posted: October 12th, 2015, 9:49 pm
by biggiemac
I got that wall of unknown register errors when I first tried to run apgnano. I think it was because when I installed Cygwin I didn't include all the requisite add-ons. I redid the Cygwin installation and instructed it to also install the g++ compiler and I think that did the trick.

Re: mintty not found

Posted: October 13th, 2015, 4:16 pm
by danieldb
I give up. I can't even find a good tutorial. I downloaded gcc-g++, git, and g++ 3 times and it still doesn't work. Bye!

Re: mintty not found

Posted: October 15th, 2015, 4:03 am
by calcyman
Do you have the correct processor architecture (i.e. x86-64)? If so, are you running the correct version of Cygwin (i.e. 64-bit)?

Re: mintty not found

Posted: October 15th, 2015, 3:29 pm
by danieldb
calcyman wrote:Do you have the correct processor architecture (i.e. x86-64)? If so, are you running the correct version of Cygwin (i.e. 64-bit)?
OH SNAP! My computer is 64-bit, and I was running the 32-bit installation. Shouldn't the 32-bit be called "setup_x86_32"?

Any way, I will try the 64-bit installation.

Re: mintty not found

Posted: October 15th, 2015, 3:47 pm
by danieldb
Now it gives me some different errors.
$ make
g++ -c -Wall -O3 -fopenmp -DUSE_OPEN_MP main.cpp -o main.o
In file included from /usr/include/wchar.h:6:0,
from /usr/lib/gcc/x86_64-pc-cygwin/5.2.0/include/c++/cwchar:44,
from /usr/lib/gcc/x86_64-pc-cygwin/5.2.0/include/c++/bits/postypes.h:40,
from /usr/lib/gcc/x86_64-pc-cygwin/5.2.0/include/c++/iosfwd:40,
from /usr/lib/gcc/x86_64-pc-cygwin/5.2.0/include/c++/ios:38,
from /usr/lib/gcc/x86_64-pc-cygwin/5.2.0/include/c++/ostream:3 ,
from /usr/lib/gcc/x86_64-pc-cygwin/5.2.0/include/c++/iostream:39,
from main.cpp:17:
/usr/include/sys/reent.h:14:20: fatal error: stddef.h: No such file or directory
compilation terminated.
makefile:48: recipe for target 'main.o' failed
make: *** [main.o] Error 1

Re: mintty not found

Posted: October 15th, 2015, 4:21 pm
by dvgrn
danieldb wrote:Now it gives me some different errors...
Thanks for the detailed error text. I don't pretend to recognize the problem, and so I might well be giving useless advice here. But possibly StackOverflow can come to the rescue:
StackOverflow wrote:fatal error: stddef.h: No such file or directory

The error is because your gcc-core package and gcc-g++ are not of the same version. Either downgrade one of them to solve the problem or update both the libraries. Updating both the libraries is the recommended way.

Re: mintty not found

Posted: October 15th, 2015, 9:59 pm
by Scorbie
Warning: This is not a solution, just weakly on-topic.

I tried to compile apgsearch on a 64bit machine with TDM-GCC 64bit ( which says it has OpenMP? support. Or was it openGL? It supported the multithreading tool that apgnano uses. ) I failed because the compiler gives literally cryptic error messages. (It looks as if the font is borken) Well, I think it said there is a problem with OpenMP and happyhttp and I got it working in my local machine after removi g happyhttp.

What I haven't tried is compiling without multithreading. I guess it will be without multithreading, but I heard that using cygwin would slightly decrease performance so I am not sure whether how slower it would be without OpenMP and without Cygwin.
Currently I moved to an old netbook which barely breathes, so I'm not expecting any kind of testing in my computer, sadly.

Re: mintty not found

Posted: October 21st, 2015, 7:58 pm
by danieldb
Do I have to download ALL the gcc-related packages or just gcc?

Re: mintty not found

Posted: October 21st, 2015, 9:06 pm
by thunk
danieldb wrote:Do I have to download ALL the gcc-related packages or just gcc?
No, just make sure to check the boxes for the three packages 'gcc-g++', 'git' and 'make'.

Re: mintty not found

Posted: October 22nd, 2015, 4:06 pm
by danieldb
ALRIGHT I FIGURED IT OUT! I had to download the dependencies. I can start searching! I will be using my twitter handle, @danielc2034

Re: mintty not found

Posted: October 22nd, 2015, 4:15 pm
by dvgrn
danieldb wrote:ALRIGHT I FIGURED IT OUT! I had to download the dependencies. I can start searching! I will be using my twitter handle, @danielc2034
Do you have any more details on the problem that might help someone else? Was it just gcc-g++, git and make, or was there a "download dependencies" checkbox or something like that?

I got through the Cygwin download all right after a few tries, but now I don't remember what the options were for doing things subtly wrong.

Re: mintty not found

Posted: October 22nd, 2015, 4:20 pm
by danieldb
dvgrn wrote:
danieldb wrote:ALRIGHT I FIGURED IT OUT! I had to download the dependencies. I can start searching! I will be using my twitter handle, @danielc2034
Do you have any more details on the problem that might help someone else? Was it just gcc-g++, git and make, or was there a "download dependencies" checkbox or something like that?

I got through the Cygwin download all right after a few tries, but now I don't remember what the options were for doing things subtly wrong.
Yeah it was just make, git, gcc-g++, and a depencdencies checkbox.
Also, is there a way in cygwin to make Ctrl+C not quit? I was so close to my first haul (1000000 soups) and I hit Ctrl+ C to copy and closed it by accident.

Re: mintty not found

Posted: October 22nd, 2015, 6:00 pm
by calcyman
danieldb wrote:Also, is there a way in cygwin to make Ctrl+C not quit? I was so close to my first haul (1000000 soups) and I hit Ctrl+ C to copy and closed it by accident.
Yes, put an ampersand on the end of the line, like so:

Code: Select all

./apgnano -n 5000000 &
That tells bash to run the command as a background process. The program will still output to the terminal as usual, but you can continue typing commands into the terminal as though there were no program running*.

* However, this can lead to a confusing screen if you and apgnano are simultaneously writing to the same display. It still behaves as though the channels were separate, though.

Re: mintty not found

Posted: October 23rd, 2015, 4:15 pm
by danieldb
calcyman, is there a way to see your total uploaded soups?

Re: mintty not found

Posted: October 24th, 2015, 5:16 am
by calcyman
danieldb wrote:calcyman, is there a way to see your total uploaded soups?
This is the closest implemented feature to what you're describing:

https://catagolue.appspot.com/haul/b3s2 ... anielc2034

It's accessible from your user page, which will also display any interesting objects you discover:

https://catagolue.appspot.com/user/@danielc2034