Thread: DIY - KeK
View Single Post
Old 07-22-2012, 10:00 AM   #114
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
mpc-1.0-uclibc

This is another one that the gcc build system **could** build for you.
Again, going to just install a copy of the current release for the compiler building to come.

http://www.multiprecision.org/index.php?prog=mpc
http://www.multiprecision.org/mpc/do...mpc-1.0.tar.gz

Ah, that one went relatively smoothly:
Spoiler:

The content of my pset.sh file:
Code:
export PATH=/opt/qemu111/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
From the location of the AL install:
Code:
core2quad system-image-armv6l $ . pset.sh
core2quad system-image-armv6l $ ./dev-environment.sh
  * * * *
  Type exit when done.
(armv6l:1) /home # export PS1='(armv6l:1) \W \$ '
(armv6l:1) /home # export PATH=/home/bin:/bin:/sbin
(armv6l:1) /home # cd work/gcc
(armv6l:1) gcc # mkdir -p mpc/mpc-1.0-uclibc mpc/mpc10-uclibc
(armv6l:1) gcc # cd mpc
(armv6l:1) mpc # wget http://drpbox.knetconnect.com/KeK/mpc-1.0.tar.gz
  Connecting to drpbox.knetconnect.com (173.236.167.90:80)
(armv6l:1) mpc # tar -xf mpc-1.0.tar.gz
(armv6l:1) mpc # cd mpc-1.0
(armv6l:1) mpc-1.0 # export CFLAGS='-mfloat-abi=softfp -mfpu=vfp -mcpu=arm1136jf-s -O2 -fomit-frame-pointer'
(armv6l:1) mpc-1.0 # export C_INCLUDE_PATH='/home/include'
(armv6l:1) mpc-1.0 # export LIBRARY_PATH='/home/lib'
(armv6l:1) mpc-1.0 # export LD_LIBRARY_PATH=$LIBRARY_PATH
(armv6l:1) mpc-1.0 # export LDFLAGS=-L/home/lib
(armv6l:1) mpc-1.0 # export CPPFLAGS='-I/home/include -mfloat-abi=softfp -mfpu=vfp -mcpu=arm1136jf-s -O2 -fomit-frame-pointer'
(armv6l:1) mpc-1.0 # export DESTDIR=/home/work/gcc/mpc/mpc-uclibc
(armv6l:1) mpc-1.0 # cd ../mpc-1.0-uclibc
(armv6l:1) mpc-1.0-uclibc # ../mpc-1.0/configure --prefix=/home --with-gnu-ld
(armv6l:1) mpc-1.0-uclibc # make
(armv6l:1) mpc-1.0-uclibc # make check
  * * * *
  GMP: include 5.0.5, lib 5.0.5
  MPFR: include 3.1.1, lib 3.1.1
  MPC: include 1.0, lib 1.0
  C compiler: gcc
  GCC: yes
  GCC version: 4.2.1
  PASS: tget_version
  ===================
  All 64 tests passed
  ===================

(armv6l:1) mpc-1.0-uclibc # make install
(armv6l:1) mpc-1.0-uclibc # cd $DESTDIR/home
(armv6l:1) home # pwd
  /home/work/gcc/mpc/mpc-uclibc/home
(Whoot!  That worked, even with the libtoolized build!)

(Our release tar-ball:)
(armv6l:1) home # tar -cvzf ../mpc-1.0-uclibc.tar.gz .

(Install it for ourselves:)
(armv6l:1) home # cd ..
(armv6l:1) mpc-uclibc # tar -xf mpc-1.0-uclibc.tar.gz -C /home

(Ease on out of the emulator:)
(armv6l:1) mpc-uclibc # cd /root
(armv6l:1) /root # umount /home
(armv6l:1) /root # exit
Restarting system.
core2quad system-image-armv6l $


And the only things lost along the way so far was 'long double' and 'decimal float'.

This is another one that you install by 'dumping' it on the emulator's /home directory.
Attached Files
File Type: gz mpc-1.0-uclibc.tar.gz (102.9 KB, 428 views)

Last edited by knc1; 07-22-2012 at 11:57 AM.
knc1 is offline   Reply With Quote