tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: -current sparc build failure with MKDEBUG=yes/COPTS=-g



> I finally got time to dig into -current NetBSD/sparc build failure
> with MKDEBUG=yes && COPTS=-g.
> 
> The problem lies in miniroot.fs build :
> 
>      create  miniroot/miniroot.fs
> nbmakefs: `work'size of 8527872 is larger than the maxsize of 8388608.
> --- miniroot.fs ---
> *** [miniroot.fs] Error code 1
> 
> Some files in usr/mdec have indeed larger size with COPTS=-g
> 
> -r--r--r--  1 njoly  users  78230 Nov 17 13:02 bootjs.net
> -r--r--r--  1 njoly  users  92392 Nov 17 13:02 ofwboot
> -r--r--r--  1 njoly  users  92392 Nov 17 13:02 ofwboot.net
> 
> -r--r--r--  1 njoly  users  310196 Nov 17 14:34 bootjs.net
> -r--r--r--  1 njoly  users  370643 Nov 17 14:34 ofwboot
> -r--r--r--  1 njoly  users  370643 Nov 17 14:34 ofwboot.net
> 
> Is the attached patch, which clear COPTS, correct ?

that's the wrong answer.  a quick workaround would be to
stop installing two copies of the same binary and have
ofwboot and ofwboot.net linked together.

ideally, we should strip -g these for installation, but
leave the debug info somewhere.


wait.  is that COPTS=-g also means "no -O"?  if so, then
i recommend that you use "COPTS=-g -O2".  actually, i've
always thought the right way is to set DBG, not COPTS.


.mrg.


Home | Main Index | Thread Index | Old Index