NetBSD Problem Report #49977

From www@NetBSD.org  Tue Jun 16 10:48:21 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6FE90A654C
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 16 Jun 2015 10:48:21 +0000 (UTC)
Message-Id: <20150616104820.263A0A65C2@mollari.NetBSD.org>
Date: Tue, 16 Jun 2015 10:48:20 +0000 (UTC)
From: slitvinov@gmail.com
Reply-To: slitvinov@gmail.com
To: gnats-bugs@NetBSD.org
Subject: lang/g95 fails to build on OS X Yosemite
X-Send-Pr-Version: www-1.0

>Number:         49977
>Category:       pkg
>Synopsis:       lang/g95 fails to build on OS X Yosemite
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    macos-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 16 10:50:00 +0000 2015
>Last-Modified:  Tue Oct 30 16:10:01 +0000 2018
>Originator:     Sergey Litvinov
>Release:        master, Tue Jun 16 12:46:47 CEST 2015
>Organization:
>Environment:
Darwin osx 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
>Description:
lang/g95 fails to build on OS X Yosemite with the following error message:

clang   -pipe -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute    -DHAVE_CONFIG_H  -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o darwin-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o dummy-checksum.o \
	  main.o  libbackend.a ../libcpp/libcpp.a ../libcpp/libcpp.a ./../intl/libintl.a -liconv  ../libiberty/libiberty.a
Undefined symbols for architecture x86_64:
  "_host_hooks", referenced from:
      _c_common_no_more_pch in c-pch.o
      _toplev_main in libbackend.a(toplev.o)
      _gt_pch_save in libbackend.a(ggc-common.o)
      _gt_pch_restore in libbackend.a(ggc-common.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gnumake[2]: *** [cc1-dummy] Error 1
gnumake[1]: *** [all-gcc] Error 2
gnumake: *** [all] Error 2
*** Error code 2

>How-To-Repeat:
make in
lang/g95
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->macos-pkg-people
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 17 Jun 2015 11:25:20 +0000
Responsible-Changed-Why:
OS X pkgsrc problem.


From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/49977: lang/g95 fails to build on OS X Yosemite
Date: Thu, 8 Sep 2016 06:49:00 +0000

 PKGSRC_FORTRAN=gfortran is the answer to all these.
 now a workaround but I'd like to make it a default too.

From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@NetBSD.org
Cc: coypu@SDF.ORG
Subject: Re: pkg/49977: lang/g95 fails to build on OS X Yosemite
Date: Tue, 30 Oct 2018 15:42:26 +0200

 This is still an issue in macOS 10.14 Mojave, and the suggested
 work-around of PKGSRC_FORTRAN=gfortran no longer works because
 PR 53691.
 -- 
 Andreas Gustafsson, gson@gson.org

From: coypu@sdf.org
To: Andreas Gustafsson <gson@gson.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/49977: lang/g95 fails to build on OS X Yosemite
Date: Tue, 30 Oct 2018 14:12:38 +0000

 Do any of the other GCCs build? we can set GFORTRAN_VERSION. Now it's 48
 but having it set to something newer would be good in general

From: Andreas Gustafsson <gson@gson.org>
To: coypu@sdf.org
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/49977: lang/g95 fails to build on OS X Yosemite
Date: Tue, 30 Oct 2018 18:09:15 +0200

 coypu@sdf.org wrote:
 > Do any of the other GCCs build? we can set GFORTRAN_VERSION. Now it's 48
 > but having it set to something newer would be good in general

 I have now tried all of them, and they all failed to build.  They
 failed in several different ways, but for example gcc8 failed the same
 way as gcc48.
 -- 
 Andreas Gustafsson, gson@gson.org

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.