From owner-freebsd-questions@freebsd.org Sat Jul 11 02:25:27 2020 Return-Path: <owner-freebsd-questions@freebsd.org> Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D5A03352930 for <freebsd-questions@mailman.nyi.freebsd.org>; Sat, 11 Jul 2020 02:25:27 +0000 (UTC) (envelope-from jcuzmar@protonmail.com) Received: from mail-40140.protonmail.ch (mail-40140.protonmail.ch [185.70.40.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B3YfZ61J9z4G5p for <freebsd-questions@freebsd.org>; Sat, 11 Jul 2020 02:25:26 +0000 (UTC) (envelope-from jcuzmar@protonmail.com) Date: Sat, 11 Jul 2020 02:25:17 +0000 To: Juan Cuzmar <jcuzmar@protonmail.com> From: Juan Cuzmar <jcuzmar@protonmail.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Reply-To: Juan Cuzmar <jcuzmar@protonmail.com> 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+cXwyfPSKxSkKVy_stsVWC3o6Jp3uMRx9uGz7DMw+gVw@mail.gmail.com> <A6Aj9T3DgtdLL48WLuY8mAUoT2BZwfxb8iLal0Ke2E2-PTdNXknQ4dlXm0YMsaApkHllMUt3Bepc9fYZ1QuF2FWtNEm642j2N0KktqgwU1s=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Rspamd-Queue-Id: 4B3YfZ61J9z4G5p X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.36 / 15.00]; HAS_REPLYTO(0.00)[jcuzmar@protonmail.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[protonmail.com]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; RWL_MAILSPIKE_GOOD(0.00)[185.70.40.140:from]; DKIM_TRACE(0.00)[protonmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; NEURAL_HAM_SHORT(-0.78)[-0.785]; FREEMAIL_TO(0.00)[protonmail.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; ASN(0.00)[asn:62371, ipnet:185.70.40.0/24, country:CH]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.57)[-0.573]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=protonmail]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[185.70.40.140:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sat, 11 Jul 2020 02:25:27 -0000 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"