Changes needed for building eglibc on x32

2012-11-25 Thread Daniel Schepler
Here's a patch I needed to get eglibc (2.16-0experimental0) building on x32 
again.  Without it, the build fails when it comes time to do the native 
compile of rpcgen, trying to use gcc-4.6.  The patch will probably also be 
needed for sysdeps/arm64.mk.

  * Fix build on x32: BUILD_CC and BUILD_CXX also need to be overridden to
gcc-4.7 and g++-4.7, respectively.

diff -Nru eglibc-2.16/debian/sysdeps/x32.mk eglibc-2.16/debian/sysdeps/x32.mk
--- eglibc-2.16/debian/sysdeps/x32.mk   2012-10-25 09:23:58.0 -0700
+++ eglibc-2.16/debian/sysdeps/x32.mk   2012-11-25 02:42:33.0 -0800
@@ -4,6 +4,8 @@
 # There is no gcc-4.6 for x32, so use 4.7
 CC = $(DEB_HOST_GNU_TYPE)-$(BASE_CC)-4.7
 CXX = $(DEB_HOST_GNU_TYPE)-$(BASE_CXX)-4.7
+BUILD_CC = $(DEB_HOST_GNU_TYPE)-$(BASE_CC)-4.7
+BUILD_CXX = $(DEB_HOST_GNU_TYPE)-$(BASE_CXX)-4.7
 
 # build 64-bit (amd64) alternative library
 EGLIBC_PASSES += amd64

-- 
Daniel Schepler


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201211250712.53215.dschep...@gmail.com



Re: Changes needed for building eglibc on x32

2012-11-25 Thread Aurelien Jarno
On Sun, Nov 25, 2012 at 07:12:52AM -0800, Daniel Schepler wrote:
 Here's a patch I needed to get eglibc (2.16-0experimental0) building on x32 
 again.  Without it, the build fails when it comes time to do the native 
 compile of rpcgen, trying to use gcc-4.6.  The patch will probably also be 
 needed for sysdeps/arm64.mk.
 
   * Fix build on x32: BUILD_CC and BUILD_CXX also need to be overridden to
 gcc-4.7 and g++-4.7, respectively.
 
 diff -Nru eglibc-2.16/debian/sysdeps/x32.mk eglibc-2.16/debian/sysdeps/x32.mk
 --- eglibc-2.16/debian/sysdeps/x32.mk   2012-10-25 09:23:58.0 -0700
 +++ eglibc-2.16/debian/sysdeps/x32.mk   2012-11-25 02:42:33.0 -0800
 @@ -4,6 +4,8 @@
  # There is no gcc-4.6 for x32, so use 4.7
  CC = $(DEB_HOST_GNU_TYPE)-$(BASE_CC)-4.7
  CXX = $(DEB_HOST_GNU_TYPE)-$(BASE_CXX)-4.7
 +BUILD_CC = $(DEB_HOST_GNU_TYPE)-$(BASE_CC)-4.7
 +BUILD_CXX = $(DEB_HOST_GNU_TYPE)-$(BASE_CXX)-4.7
  
  # build 64-bit (amd64) alternative library
  EGLIBC_PASSES += amd64
 

I think the correct fix is to not set build_cc and build_cxx with a
hardcoded version. I have reverted this part, this should fix the issue.


-- 
Aurelien Jarno  GPG: 1024D/F1BCDB73
aurel...@aurel32.net http://www.aurel32.net


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121125165033.ga15...@hall.aurel32.net