From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65552 invoked by alias); 26 Dec 2016 11:25:44 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 65543 invoked by uid 89); 26 Dec 2016 11:25:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=fxcoudertgccgnuorg, fxcoudert@gcc.gnu.org, HX-Received:Mon, Fatal X-HELO: mail-wj0-f196.google.com Received: from mail-wj0-f196.google.com (HELO mail-wj0-f196.google.com) (209.85.210.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Dec 2016 11:25:33 +0000 Received: by mail-wj0-f196.google.com with SMTP id kp2so48180101wjc.0 for ; Mon, 26 Dec 2016 03:25:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=lBAx2t7Vhhi0mE4dX5cSIRKdzP1qegLU86biE25V6rw=; b=X0XbKuGjqb9oRrdaZa8g6TFtTEcZL/OzLma7aDdHyM4yCPGAT64f9wRK/XxTzds03t qqkO5XfNfNmLIuuioiZ44EeSAN+euvEfx62XsG16DCEEU0GQMAq2Mv4eRYPocmCJXna4 9HUfEd1EWXdjBr0usrqFky1tMBChNzsyzj41kdDg+olmdbbrCoo7wuUrgrSqkMhwGL5v MBe+jI8+3s8vqwtouKzXOih6tNBRE3oNejabE+i2eCoswQ+YqG/4rqY/Z5aFMq/tc46b 8Ds1UcrKlQXzMW9rjuG9t4txXgMTVtAdPhEiQkZ2viS7lr9xorXaFtH2pQxo/lA6wvHR eW4A== X-Gm-Message-State: AIkVDXLuE5f3s8Ddpiq8fjxWRlnH3E5LKFmybJ8UpNUvmhiY/Qgj/CoSIMTn1bdw2qqoQw== X-Received: by 10.194.53.227 with SMTP id e3mr22669933wjp.225.1482751531225; Mon, 26 Dec 2016 03:25:31 -0800 (PST) Received: from [192.168.0.107] (95-210-222-144.ip.skylogicnet.com. [95.210.222.144]) by smtp.gmail.com with ESMTPSA id l67sm50815366wmf.20.2016.12.26.03.25.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Dec 2016 03:25:30 -0800 (PST) From: FX Message-Id: <765E0C1E-597F-427F-909A-1DD909512431@gmail.com> Content-Type: multipart/mixed; boundary="Apple-Mail=_C341722B-ADB3-4C8A-8DBB-D76DDF353C9A" Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: [patch,libgomp] Make libgomp Fortran modules multilib-aware Date: Mon, 26 Dec 2016 11:28:00 -0000 In-Reply-To: Cc: Jack Howarth , Richard Henderson , Jakub Jelinek To: GCC Patches References: <4795FF84-EC6B-448F-991E-AAA8948D5EE4@gmail.com> <93D9F5BF-2BFD-4DC9-957E-EB3CAA41E7D9@gmail.com> X-SW-Source: 2016-12/txt/msg01906.txt.bz2 --Apple-Mail=_C341722B-ADB3-4C8A-8DBB-D76DDF353C9A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Content-length: 150 *ping* This patch from May makes libgomp install its Fortran modules in the correc= t multilib-aware directories, following what libgfortran does. --Apple-Mail=_C341722B-ADB3-4C8A-8DBB-D76DDF353C9A Content-Disposition: attachment; filename=patch.txt Content-Type: text/plain; x-unix-mode=0644; name="patch.txt" Content-Transfer-Encoding: quoted-printable Content-length: 755 Index: libgomp/Makefile.am =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- libgomp/Makefile.am (revision 235843) +++ libgomp/Makefile.am (working copy) @@ -10,7 +10,7 @@ config_path =3D @config_path@ search_path =3D $(addprefix $(top_srcdir)/config/, $(config_path)) $(top_s= rcdir) \ $(top_srcdir)/../include =20 -fincludedir =3D $(libdir)/gcc/$(target_alias)/$(gcc_version)/finclude +fincludedir =3D $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR)= /finclude libsubincludedir =3D $(libdir)/gcc/$(target_alias)/$(gcc_version)/include =20 vpath % $(strip $(search_path)) --Apple-Mail=_C341722B-ADB3-4C8A-8DBB-D76DDF353C9A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Content-length: 803 > The attached patch allows libgomp to install its Fortran modules in the c= orrect multilib-aware directories, just like libgfortran does. > Without it, multilib Fortran OpenMP code using the modules fails to compi= le because the modules are not found: >=20 > $ gfortran -fopenmp a.f90=20 > $ gfortran -fopenmp a.f90 -m32 > a.f90:1:6: >=20 > use omp_lib > 1 > Fatal Error: Can't open module file =E2=80=98omp_lib.mod=E2=80=99 for rea= ding at (1): No such file or directory > compilation terminated. >=20 >=20 >=20 > Bootstrapped and tested on x86_64-apple-darwin15. OK to commit? >=20 > FX >=20 >=20 >=20 >=20 >=20 >=20 > 2016-05-03 Francois-Xavier Coudert >=20 > PR libgomp/60670 > * Makefile.am: Make fincludedir multilib-aware. > * Makefile.in: Regenerate. --Apple-Mail=_C341722B-ADB3-4C8A-8DBB-D76DDF353C9A--