From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12233 Path: news.gmane.org!.POSTED!not-for-mail From: Didier Kryn Newsgroups: gmane.linux.lib.musl.general Subject: Re: Building musl-cross-make with gnat in musl environement Date: Wed, 13 Dec 2017 10:29:04 +0100 Message-ID: <6ed07b18-e7ce-fc54-9498-d3123a506cc2@in2p3.fr> References: <69c03d16-1946-d4e3-f909-2bd2196afe97@in2p3.fr> <20171130170605.GK1627@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------AA4700DE0643AECBB21E3F86" X-Trace: blaine.gmane.org 1513157370 32444 195.159.176.226 (13 Dec 2017 09:29:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2017 09:29:30 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 To: musl@lists.openwall.com Original-X-From: musl-return-12249-gllmg-musl=m.gmane.org@lists.openwall.com Wed Dec 13 10:29:13 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1eP3Ll-0007fe-3r for gllmg-musl@m.gmane.org; Wed, 13 Dec 2017 10:29:13 +0100 Original-Received: (qmail 19747 invoked by uid 550); 13 Dec 2017 09:29:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 19729 invoked from network); 13 Dec 2017 09:29:16 -0000 X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.99.2 at cczrelay01 In-Reply-To: <20171130170605.GK1627@brightrain.aerifal.cx> Content-Language: en-US Xref: news.gmane.org gmane.linux.lib.musl.general:12233 Archived-At: This is a multi-part message in MIME format. --------------AA4700DE0643AECBB21E3F86 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Le 30/11/2017 =C3=A0 18:06, Rich Felker a =C3=A9crit=C2=A0: > Just patch out the poisoning instead. It's only meaningful to GCC > developers and should_not_ be used in deployment for reasons exactly > like what you discovered here, pretty much the same reasons -Werror > should not be enabled in deployment. =C2=A0=C2=A0=C2=A0 Here is a new set of patches in this spirit. Posionni= ng of calloc=20 is removed and compilation switches are changed for gnattools. =C2=A0=C2=A0=C2=A0 Didier --------------AA4700DE0643AECBB21E3F86 Content-Type: text/x-patch; name="gnat63-no-poison.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gnat63-no-poison.diff" --- gcc-6.3.0-A/gcc/system.h +++ gcc-6.3.0-B/gcc/system.h @@ -819,7 +819,8 @@ #ifndef USES_ISL #undef calloc #undef strdup - #pragma GCC poison calloc strdup +/* Do not poison calloc because it is declared in musl's sched.h */ + #pragma GCC poison strdup #endif #if !defined(FLEX_SCANNER) && !defined(YYBISON) --------------AA4700DE0643AECBB21E3F86 Content-Type: text/x-patch; name="gnat63-gnattools.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gnat63-gnattools.diff" diff -rupN gcc-6.3.0-A/gnattools/Makefile.in gcc-6.3.0-B/gnattools/Makefile.in --- gcc-6.3.0-A/gnattools/Makefile.in 2016-04-04 18:37:58.000000000 +0200 +++ gcc-6.3.0-B/gnattools/Makefile.in 2017-12-06 15:15:01.000000000 +0100 @@ -52,7 +52,7 @@ WARN_CFLAGS = @warn_cflags@ ADA_CFLAGS=@ADA_CFLAGS@ # Variables for gnattools. -ADAFLAGS= -gnatpg -gnata +ADAFLAGS= -gnata # For finding the GCC build dir, which is used far too much GCC_DIR=../gcc --------------AA4700DE0643AECBB21E3F86 Content-Type: text/x-patch; name="gnat63-terminals.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="gnat63-terminals.diff" diff -rupN gcc-6.3.0-A/gcc/ada/terminals.c gcc-6.3.0-B/gcc/ada/terminals.c --- gcc-6.3.0-A/gcc/ada/terminals.c 2016-02-12 00:53:54.000000000 +0100 +++ gcc-6.3.0-B/gcc/ada/terminals.c 2017-10-13 08:17:35.000000000 +0200 @@ -1068,12 +1068,6 @@ __gnat_setup_winsize (void *desc, int ro #include #include -/* On some system termio is either absent or including it will disable termios - (HP-UX) */ -#if !defined (__hpux__) && !defined (BSD) && !defined (__APPLE__) \ - && !defined (__rtems__) -# include -#endif #include #include --------------AA4700DE0643AECBB21E3F86--