NetBSD Problem Report #52087

From www@NetBSD.org  Fri Mar 17 19:08:19 2017
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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A97147A211
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 17 Mar 2017 19:08:19 +0000 (UTC)
Message-Id: <20170317190818.8AAFD7A2B6@mollari.NetBSD.org>
Date: Fri, 17 Mar 2017 19:08:18 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: libstdc++-v3/debug.d build fails when cross-compiled on Debian Linux due to x86intrin.h not found
X-Send-Pr-Version: www-1.0

>Number:         52087
>Category:       toolchain
>Synopsis:       libstdc++-v3/debug.d build fails when cross-compiled on Debian Linux due to x86intrin.h not found
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-evbarm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 17 19:10:00 +0000 2017
>Last-Modified:  Fri Mar 17 20:41:28 +0000 2017
>Originator:     Sevan Janiyan
>Release:        7.1-RELEASE
>Organization:
>Environment:
Linux pkgsrc-vm 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u1 (2017-02-22) x86_64 GNU/Linux
>Description:
Possibly the same issue as port-evbarm/52085? this time on Debian 8.7 itself (Not an env in Windows)



#    create  libstdc++-v3/debug.d                                                                                                       [76/1736]
CC=/home/netbsder/src/obj/tooldir.Linux-3.16.0-4-amd64-x86_64/bin/armv7--netbsdelf-eabihf-c++ /home/netbsder/src/obj/tooldir.Linux-3.16.0-4-amd64-x86_6
4/bin/nbmkdep -f debug.d.tmp  -- -I/home/netbsder/src/obj/destdir.evbarm/usr/include/g++/backward      --sysroot=/home/netbsder/src/obj/destdir.evbarm 
-I/home/netbsder/src/external/gpl3/gcc/dist/gcc -I/home/netbsder/src/external/gpl3/gcc/dist/include -I/home/netbsder/src/external/gpl3/gcc/dist/libstdc++-
v3/libsupc++ -I/home/netbsder/src/external/gpl3/gcc/dist/libgcc -I/home/netbsder/src/external/gpl3/gcc/lib/libstdc++-v3/../libstdc++-v3/arch/earmv7hf -
I. -DHAVE_STDLIB_H -DHAVE_STRING_H -I/home/netbsder/src/external/gpl3/gcc/dist/libstdc++-v3/include -I/home/netbsder/src/external/gpl3/gcc/lib/libstdc+
+-v3/arch/earmv7hf -D_GLIBCXX_SHARED -DGTHREAD_USE_WEAK -DSUPPORTS_WEAK  -std=gnu++11    /home/netbsder/src/external/gpl3/gcc/dist/libstdc++-v3/src/
c++11/debug.cc &&  mv debug.d.tmp debug.d
In file included from /home/netbsder/src/obj/destdir.evbarm/usr/include/g++/random:51:0,
                 from /home/netbsder/src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_algo.h:65,
                 from /home/netbsder/src/obj/destdir.evbarm/usr/include/g++/algorithm:62,
                 from /home/netbsder/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/debug.cc:30:
/home/netbsder/src/obj/destdir.evbarm/usr/include/g++/bits/opt_random.h:33:23: fatal error: x86intrin.h: No such file or directory
 #include <x86intrin.h>
                       ^
compilation terminated.
nbmkdep: compile failed.

*** Failed target:  debug.d
*** Failed command: CC=/home/netbsder/src/obj/tooldir.Linux-3.16.0-4-amd64-x86_64/bin/armv7--netbsdelf-eabihf-c++ /home/netbsder/src/obj/tooldir.Linux-
3.16.0-4-amd64-x86_64/bin/nbmkdep -f debug.d.tmp -- -I/home/netbsder/src/obj/destdir.evbarm/usr/include/g++/backward --sysroot=/home/netbsder/src/obj/d
estdir.evbarm -I/home/netbsder/src/external/gpl3/gcc/dist/gcc -I/home/netbsder/src/external/gpl3/gcc/dist/include -I/home/netbsder/src/external/gpl3/gcc/d
ist/libstdc++-v3/libsupc++ -I/home/netbsder/src/external/gpl3/gcc/dist/libgcc -I/home/netbsder/src/external/gpl3/gcc/lib/libstdc++-v3/../libstdc++-v3/a
rch/earmv7hf -I. -DHAVE_STDLIB_H -DHAVE_STRING_H -I/home/netbsder/src/external/gpl3/gcc/dist/libstdc++-v3/include -I/home/netbsder/src/external/gpl3/gc
c/lib/libstdc++-v3/arch/earmv7hf -D_GLIBCXX_SHARED -DGTHREAD_USE_WEAK -DSUPPORTS_WEAK -std=gnu++11 /home/netbsder/src/external/gpl3/gcc/dist/libstdc
++-v3/src/c++11/debug.cc && mv debug.d.tmp debug.d
*** Error code 1
>How-To-Repeat:
On Debian 8.7, run:
./build.sh -U -m evbarm -a earmv7hf -j2 release
>Fix:

>Release-Note:

>Audit-Trail:
From: Sevan Janiyan <venture37@geeklan.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-evbarm/52087: libstdc++-v3/debug.d build fails when
 cross-compiled on Debian Linux due to x86intrin.h not found
Date: Fri, 17 Mar 2017 20:31:58 +0000

 Issue doesn't appear to evbarm specific, same issue affects hpcarm.
 I was able to build an amd64 release without issue however.


 Sevan

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.