From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57443 invoked by alias); 29 Jan 2020 16:08:38 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 57433 invoked by uid 89); 29 Jan 2020 16:08:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=2.8, POSIX, sk:wwwope, sk:www.ope X-HELO: conssluserg-05.nifty.com Received: from conssluserg-05.nifty.com (HELO conssluserg-05.nifty.com) (210.131.2.90) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 29 Jan 2020 16:08:36 +0000 Received: from Express5800-S70 (ntsitm196171.sitm.nt.ngn.ppp.infoweb.ne.jp [125.0.207.171]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 00TG8L4Y010867 for ; Thu, 30 Jan 2020 01:08:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 00TG8L4Y010867 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1580314102; bh=3iThAfUVA4oKPef3MK38anbeBwCobamhw8hJJAY89yk=; h=Date:From:To:Subject:In-Reply-To:References:From; b=BZ1CzrVFzHeqIpfaK30jtdUuV2OoRfbNQfeT7/lzX0E23eQ2riCLEhkwjI3PK3GQz xkBKfJRlf2iQQZJEJ8hjbCNvDXA/tWGKJI+DMIAw/e3ZT571qVeWjmMLaz5jhG6P4X wZHn93xYqDoKiNn39OZICeM+95gngQpiZTY4+sXxmO8L8mUe/GiS9LQpqg9VTnfVcE g8Ymaxb6zh6jODxIeCTOUEQ5QsL0nl9V/UEIDt/wWTwqSRt5/putUWdRzgBfZNhb8L JB1zDoKZbhfXHQDkusbXgCIdXCdbrZ/hpVd6I5K4FGcFCkVerBJh2GDjjRHxQdXxgf 0nU/y+Cz8xWuA== Date: Wed, 29 Jan 2020 16:08:00 -0000 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: headache on build repeatibility: octave vs BLODA ? Message-Id: <20200130010827.9b8102597f7fe7df637f509b@nifty.ne.jp> In-Reply-To: <20200129153428.GP3549@calimero.vinschen.de> References: <9b370970-fcfe-cca9-321f-973de777642a@gmail.com> <878sluhcc1.fsf@Otto.invalid> <08ac898e-e7f9-c8e9-91ba-d4ee33f2e27c@gmail.com> <0fb5712c-7d57-d5cb-56b7-3a0d2f44d8a2@gmail.com> <20200127203346.1c8e3657d7283e3aa2c617d8@nifty.ne.jp> <85ddac25-0b4a-5e01-7885-0d2855c37a45@gmail.com> <20200129094427.GI3549@calimero.vinschen.de> <9e66f9f1-109f-7a3c-2c86-abd3ef7fc628@gmail.com> <20200129224653.b3238736661d3c95fc30ee5f@nifty.ne.jp> <20200129153218.GO3549@calimero.vinschen.de> <20200129153428.GP3549@calimero.vinschen.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Thu__30_Jan_2020_01_08_27_+0900_N.L0O+VRbjj4mEPr" X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00297.txt.bz2 --Multipart=_Thu__30_Jan_2020_01_08_27_+0900_N.L0O+VRbjj4mEPr Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-length: 1293 On Wed, 29 Jan 2020 16:34:28 +0100 Corinna Vinschen wrote: > On Jan 29 16:32, Corinna Vinschen wrote: > > On Jan 29 22:46, Takashi Yano wrote: > > > --- m4/fseeko.m4.orig 2020-01-29 21:39:37.280507900 +0900 > > > +++ m4/fseeko.m4 2020-01-29 21:36:29.263747100 +0900 > > > @@ -30,16 +30,19 @@ > > > HAVE_FSEEKO=0 > > > else > > > if test $WINDOWS_64_BIT_OFF_T = 1; then > > This makes me a bit suspicious... it looks like a check only > required for native builds, not for Cygwin. I think REPLACE_FSEEKO is set to 1 not here, > > > m4_ifdef([gl_FUNC_FFLUSH_STDIN], [ > > > gl_FUNC_FFLUSH_STDIN > > > case "$gl_cv_func_fflush_stdin" in > > > *yes) ;; > > > - *) REPLACE_FSEEKO=1 ;; > > > + dnl *) REPLACE_FSEEKO=1 ;; > > > + *) REPLACE_FSEEKO=0 ;; > > > esac but here. gl_cv_func_fflush_stdin is set here in configure by: if ac_fn_c_try_run "$LINENO"; then : gl_cv_func_fflush_stdin=yes else gl_cv_func_fflush_stdin=no fi and the test code for this decision is as attached. conftest.c returns 0 in cygwin 3.0.7, while cygwin with commit 59362c80e3a returns 5. I am not sure why segfault occurs if fseeko is replaced. Probably due to a bug in octave or cygwin. -- Takashi Yano --Multipart=_Thu__30_Jan_2020_01_08_27_+0900_N.L0O+VRbjj4mEPr Content-Type: text/x-csrc; name="conftest.c" Content-Disposition: attachment; filename="conftest.c" Content-Transfer-Encoding: 7bit Content-length: 1462 #include # include int main () { FILE *f = fopen ("conftest.txt", "r"); char buffer[10]; int fd; int c; if (f == NULL) return 1; fd = fileno (f); if (fd < 0 || fread (buffer, 1, 5, f) != 5) { fclose (f); return 2; } /* For deterministic results, ensure f read a bigger buffer. */ if (lseek (fd, 0, SEEK_CUR) == 5) { fclose (f); return 3; } /* POSIX requires fflush-fseek to set file offset of fd. This fails on BSD systems and on mingw. */ if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0) { fclose (f); return 4; } if (lseek (fd, 0, SEEK_CUR) != 5) { fclose (f); return 5; } /* Verify behaviour of fflush after ungetc. See */ /* Verify behaviour of fflush after a backup ungetc. This fails on mingw. */ c = fgetc (f); ungetc (c, f); fflush (f); if (fgetc (f) != c) { fclose (f); return 6; } /* Verify behaviour of fflush after a non-backup ungetc. This fails on glibc 2.8 and on BSD systems. */ c = fgetc (f); ungetc ('@', f); fflush (f); if (fgetc (f) != c) { fclose (f); return 7; } fclose (f); return 0; ; return 0; } --Multipart=_Thu__30_Jan_2020_01_08_27_+0900_N.L0O+VRbjj4mEPr Content-Type: text/plain; name="conftest.txt" Content-Disposition: attachment; filename="conftest.txt" Content-Transfer-Encoding: 7bit Content-length: 13 hello world --Multipart=_Thu__30_Jan_2020_01_08_27_+0900_N.L0O+VRbjj4mEPr Content-Type: text/plain; charset=us-ascii Content-length: 219 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple --Multipart=_Thu__30_Jan_2020_01_08_27_+0900_N.L0O+VRbjj4mEPr--