NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-sparc/52258: NetBSD/sparc fails cross-build from amd64
>Number: 52258
>Category: port-sparc
>Synopsis: NetBSD/sparc fails cross-build from amd64
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-sparc-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 28 03:35:00 +0000 2017
>Originator: DOYASHIKI Shinichi
>Release: NetBSD 7.99.68
>Organization:
at home
>Environment:
System: NetBSD kanako.csel.org 7.99.68 NetBSD 7.99.68 (KANAKO) #4: Tue Apr 11 06:58:02 JST 2017 clare%kanako.csel.org@localhost:/export/stage/hack/sys/arch/amd64/compile/KANAKO amd64
Architecture: x86_64
Machine: amd64
>Description:
NetBSD/sparc failes cross-build from amd64 in recent sources.
# create libstdc++-v3/cow-string-inst.d
CC=/usr/tools/bin/sparc--netbsdelf-c++ /usr/tools/bin/nbmkdep -f cow-string-inst.d.tmp -- -I/spool/destdir/sparc/usr/inc
lude/g++/backward --sysroot=/spool/destdir/sparc -I/export/stage/hack/src/external/gpl3/gcc/dist/gcc -I/export/stage/
hack/src/external/gpl3/gcc/dist/include -I/export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/libsupc++ -I/export/
stage/hack/src/external/gpl3/gcc/dist/libgcc -I/export/stage/hack/src/external/gpl3/gcc/lib/libstdc++-v3/../libstdc++-v3/
arch/sparc -I. -DHAVE_STDLIB_H -DHAVE_STRING_H -I/export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/include -I/ex
port/stage/hack/src/external/gpl3/gcc/lib/libstdc++-v3/arch/sparc -D_GLIBCXX_SHARED -DGTHREAD_USE_WEAK -DSUPPORTS_WEAK -s
td=gnu++11 /export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/cow-string-inst.cc && mv cow-string-i
nst.d.tmp cow-string-inst.d
In file included from /spool/destdir/sparc/usr/include/g++/random:50:0,
from /export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/cow-string-inst.cc:62:
/spool/destdir/sparc/usr/include/g++/bits/opt_random.h:33:23: fatal error: x86intrin.h: No such file or directory
compilation terminated.
nbmkdep: compile failed.
*** Failed target: cow-string-inst.d
*** Failed command: CC=/usr/tools/bin/sparc--netbsdelf-c++ /usr/tools/bin/nbmkdep -f cow-string-inst.d.tmp -- -I/spool/destdir/sparc/usr/include/g++/backward --sysroot=/spool/destdir/sparc -I/export/stage/hack/src/external/gpl3/gcc/dist/gcc -I/export/stage/hack/src/external/gpl3/gcc/dist/include -I/export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/libsupc++ -I/export/stage/hack/src/external/gpl3/gcc/dist/libgcc -I/export/stage/hack/src/external/gpl3/gcc/lib/libstdc++-v3/../libstdc++-v3/arch/sparc -I. -DHAVE_STDLIB_H -DHAVE_STRING_H -I/export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/include -I/export/stage/hack/src/external/gpl3/gcc/lib/libstdc++-v3/arch/sparc -D_GLIBCXX_SHARED -DGTHREAD_USE_WEAK -DSUPPORTS_WEAK -std=gnu++11 /export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/cow-string-inst.cc && mv cow-string-inst.d.tmp cow-string-inst.d
*** Error code 1
NetBSD/evbarm also fails as following:
# create libstdc++-v3/cow-string-inst.d
CC=/usr/tools/bin/arm--netbsdelf-eabi-c++ /usr/tools/bin/nbmkdep -f cow-string-inst.d.tmp -- -I/spool/destdir/evbarm/usr
/include/g++/backward --sysroot=/spool/destdir/evbarm -I/export/stage/hack/src/external/gpl3/gcc/dist/gcc -I/export/s
tage/hack/src/external/gpl3/gcc/dist/include -I/export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/libsupc++ -I/ex
port/stage/hack/src/external/gpl3/gcc/dist/libgcc -I/export/stage/hack/src/external/gpl3/gcc/lib/libstdc++-v3/../libstdc+
+-v3/arch/earm -I. -DHAVE_STDLIB_H -DHAVE_STRING_H -I/export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/include -
I/export/stage/hack/src/external/gpl3/gcc/lib/libstdc++-v3/arch/earm -D_GLIBCXX_SHARED -DGTHREAD_USE_WEAK -DSUPPORTS_WEAK
-std=gnu++11 /export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/cow-string-inst.cc && mv cow-strin
g-inst.d.tmp cow-string-inst.d
In file included from /spool/destdir/evbarm/usr/include/g++/random:50:0,
from /export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/cow-string-inst.cc:62:
/spool/destdir/evbarm/usr/include/g++/bits/opt_random.h:33:23: fatal error: x86intrin.h: No such file or directory
compilation terminated.
nbmkdep: compile failed.
*** Failed target: cow-string-inst.d
*** Failed command: CC=/usr/tools/bin/arm--netbsdelf-eabi-c++ /usr/tools/bin/nbmkdep -f cow-string-inst.d.tmp -- -I/spool
/destdir/evbarm/usr/include/g++/backward --sysroot=/spool/destdir/evbarm -I/export/stage/hack/src/external/gpl3/gcc/dist/
gcc -I/export/stage/hack/src/external/gpl3/gcc/dist/include -I/export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/
libsupc++ -I/export/stage/hack/src/external/gpl3/gcc/dist/libgcc -I/export/stage/hack/src/external/gpl3/gcc/lib/libstdc++
-v3/../libstdc++-v3/arch/earm -I. -DHAVE_STDLIB_H -DHAVE_STRING_H -I/export/stage/hack/src/external/gpl3/gcc/dist/libstdc
++-v3/include -I/export/stage/hack/src/external/gpl3/gcc/lib/libstdc++-v3/arch/earm -D_GLIBCXX_SHARED -DGTHREAD_USE_WEAK
-DSUPPORTS_WEAK -std=gnu++11 /export/stage/hack/src/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/cow-string-inst.cc && m
v cow-string-inst.d.tmp cow-string-inst.d
*** Error code 1
Stop.
>How-To-Repeat:
# cat make-sparc
#!/bin/sh
machine=sparc
date=`/bin/date +%Y%m%d`
releasedir=/spool/release/${date}
destdir=/spool/destdir/${machine}
rm -rf ${destdir}
mkdir -p ${destdir}
cd src
./build.sh -m ${machine} -x -T/usr/tools -D${destdir} -R${releasedir} release
>Fix:
Unknown.
Home |
Main Index |
Thread Index |
Old Index