Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2018 14:53:40 +0300
From:      Michael Zhilin <mizhka@gmail.com>
To:        Conrad Meyer <cem@freebsd.org>, freebsd-mips@freebsd.org
Subject:   Re: svn commit: r327715 - head/sys/conf
Message-ID:  <CAF19XBLdERPf4Nq7huujkNKoFZrbQw1R_seKPMZ8JR4MN3W2yg@mail.gmail.com>
In-Reply-To: <CAG6CVpX2_0p1YRday-JgkAYR42FginW7wTWaU64MmREABfAf_Q@mail.gmail.com>
References:  <201801090328.w093SOVW053959@repo.freebsd.org> <CAF19XBJkifp%2B%2BfXanOJn4-kTDKvSeEEaKiBF-wc16j_ey6nfbw@mail.gmail.com> <CAG6CVpX2_0p1YRday-JgkAYR42FginW7wTWaU64MmREABfAf_Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you, Conrad!

Under GCC6 it complains to:

undefined reference to `__bswapsi2'

Full build log is attached. bswapsi2 is easy to implement for mips32.
I'll try it this week.

+ freebsd-mips in loop


Thanks!


On Tue, Jan 9, 2018 at 9:13 AM, Conrad Meyer <cem@freebsd.org> wrote:

> Either add a diff to the vendor code (undesirable) or implement ctzdi2 on
> those platforms.
>
> On Mon, Jan 8, 2018 at 9:12 PM Michael Zhilin <mizhka@gmail.com> wrote:
>
>> Hi,
>>
>> Could you please tell what is plan to back MIPS works?
>>
>> Thanks!
>>
>> On Tue, Jan 9, 2018 at 6:28 AM, Conrad Meyer <cem@freebsd.org> wrote:
>>
>>> Author: cem
>>> Date: Tue Jan  9 03:28:24 2018
>>> New Revision: 327715
>>> URL: https://svnweb.freebsd.org/changeset/base/327715
>>>
>>> Log:
>>>   Fix Zstd kernel build with GCC 4.2
>>>
>>>   By disabling the -Winline warning.  Fixes the powerpc and sparc64 build
>>>   after r327706.
>>>
>>>   Note: MIPS and RISCV builds still broken due to absense of __ctzdi2
>>> (aka
>>>   __builtin_ctzll) in their libgcc or libcompiler-rt libraries.
>>>
>>>   Reported by:  markj
>>>   Sponsored by: Dell EMC Isilon
>>>
>>> Modified:
>>>   head/sys/conf/kern.pre.mk
>>>
>>> Modified: head/sys/conf/kern.pre.mk
>>> ============================================================
>>> ==================
>>> --- head/sys/conf/kern.pre.mk   Tue Jan  9 01:41:55 2018
>>> (r327714)
>>> +++ head/sys/conf/kern.pre.mk   Tue Jan  9 03:28:24 2018
>>> (r327715)
>>> @@ -133,7 +133,7 @@ NORMAL_FWO= ${LD} -b binary --no-warn-mismatch -d
>>> -war
>>>         -m ${LD_EMULATION} -o ${.TARGET} ${.ALLSRC:M*.fw}
>>>
>>>  # for ZSTD in the kernel (include zstd/lib/freebsd before other CFLAGS)
>>> -ZSTD_C= ${CC} -c -DZSTD_HEAPMODE=1 -I$S/contrib/zstd/lib/freebsd
>>> ${CFLAGS} -I$S/contrib/zstd/lib -I$S/contrib/zstd/lib/common ${WERROR}
>>> -Wno-missing-prototypes ${PROF} ${.IMPSRC}
>>> +ZSTD_C= ${CC} -c -DZSTD_HEAPMODE=1 -I$S/contrib/zstd/lib/freebsd
>>> ${CFLAGS} -I$S/contrib/zstd/lib -I$S/contrib/zstd/lib/common ${WERROR}
>>> -Wno-inline -Wno-missing-prototypes ${PROF} ${.IMPSRC}
>>>
>>>  # Common for dtrace / zfs
>>>  CDDL_CFLAGS=   -DFREEBSD_NAMECACHE -nostdinc
>>> -I$S/cddl/compat/opensolaris -I$S/cddl/contrib/opensolaris/uts/common
>>> -I$S -I$S/cddl/contrib/opensolaris/common ${CFLAGS}
>>> -Wno-unknown-pragmas -Wno-missing-prototypes -Wno-undef
>>> -Wno-strict-prototypes -Wno-cast-qual -Wno-parentheses -Wno-redundant-decls
>>> -Wno-missing-braces -Wno-uninitialized -Wno-unused -Wno-inline -Wno-switch
>>> -Wno-pointer-arith -Wno-unknown-pragmas
>>>
>>>
>>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAF19XBLdERPf4Nq7huujkNKoFZrbQw1R_seKPMZ8JR4MN3W2yg>