Date: Sun, 05 Jul 2020 21:40:52 +0000 From: Juan Cuzmar <jcuzmar@protonmail.com> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Error "misleading indentation" compiling the kernel Message-ID: <vusAzpgTkR_T81NPDqi9nzp4QbzDy5rgJCSNd4h-EoAwwsVmhz3XyW54zQ59UfPteRsSZDQMtZS10rc-BQxVmMxAqy9iY073a1SkDBFwpMM=@protonmail.com>
next in thread | raw e-mail | index | archive | help
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/amd64.am= d64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -c -O2 -pipe -fno-strict= -aliasing -march=3Dnative -g -nostdinc=C2=A0 -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=C2=A0 -fno-omit-frame-pointer -mno-o= mit-leaf-frame-pointer -MD=C2=A0 -MF.depend.mrsas_cam.o -MTmrsas_cam.o -fde= bug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include -fdebug-prefix-map= =3D./x86=3D/usr/src/sys/x86/include -mcmodel=3Dkernel -mno-red-zone -mno-mm= x -mno-sse -msoft-float=C2=A0 -fno-asynchronous-unwind-tables -ffreestandin= g -fwrapv -fstack-protector -gdwarf-2 -Wall -Wredundant-decls -Wnested-exte= rns -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -W= undef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-includ= e-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautologic= al-compare -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error= -unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -W= no-address-of-packed-member=C2=A0 -mno-aes -mno-avx=C2=A0 -std=3Diso9899:19= 99 -Werror=C2=A0 /usr/src/sys/dev/mrsas/mrsas_cam.c /usr/src/sys/dev/mrsas/mrsas_cam.c:1919:4: error: misleading indentation; s= tatement is not part of the previous 'if' [-Werror,-Wmisleading-indentation= ] =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 if (mpt_cmd->ccb_ptr->cpi.bus_id =3D=3D bus_id && =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 ^ /usr/src/sys/dev/mrsas/mrsas_cam.c:1916:3: note: previous statement is here =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (bus_id =3D=3D 1= ) =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^ 1 error generated. *** [mrsas_cam.o] Error code 1 make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GLATS --- mmc.o --- ctfconvert -L VERSION -g mmc.o --- modules-all --- ctfconvert -L VERSION -g arcmsr.o A failure has been detected in another branch of the parallel make make[4]: stopped in /usr/src/sys/modules/arcmsr *** [all_subdir_arcmsr] Error code 2 make[3]: stopped in /usr/src/sys/modules 1 error make[3]: stopped in /usr/src/sys/modules *** [modules-all] Error code 2 make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GLATS --- mrsas.o --- ctfconvert -L VERSION -g mrsas.o 2 errors make[2]: stopped in /usr/obj/usr/src/amd64.amd64/sys/GLATS *** [buildkernel] Error code 2 make[1]: stopped in /usr/src 1 error make[1]: stopped in /usr/src *** [buildkernel] Error code 2 make: stopped in /usr/src 1 error make: stopped in /usr/src here is my /etc/make.conf CPUTYPE?=3Dnative CFLAGS=3D-O2 -pipe -fno-strict-aliasing COPTFLAGS=3D-O2 -pipe -fno-strict-aliasing MALLOC_PRODUCTION=3D"YES" and my /etc/src.conf WITHOUT_ASSERT_DEBUG=3D"ON" I don't think the configuration kernel is important. But if it is, please l= et me know to post it. Thanks!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?vusAzpgTkR_T81NPDqi9nzp4QbzDy5rgJCSNd4h-EoAwwsVmhz3XyW54zQ59UfPteRsSZDQMtZS10rc-BQxVmMxAqy9iY073a1SkDBFwpMM=>