Thread: DIY - KeK
View Single Post
Old 07-21-2012, 03:58 PM   #112
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
gmp-5.0.5-uclibc

This is one of the libraries that the gcc build system **could** build during the process of building the compiler.

But if your going to build more than one compiler, one time, its better just to build and install a copy.

http://gmplib.org/
ftp://ftp.gmplib.org/pub/gmp-5.0.5/gmp-5.0.5.tar.bz2

Let the fun begin:
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 # mkdir work/gcc ; cd work/gcc
(armv6l:1) gcc # wget http://drpbox.knetconnect.com/KeK/gcc-linaro-arm-linux-gnueabihf-2012.06-20120625_src.tar.bz2 
  Connecting to drpbox.knetconnect.com (173.236.167.90:80)
(armv6l:1) gcc # tar -xf gcc-linaro-arm-linux-gnueabihf-2012.06-20120625_src.tar.bz2
(armv6l:1) gcc # mv gcc-linaro-arm-linux-gnueabihf-2012.06-20120625_src lgcc4.7

Note:
# http://gmplib.org/
# ftp://ftp.gnu.org/gnu/gmp/gmp-5.0.5.tar.xz
(armv6l:1) lgcc4.7 # cd ..
(armv6l:1) gcc # mkdir gmp
(armv6l:1) gcc # cd gmp
(armv6l:1) gmp # wget http://drpbox.knetconnect.com/KeK/gmp-5.0.5.tar.xz
  Connecting to drpbox.knetconnect.com (173.236.167.90:80)
(armv6l:1) gmp # xz -d gmp-5.0.5.tar.xz
(armv6l:1) gmp # tar -xf gmp-5.0.5.tar
(armv6l:1) gmp # cd gmp-5.0.5
(armv6l:1) gmp-5.0.5 # export M4=/home/bin/m4
(armv6l:1) gmp-5.0.5 # export CFLAGS='-mfloat-abi=softfp -mfpu=vfp -mcpu=arm1136jf-s -O2 -fomit-frame-pointer -fexceptions'
(armv6l:1) gmp-5.0.5 # CXXFLAGS=$CFLAGS ; export CXXFLAGS
(armv6l:1) gmp-5.0.5 # mkdir ../gmp-sf-uclibc
(armv6l:1) gmp-5.0.5 # cd ../gmp-sf-uclibc
(armv6l:1) gmp-sf-uclibc # ../gmp-5.0.5/configure --prefix=/home --with-gnu-ld --enable-cxx
(armv6l:1) gmp-sf-uclibc # make
(armv6l:1) gmp-sf-uclibc # make check
(Expect all tests to pass.)

(armv6l:1) gmp-sf-uclibc # make install

(And our release tab-ball:)
(armv6l:1) gmp-sf-uclibc # mkdir /home/gmp505-uclibc
(armv6l:1) gmp-sf-uclibc # DESTDIR=/home/gmp505-uclibc make install
(armv6l:1) gmp-sf-uclibc # cd /home/gmp505-uclibc/home
(armv6l:1) home # tar -cvzf ../gmp-5.0.5-uclibc.tar.gz .

(the following properly closes the r/w hdb.img file system:)
(armv6l:1) home # cd /root
(armv6l:1) /root # umount /home
(armv6l:1) /root # exit
Restarting system.


This is another one that you "just dump" on top of /home.

Grumble: Three days later another application's configure told me I left the C++ interface out of the first gmp configuration.
That is simply not going to happen with the uClibc++ library in the emulator.

So this one is the "--without-cxx" library (again):
Attached Files
File Type: gz gmp-5.0.5-uclibc.tar.gz (604.8 KB, 430 views)

Last edited by knc1; 07-23-2012 at 04:46 PM.
knc1 is offline   Reply With Quote