Re: svn commit: r337868 - head/stand

2018-08-15 Thread Warner Losh
I'll give that a shot. I wonder why things are different in my test jig...

Warner

On Wed, Aug 15, 2018 at 5:49 PM, Kyle Evans  wrote:

> https://ci.freebsd.org/job/FreeBSD-head-mips-build/3874/console at least;
> a local make -j8 TARGET_ARCH=mips buildworld also failed a while ago
>
>
> On Wed, Aug 15, 2018, 18:36 Warner Losh  wrote:
>
>> which mips builds? My automated mips and mips64 builds just work...
>>
>> Warner
>>
>> On Wed, Aug 15, 2018 at 3:22 PM, Kyle Evans  wrote:
>>
>>> On Wed, Aug 15, 2018 at 3:31 PM, Warner Losh  wrote:
>>> > Author: imp
>>> > Date: Wed Aug 15 20:31:11 2018
>>> > New Revision: 337868
>>> > URL: https://svnweb.freebsd.org/changeset/base/337868
>>> >
>>> > Log:
>>> >   stand: Use -Oz/-Os for all loader/stand builds.
>>> >
>>> >   While we're not super size constrained, the x86 BIOS /boot/loader has
>>> >   to be less than about 520k-530k to be reliable. The LUA loader is at
>>> >   this size today. -Oz saves 15-20% on the size, keeping us safely
>>> small
>>> >   enough (comparable to where we were with the 4th loader). This will
>>> >   also help with sjg's work on bringing in bearssl, though we may again
>>> >   be looking for space in the LUA loader.
>>> >
>>> >   Size table for clang 6.0.0:
>>> > default -O1 -Os -Oz
>>> >   4th   442368  417792  389120  376832
>>> >   lua   524288  479232  446464  430080
>>> >
>>> >   Tested by: kevans91@ (ubldr on armv7), dhw@ (loader on amdy64)
>>> >   Differential Revision: https://reviews.freebsd.org/D16724
>>> >
>>>
>>> This seems to have frustrated the MIPS build:
>>>
>>> --- ubldr ---
>>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
>>> `block_map':
>>> /usr/src/stand/libsa/ufs.c:277: undefined reference to `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:277: relocation truncated to fit: R_MIPS_26
>>> against `__ashldi3'
>>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
>>> `buf_read_file':
>>> /usr/src/stand/libsa/ufs.c:402: undefined reference to `__ashrdi3'
>>> /usr/src/stand/libsa/ufs.c:402: relocation truncated to fit: R_MIPS_26
>>> against `__ashrdi3'
>>> /usr/src/stand/libsa/ufs.c:403: undefined reference to `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:403: relocation truncated to fit: R_MIPS_26
>>> against `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:418: undefined reference to `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:418: relocation truncated to fit: R_MIPS_26
>>> against `__ashldi3'
>>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
>>> `buf_write_file':
>>> /usr/src/stand/libsa/ufs.c:327: undefined reference to `__ashrdi3'
>>> /usr/src/stand/libsa/ufs.c:327: relocation truncated to fit: R_MIPS_26
>>> against `__ashrdi3'
>>> /usr/src/stand/libsa/ufs.c:328: undefined reference to `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:328: relocation truncated to fit: R_MIPS_26
>>> against `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:358: undefined reference to `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:358: relocation truncated to fit: R_MIPS_26
>>> against `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:377: undefined reference to `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:377: relocation truncated to fit: R_MIPS_26
>>> against `__ashldi3'
>>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
>>> `read_inode':
>>> /usr/src/stand/libsa/ufs.c:166: undefined reference to `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:166: relocation truncated to fit: R_MIPS_26
>>> against `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:166: undefined reference to `__ashldi3'
>>> /usr/src/stand/libsa/ufs.c:166: relocation truncated to fit: R_MIPS_26
>>> against `__ashldi3'
>>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o):/
>>> usr/src/stand/libsa/ufs.c:638:
>>> more undefined references to `__ashldi3' follow
>>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
>>> `ufs_open':
>>> /usr/src/stand/libsa/ufs.c:638: additional relocation overflows
>>> omitted from the output
>>>
>>
>>
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r337868 - head/stand

2018-08-15 Thread Kyle Evans
https://ci.freebsd.org/job/FreeBSD-head-mips-build/3874/console at least; a
local make -j8 TARGET_ARCH=mips buildworld also failed a while ago

On Wed, Aug 15, 2018, 18:36 Warner Losh  wrote:

