Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Oct 2007 11:19:17 -0500
From:      "Scot Hetzel" <swhetzel@gmail.com>
To:        "Aryeh M. Friedman" <aryeh.friedman@gmail.com>
Cc:        freebsd-current@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: lang/gcc34 broken on 8-current?!?!?
Message-ID:  <790a9fff0710190919s1387d773p8c8c42b91e784cd5@mail.gmail.com>
In-Reply-To: <47189A77.8060402@gmail.com>
References:  <47189A77.8060402@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I had this same problem.  There is an error in the
freebsd-spec.h file which causes __FreeBSD__ to be
defined twice when FBSD_MAJOR=8.  This is caused by
a missing 'else' before the 'if (FBSD_MAJOR == 7)'
statement.

See PR 117287 for the fix.

If you have devel/gccxml installed, you'll also
need PR 117289.

Scot

On 10/19/07, Aryeh M. Friedman <aryeh.friedman@gmail.com> wrote:
> FreeBSD monster 8.0-CURRENT FreeBSD 8.0-CURRENT #1: Thu Oct 18 20:17:48
> UTC 2007     aryeh@monster:/usr/obj/usr/src/sys/MONSTER  amd64
>
>
> mv tmp-libgcc.mk libgcc.mk
> TARGET_CPU_DEFAULT="" \
>         HEADERS="ansidecl.h" DEFINES="" \
>         /bin/sh .././..//gcc-3.4.6/gcc/mkconfig.sh tconfig.h
> ./xgcc -B./ -B/usr/local/x86_64-portbld-freebsd8.0/bin/ -isystem
> /usr/local/x86_64-portbld-freebsd8.0/include -isystem
> /usr/local/x86_64-portbld-freebsd8.0/sys-include
> -L/usr/ports/lang/gcc34/work/build/gcc/../ld -O2 -DIN_GCC    -W -Wall
> -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -Wold-style-definition  -isystem ./include  -I. -I.
> -I.././..//gcc-3.4.6/gcc -I.././..//gcc-3.4.6/gcc/.
> -I.././..//gcc-3.4.6/gcc/../include   -g0 -finhibit-size-directive
> -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
> -fno-unit-at-a-time  \
>            -c .././..//gcc-3.4.6/gcc/crtstuff.c -DCRT_BEGIN \
>           -o crtbegin.o
> <built-in>:78:1: warning: "__FreeBSD__" redefined
> <built-in>:77:1: warning: this is the location of the previous definition
> In file included from .././..//gcc-3.4.6/gcc/tsystem.h:44,
>                  from .././..//gcc-3.4.6/gcc/crtstuff.c:62:
> ./include/stddef.h:57:26: machine/ansi.h: No such file or directory
> gmake[2]: *** [crtbegin.o] Error 1
> gmake[2]: Leaving directory `/usr/ports/lang/gcc34/work/build/gcc'
> gmake[1]: *** [stage1_build] Error 2
> gmake[1]: Leaving directory `/usr/ports/lang/gcc34/work/build/gcc'
> gmake: *** [bootstrap-lean] Error 2
> *** Error code 2
>
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0710190919s1387d773p8c8c42b91e784cd5>