From owner-freebsd-fortran@freebsd.org Mon Jul 27 09:53:55 2015 Return-Path: Delivered-To: freebsd-fortran@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F1769AC2C9 for ; Mon, 27 Jul 2015 09:53:55 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4AF95302 for ; Mon, 27 Jul 2015 09:53:55 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mailman.ysv.freebsd.org (Postfix) id 47CE59AC2C8; Mon, 27 Jul 2015 09:53:55 +0000 (UTC) Delivered-To: fortran@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 476B19AC2C7 for ; Mon, 27 Jul 2015 09:53:55 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DAA2A301 for ; Mon, 27 Jul 2015 09:53:54 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by wibud3 with SMTP id ud3so107753999wib.0 for ; Mon, 27 Jul 2015 02:53:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:reply-to; bh=feRkX+ROepi3T/SMssaCQ0nS591a5J63xRGxQ9bSwXo=; b=C/RCP4D/d4ZWuhjygV5bCVAyi72r1DeSiIXt8sqDN3XgEVQEOzYxcg8fKVRcJXGxWl 2hNdqbQ+0gk/ZZ3mlKbuYHKQVlGEEeCt9PlRrO8G7Gije6/bM9jMS/T90gIzCEl2XWjI nVguqF24g94RoXpyS4uuC2Altdrg8O2PIwDCv1ibdvQNzxoFx/09VwiNwDgBfYeLb17L m90Iu0IQ9vJ8Kj99/+DAKLmH0Zb7Re4uVNcNrWS9Mm/VdmPmMxJpssKwd8VbRLVC/MIF a1D6eQ0ArsR957VufAFevzVPC3v0SEZYqT9UXw1VDMgaGVW9F+XSwEZH1g1oaXgd2+GI 2jvQ== X-Gm-Message-State: ALoCoQlCanmPt8kLWbWxYVQuzvlaUY/NK/DYt/C4TCkXSE6jGenJ7cZ0IL/H4MHnpVYDvPerAi0I X-Received: by 10.194.103.130 with SMTP id fw2mr56381960wjb.121.1437990826895; Mon, 27 Jul 2015 02:53:46 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id ul1sm26951335wjc.30.2015.07.27.02.53.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 02:53:46 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.14.9/8.14.9) with ESMTP id t6R9riKg096212 for ; Mon, 27 Jul 2015 10:53:44 +0100 (BST) (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.14.9/8.14.9/Submit) id t6R9riEg096211 for fortran@freebsd.org; Mon, 27 Jul 2015 10:53:44 +0100 (BST) (envelope-from mexas) Date: Mon, 27 Jul 2015 10:53:44 +0100 (BST) From: Anton Shterenlikht Message-Id: <201507270953.t6R9riEg096211@mech-as222.men.bris.ac.uk> To: fortran@freebsd.org Subject: advice on gfortran options for a port Reply-To: mexas@bris.ac.uk X-BeenThere: freebsd-fortran@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Fortran on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2015 09:53:55 -0000 I'm making a port of http://netlib.org/math/ The supplied makefile has: # This makefile uses features of GNU Make. Uses bash on Linux. # Meant to be run from the directory containing the math77 Fortran directory. # You may need to change the first line above, and the definitions of FC, # std_flags, and FFLAGS below. If code is to be used in production, # you will want to change the optimization level. (For example change # -ggdb to -O3 or -O2. FC = /usr/bin/gfortran std_flags=-march=native -fimplicit-none -fno-f2c -fno-backslash\ -funroll-loops -ffpe-trap=zero,overflow,invalid -finit-real=NAN\ -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -pipe FFLAGS = -ggdb $(std_flags) -Wall Trying to build (with gfortran48 to gfortran6) I get: f951: sorry, unimplemented: Graphite loop optimizations cannot be used (ISL is not available)(-fgraphite, -fgraphite-identity, -floop-block, -floop-interchange, -floop-strip-mine, -floop-parallelize-all, -floop-unroll-and-jam, and -ftree-loop-linear) Are these not implemented on BSD? I wonder how they build with GCC with these flags? Anyway, should I leave all these flags, and -ggdb in the port? Or should I use the default ports tree FFLAGS instead? Thanks Anton From owner-freebsd-fortran@freebsd.org Wed Jul 29 12:58:21 2015 Return-Path: Delivered-To: freebsd-fortran@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F0BE9AD7C9 for ; Wed, 29 Jul 2015 12:58:21 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4B6E61BAC for ; Wed, 29 Jul 2015 12:58:21 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mailman.ysv.freebsd.org (Postfix) id 487299AD7C5; Wed, 29 Jul 2015 12:58:21 +0000 (UTC) Delivered-To: fortran@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 480829AD7C4 for ; Wed, 29 Jul 2015 12:58:21 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DC4DA1BAA for ; Wed, 29 Jul 2015 12:58:20 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by wibxm9 with SMTP id xm9so200106354wib.0 for ; Wed, 29 Jul 2015 05:58:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:reply-to; bh=xDk8SJG7NTlT4RMRnSHsbfvp7FPYT6wQuFEUIBDkpxs=; b=hUT+eMb64WpL//YqlqRX8R2jHW2nHEGNtNdLnLJH93LVXAKekGJOnlIsZib5sFrKVx jDTwF8iSnWA/rV3dHLqk/3FkWfdZ3V16GZ4vemxJ6oFQxK2f24aJViatjlSe8EFISZl4 4w8eolQFjlD+GZNhyY1lVIFGV7wycZdadBx7kXBx2U9EGxtYUEbGrdaYhtgpj32atUyv DNMEsRCXx8IeQxSH+ZKVdfVUbcyN1YIPuTW2B1QED0qt8sDyABA/ABf/x/WFt4D6imCo Vj28KsLg8fGyRTeubeDjq/Cd2jM33+CLoe2eVk/ja8HBoH7qm6KB77BhYVleXY6oJZhW 90Mw== X-Gm-Message-State: ALoCoQk29QYpKPPiTwJlYdN+7ILjA15awLWblUYWL2gmmM21nbhhjR3IzE86MmtupRNzyDqM4V1J X-Received: by 10.194.176.201 with SMTP id ck9mr75562476wjc.108.1438174698807; Wed, 29 Jul 2015 05:58:18 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id l14sm13094876wjq.21.2015.07.29.05.58.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Jul 2015 05:58:18 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.14.9/8.14.9) with ESMTP id t6TCwG3r007069 for ; Wed, 29 Jul 2015 13:58:16 +0100 (BST) (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.14.9/8.14.9/Submit) id t6TCwG3S007068 for fortran@freebsd.org; Wed, 29 Jul 2015 13:58:16 +0100 (BST) (envelope-from mexas) Date: Wed, 29 Jul 2015 13:58:16 +0100 (BST) From: Anton Shterenlikht Message-Id: <201507291258.t6TCwG3S007068@mech-as222.men.bris.ac.uk> To: fortran@freebsd.org Subject: please test new port math/math77 Reply-To: mexas@bris.ac.uk X-BeenThere: freebsd-fortran@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Fortran on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2015 12:58:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201918 Please test build/install/package etc. Any comments on the FFLAGS used? Anton From owner-freebsd-fortran@freebsd.org Wed Jul 29 18:04:19 2015 Return-Path: Delivered-To: freebsd-fortran@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A52889AED0F for ; Wed, 29 Jul 2015 18:04:19 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8ABD41168 for ; Wed, 29 Jul 2015 18:04:19 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 874D49AED0E; Wed, 29 Jul 2015 18:04:19 +0000 (UTC) Delivered-To: fortran@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 86E129AED0D for ; Wed, 29 Jul 2015 18:04:19 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay103.isp.belgacom.be (mailrelay103.isp.belgacom.be [195.238.20.130]) by mx1.freebsd.org (Postfix) with ESMTP id EAE741167; Wed, 29 Jul 2015 18:04:18 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=gx4LFt9C7U8MVtlopYu6y61Gbp9nqOyhneTyg/i0HKM= c=1 sm=2 a=0BYqzdKNAAAA:8 a=ozQi6Qy7AAAA:8 a=UCDSBy_FVW-MgqDPgNAA:9 a=CjuIK1q_8ugA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CIDgB7FLlV/16v8VFSCQ6DB1RpsyyIWgmBfYV9AoFYORQBAQEBAQEBgQqEJAEBBDocIxALDgoJJQ8qHgYBEogyAdACAQEBAQEBAQMBAQEBAR2LToQrXAeELAEElHCEeodIgg2QAYckJoM/QDwxgkwBAQE Received: from 94.175-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.175.94]) by relay.skynet.be with ESMTP; 29 Jul 2015 20:03:08 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id t6TI37qL013965; Wed, 29 Jul 2015 20:03:07 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Wed, 29 Jul 2015 20:03:07 +0200 From: Tijl Coosemans To: Anton Shterenlikht , gerald@FreeBSD.org Cc: fortran@freebsd.org Subject: Re: advice on gfortran options for a port Message-ID: <20150729200307.5df26a3e@kalimero.tijl.coosemans.org> In-Reply-To: <201507270953.t6R9riEg096211@mech-as222.men.bris.ac.uk> References: <201507270953.t6R9riEg096211@mech-as222.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-fortran@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Fortran on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2015 18:04:19 -0000 On Mon, 27 Jul 2015 10:53:44 +0100 (BST) Anton Shterenlikht wrote: > I'm making a port of http://netlib.org/math/ > > The supplied makefile has: > > # This makefile uses features of GNU Make. Uses bash on Linux. > # Meant to be run from the directory containing the math77 Fortran directory. > # You may need to change the first line above, and the definitions of FC, > # std_flags, and FFLAGS below. If code is to be used in production, > # you will want to change the optimization level. (For example change > # -ggdb to -O3 or -O2. > > FC = /usr/bin/gfortran > std_flags=-march=native -fimplicit-none -fno-f2c -fno-backslash\ > -funroll-loops -ffpe-trap=zero,overflow,invalid -finit-real=NAN\ > -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -pipe > > FFLAGS = -ggdb $(std_flags) -Wall > > Trying to build (with gfortran48 to gfortran6) I get: > > f951: sorry, unimplemented: Graphite loop optimizations cannot be used (ISL is not available)(-fgraphite, -fgraphite-identity, -floop-block, -floop-interchange, -floop-strip-mine, -floop-parallelize-all, -floop-unroll-and-jam, and -ftree-loop-linear) > > Are these not implemented on BSD? > I wonder how they build with GCC with these flags? > > Anyway, should I leave all these flags, and -ggdb in the port? > Or should I use the default ports tree FFLAGS instead? It seems that gcc needs to be configured with --with-isl to enable Graphite. Gerald, can this be enabled in the gcc ports?