> which mips builds? My automated mips and mips64 builds just work...
>
> Warner
>
> On Wed, Aug 15, 2018 at 3:22 PM, Kyle Evans  wrote:
>
>> On Wed, Aug 15, 2018 at 3:31 PM, Warner Losh  wrote:
>> > Author: imp
>> > Date: Wed Aug 15 20:31:11 2018
>> > New Revision: 337868
>> > URL: https://svnweb.freebsd.org/changeset/base/337868
>> >
>> > Log:
>> >   stand: Use -Oz/-Os for all loader/stand builds.
>> >
>> >   While we're not super size constrained, the x86 BIOS /boot/loader has
>> >   to be less than about 520k-530k to be reliable. The LUA loader is at
>> >   this size today. -Oz saves 15-20% on the size, keeping us safely small
>> >   enough (comparable to where we were with the 4th loader). This will
>> >   also help with sjg's work on bringing in bearssl, though we may again
>> >   be looking for space in the LUA loader.
>> >
>> >   Size table for clang 6.0.0:
>> > default -O1 -Os -Oz
>> >   4th   442368  417792  389120  376832
>> >   lua   524288  479232  446464  430080
>> >
>> >   Tested by: kevans91@ (ubldr on armv7), dhw@ (loader on amdy64)
>> >   Differential Revision: https://reviews.freebsd.org/D16724
>> >
>>
>> This seems to have frustrated the MIPS build:
>>
>> --- ubldr ---
>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
>> `block_map':
>> /usr/src/stand/libsa/ufs.c:277: undefined reference to `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:277: relocation truncated to fit: R_MIPS_26
>> against `__ashldi3'
>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
>> `buf_read_file':
>> /usr/src/stand/libsa/ufs.c:402: undefined reference to `__ashrdi3'
>> /usr/src/stand/libsa/ufs.c:402: relocation truncated to fit: R_MIPS_26
>> against `__ashrdi3'
>> /usr/src/stand/libsa/ufs.c:403: undefined reference to `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:403: relocation truncated to fit: R_MIPS_26
>> against `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:418: undefined reference to `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:418: relocation truncated to fit: R_MIPS_26
>> against `__ashldi3'
>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
>> `buf_write_file':
>> /usr/src/stand/libsa/ufs.c:327: undefined reference to `__ashrdi3'
>> /usr/src/stand/libsa/ufs.c:327: relocation truncated to fit: R_MIPS_26
>> against `__ashrdi3'
>> /usr/src/stand/libsa/ufs.c:328: undefined reference to `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:328: relocation truncated to fit: R_MIPS_26
>> against `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:358: undefined reference to `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:358: relocation truncated to fit: R_MIPS_26
>> against `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:377: undefined reference to `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:377: relocation truncated to fit: R_MIPS_26
>> against `__ashldi3'
>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
>> `read_inode':
>> /usr/src/stand/libsa/ufs.c:166: undefined reference to `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:166: relocation truncated to fit: R_MIPS_26
>> against `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:166: undefined reference to `__ashldi3'
>> /usr/src/stand/libsa/ufs.c:166: relocation truncated to fit: R_MIPS_26
>> against `__ashldi3'
>>
>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o):/usr/src/stand/libsa/ufs.c:638:
>> more undefined references to `__ashldi3' follow
>> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
>> `ufs_open':
>> /usr/src/stand/libsa/ufs.c:638: additional relocation overflows
>> omitted from the output
>>
>
>
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r337868 - head/stand

2018-08-15 Thread Warner Losh
which mips builds? My automated mips and mips64 builds just work...

Warner

On Wed, Aug 15, 2018 at 3:22 PM, Kyle Evans  wrote:

