Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

amd64, i386 builds fail on netbsd-7/amd64, tools build fails on -current/amd64 hosts?



Since this commit:

  http://mail-index.netbsd.org/source-changes/2016/12/21/msg080075.html

I have been unable to build releases for amd64 or i386 on hosts running
netbsd-7 or -current (7.99.51).

On a netbsd-7/amd64 host, a non-update build of amd64-current to empty
obj/DEST dirs fails with:

[...]
--- dtrace ---
#      link  dtrace/dtrace
/r0/build/current/tools/amd64/bin/x86_64--netbsd-gcc    --sysroot=/r0/build/current/DEST/amd64 -pthread  -pie  -shared-libgcc  -Wl,-z,relro -Wl,--warn-shared-textrel     -o dtrace  dtrace.o  -Wl,-rpath-link,/r0/build/current/DEST/amd64/lib  -L=/lib -L/r0/build/current/obj/amd64/external/cddl/osnet/lib/libctf -lctf -L/r0/build/current/obj/amd64/external/cddl/osnet/lib/libdtrace -ldtrace -L/r0/build/current/obj/amd64/external/bsd/elftoolchain/lib/libelf -lelf -L/r0/build/current/obj/amd64/lib/liby -ly -L/r0/build/current/obj/amd64/external/bsd/flex/lib -ll -L/r0/build/current/obj/amd64/lib/libz -lz    
/r0/build/current/DEST/amd64/usr/lib/libstdc++.so.7: undefined reference to `std::function<void ()>::function<void std::call_once<void (std::thread::*)(), std::reference_wrapper<std::thread> >(std::once_flag&, void (std::thread::*&&)(), std::reference_wrapper<std::thread>&&)::{lambda()#1}, void, void>(void std::call_once<void (std::thread::*)(), std::reference_wrapper<std::thread> >(std::once_flag&, void (std::thread::*&&)(), std::reference_wrapper<std::thread>&&)::{lambda()#1})'
[...]

A build of i386-current fails in a similar fashion.  Architectures other
than amd64/i386 seem not to be affected.


On a host running amd64-7.99.51, non-update builds of any architecture
to empty target directories fail while building tools with:

[...]
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking that C++ compiler can compile simple program... no
configure: error: a working C++ compiler is required
*** [.configure_done] Error code 1
nbmake[3]: stopped in /x/current/src/tools/groff
1 error
nbmake[3]: stopped in /x/current/src/tools/groff
*** [dependall] Error code 2

nbmake[2]: stopped in /x/current/src/tools/groff
1 error

nbmake[2]: stopped in /x/current/src/tools/groff

*** Failed target:  dependall-groff
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/x/current/src/tools" ;; *) this="${dir}/"; real="/x/current/src/tools/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $@)}"; cd "${real}" && /r0/build/current/tools/amd64/bin/nbmake _THISDIR_="${this}" "$@" ${target}; }; _makedirtarget groff dependall
*** Error code 2

Stop.
nbmake[1]: stopped in /x/current/src/tools
[...]

$OBJDIR/tools/groff/build/config.log reports:

[...]
configure:2697: checking that C++ compiler can compile simple program
configure:2709: c++ -o conftest -O  -I/r0/build/current/tools/amd64/include/comp
at -I/x/current/src/tools/compat  -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=6
4  conftest.cc  >&5
/usr/lib/libstdc++.so: undefined reference to `std::function<void ()>::function<
void std::call_once<void (std::thread::*)(), std::reference_wrapper<std::thread>
 >(std::once_flag&, void (std::thread::*&&)(), std::reference_wrapper<std::threa
d>&&)::{lambda()#1}, void, void>(void std::call_once<void (std::thread::*)(), st
d::reference_wrapper<std::thread> >(std::once_flag&, void (std::thread::*&&)(), 
std::reference_wrapper<std::thread>&&)::{lambda()#1})'
configure:2712: $? = 1
configure: program exited with status 1
configure: failed program was:
| 
|        /* confdefs.h.  */
|              
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #ifdef __cplusplus
| extern "C" void exit (int);
| #endif
| /* end confdefs.h.  */
| 
| 
| int main() {
|   return 0;
| }
| 
| 
| 
configure:2727: result: no
configure:2729: error: a working C++ compiler is required
[...]


-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index