Error "misleading indentation" compiling the kernel

Juan Cuzmar jcuzmar at protonmail.com
Sat Jul 11 02:25:27 UTC 2020


In the end I deleted https://svn.freebsd.org/base/releng/12.1 from /us/src completly (.svn folder including) and i download the new sources like this doas svn co https://svn.freebsd.org/base/stable/12 /usr/src/
I made my custom config and i could compile it and install it sucessfully.
Resume: i'm using freebsd 12.1 stable and i compiled /base/stable/12 sources. That's the perfect combination.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, July 6, 2020 9:16 AM, Juan Cuzmar via freebsd-questions <freebsd-questions at freebsd.org> wrote:

> Hello! Thanks for response.
> I've checked my local sources and is updated
> % svn log -l 10
>
> -----------------------------------------------------------------------------------------
>
> r361973 | gordon | 2020-06-09 12:15:07 -0400 (Tue, 09 Jun 2020) | 5 lines
>
> Add UPDATING entries and bump version.
>
> Approved by: so
> Approved by: re (implicit)
>
> https://svnweb.freebsd.org/base/releng/12.1/?view=log
>
> I wonder if I'm in the right branch or repo.
>
> Clearly the problem is about the indentation of the code. I don't know if there's any way to get around that constraint.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Monday, July 6, 2020 2:06 AM, Michael Schuster michaelsprivate at gmail.com wrote:
>
> > On Sun, Jul 5, 2020 at 11:42 PM Juan Cuzmar via freebsd-questions freebsd-questions at freebsd.org wrote:
> >
> > > Hi!
> > > Im trying to compile my custom kernel but shows me this error:
> > > --- mrsas_cam.o ---
> > > cc -target x86_64-unknown-freebsd12.1 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe -fno-strict-aliasing -march=native -g -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MD -MF.depend.mrsas_cam.o -MTmrsas_cam.o -fdebug-prefix-map=./machine=/usr/src/sys/amd64/include -fdebug-prefix-map=./x86=/usr/src/sys/x86/include -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=freebsd_kprintf -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -mno-aes -mno-avx -std=iso9899:1999 -Werror /usr/src/sys/dev/mrsas/mrsas_cam.c
> > > /usr/src/sys/dev/mrsas/mrsas_cam.c:1919:4: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
> > > if (mpt_cmd->ccb_ptr->cpi.bus_id == bus_id &&
> > > ^
> > > /usr/src/sys/dev/mrsas/mrsas_cam.c:1916:3: note: previous statement is here
> > > if (bus_id == 1)
> > > ^
> >
> > a quick check in the latest current sources (AFAICT) doesn't show anything obvious (no, I didn't build) - so either I'm missing it too, or perhaps you need to update your sources and retry.
> >
> > HTH
> > Michael
> >
> > ------------
> >
> > Michael Schuster
> > http://recursiveramblings.wordpress.com/
> > recursion, n: see 'recursion'
>
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"




More information about the freebsd-questions mailing list