> From: Steven Friedrich <free...@insightbb.com> > Date: Fri, 22 Jan 2010 22:20:30 -0500 > Sender: owner-freebsd-sta...@freebsd.org > > On Friday 22 January 2010 06:32:02 pm Oliver Brandmueller wrote: > > Hi, > > > > On Fri, Jan 22, 2010 at 03:56:31PM -0500, Steven Friedrich wrote: > > > in your /etc/make.conf, do you have a line like: > > > makeoptions DEBUG=-g > > > if so, comment it out. > > > > The GENEREIC kernel by default has the following config: > > > > makeoptions DEBUG=-g # Build kernel with gdb(1) debug > > symbols > > > > You don't need anything special in your make.conf > > > > In fact having the debug symbols is useful in many cases. So raising the > > default size for the / partition might be the better option (OK, doesn't > > help for already installed systems of course). > > > > - Oliver > > > I'm sorry. My response to him should have been more precise. > I was trying to clue him in on how to build a non-debug kernel, but my > answer was in fact wrong. > I said he may have a line in make.conf, but that was a mistake. I > pulled the line from a kernel config file. > If he wants to build a kernel with no symbols, as he stated he does, > he needs to comment out the line and build a kernel. Could buildworld > and installworld, too. > But he and I went off topic. I should have changed the subject line to > start a new thread to discuss building without symbols. He was > complaining that it wasn't in the FAQ or the handbook. It's in > GENERIC, which is required reading if you're ever going to build > custom kernels. > > As for the main topic, I have been making 4GB root partitions for some time. > Our disk requirements have been soaring over the last decade, while cost per > MB have plummeted. I don't want to have to guess what sizes each partition > should be.
Just for the record and to avoid further confusion, building a kernel with debug symbols does not take any more space in root. Another copy of the kernel is built but not installed into /kernel. The copy of the kernel in /kernel is always symbol-less. Also, at the start of this thread, the OP said that he did a buildkernel and a buildworld. This is broken and may produce a non-bootable kernel. Always buildworld and then buildkernel so that the new toolchain is used to build the kernel. (This also has nothing to do with the original issue of the amount of space in the root partition being too small for amd64 systems, but I am hoping to avoid future issues.) -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: ober...@es.net Phone: +1 510 486-8634 Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"