Project

General

Profile

Actions

Bug #240

closed

Problems compiling userspace-rcu-0.7.0 (and later) on NetBSD

Added by Fredrik Pettai almost 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Start date:
05/31/2012
Due date:
% Done:

0%

Estimated time:

Description

I saw that Marek's build fix for NetBSD-5 was added to liburcu-0.7.0.
However, some other part of the new code in 0.7.0 (and later) break builds on NetBSD again...
Here is my build log:

bash-4.2$ make
=> Bootstrap dependency digest>=20010302: found digest-20111104
=> Checksum SHA1 OK for userspace-rcu-0.7.2.tar.bz2
=> Checksum RMD160 OK for userspace-rcu-0.7.2.tar.bz2
===> Installing dependencies for liburcu-0.7.2
=> Build dependency libtool-base>=2.2.6bnb3: found libtool-base-2.2.6bnb5
=> Build dependency gmake>=3.81: found gmake-3.82nb3
=> Build dependency pkg-config>=0.19: found pkg-config-0.25nb1
=> Build dependency checkperms>=1.1: found checkperms-1.11
===> Overriding tools for liburcu-0.7.2
===> Extracting for liburcu-0.7.2
===> Patching for liburcu-0.7.2
===> Creating toolchain wrappers for liburcu-0.7.2
===> Configuring for liburcu-0.7.2
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Adding run-time search paths to pkg-config files.
=> Checking for portability problems in extracted files
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking target system type... x86_64--netbsd
checking for a BSD-compatible install... /usr/bin/install -c -o pettai -g users
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for x86_64--netbsd-gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... gcc3
checking for thread local storage (TLS) class... __thread
checking for x86_64--netbsd-gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking dependency style of cc... (cached) gcc3
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/pkgsrc/wip/liburcu-dev/work/.wrapper/bin/ld
checking if the linker (/usr/pkgsrc/wip/liburcu-dev/work/.wrapper/bin/ld) is GNU ld... yes
checking for BSD
or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert x86_64--netbsd file names to x86_64--netbsd format... func_convert_file_noop
checking how to convert x86_64--netbsd file names to toolchain format... func_convert_file_noop
checking for /usr/pkgsrc/wip/liburcu-dev/work/.wrapper/bin/ld option to reload object files... -r
checking for x86_64--netbsd-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so|_pic\.a)$
checking for x86_64--netbsd-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64--netbsd-ar... no
checking for ar... ar
checking for archiver @FILE support... no
checking for x86_64--netbsd-strip... no
checking for strip... strip
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for x86_64--netbsd-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/pkgsrc/wip/liburcu-dev/work/.wrapper/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... rm: conftest*: No such file or directory
no
checking dynamic linker characteristics... NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for bzero... yes
checking for gettimeofday... yes
checking for munmap... yes
checking for sched_getcpu... no
checking for strtoul... yes
checking for sysconf... yes
checking if architecture really supports the mfence instruction... yes
checking for sys_futex()... no
checking for sched_setaffinity... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating tests/Makefile
config.status: creating liburcu.pc
config.status: creating liburcu-bp.pc
config.status: creating liburcu-cds.pc
config.status: creating liburcu-qsbr.pc
config.status: creating liburcu-mb.pc
config.status: creating liburcu-signal.pc
config.status: creating config.h
config.status: creating urcu/config.h
config.status: linking urcu/arch/x86.h to urcu/arch.h
config.status: linking urcu/uatomic/x86.h to urcu/uatomic.h
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory
SMP support enabled.
=> Modifying libtool scripts to use pkgsrc libtool
===> Building for liburcu-0.7.2
/usr/pkg/bin/gmake all-recursive
gmake1: Entering directory `/usr/pkgsrc/wip/liburcu-dev/work/userspace-rcu-0.7.2'
Making all in .
gmake2: Entering directory `/usr/pkgsrc/wip/liburcu-dev/work/userspace-rcu-0.7.2'
CC wfqueue.lo
CC wfstack.lo
CC compat_futex.lo
CCLD liburcu-common.la
CC urcu.lo
CC urcu-pointer.lo
CCLD liburcu.la
CC urcu-qsbr.lo
CCLD liburcu-qsbr.la
CC liburcu_mb_la-urcu.lo
CC liburcu_mb_la-urcu-pointer.lo
CC liburcu_mb_la-compat_futex.lo
CCLD liburcu-mb.la
CC liburcu_signal_la-urcu.lo
CC liburcu_signal_la-urcu-pointer.lo
CC liburcu_signal_la-compat_futex.lo
CCLD liburcu-signal.la
CC urcu-bp.lo
CCLD liburcu-bp.la
CC rculfqueue.lo
CC rculfstack.lo
CC rculfhash.lo
CC rculfhash-mm-order.lo
CC rculfhash-mm-chunk.lo
CC rculfhash-mm-mmap.lo
rculfhash-mm-mmap.c: In function 'memory_map':
rculfhash-mm-mmap.c:31: error: 'MAP_ANONYMOUS' undeclared (first use in this function)
rculfhash-mm-mmap.c:31: error: (Each undeclared identifier is reported only once
rculfhash-mm-mmap.c:31: error: for each function it appears in.)
rculfhash-mm-mmap.c: In function 'memory_populate':
rculfhash-mm-mmap.c:51: error: 'MAP_ANONYMOUS' undeclared (first use in this function)
rculfhash-mm-mmap.c: In function 'memory_discard':
rculfhash-mm-mmap.c:65: error: 'MAP_ANONYMOUS' undeclared (first use in this function)
gmake2: * [rculfhash-mm-mmap.lo] Error 1
gmake2: Leaving directory `/usr/pkgsrc/wip/liburcu-dev/work/userspace-rcu-0.7.2'
gmake1:
[all-recursive] Error 1
gmake1: Leaving directory `/usr/pkgsrc/wip/liburcu-dev/work/userspace-rcu-0.7.2'
gmake: *
* [all] Error 2
  • Error code 2
Stop.
make: stopped in /usr/pkgsrc/wip/liburcu-dev
  • Error code 1

Stop.
make: stopped in /usr/pkgsrc/wip/liburcu-dev


Related issues 1 (0 open1 closed)

Related to Userspace RCU - Bug #288: missing config/ax_tls.m4 link-time __thread testsResolvedMathieu Desnoyers06/22/2012

Actions
Actions

Also available in: Atom PDF