Date: Sat, 11 Jul 2020 02:25:17 +0000 From: Juan Cuzmar <jcuzmar@protonmail.com> To: Juan Cuzmar <jcuzmar@protonmail.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Error "misleading indentation" compiling the kernel Message-ID: <NxxYxxhJvhuUJNDlcaqNUnmaOXpL5NbFrwTkbLT2praXker9XWEuxs-dxJsK2F9QmBeukia_mjI_LqhoA-lKaf6xtI2LqOdC6gSECGWgHiY=@protonmail.com> In-Reply-To: <A6Aj9T3DgtdLL48WLuY8mAUoT2BZwfxb8iLal0Ke2E2-PTdNXknQ4dlXm0YMsaApkHllMUt3Bepc9fYZ1QuF2FWtNEm642j2N0KktqgwU1s=@protonmail.com> References: <vusAzpgTkR_T81NPDqi9nzp4QbzDy5rgJCSNd4h-EoAwwsVmhz3XyW54zQ59UfPteRsSZDQMtZS10rc-BQxVmMxAqy9iY073a1SkDBFwpMM=@protonmail.com> <CADqw_g%2BcXwyfPSKxSkKVy_stsVWC3o6Jp3uMRx9uGz7DMw%2BgVw@mail.gmail.com> <A6Aj9T3DgtdLL48WLuY8mAUoT2BZwfxb8iLal0Ke2E2-PTdNXknQ4dlXm0YMsaApkHllMUt3Bepc9fYZ1QuF2FWtNEm642j2N0KktqgwU1s=@protonmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 source= s. That's the perfect combination. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Monday, July 6, 2020 9:16 AM, Juan Cuzmar via freebsd-questions <freebsd= -questions@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=3Dlog > > 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. > > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original = Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 > On Monday, July 6, 2020 2:06 AM, Michael Schuster michaelsprivate@gmail.c= om wrote: > > > On Sun, Jul 5, 2020 at 11:42 PM Juan Cuzmar via freebsd-questions freeb= sd-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=3D/usr/obj/usr/src/am= d64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe -fno-= strict-aliasing -march=3Dnative -g -nostdinc -I. -I/usr/src/sys -I/usr/src/= sys/contrib/ck/include -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNE= L_OPTION_HEADERS -include opt_global.h -fno-omit-frame-pointer -mno-omit-le= af-frame-pointer -MD -MF.depend.mrsas_cam.o -MTmrsas_cam.o -fdebug-prefix-m= ap=3D./machine=3D/usr/src/sys/amd64/include -fdebug-prefix-map=3D./x86=3D/u= sr/src/sys/x86/include -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse -m= soft-float -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-p= rotector -gdwarf-2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-protot= ypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-= sign -D__printf__=3Dfreebsd_kprintf -Wmissing-include-dirs -fdiagnostics-sh= ow-option -Wno-unknown-pragmas -Wno-error-tautological-compare -Wno-error-e= mpty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-e= rror-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-me= mber -mno-aes -mno-avx -std=3Diso9899:1999 -Werror /usr/src/sys/dev/mrsas/m= rsas_cam.c > > > /usr/src/sys/dev/mrsas/mrsas_cam.c:1919:4: error: misleading indentat= ion; statement is not part of the previous 'if' [-Werror,-Wmisleading-inden= tation] > > > if (mpt_cmd->ccb_ptr->cpi.bus_id =3D=3D bus_id && > > > ^ > > > /usr/src/sys/dev/mrsas/mrsas_cam.c:1916:3: note: previous statement i= s here > > > if (bus_id =3D=3D 1) > > > ^ > > > > a quick check in the latest current sources (AFAICT) doesn't show anyth= ing 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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NxxYxxhJvhuUJNDlcaqNUnmaOXpL5NbFrwTkbLT2praXker9XWEuxs-dxJsK2F9QmBeukia_mjI_LqhoA-lKaf6xtI2LqOdC6gSECGWgHiY=>