[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Changes needed for building eglibc on x32



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.000000000 -0700
> +++ eglibc-2.16/debian/sysdeps/x32.mk   2012-11-25 02:42:33.000000000 -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
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: