Re: gcc-4.5 and 4.6 needs to be recompiled due to /usr/src/UPDATE: 20110608:

From: Pan Tsu <inyaoo_at_gmail.com>
Date: Fri, 10 Jun 2011 03:00:52 +0400
"Hartmann, O." <ohartman_at_zedat.fu-berlin.de> writes:

> Since the notice mentioned in /usr/src/UPDATE (20110608) both gcc-4.5
> and 4.6 seems to need to be recompiled. I tried some ports with
> "USE_FORTRAN= yes" setand they failed as with gcc-4.6. There was
> always an error reporting: undefined reference to __cpumask_t or
> similar.

Do you mean stale typedef in gcc's private copy under
  PREFIX/lib/gccXY/gcc/*/*/include-fixed/sys/types.h ?

You can fix the file manually instead of wasting cpu cycles.

  $ gcc46 foo.c
  In file included from /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.1/include-fixed/unistd.h:46:0,
                   from foo.c:1:
  /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.1/include-fixed/sys/types.h:111:1: error: unknown type name '__cpumask_t'
  Exit 1

  $ sed -n 111p /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.1/include-fixed/sys/types.h
  typedef __cpumask_t     cpumask_t;
Received on Thu Jun 09 2011 - 21:01:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:14 UTC