> On Wed, Aug 15, 2018 at 3:31 PM, Warner Losh  wrote:
> > Author: imp
> > Date: Wed Aug 15 20:31:11 2018
> > New Revision: 337868
> > URL: https://svnweb.freebsd.org/changeset/base/337868
> >
> > Log:
> >   stand: Use -Oz/-Os for all loader/stand builds.
> >
> >   While we're not super size constrained, the x86 BIOS /boot/loader has
> >   to be less than about 520k-530k to be reliable. The LUA loader is at
> >   this size today. -Oz saves 15-20% on the size, keeping us safely small
> >   enough (comparable to where we were with the 4th loader). This will
> >   also help with sjg's work on bringing in bearssl, though we may again
> >   be looking for space in the LUA loader.
> >
> >   Size table for clang 6.0.0:
> > default -O1 -Os -Oz
> >   4th   442368  417792  389120  376832
> >   lua   524288  479232  446464  430080
> >
> >   Tested by: kevans91@ (ubldr on armv7), dhw@ (loader on amdy64)
> >   Differential Revision: https://reviews.freebsd.org/D16724
> >
>
> This seems to have frustrated the MIPS build:
>
> --- ubldr ---
> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
> `block_map':
> /usr/src/stand/libsa/ufs.c:277: undefined reference to `__ashldi3'
> /usr/src/stand/libsa/ufs.c:277: relocation truncated to fit: R_MIPS_26
> against `__ashldi3'
> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
> `buf_read_file':
> /usr/src/stand/libsa/ufs.c:402: undefined reference to `__ashrdi3'
> /usr/src/stand/libsa/ufs.c:402: relocation truncated to fit: R_MIPS_26
> against `__ashrdi3'
> /usr/src/stand/libsa/ufs.c:403: undefined reference to `__ashldi3'
> /usr/src/stand/libsa/ufs.c:403: relocation truncated to fit: R_MIPS_26
> against `__ashldi3'
> /usr/src/stand/libsa/ufs.c:418: undefined reference to `__ashldi3'
> /usr/src/stand/libsa/ufs.c:418: relocation truncated to fit: R_MIPS_26
> against `__ashldi3'
> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
> `buf_write_file':
> /usr/src/stand/libsa/ufs.c:327: undefined reference to `__ashrdi3'
> /usr/src/stand/libsa/ufs.c:327: relocation truncated to fit: R_MIPS_26
> against `__ashrdi3'
> /usr/src/stand/libsa/ufs.c:328: undefined reference to `__ashldi3'
> /usr/src/stand/libsa/ufs.c:328: relocation truncated to fit: R_MIPS_26
> against `__ashldi3'
> /usr/src/stand/libsa/ufs.c:358: undefined reference to `__ashldi3'
> /usr/src/stand/libsa/ufs.c:358: relocation truncated to fit: R_MIPS_26
> against `__ashldi3'
> /usr/src/stand/libsa/ufs.c:377: undefined reference to `__ashldi3'
> /usr/src/stand/libsa/ufs.c:377: relocation truncated to fit: R_MIPS_26
> against `__ashldi3'
> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
> `read_inode':
> /usr/src/stand/libsa/ufs.c:166: undefined reference to `__ashldi3'
> /usr/src/stand/libsa/ufs.c:166: relocation truncated to fit: R_MIPS_26
> against `__ashldi3'
> /usr/src/stand/libsa/ufs.c:166: undefined reference to `__ashldi3'
> /usr/src/stand/libsa/ufs.c:166: relocation truncated to fit: R_MIPS_26
> against `__ashldi3'
> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o):/
> usr/src/stand/libsa/ufs.c:638:
> more undefined references to `__ashldi3' follow
> /usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
> `ufs_open':
> /usr/src/stand/libsa/ufs.c:638: additional relocation overflows
> omitted from the output
>
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r337868 - head/stand

2018-08-15 Thread Kyle Evans
On Wed, Aug 15, 2018 at 3:31 PM, Warner Losh  wrote:
> Author: imp
> Date: Wed Aug 15 20:31:11 2018
> New Revision: 337868
> URL: https://svnweb.freebsd.org/changeset/base/337868
>
> Log:
>   stand: Use -Oz/-Os for all loader/stand builds.
>
>   While we're not super size constrained, the x86 BIOS /boot/loader has
>   to be less than about 520k-530k to be reliable. The LUA loader is at
>   this size today. -Oz saves 15-20% on the size, keeping us safely small
>   enough (comparable to where we were with the 4th loader). This will
>   also help with sjg's work on bringing in bearssl, though we may again
>   be looking for space in the LUA loader.
>
>   Size table for clang 6.0.0:
> default -O1 -Os -Oz
>   4th   442368  417792  389120  376832
>   lua   524288  479232  446464  430080
>
>   Tested by: kevans91@ (ubldr on armv7), dhw@ (loader on amdy64)
>   Differential Revision: https://reviews.freebsd.org/D16724
>

This seems to have frustrated the MIPS build:

