Date: Mon, 06 Jul 2020 13:16:05 +0000 From: Juan Cuzmar <jcuzmar@protonmail.com> To: Michael Schuster <michaelsprivate@gmail.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Error "misleading indentation" compiling the kernel Message-ID: <A6Aj9T3DgtdLL48WLuY8mAUoT2BZwfxb8iLal0Ke2E2-PTdNXknQ4dlXm0YMsaApkHllMUt3Bepc9fYZ1QuF2FWtNEm642j2N0KktqgwU1s=@protonmail.com> In-Reply-To: <CADqw_g%2BcXwyfPSKxSkKVy_stsVWC3o6Jp3uMRx9uGz7DMw%2BgVw@mail.gmail.com> References: <vusAzpgTkR_T81NPDqi9nzp4QbzDy5rgJCSNd4h-EoAwwsVmhz3XyW54zQ59UfPteRsSZDQMtZS10rc-BQxVmMxAqy9iY073a1SkDBFwpMM=@protonmail.com> <CADqw_g%2BcXwyfPSKxSkKVy_stsVWC3o6Jp3uMRx9uGz7DMw%2BgVw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@gmail.com> wrote: > On Sun, Jul 5, 2020 at 11:42 PM Juan Cuzmar via freebsd-questions <freebsd-questions@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'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A6Aj9T3DgtdLL48WLuY8mAUoT2BZwfxb8iLal0Ke2E2-PTdNXknQ4dlXm0YMsaApkHllMUt3Bepc9fYZ1QuF2FWtNEm642j2N0KktqgwU1s=>
