NetBSD Problem Report #55411

From www@netbsd.org  Wed Jun 24 04:36:49 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3A7F71A921F
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 24 Jun 2020 04:36:49 +0000 (UTC)
Message-Id: <20200624043648.62E941A9248@mollari.NetBSD.org>
Date: Wed, 24 Jun 2020 04:36:48 +0000 (UTC)
From: hayashi@totalware.gifu.gifu.jp
Reply-To: hayashi@totalware.gifu.gifu.jp
To: gnats-bugs@NetBSD.org
Subject: can't configure on crossplatform gcc host-libcpp
X-Send-Pr-Version: www-1.0

>Number:         55411
>Category:       bin
>Synopsis:       can't configure on crossplatform gcc host-libcpp
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 24 04:40:00 +0000 2020
>Closed-Date:    Wed Jun 24 05:11:39 +0000 2020
>Last-Modified:  Wed Jun 24 05:11:39 +0000 2020
>Originator:     Akihiko HAYASHI
>Release:        current
>Organization:
>Environment:
FreeBSD jail1.totalware.gifu.gifu.jp 11.4-STABLE FreeBSD 11.4-STABLE #41 r361988: Wed Jun 10 15:59:38 JST 2020     root@deneb.totalware.gifu.gifu.jp:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
This issue is on a NetBSD cross build on FreeBSD
My build environment is FreeBSD. FreeBSD has clang and mine is installed some ports/lang/gcc*

it fails to confiure at src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile
I have set environment vars. HOST_CC, HOST_CXX but configure's CC or CXX is not set according to configure.log.

>How-To-Repeat:

>Fix:
problem is
src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile

This make script will pass the environment variables (BUILD_ENV) to configure, but it does not pass because there is "&&"  before it.

plese modify
cd libcpp && ${BUILD_ENV} && \
to
cd libcpp && ${BUILD_ENV} \

>Release-Note:

>Audit-Trail:
From: "Rin Okuyama" <rin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55411 CVS commit: src/external/gpl3/gcc/usr.bin/host-libcpp
Date: Wed, 24 Jun 2020 05:06:08 +0000

 Module Name:	src
 Committed By:	rin
 Date:		Wed Jun 24 05:06:08 UTC 2020

 Modified Files:
 	src/external/gpl3/gcc/usr.bin/host-libcpp: Makefile

 Log Message:
 PR bin/55411 (Akihiko HAYASHI)

 Remove stray ``&&'' introduced in the previous revision, so that
 host tools are correctly passed to configure script.

 No similar problem for gcc.old. No release branches are affected.


 To generate a diff of this commit:
 cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: rin@NetBSD.org
State-Changed-When: Wed, 24 Jun 2020 05:11:39 +0000
State-Changed-Why:
Applied. Thank you for report!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.