Attached to Project: CRUX-ARM
Opened by Jose V Beneyto - 2011-05-26
Last edited by Victor Martinez - 2011-08-18
Opened by Jose V Beneyto - 2011-05-26
Last edited by Victor Martinez - 2011-08-18
FS#8 - libgmp: failed to compile due to bad triplet variable
We should fix this on the future core overlay for ports, so ATM libgmp from upstream ports is getting the triplet as i686-pc-linux-gnu which should be switched to arm-crux-linux-gnueabi.
# prt-get update -fr libgmp
prt-get: updating /usr/ports/core/libgmp
======⇒ Building ‘/usr/pkg/libgmp#5.0.2-1.pkg.tar.gz’.
bsdtar -p -o -C /dev/shm/pkgmk-libgmp/src -xf /usr/pkg/src/gmp-5.0.2.tar.bz2
+ build
+ cd gmp-5.0.2
+ ABI=32
+ ./configure –prefix=/usr –enable-cxx –build=i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
[...]
Closed by Victor Martinez
Thursday, 18 August 2011, 10:02 GMT
Reason for closing: Fixed
Additional comments about closing:
Thursday, 18 August 2011, 10:02 GMT
Reason for closing: Fixed
Additional comments about closing:
Fixed in core-arm ports collection
adding the option
–build=$MACHTYPE.
All
comments related to coreutils should be
moved to the new hardfp development.
Possible patch (needs testing and a better review/fix (to don't force armv7l):
— libgmp.orig/Pkgfile 2011-05-27 08:36:09.000000000 +0200
+++ libgmp/Pkgfile 2011-05-27 08:36:01.000000000 +0200
@@ -9,9 +9,9 @@
build() {
cd gmp-$version
- ABI=32 ./configure –prefix=/usr \
- –enable-cxx \
- –build=i686-pc-linux-gnu
+ ./configure –prefix=/usr \
+ –enable-cxx \
+ –build=armv7l-unknown-linux-gnueabi
make
make DESTDIR=$PKG install
rm -r $PKG/usr/share
arm-crux-linux-gnueabi
–build=$MACHTYPE also woks but maybe a reworked uname patch in coreutils could help.
i think we need to use a standard triplet like to make our life simple...
arm-unknown-linux-gnueabi
or
arm-unknown-linux-gnueabihf
this is a patch for automake:
acrux@efikamx:/mnt/automake# cat automake-1.11.1-gnueabihf.patch
— automake-1.11.1/lib/config.guess.orig 2011-06-07 17:40:39.670550989 +0000
+++ automake-1.11.1/lib/config.guess 2011-06-07 18:09:14.380564742 +0000
@@ -4,7 +4,7 @@
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
# Free Software Foundation, Inc.
-timestamp='2009-11-20'
+timestamp='2011-06-07'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -872,13 +872,22 @@
+ case `sed -n '/^Processor/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ *ARM*) UNAME_MACHINE=arm ;;
+ esac
- echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ if echo ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q ARM_PCS_VFP
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
+ fi
http://pastebin.com/raw.php?i=PXkjfYDn