--- ubldr ---
/usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function `block_map':
/usr/src/stand/libsa/ufs.c:277: undefined reference to `__ashldi3'
/usr/src/stand/libsa/ufs.c:277: relocation truncated to fit: R_MIPS_26
against `__ashldi3'
/usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
`buf_read_file':
/usr/src/stand/libsa/ufs.c:402: undefined reference to `__ashrdi3'
/usr/src/stand/libsa/ufs.c:402: relocation truncated to fit: R_MIPS_26
against `__ashrdi3'
/usr/src/stand/libsa/ufs.c:403: undefined reference to `__ashldi3'
/usr/src/stand/libsa/ufs.c:403: relocation truncated to fit: R_MIPS_26
against `__ashldi3'
/usr/src/stand/libsa/ufs.c:418: undefined reference to `__ashldi3'
/usr/src/stand/libsa/ufs.c:418: relocation truncated to fit: R_MIPS_26
against `__ashldi3'
/usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function
`buf_write_file':
/usr/src/stand/libsa/ufs.c:327: undefined reference to `__ashrdi3'
/usr/src/stand/libsa/ufs.c:327: relocation truncated to fit: R_MIPS_26
against `__ashrdi3'
/usr/src/stand/libsa/ufs.c:328: undefined reference to `__ashldi3'
/usr/src/stand/libsa/ufs.c:328: relocation truncated to fit: R_MIPS_26
against `__ashldi3'
/usr/src/stand/libsa/ufs.c:358: undefined reference to `__ashldi3'
/usr/src/stand/libsa/ufs.c:358: relocation truncated to fit: R_MIPS_26
against `__ashldi3'
/usr/src/stand/libsa/ufs.c:377: undefined reference to `__ashldi3'
/usr/src/stand/libsa/ufs.c:377: relocation truncated to fit: R_MIPS_26
against `__ashldi3'
/usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function `read_inode':
/usr/src/stand/libsa/ufs.c:166: undefined reference to `__ashldi3'
/usr/src/stand/libsa/ufs.c:166: relocation truncated to fit: R_MIPS_26
against `__ashldi3'
/usr/src/stand/libsa/ufs.c:166: undefined reference to `__ashldi3'
/usr/src/stand/libsa/ufs.c:166: relocation truncated to fit: R_MIPS_26
against `__ashldi3'
/usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o):/usr/src/stand/libsa/ufs.c:638:
more undefined references to `__ashldi3' follow
/usr/obj/usr/src/mips.mips/stand/libsa/libsa.a(ufs.o): In function `ufs_open':
/usr/src/stand/libsa/ufs.c:638: additional relocation overflows
omitted from the output
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r337868 - head/stand

2018-08-15 Thread Warner Losh
Author: imp
Date: Wed Aug 15 20:31:11 2018
New Revision: 337868
URL: https://svnweb.freebsd.org/changeset/base/337868

Log:
  stand: Use -Oz/-Os for all loader/stand builds.
  
  While we're not super size constrained, the x86 BIOS /boot/loader has
  to be less than about 520k-530k to be reliable. The LUA loader is at
  this size today. -Oz saves 15-20% on the size, keeping us safely small
  enough (comparable to where we were with the 4th loader). This will
  also help with sjg's work on bringing in bearssl, though we may again
  be looking for space in the LUA loader.
  
  Size table for clang 6.0.0:
default -O1 -Os -Oz
  4th   442368  417792  389120  376832
  lua   524288  479232  446464  430080
  
  Tested by: kevans91@ (ubldr on armv7), dhw@ (loader on amdy64)
  Differential Revision: https://reviews.freebsd.org/D16724

Modified:
  head/stand/defs.mk

Modified: head/stand/defs.mk
==
--- head/stand/defs.mk  Wed Aug 15 20:23:17 2018(r337867)
+++ head/stand/defs.mk  Wed Aug 15 20:31:11 2018(r337868)
@@ -53,7 +53,12 @@ CFLAGS+= -I${SASRC} -D_STANDALONE
 CFLAGS+=   -I${SYSDIR}
 # Spike the floating point interfaces
 CFLAGS+=   -Ddouble=jagged-little-pill -Dfloat=floaty-mcfloatface
-
+# Slim down the image. This saves about 15% in size with clang 6 on x86
+# Our most constrained /boot/loader env is BIOS booting on x86, where
+# our text + data + BTX have to fit into 640k below the ISA hole.
+# Experience has shown that problems arise between ~520k to ~530k.
+CFLAGS.clang+= -Oz
+CFLAGS.gcc+=   -Os
 
 # GELI Support, with backward compat hooks (mostly)
 .if defined(LOADER_NO_GELI_SUPPORT)
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"