Greetings all,
After several obstacles, I think I successfully upgraded the toolchain on 4.10-RELEASE. My Google searches along the way yielded tales of several other attempts, but no documented successes. Here's what I had to do: * Fix bug in binutils-2.15 ./bfd/configure that lumps 4.10 in with 4.[0-4] via a bad regexp, thus trying to compile trad-core.c when it should not. * Force binutils OUTPUT_FORMAT to "elf32-i386" to match stock 4.10-R, lest I must make world due to binutils' default "elf32-i386-freebsd". AFAICT, I did this correctly, but wouldn't yet bet large sums of money on it. * Build binutils-2.15, /usr/lib/crt*.o, and gcc-3.3.5. * Rebuild same using new binutils/gcc/crt. * Rebuild another time or two for good measure. * In /usr/share/mk/bsd.kern.mk, remove "-fformat-extensions" and add "-ffreestanding -fno-builtin". * Fix kernel source that gcc-3.3 hates. Some parts I know are correct, but others (fortunately in modules I don't use) left me a bit less confident. I've compiled several userland programs and a GENERIC kernel, and soon will try running a non-GENERIC kernel that's building with the new toolchain as I type. I used gcc-3.3.5 because kernel compilation attempts were an utter failure on gcc-3.4.3: -O1 (or was it "-O0"?) emitted "movb %sil,..." -O3 crashed somewhere along the way Both scare me greatly. I'm tempted to try rebuilding gcc-3.4.3 with the new toolchain, but a bit reluctant to tear things up again just yet. Hopefully someone finds all this useful. I presume I'm not the only one who wants to try a newer toolchain on RELENG_4. Eddy -- Everquick Internet - http://www.everquick.net/ A division of Brotsman & Dreger, Inc. - http://www.brotsman.com/ Bandwidth, consulting, e-commerce, hosting, and network building Phone: +1 785 865 5885 Lawrence and [inter]national Phone: +1 316 794 8922 Wichita ________________________________________________________________________ DO NOT send mail to the following addresses: [EMAIL PROTECTED] -*- [EMAIL PROTECTED] -*- [EMAIL PROTECTED] Sending mail to spambait addresses is a great way to get blocked. _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"