From owner-freebsd-haskell@freebsd.org Tue Mar 3 09:57:26 2020 Return-Path: Delivered-To: freebsd-haskell@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 53F2026A420 for ; Tue, 3 Mar 2020 09:57:26 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Wsr40cy7z3Kmm for ; Tue, 3 Mar 2020 09:57:23 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: by mail-lj1-f173.google.com with SMTP id 143so2789620ljj.7 for ; Tue, 03 Mar 2020 01:57:23 -0800 (PST) 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=YT99IYyOLYbv9pC2BvzTuUoJ7nXLMnr9t1ayO3V1oSM=; b=lrIiaAf10rHRV+304RfGx+apX36qbUGkNjcMfOaTc1Jw6hp8ik4LPkDbDKHPJYpA+/ ZkB679bjNNkNAe2OWbiDqhbNU6k7rxnGMMmoH3XzYKFu8oxfR99YI5McFe10ckkUzjLe vqlhaRtgqbRINIR0nnQPJjk7dzxgA3mg1/1hZbZv4FTGy00agMg0eRXnks9I02OMi8LN jow9lG9G93EqOrbF5a1oUIMWtBPjBKylqKM7Tj50GKqLj3C64qqWjukWXN9raxDo/zSN DJOkt8W0QahfyTaJEpGzYzahBfovN1FNLQ82PFQdqK7qtnBOHda4bxp4wuPBUgqpvvAR Xolw== X-Gm-Message-State: ANhLgQ2e+KJc1Rr3Ly7n2fZLaAEbrTMYKUG2nvV0WdFpGpcawIQbUnNk 0oI1vbMW9AFSqoa1Dp9C7vZebWd1Rxw= X-Google-Smtp-Source: ADFU+vsn3BQxkpvwABjJHqlXQ7KL+Myz4pVHtLxEGYEIh85mkzBXWKt0f4V9VO6N7PZi+9caQl5s9g== X-Received: by 2002:a2e:7204:: with SMTP id n4mr1900977ljc.184.1583229441584; Tue, 03 Mar 2020 01:57:21 -0800 (PST) Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com. [209.85.167.43]) by smtp.gmail.com with ESMTPSA id r4sm655619lfc.40.2020.03.03.01.57.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Mar 2020 01:57:21 -0800 (PST) Received: by mail-lf1-f43.google.com with SMTP id y17so2167783lfe.8 for ; Tue, 03 Mar 2020 01:57:21 -0800 (PST) X-Received: by 2002:a19:5508:: with SMTP id n8mr2281032lfe.105.1583229441195; Tue, 03 Mar 2020 01:57:21 -0800 (PST) MIME-Version: 1.0 References: <6b2f2978-db6a-62ed-f12b-1477148a2ddf@rawbw.com> In-Reply-To: <6b2f2978-db6a-62ed-f12b-1477148a2ddf@rawbw.com> From: Gleb Popov Date: Tue, 3 Mar 2020 13:56:52 +0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to specify an extra lib during a port build? To: Yuri Cc: freebsd-haskell@freebsd.org X-Rspamd-Queue-Id: 48Wsr40cy7z3Kmm X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of 6yearold@gmail.com designates 209.85.208.173 as permitted sender) smtp.mailfrom=6yearold@gmail.com X-Spamd-Result: default: False [-2.02 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-haskell@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[173.208.85.209.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; IP_SCORE(-1.03)[ip: (-0.43), ipnet: 209.85.128.0/17(-2.99), asn: 15169(-1.66), country: US(-0.05)]; FORGED_SENDER(0.30)[arrowd@freebsd.org,6yearold@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[173.208.85.209.rep.mailspike.net : 127.0.0.17]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[arrowd@freebsd.org,6yearold@gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-haskell@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD-specific Haskell issues and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2020 09:57:26 -0000 On Tue, Mar 3, 2020 at 8:32 AM Yuri wrote: > While attempting to port one Haskell package, I got this failure: > > |Configuring library for hmatrix-0.20.0.0.. cabal: Missing dependency on > a foreign library: * Missing (or bad) C library: gfortran This problem > can usually be solved by installing the system package that provides > this library (you may need the "-dev" version). If the library is > already installed but in a non-standard location then you can use the > flags --extra-include-dirs= and --extra-lib-dirs= to specify where it > is.If the library file does exist, it may contain errors that are caught > by the C compiler at the preprocessing stage. In this case you can > re-run configure with the verbosity flag -v3 to see the error messages. > libgfortran.so is in /usr/local/lib/gcc9. It seems like > ||--extra-lib-dirs=| is a configure flag for ghc. > > What is a proper way to resolve this? > > > Thanks, > Yuri > > || > Hmm. Are you using USE_GCC, by any chance? > _______________________________________________ > freebsd-haskell@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-haskell > To unsubscribe, send any mail to "freebsd-haskell-unsubscribe@freebsd.org" >