CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Attached to Project: CRUX-ARM
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:  

Fixed in core-arm ports collection adding the option –build=$MACHTYPE.
All comments related to coreutils should be moved to the new hardfp development.

Project Manager
Victor Martinez commented on Friday, 27 May 2011, 06:43 GMT

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

Project Manager
Jose V Beneyto commented on Friday, 27 May 2011, 09:32 GMT

arm-crux-linux-gnueabi

acrux commented on Wednesday, 01 June 2011, 22:25 GMT

–build=$MACHTYPE also woks but maybe a reworked uname patch in coreutils could help.

acrux commented on Tuesday, 07 June 2011, 18:22 GMT

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 @@

      echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
      exit ;;
   arm*:Linux:*:*)

+ case `sed -n '/^Processor/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ *ARM*) UNAME_MACHINE=arm ;;
+ esac

      eval $set_cc_for_build
      if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
          | grep -q __ARM_EABI__
      then
          echo ${UNAME_MACHINE}-unknown-linux-gnu
      else

- 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

      fi
      exit ;;
   avr32*:Linux:*:*)
acrux commented on Tuesday, 07 June 2011, 18:22 GMT

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing