> On 10 May 2016, at 14:59 , Bjoern A. Zeeb <b...@freebsd.org> wrote:
> 
> Author: bz
> Date: Tue May 10 14:59:48 2016
> New Revision: 299368
> URL: https://svnweb.freebsd.org/changeset/base/299368
> 
> Log:
>  siba depends on bhndbus; add the device to the kernel config.
>  This gets us past compiling and now only linking is failing on builtins.


head.svn% grep -r __builtin_ctz sys/dev/bhnd/
sys/dev/bhnd/bhndb/bhndb_private.h:     dw_free = 
&br->dw_alloc[__builtin_ctz(br->dwa_freelist)];
head.svn% grep -r __builtin_popcount !$
sys/dev/bhnd/bhndb/bhndb_subr.c:        if 
(__builtin_popcount(br->dwa_freelist) != br->dwa_count) {

Fixing this in the kernel on mips32 is beyond my commitment today.  Could you 
please have a look.  SENTRY5 has not been compiling in a few days now;  
alternatively siba should temporarily go out of the kernel config until this is 
all resolved?


    107 linking kernel.full
    108 bhndb.o: In function `bhndb_try_activate_resource':
    109 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0xb20): 
undefined reference to `__ctzsi2'
    110 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0xb20): 
relocation truncated to fit: R_MIPS_26 against `__ctzsi2'
    111 bhndb.o: In function `bhndb_bus_write_multi_stream_1':
    112 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x290c): 
undefined reference to `__ctzsi2'
    113 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x290c): 
relocation truncated to fit: R_MIPS_26 against `__ctzsi2'
    114 bhndb.o: In function `bhndb_bus_read_1':
    115 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x2b9c): 
undefined reference to `__ctzsi2'
    116 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x2b9c): 
relocation truncated to fit: R_MIPS_26 against `__ctzsi2'
    117 bhndb.o: In function `bhndb_bus_read_stream_1':
    118 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x2dc0): 
undefined reference to `__ctzsi2'
    119 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x2dc0): 
relocation truncated to fit: R_MIPS_26 against `__ctzsi2'
    120 bhndb.o: In function `bhndb_bus_write_1':
    121 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x2fec): 
undefined reference to `__ctzsi2'
    122 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x2fec): 
relocation truncated to fit: R_MIPS_26 against `__ctzsi2'
    123 
bhndb.o:/tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x3218): more 
undefined references to `__ctzsi2' follow
    124 bhndb.o: In function `bhndb_bus_barrier':
    125 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x3218): 
relocation truncated to fit: R_MIPS_26 against `__ctzsi2'
    126 bhndb.o: In function `bhndb_bus_write_multi_stream_4':
    127 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x3464): 
relocation truncated to fit: R_MIPS_26 against `__ctzsi2'
    128 bhndb.o: In function `bhndb_bus_read_multi_stream_1':
    129 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x3700): 
relocation truncated to fit: R_MIPS_26 against `__ctzsi2'
    130 bhndb.o: In function `bhndb_bus_write_multi_1':
    131 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x3998): 
relocation truncated to fit: R_MIPS_26 against `__ctzsi2'
    132 bhndb.o: In function `bhndb_bus_read_multi_1':
    133 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x3c30): 
relocation truncated to fit: R_MIPS_26 against `__ctzsi2'
    134 bhndb.o: In function `bhndb_bus_write_stream_1':
    135 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb.c:(.text+0x3ec8): 
additional relocation overflows omitted from the output
    136 bhndb_subr.o: In function `bhndb_free_resources':
    137 /tank/users/bz/head.svn/sys/dev/bhnd/bhndb/bhndb_subr.c:(.text+0x888): 
undefined reference to `__popcountsi2'
    138 *** [kernel.full] Error code 1
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to