In another post, it was suggested that I try building bsnes performance to see how well it runs on the Atom N450 in my laptop. The first momentary problem came when I tried to download higan into a new folder.
Despite a 10/10 in my PC's IPv6 readiness, it had to drop back to IPv4.
I start by ensuring some dependencies:
So here goes nothing:
Somehow README and INSTALL files were left out. I'll have to do it the hard way.
Ubuntu 14.04 LTS updates packages for bug fixes, not so much for new features. Let's see if it'll build with earlier GCC:
The first two results from a Google search for ubuntu 14.04 c++14 were this question and a question that hasn't yet been marked as a duplicate. Answers to both offered essentially the same solution, involving the Ubuntu Toolchain Test Builds PPA:
So let's try that again:
Is the profile a compile-time thing? Again, no README file.
And would there be a cache or RAM benefit in a compile-time option to disable coprocessors that I know I'll never use in my projects?
Code:
$ wget http://download.byuu.org/higan_v097-source.7z
--2016-02-06 10:46:20-- http://download.byuu.org/higan_v097-source.7z
Resolving download.byuu.org (download.byuu.org)... 2001:19f0:4009:344::, 173.199.117.126
Connecting to download.byuu.org (download.byuu.org)|2001:19f0:4009:344::|:80... failed: Connection timed out.
Connecting to download.byuu.org (download.byuu.org)|173.199.117.126|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1034204 (1010K) [application/x-7z-compressed]
Saving to: ‘higan_v097-source.7z’
100%[======================================>] 1,034,204 1005KB/s in 1.0s
2016-02-06 10:48:29 (1005 KB/s) - ‘higan_v097-source.7z’ saved [1034204/1034204]
--2016-02-06 10:46:20-- http://download.byuu.org/higan_v097-source.7z
Resolving download.byuu.org (download.byuu.org)... 2001:19f0:4009:344::, 173.199.117.126
Connecting to download.byuu.org (download.byuu.org)|2001:19f0:4009:344::|:80... failed: Connection timed out.
Connecting to download.byuu.org (download.byuu.org)|173.199.117.126|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1034204 (1010K) [application/x-7z-compressed]
Saving to: ‘higan_v097-source.7z’
100%[======================================>] 1,034,204 1005KB/s in 1.0s
2016-02-06 10:48:29 (1005 KB/s) - ‘higan_v097-source.7z’ saved [1034204/1034204]
Despite a 10/10 in my PC's IPv6 readiness, it had to drop back to IPv4.
I start by ensuring some dependencies:
Code:
$ sudo sh -c "apt-get update && apt-get upgrade"
$ sudo apt-get install build-essential libgtk2.0-dev libgtksourceview2.0-dev p7zip-full
$ sudo apt-get install build-essential libgtk2.0-dev libgtksourceview2.0-dev p7zip-full
So here goes nothing:
Code:
$ 7za x higan_v097-source.7z
$ cd higan_v097-source
$ ls | grep -iE "make|readme|install"
$ cd higan_v097-source
$ ls | grep -iE "make|readme|install"
Somehow README and INSTALL files were left out. I'll have to do it the hard way.
Code:
$ ls
higan hiro icarus libco nall ruby
$ cd higan
$ ls | grep -iE "make|readme|install"
GNUmakefile
$ make
g++-4.9 -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/tomoko.cpp -o obj/ui-tomoko.o
make: g++-4.9: Command not found
make: *** [obj/ui-tomoko.o] Error 127
pino@pino-laptop:~/develop/bullcrap/higan_v097-source/higan$ g++ --version
g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
higan hiro icarus libco nall ruby
$ cd higan
$ ls | grep -iE "make|readme|install"
GNUmakefile
$ make
g++-4.9 -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/tomoko.cpp -o obj/ui-tomoko.o
make: g++-4.9: Command not found
make: *** [obj/ui-tomoko.o] Error 127
pino@pino-laptop:~/develop/bullcrap/higan_v097-source/higan$ g++ --version
g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Ubuntu 14.04 LTS updates packages for bug fixes, not so much for new features. Let's see if it'll build with earlier GCC:
Code:
$ less GNUmakefile
$ grep g++-4.9 ../nall/GNUmakefile
compiler := g++-4.9
$ export compiler=g++
$ make
g++ -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/tomoko.cpp -o obj/ui-tomoko.o
g++: error: unrecognized command line option ‘-std=c++14’
make: *** [obj/ui-tomoko.o] Error 1
$ unset compiler
$ firefox https://www.google.com/search?q=ubuntu+14.04+c%2B%2B14
$ grep g++-4.9 ../nall/GNUmakefile
compiler := g++-4.9
$ export compiler=g++
$ make
g++ -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/tomoko.cpp -o obj/ui-tomoko.o
g++: error: unrecognized command line option ‘-std=c++14’
make: *** [obj/ui-tomoko.o] Error 1
$ unset compiler
$ firefox https://www.google.com/search?q=ubuntu+14.04+c%2B%2B14
The first two results from a Google search for ubuntu 14.04 c++14 were this question and a question that hasn't yet been marked as a duplicate. Answers to both offered essentially the same solution, involving the Ubuntu Toolchain Test Builds PPA:
Code:
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install g++-4.9
$ sudo apt-get update
$ sudo apt-get install g++-4.9
So let's try that again:
Code:
$ make
g++-4.9 -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/tomoko.cpp -o obj/ui-tomoko.o
g++-4.9 -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/program/program.cpp -o obj/ui-program.o
g++-4.9 -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/tomoko.cpp -o obj/ui-tomoko.o
g++-4.9 -x c++ -std=c++14 -fwrapv -I. -I.. -O3 -march=native -fopenmp -DPROFILE_ACCURACY -c target-tomoko/program/program.cpp -o obj/ui-program.o
Is the profile a compile-time thing? Again, no README file.
And would there be a cache or RAM benefit in a compile-time option to disable coprocessors that I know I'll never use in my projects?