From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by sourceware.org (Postfix) with ESMTPS id 8D0353857C4D for ; Tue, 18 Aug 2020 15:33:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8D0353857C4D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=students.iitmandi.ac.in Authentication-Results: sourceware.org; spf=none smtp.mailfrom=s18002@students.iitmandi.ac.in Received: by mail-lf1-x144.google.com with SMTP id i19so10433700lfj.8 for ; Tue, 18 Aug 2020 08:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=students-iitmandi-ac-in.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wUfT45er7Eol2DYT9GXF1li/ICfaZaw18IAIdYW8A6A=; b=p8acapIPFbAFvGZOrjz30ccroj7YSvVg7DR9bYHYdYKzySprxMLGXZ7S0qG+96r6yU 0cIrunxYul4zWpsjJC7NUf/Kr0OFQgq4TbO6DI78XgSAxujbgQI6FkCSJKq0UGwP4/Jk Vfi0XNiDTLtaS0y/XISMCnrENxIyDQv1gTB6j1b6hdWr2qR6jdwKfm56cHH/pozvbMs9 ZvpX9mrQX1pfRx4NQUP0eB8rhf7c4fVv/zU83uobGvwbyc7lUdornF5MYQYD2mX6FVTD G/k0ysY7lrYGvbUc25Lp+6KVnXaKx2C4YiaN9eKydIQwB9jZb2MK63jWNhRhfxZblbNp UkMw== 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=wUfT45er7Eol2DYT9GXF1li/ICfaZaw18IAIdYW8A6A=; b=uJ9/ApOMXlK2/PFBDfsakf5MJ/jEJPsd6R0Owdp+UIKlvKt41A7CGas3WzKOX2yiEc BEsDBm/ZoeEY7JjUTdbUCm/bhnZpR0O8gqG3Ki5e6T3k8jywdEvr/5Pbz0ROVHEP6K6Q xHnTqz1/YXE5A1DhFESWHhfwsICD71vAX+V09eqN2lA5OzEMTnZ686ZbDZ1cXQ4k5fh8 9NIYUT3YmUPJFpABkjgZRjJADuozkwk227LKsOcT3jQwqxbZvgFRrOJxyrMtoKo+eTLz 5/gPX2e0wabqJaCrRH5zEYLxt/zLN1KQoA2aOhr4L1+5CfiiYSGbb9whFg7DvWq2dLVh /I4Q== X-Gm-Message-State: AOAM533iwlhm9UWVJj3dKvAIzuXPQ5KwqEDnO9Ed6JJiP4sufJ+vVFLf ACQOoJukKjSpd681Oqgg+pHYZjZRzk4afzYMF4EVvA== X-Google-Smtp-Source: ABdhPJzHy+RCc0ZaID7bNEwgExqTAzcqlJZuPQh5DKvxveP/yFXmUvi3NjmunD8pToSW9c+5n6JVQ3/h1K0pB5I/puI= X-Received: by 2002:ac2:4ecf:: with SMTP id p15mr10003428lfr.11.1597764791130; Tue, 18 Aug 2020 08:33:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mohana Date: Tue, 18 Aug 2020 21:01:08 +0530 Message-ID: Subject: Re: Building gcc6.3.0 on Ubuntu-20.04 To: Jonathan Wakely Cc: Stefan Ring , gcc-help X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, KAM_LOTSOFHASH, KAM_NUMSUBJECT, KAM_SHORT, LIKELY_SPAM_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * 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 15:33:14 -0000 MATLAB can only work with GCC6.3.0 ( https://in.mathworks.com/matlabcentral/answers/407502-incompatible-gcc-vers= ion-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/sanitizer_= platform_limits_posix.cc:192:0: /home/mohana/gccbuild/../gcc-6.3.0/libsanitizer/sanitizer_common/sanitizer_= 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/sanitizer_= 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/sanitizer_= 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/sanitizer_= 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. >