From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by sourceware.org (Postfix) with ESMTPS id 4CEB4384404B for ; Tue, 18 Aug 2020 16:19:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4CEB4384404B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kegel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=daniel.r.kegel@gmail.com Received: by mail-lj1-f194.google.com with SMTP id v9so22102247ljk.6 for ; Tue, 18 Aug 2020 09:19:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2sffcPGAKLAIMh+uqA9ylKjPVvN4BQO9/OZS+Qt9/Hg=; b=Keq5QYU038tuhmYCtQClFvLueV4Wb+pdQXvZLXz9HFBTKNQ6AcNYTsaiS+KxS/j9pD q/oKfiAZcej2QquYfa1nTApbWRlETMTa0Vt1sNSF27Zx/Zyty0+/uFJMBMkzMhA8oGoe qU8K6KEnV/hjMdX05jWDWJQ0tU8E8xbpX2BBBc+tjVi9bnOpWI/C5qmWqZMQrZHhbZ0a HIatgSt1BhSBsCQHNho12gxVN2qbuVkSbi7apEc4VymyZz5GdMKYCgZ9Qe5AsC8hRYje XZ+Lf+0sZcSq3+dh3CUiKynqpZ20NGCwQsfllc5xheD6zAENrfY3SUkgHKV8QMNBBQW3 Fbew== X-Gm-Message-State: AOAM533fByddoiBdx0ZXx30H1EKohqXAhgVaniEqsCDUQVBOclunOFV/ tT8NWt/SH3MUwUDupAvV67E49MEXs4aK3vXdmLo= X-Google-Smtp-Source: ABdhPJwKO3F3jUiK4Oyd098fIzd/prBRHPN0ZrQcDdNdtqFQ32HLT0rhoDok42vcgcgW4OtvQn3ohwmrTaiqJMOUAOY= X-Received: by 2002:a2e:9f4c:: with SMTP id v12mr9302880ljk.139.1597767567949; Tue, 18 Aug 2020 09:19:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Dan Kegel Date: Tue, 18 Aug 2020 09:19:16 -0700 Message-ID: Subject: Re: Building gcc6.3.0 on Ubuntu-20.04 To: Mohana Cc: Jonathan Wakely , gcc-help X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE, KAM_DMARC_STATUS, KAM_LOTSOFHASH, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 16:19:31 -0000 Adding --disable-libsanitizer to the configure command might work past that problem. Also, if you're not using golang, you might save some time by removing the ,go from the list of supported languages. On Tue, Aug 18, 2020 at 8:33 AM Mohana wrote: > MATLAB can only work with GCC6.3.0 ( > > https://in.mathworks.com/matlabcentral/answers/407502-incompatible-gcc-ve= rsion-with-mex > ), > so I hope to get this working, if possible. I applied the changes to file > sanitizer_platform_limits_posix.cc as per the patch, and now the error is= : > > In file included from > > /home/mohana/gccbuild/../gcc-6.3.0/libsanitizer/sanitizer_common/sanitize= r_platform_limits_posix.cc:192:0: > > /home/mohana/gccbuild/../gcc-6.3.0/libsanitizer/sanitizer_common/sanitize= r_internal_defs.h:254:72: > error: size of array =E2=80=98assertion_failed__1142=E2=80=99 is negative > typedef char IMPL_PASTE(assertion_failed_##_, line)[2*(int)(pred)-1] > ^ > > /home/mohana/gccbuild/../gcc-6.3.0/libsanitizer/sanitizer_common/sanitize= r_internal_defs.h:248:30: > note: in expansion of macro =E2=80=98IMPL_COMPILER_ASSERT=E2=80=99 > #define COMPILER_CHECK(pred) IMPL_COMPILER_ASSERT(pred, __LINE__) > ^~~~~~~~~~~~~~~~~~~~ > > /home/mohana/gccbuild/../gcc-6.3.0/libsanitizer/sanitizer_common/sanitize= r_platform_limits_posix.h:1410:3: > note: in expansion of macro =E2=80=98COMPILER_CHECK=E2=80=99 > COMPILER_CHECK(sizeof(((__sanitizer_##CLASS *) NULL)->MEMBER) =3D=3D \ > ^~~~~~~~~~~~~~ > > /home/mohana/gccbuild/../gcc-6.3.0/libsanitizer/sanitizer_common/sanitize= r_platform_limits_posix.cc:1142:1: > note: in expansion of macro =E2=80=98CHECK_SIZE_AND_OFFSET=E2=80=99 > CHECK_SIZE_AND_OFFSET(ipc_perm, mode); > ^~~~~~~~~~~~~~~~~~~~~ > make[4]: *** [Makefile:477: sanitizer_platform_limits_posix.lo] Error 1 > make[4]: Leaving directory > '/home/mohana/gccbuild/x86_64-pc-linux-gnu/libsanitizer/sanitizer_common' > libtool: link: (cd ".libs" && rm -f "libatomic.so" && ln -s > "libatomic.so.1.2.0" "libatomic.so") > make[3]: *** [Makefile:466: all-recursive] Error 1 > > I hope I applied the patch correctly, just removed the lines with (-) and > added ones with (+). > > On Tue, Aug 18, 2020 at 6:45 PM Jonathan Wakely > wrote: > > > On Tue, 18 Aug 2020 at 12:07, Mohana > > wrote: > > > > > > I made the changes and this error doesn't occur anymore, but the > > following happens now: > > > > > > > > > /home/mohana/gccbuild/../gcc-6.3.0/libsanitizer/sanitizer_common/sanitize= r_platform_limits_posix.cc:158:23: > > fatal error: sys/ustat.h: No such file or directory > > > #include > > > ^ > > > compilation terminated. > > > make[4]: *** [Makefile:477: sanitizer_platform_limits_posix.lo] Error= 1 > > > make[4]: *** Waiting for unfinished jobs.... > > > > > > It seems ustat is deprecated. How can this be fixed? > > > > Why are you building gcc 6.3.0 and not 6.5.0, which already has the > > fix for both these problems? > > > > The patch for this error was > > https://gcc.gnu.org/g:2cd244789bc75ecdf65824f831986969049a1647 > > specifically > > > https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dblobdiff;f=3Dlibsanitizer/saniti= zer_common/sanitizer_platform_limits_posix.cc;h=3D98825b584d24912df76f9982c= 2319419c7815bf8;hp=3D6992f2cd8ac56bcd5102f7440d71137b4458871d;hb=3D2cd24478= 9bc75ecdf65824f831986969049a1647;hpb=3D6376168efb4c45d621fbec6472f8c9e84a24= e940 > > > > But you should just use gcc-6.5.0 instead. > > > >