Setting -mcpu=ultrasparc or -mcpu=v9 in /etc/make.conf causes "unknown architecture" errors on world or kernel builds. Setting the flags overwrites the CPU_SPEC that's normally set to __sparc64__. Fix: Apply the attached patch which adds the following to /usr/src/contrib/gcc/config/sparc/freebsd.h: builtin_define ("__sparc64__"); builtin_define ("__sparc_v9__"); builtin_define ("__sparcv9"); builtin_define ("__arch64__"); Patch attached with submission follows: How-To-Repeat: Add -mcpu=ultrasparc to you CFLAGS= configuration in /etc/make.conf, then try to compile world or any kernel.
Responsible Changed From-To: freebsd-sparc64->kan kan, can you take a look at this? If not, assign back to gnu@. Thanks.
Responsible Changed From-To: kan->obrien maybe I can get this submittable.
marius 2007-12-09 17:41:47 UTC FreeBSD src repository Modified files: contrib/gcc/config/sparc freebsd.h Log: Allow the targeted CPU type to be set via -mcpu instead of limiting to the hardcoded equivalent of -mcpu=ultrasparc. PR: 109510 MFC after: 3 months Revision Changes Path 1.11 +8 -6 src/contrib/gcc/config/sparc/freebsd.h _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->patched Over to committer of the patch, as an MFC reminder.
Responsible Changed From-To: obrien->marius
marius 2008-03-08 19:33:35 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) contrib/gcc/config/sparc freebsd.h Log: MFC: 1.11 Allow the targeted CPU type to be set via -mcpu instead of limiting to the hardcoded equivalent of -mcpu=ultrasparc. PR: 109510 Revision Changes Path 1.10.2.1 +8 -6 src/contrib/gcc/config/sparc/freebsd.h _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
marius 2008-03-09 14:10:23 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) contrib/gcc/config/sparc freebsd.h Log: MFC: 1.11 Allow the targeted CPU type to be set via -mcpu instead of limiting to the hardcoded equivalent of -mcpu=ultrasparc. PR: 109510 Revision Changes Path 1.9.8.1 +8 -6 src/contrib/gcc/config/sparc/freebsd.h _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: patched->closed close