Date: Tue, 30 Oct 2007 16:00:28 +0900 From: Hirohisa Yamaguchi <umq@ueo.co.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/117662: lang/gcc41 does not build under CURRENT Message-ID: <863avtm6ib.wl%umq@ueo.co.jp> Resent-Message-ID: <200710300710.l9U7A1Ih060225@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 117662 >Category: ports >Synopsis: lang/gcc41 does not build under CURRENT >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 30 07:10:01 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Hirohisa Yamaguchi >Release: FreeBSD 8.0-CURRENT amd64 >Organization: <organization of PR author (multiple lines)> >Environment: System: FreeBSD calliope.****.org 8.0-CURRENT FreeBSD 8.0-CURRENT #13: Sat Oct 27 13:36:07 JST 2007 root@calliope.****.org:/usr/obj/usr/src/sys/CALLIOPE64 amd64 >Description: building lang/gcc41 under CURRENT fails. # make clean build ===> Cleaning for gcc-4.1.3_20071022 Making GCC 4.1.3 for FreeBSD 8.0 target=x86_64-portbld-freebsd8.0 ===> Extracting for gcc-4.1.3_20071022 ...snip... <built-in>: warning: "__FreeBSD__" redefined <built-in>: warning: this is the location of the previous definition In file included from .././..//gcc-4.1-20071022/gcc/tsystem.h:47, from .././..//gcc-4.1-20071022/gcc/crtstuff.c:68: ./include/stddef.h:58:26: error: machine/ansi.h: No such file or directory gmake[2]: *** [crtbegin.o] Error 1 gmake[2]: Leaving directory `/usr/ports/lang/gcc41/work/build/gcc' gmake[1]: *** [stage1_build] Error 2 gmake[1]: Leaving directory `/usr/ports/lang/gcc41/work/build/gcc' gmake: *** [bootstrap-lean] Error 2 *** Error code 2 Stop in /usr/ports/lang/gcc41. *** Error code 1 Stop in /usr/ports/lang/gcc41. >How-To-Repeat: under CURRENT: # cd ports/lang/gcc41 # make >Fix: the patch follows; diff -Npru ports.orig/lang/gcc41/files/patch-gcc_config_freebsd-spec.h ports/lang/gcc41/files/patch-gcc_config_freebsd-spec.h --- ports.orig/lang/gcc41/files/patch-gcc_config_freebsd-spec.h 1970-01-01 09:00:00.000000000 +0900 +++ ports/lang/gcc41/files/patch-gcc_config_freebsd-spec.h 2007-10-30 10:05:40.000000000 +0900 @@ -0,0 +1,11 @@ +--- gcc/config/freebsd-spec.h.orig 2005-07-19 22:42:12.000000000 +0900 ++++ gcc/config/freebsd-spec.h 2007-10-30 09:58:58.000000000 +0900 +@@ -55,7 +55,7 @@ Boston, MA 02110-1301, USA. */ + builtin_define ("__FreeBSD__=9"); \ + else if (FBSD_MAJOR == 8) \ + builtin_define ("__FreeBSD__=8"); \ +- if (FBSD_MAJOR == 7) \ ++ else if (FBSD_MAJOR == 7) \ + builtin_define ("__FreeBSD__=7"); \ + else if (FBSD_MAJOR == 6) \ + builtin_define ("__FreeBSD__=6"); \ >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?863avtm6ib.wl%umq>