From owner-svn-ports-head@freebsd.org Sat Apr 7 00:29:43 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78490F942E7; Sat, 7 Apr 2018 00:29:43 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 28FED7E426; Sat, 7 Apr 2018 00:29:43 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 23FDF1934C; Sat, 7 Apr 2018 00:29:43 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w370ThAt080351; Sat, 7 Apr 2018 00:29:43 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w370TgmO080349; Sat, 7 Apr 2018 00:29:42 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <201804070029.w370TgmO080349@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Sat, 7 Apr 2018 00:29:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r466701 - head/devel/riscv64-gcc X-SVN-Group: ports-head X-SVN-Commit-Author: jhb X-SVN-Commit-Paths: head/devel/riscv64-gcc X-SVN-Commit-Revision: 466701 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 00:29:43 -0000 Author: jhb (src,doc committer) Date: Sat Apr 7 00:29:42 2018 New Revision: 466701 URL: https://svnweb.freebsd.org/changeset/ports/466701 Log: Bring over some fixes from the other external GCC toolchain ports. This is generally inspired by the changes in r465416 and subsequent fixes. - Remove include-fixed headers. - Strip /usr/local/include from the default include path. - Use libc++ for C++ instead of libstdc++. - Force build of a cross compiler if built on a riscv64 host. - Bump PORTREVISION. Reviewed by: lwhsu Differential Revision: https://reviews.freebsd.org/D14787 Modified: head/devel/riscv64-gcc/Makefile head/devel/riscv64-gcc/pkg-plist Modified: head/devel/riscv64-gcc/Makefile ============================================================================== --- head/devel/riscv64-gcc/Makefile Sat Apr 7 00:29:27 2018 (r466700) +++ head/devel/riscv64-gcc/Makefile Sat Apr 7 00:29:42 2018 (r466701) @@ -2,7 +2,7 @@ PORTNAME= gcc PORTVERSION= 7.2.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel PKGNAMEPREFIX= riscv64- @@ -32,6 +32,7 @@ GCC_TARGET= ${PKGNAMEPREFIX}unknown-${OPSYS:tl}${OSREL GNU_CONFIGURE= yes CONFIGURE_OUTSOURCE= yes CONFIGURE_ARGS= --target=${GCC_TARGET} \ + --with-gxx-include-dir=/usr/include/c++/v1/ \ --with-sysroot=/ \ --without-newlib \ --without-headers \ @@ -59,12 +60,22 @@ CONFIGURE_ARGS= --target=${GCC_TARGET} \ ALL_TARGET= inhibit-libc=true all-gcc INSTALL_TARGET= inhibit-libc=true install-gcc +# Force build of a cross compiler even if the target matches the host. +CFLAGS+= -DCROSS_DIRECTORY_STRUCTURE + PLIST_SUB= GCC_TARGET=${GCC_TARGET} \ GCC_VERSION=${PORTVERSION} +post-patch: + @${REINPLACE_CMD} -e '/LIBSTDCXX/ s/stdc\+\+/c\+\+/g ' \ + ${WRKSRC}//gcc/cp/g++spec.c + @${REINPLACE_CMD} -e '/LOCAL_INCLUDE_DIR/ d ' \ + ${WRKSRC}//gcc/Makefile.in + post-install: @if [ -d ${STAGEDIR}${PREFIX}/${INFO_PATH} ] ; then ${RM} -r ${STAGEDIR}${PREFIX}/${INFO_PATH}; fi @${RM} ${STAGEDIR}${PREFIX}/man/man7/* + @${RM} -r ${STAGEDIR}${PREFIX}/lib/gcc/${GCC_TARGET}/${PORTVERSION}/include-fixed BROKEN_aarch64= fails to package Modified: head/devel/riscv64-gcc/pkg-plist ============================================================================== --- head/devel/riscv64-gcc/pkg-plist Sat Apr 7 00:29:27 2018 (r466700) +++ head/devel/riscv64-gcc/pkg-plist Sat Apr 7 00:29:42 2018 (r466701) @@ -9,21 +9,6 @@ bin/%%GCC_TARGET%%-gcc-ranlib bin/%%GCC_TARGET%%-gcov bin/%%GCC_TARGET%%-gcov-dump bin/%%GCC_TARGET%%-gcov-tool -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/README -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/limits.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_fil.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_lookup.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_nat.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_proxy.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_scan.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/netinet/ip_state.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/stddef.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/stdio.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/stdlib.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/sys/types.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/syslimits.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/unistd.h -lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include-fixed/wchar.h lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/float.h lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/iso646.h lib/gcc/%%GCC_TARGET%%/%%GCC_VERSION%%/include/stdalign.h