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

Pan Tsu inyaoo at gmail.com
Thu Jun 9 23:01:20 UTC 2011


"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;


More information about the freebsd-current mailing list