Skip to content

Instantly share code, notes, and snippets.

@snmsts
Last active August 30, 2017 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snmsts/98c62309978adfabdd4ebb7f6ef8c16d to your computer and use it in GitHub Desktop.
Save snmsts/98c62309978adfabdd4ebb7f6ef8c16d to your computer and use it in GitHub Desktop.
Iota memo
(xenial)snmsts@localhost:~/work/Iota$ uname -a
Linux localhost 4.4.52-08273-ge6c7193d61d7 #1 SMP PREEMPT Thu Jul 13 12:07:57 PDT 2017 aarch64 aarch64 aarch64 GNU/Linux
(xenial)snmsts@localhost:~/work/Iota$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
(xenial)snmsts@localhost:~/work/Iota$ free -h
              total        used        free      shared  buff/cache   available
Mem:           3.7G        2.5G        149M        318M        1.1G        697M
Swap:          3.6G        1.3G        2.4G
(xenial)snmsts@localhost:~/work/Iota$ ./fetch-llvm.sh 
(xenial)snmsts@localhost:~/work/Iota$ ./build-llvm.sh 
+ set -e
+ pwd
+ TOOLDIR=/home/snmsts/work/Iota/toolchain
+ mkdir -p /home/snmsts/work/Iota/toolchain
+ cd /home/snmsts/work/Iota/toolchain
+ cmake -DCMAKE_INSTALL_PREFIX=/home/snmsts/work/Iota/toolchain -DLLVM_TARGETS_TO_BUILD= -DLLVM_DEFAULT_TARGET_TRIPLE=le32-iota ../llvm
./build-llvm.sh: 13: ./build-llvm.sh: cmake: not found
(xenial)snmsts@localhost:~/work/Iota$ sudo apt-get -y install cmake
(xenial)snmsts@localhost:~/work/Iota$ ./build-llvm.sh 
+ set -e
+ pwd
+ TOOLDIR=/home/snmsts/work/Iota/toolchain
+ mkdir -p /home/snmsts/work/Iota/toolchain
+ cd /home/snmsts/work/Iota/toolchain
+ cmake -DCMAKE_INSTALL_PREFIX=/home/snmsts/work/Iota/toolchain -DLLVM_TARGETS_TO_BUILD= -DLLVM_DEFAULT_TARGET_TRIPLE=le32-iota ../llvm
-- No build type selected, default to Debug
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:29 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "/home/snmsts/work/Iota/toolchain/CMakeFiles/CMakeOutput.log".
See also "/home/snmsts/work/Iota/toolchain/CMakeFiles/CMakeError.log".

what!? ...

(xenial)snmsts@localhost:~/work/Iota$ sudo apt-get install build-essential
(xenial)snmsts@localhost:~/work/Iota$ ./build-llvm.sh 

done

(xenial)snmsts@localhost:~/work/Iota$ ./build.sh
omit
checking build system type... ../SDL-1.2.15/build-scripts/config.guess: line 1416: 15027 Aborted                 (core dumped) $CC_FOR_BUILD -o $dummy $dummy.c 2> /dev/null
../SDL-1.2.15/build-scripts/config.guess: unable to guess system type

This script, last modified 2009-09-18, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (../SDL-1.2.15/build-scripts/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2009-09-18

uname -m = aarch64
uname -r = 4.4.52-08273-ge6c7193d61d7
uname -s = Linux
uname -v = #1 SMP PREEMPT Thu Jul 13 12:07:57 PDT 2017

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = 
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = aarch64
UNAME_RELEASE = 4.4.52-08273-ge6c7193d61d7
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP PREEMPT Thu Jul 13 12:07:57 PDT 2017
(xenial)snmsts@localhost:~/work/Iota$ cd SDL-1.2.15/build-scripts/
(xenial)snmsts@localhost:~/work/Iota/SDL-1.2.15/build-scripts$ wget "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD"
(xenial)snmsts@localhost:~/work/Iota/SDL-1.2.15/build-scripts$ mv index.html\?p\=config.git\;a\=blob_plain\;f\=config.guess\;hb\=HEAD config.guess
(xenial)snmsts@localhost:~/work/Iota/SDL-1.2.15/build-scripts$ wget "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD"
(xenial)snmsts@localhost:~/work/Iota/SDL-1.2.15/build-scripts$ mv index.html\?p\=config.git\;a\=blob_plain\;f\=config.sub\;hb\=HEAD config.sub
(xenial)snmsts@localhost:~/work/Iota/SDL-1.2.15/build-scripts$ cd ../..
(xenial)snmsts@localhost:~/work/Iota$ ./build.sh
omit
+ mkdir sdl-build
+ pushd sdl-build
~/work/Iota/sdl-build ~/work/Iota
+ cp ../sdl-config.cache config.cache
+ CC=/home/snmsts/work/Iota/toolchain/bin/clang
+ ../SDL-1.2.15/configure -C --host=le32-iota --prefix=/home/snmsts/work/Iota/toolchain/le32-iota
configure: loading cache config.cache
checking for le32-iota-gcc... /home/snmsts/work/Iota/toolchain/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /home/snmsts/work/Iota/toolchain/bin/clang accepts -g... yes
checking for /home/snmsts/work/Iota/toolchain/bin/clang option to accept ISO C89... none needed
checking how to run the C preprocessor... /home/snmsts/work/Iota/toolchain/bin/clang -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking build system type... aarch64-unknown-linux-gnu
checking host system type... Invalid configuration `le32-iota': system `iota' not recognized
configure: error: /bin/bash ../SDL-1.2.15/build-scripts/config.sub le32-iota failed
(xenial)snmsts@localhost:~/work/Iota$ cd SDL-1.2.15/build-scripts/
(xenial)snmsts@localhost:~/work/Iota$ cd SDL-1.2.15/build-scripts/
(xenial)snmsts@localhost:~/work/Iota/SDL-1.2.15/build-scripts$ git checkout config.sub 
(xenial)snmsts@localhost:~/work/Iota/SDL-1.2.15/build-scripts$ cd -
(xenial)snmsts@localhost:~/work/Iota$ ./build.sh
+ mkdir prboom-build
+ pushd prboom-build
~/work/Iota/prboom-build ~/work/Iota
+ cp ../prboom-config.cache config.cache
+ CC=/home/snmsts/work/Iota/toolchain/bin/clang
+ ../prboom-2.5.0/configure -C --host=le32-iota --prefix=/home/snmsts/work/Iota/toolchain/le32-iota --disable-gl
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
configure: loading cache config.cache
checking build system type... ../prboom-2.5.0/autotools/config.guess: line 1422: 18873 Aborted                 (core dumped) $CC_FOR_BUILD -o $dummy $dummy.c 2> /dev/null
../prboom-2.5.0/autotools/config.guess: unable to guess system type

This script, last modified 2006-07-02, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
and
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub

If the version you run (../prboom-2.5.0/autotools/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2006-07-02

uname -m = aarch64
uname -r = 4.4.52-08273-ge6c7193d61d7
uname -s = Linux
uname -v = #1 SMP PREEMPT Thu Jul 13 12:07:57 PDT 2017

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = 
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = aarch64
(xenial)snmsts@localhost:~/work/Iota/prboom-2.5.0/autotools$ cd prboom-2.5.0/autotools/
(xenial)snmsts@localhost:~/work/Iota/prboom-2.5.0/autotools$ wget "http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess"
(xenial)snmsts@localhost:~/work/Iota/prboom-2.5.0/autotools$ mv config.guess.1 config.guess
cd -
(xenial)snmsts@localhost:~/work/Iota$ ./build.sh 
same error?
/home/snmsts/.roswell/lib/arm64/linux/externals-clasp/3.9.1/llvm39ToT/tools/gold/gold-plugin.cpp:31:24: fatal error: plugin-api.h: No such file or directory                │                                                                                           
compilation terminated.                                                                                        
(xenial)snmsts@localhost:~/.roswell/lib/arm64/linux/externals-clasp/3.9.1$ sudo apt-get -y install binutils-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment