lang/ruby19 (and 20, 21) in a jailed rel8.3 amd64 fails to compile

Paul Eskello paul.eskello at gmail.com
Fri Apr 25 13:36:46 UTC 2014


Hi gang,

I try to install lang/ruby19 in a jailed 8.3, but that fails.

Beceause it's jail, /usr/src is empty. I copied thr_attr.c to
/usr/src/lib/libthr/thread/thr_attr.c, but that didn't help. Maybe silly,
but I had to try that. :)

I tried to run gmake in it'w workdir: same result. I then thought: try
ruby20 or 21. Same story.

Looking for clues here at freebsd-ports@ before filing a PR. Is it just me?

#portmaster -D lang/ruby19
===>  License BSD2CLAUSE RUBY accepted by the user
===>  Found saved configuration for ruby-1.9.3.484_2,1
===> Fetching all distfiles required by ruby-1.9.3.484_2,1 for building
===>  Extracting for ruby-1.9.3.484_2,1
=> SHA256 Checksum OK for ruby/ruby-1.9.3-p484.tar.bz2.
===>  Patching for ruby-1.9.3.484_2,1
===>  Applying FreeBSD patches for ruby-1.9.3.484_2,1
#
# Eliminate all leftovers
#
/bin/rm -rf /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484/ext/win32ole
/bin/rm -rf /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484/bin/rake
/bin/rm -rf /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484/doc/rake
/bin/rm -rf /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484/lib/rake
/bin/rm -rf /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484/test/rake
/bin/rm -rf /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484/man/rake.1
/bin/rm -rf /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484/lib/rake.rb
/bin/rm /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484/bin/gem
/bin/mv /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484/ext/gdbm
/tmp/usr/ports/lang/ruby19/work/
/bin/mv /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484/ext/iconv
/tmp/usr/ports/lang/ruby19/work/
/bin/mv /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484/ext/tk
/tmp/usr/ports/lang/ruby19/work/
===>   ruby-1.9.3.484_2,1 depends on package: libffi>=0 - found
===>   ruby-1.9.3.484_2,1 depends on file: /usr/local/bin/autoconf-2.69 -
found
===>   ruby-1.9.3.484_2,1 depends on file: /usr/local/bin/ccache - found
===>   ruby-1.9.3.484_2,1 depends on shared library: libexecinfo.so - found
===>   ruby-1.9.3.484_2,1 depends on shared library: libyaml.so - found
===>  Configuring for ruby-1.9.3.484_2,1
configure: loading site script /usr/ports/Templates/config.site
checking build system type... amd64-portbld-freebsd8
checking host system type... amd64-portbld-freebsd8
checking target system type... amd64-portbld-freebsd8
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 whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking whether cc needs -traditional... no
checking whether the linker is GNU ld... yes
checking whether cpp accepts -o... yes
checking for ranlib... ranlib
checking for ar... ar
checking for as... as
checking for objdump... objdump
checking for objcopy... objcopy
checking for nm... nm
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c -o root -g
wheel
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for dot... no
checking for doxygen... no
checking for pkg-config... no
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for minix/config.h... (cached) no
checking whether it is safe to define __EXTENSIONS__... yes
checking for cd using physical directory... cd -P
checking whether -Wno-unused-parameter is accepted... yes
checking whether -Wno-parentheses is accepted... yes
checking whether -Wno-long-long is accepted... yes
checking whether -Wno-missing-field-initializers is accepted... yes
checking whether -Wpointer-arith is accepted... yes
checking whether -Wwrite-strings is accepted... yes
checking whether -Wdeclaration-after-statement is accepted... yes
checking whether -Wshorten-64-to-32 is accepted... no
checking whether -Wimplicit-function-declaration is accepted... yes
checking whether -Wall -Wextra is accepted... yes
checking whether -fvisibility=hidden is accepted... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking whether char is unsigned... no
checking for inline... inline
checking for working volatile... yes
checking for long long... (cached) yes
checking for off_t... (cached) yes
checking char bit... 8
checking size of int... 4
checking size of short... 2
checking size of long... 8
checking size of long long... 8
checking size of __int64... 0
checking size of off_t... 8
checking size of void*... 8
checking size of float... 4
checking size of double... 8
checking size of time_t... 8
checking for printf prefix for long long... ll
checking for pid_t... (cached) yes
checking for convertible type of pid_t... INT
checking for uid_t... (cached) yes
checking for convertible type of uid_t... UINT
checking for gid_t... yes
checking for convertible type of gid_t... UINT
checking for time_t... yes
checking for convertible type of time_t... LONG
checking for dev_t... yes
checking for convertible type of dev_t... UINT
checking for mode_t... (cached) yes
checking for convertible type of mode_t... UINT
checking for rlim_t... yes
checking for convertible type of rlim_t... LONG
checking for prototypes... yes
checking token paste string... ansi
checking stringization... #expr
checking string literal concatenation... yes
checking for variable length prototypes and stdarg.h... yes
checking for variable length macro... yes
checking for noreturn function attribute... __attribute__ ((noreturn)) x
checking for deprecated function attribute... __attribute__ ((deprecated)) x
checking for noinline function attribute... __attribute__ ((noinline)) x
checking for stdcall function attribute... x
checking for cdecl function attribute... x
checking for fastcall function attribute... x
checking for function alias... alias
checking for atomic builtins... yes
checking for exported function attribute... __attribute__
((visibility("default")))
checking whether sys_nerr is declared... yes
checking whether pthread should be enabled by default... yes
checking for library containing crypt... -lcrypt
checking for library containing dlopen... none required
checking for library containing shl_load... no
checking for library containing socketpair... none required
checking for library containing clock_gettime... none required
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for stdbool.h that conforms to C99... (cached) yes
checking for _Bool... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for limits.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking sys/syscall.h usability... yes
checking sys/syscall.h presence... yes
checking for sys/syscall.h... yes
checking for fcntl.h... (cached) yes
checking for sys/fcntl.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/times.h... (cached) yes
checking for sys/param.h... (cached) yes
checking syscall.h usability... no
checking syscall.h presence... no
checking for syscall.h... no
checking for pwd.h... (cached) yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking a.out.h usability... yes
checking a.out.h presence... yes
checking for a.out.h... yes
checking for utime.h... (cached) yes
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/mkdev.h usability... no
checking sys/mkdev.h presence... no
checking for sys/mkdev.h... no
checking sys/utime.h usability... no
checking sys/utime.h presence... no
checking for sys/utime.h... no
checking xti.h usability... no
checking xti.h presence... no
checking for xti.h... no
checking netinet/in_systm.h usability... yes
checking netinet/in_systm.h presence... yes
checking for netinet/in_systm.h... yes
checking for float.h... (cached) yes
checking ieeefp.h usability... yes
checking ieeefp.h presence... yes
checking for ieeefp.h... yes
checking for ucontext.h... (cached) yes
checking intrinsics.h usability... no
checking intrinsics.h presence... no
checking for intrinsics.h... no
checking for langinfo.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/sendfile.h usability... no
checking sys/sendfile.h presence... no
checking for sys/sendfile.h... no
checking for time.h... (cached) yes
checking for net/socket.h... (cached) no
checking for sys/socket.h... (cached) yes
checking process.h usability... no
checking process.h presence... no
checking for process.h... no
checking atomic.h usability... no
checking atomic.h presence... no
checking for atomic.h... no
checking for size_t... (cached) yes
checking size of size_t... 8
checking size of ptrdiff_t... 8
checking for printf prefix for size_t... z
checking for printf prefix for ptrdiff_t... t
checking for struct stat.st_blksize... (cached) yes
checking for struct stat.st_blocks... yes
checking for struct stat.st_rdev... yes
checking size of struct stat.st_size... SIZEOF_LONG
checking size of struct stat.st_blocks... SIZEOF_LONG
checking for struct stat.st_atim... yes
checking for struct stat.st_atimespec... yes
checking for struct stat.st_atimensec... no
checking for struct stat.st_mtim... yes
checking for struct stat.st_mtimespec... yes
checking for struct stat.st_mtimensec... no
checking for struct stat.st_ctim... yes
checking for struct stat.st_ctimespec... yes
checking for struct stat.st_ctimensec... no
checking for struct timeval... yes
checking for struct timespec... (cached) yes
checking for struct timezone... yes
checking for clockid_t... yes
checking for fd_mask... yes
checking for int8_t... yes
checking size of int8_t... 1
checking for uint8_t... yes
checking size of uint8_t... 1
checking for int16_t... yes
checking size of int16_t... 2
checking for uint16_t... yes
checking size of uint16_t... 2
checking for int32_t... yes
checking size of int32_t... 4
checking for uint32_t... yes
checking size of uint32_t... 4
checking for int64_t... yes
checking size of int64_t... 8
checking for uint64_t... yes
checking size of uint64_t... 8
checking for int128_t... no
checking for uint128_t... no
checking for intptr_t... yes
checking size of intptr_t... 8
checking for uintptr_t... yes
checking size of uintptr_t... 8
checking for ssize_t... yes
checking size of ssize_t... 8
checking for stack end address... no
checking for uid_t in sys/types.h... (cached) yes
checking type of array argument to getgroups... gid_t
checking return type of signal handlers... void
checking for working alloca.h... no
checking for alloca... yes
checking for dynamic size alloca... ok
checking for working memcmp... yes
checking for broken erfc of glibc-2.3.6 on IA64... no
checking for close... (cached) no
checking for dup2... (cached) yes
checking for memmove... (cached) yes
checking for strerror... (cached) yes
checking for strchr... yes
checking for strstr... yes
checking for crypt... yes
checking for flock... yes
checking for isnan... yes
checking for finite... yes
checking for isinf... yes
checking for hypot... yes
checking for acosh... yes
checking for erf... yes
checking for tgamma... yes
checking for lgamma_r... yes
checking for cbrt... yes
checking for strlcpy... (cached) yes
checking for strlcat... (cached) yes
checking for ffs... yes
checking for setproctitle... (cached) yes
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking for signbit... yes
checking for fmod... yes
checking for killpg... yes
checking for wait4... yes
checking for waitpid... (cached) yes
checking for fork... (cached) yes
checking for spawnv... no
checking for syscall... yes
checking for __syscall... yes
checking for chroot... yes
checking for getcwd... (cached) yes
checking for eaccess... (cached) yes
checking for truncate... (cached) yes
checking for ftruncate... yes
checking for ftello... yes
checking for chsize... no
checking for times... yes
checking for utimes... (cached) yes
checking for utimensat... no
checking for fcntl... (cached) yes
checking for lockf... yes
checking for lstat... (cached) yes
checking for truncate64... no
checking for ftruncate64... no
checking for ftello64... no
checking for fseeko... yes
checking for fseeko64... no
checking for link... (cached) yes
checking for symlink... (cached) yes
checking for readlink... (cached) yes
checking for readdir_r... yes
checking for fsync... (cached) yes
checking for fdatasync... no
checking for fchown... (cached) yes
checking for posix_fadvise... yes
checking for setitimer... yes
checking for setruid... yes
checking for seteuid... (cached) yes
checking for setreuid... (cached) yes
checking for setresuid... (cached) yes
checking for socketpair... (cached) yes
checking for setrgid... yes
checking for setegid... (cached) yes
checking for setregid... (cached) yes
checking for setresgid... (cached) yes
checking for issetugid... (cached) yes
checking for pause... yes
checking for lchown... yes
checking for lchmod... yes
checking for getpgrp... (cached) yes
checking for setpgrp... yes
checking for getpgid... (cached) yes
checking for setpgid... yes
checking for initgroups... yes
checking for getgroups... yes
checking for setgroups... (cached) yes
checking for getpriority... yes
checking for getrlimit... (cached) yes
checking for setrlimit... (cached) yes
checking for sysconf... (cached) yes
checking for close... (cached) no
checking for getgrnam_r... yes
checking for dlopen... (cached) yes
checking for sigprocmask... (cached) yes
checking for sigaction... (cached) yes
checking for sigsetjmp... yes
checking for _setjmp... yes
checking for _longjmp... yes
checking for setsid... (cached) yes
checking for telldir... yes
checking for seekdir... yes
checking for fchmod... (cached) yes
checking for cosh... yes
checking for sinh... yes
checking for tanh... yes
checking for log2... yes
checking for round... yes
checking for setuid... yes
checking for setgid... yes
checking for daemon... (cached) yes
checking for select_large_fdset... no
checking for setenv... (cached) yes
checking for unsetenv... (cached) yes
checking for mktime... yes
checking for timegm... yes
checking for gmtime_r... yes
checking for clock_gettime... (cached) yes
checking for gettimeofday... (cached) yes
checking for poll... (cached) yes
checking for ppoll... no
checking for pread... (cached) yes
checking for sendfile... yes
checking for shutdown... (cached) no
checking for sigaltstack... (cached) yes
checking for dl_iterate_phdr... yes
checking for unsetenv returns a value... yes
checking for __builtin_setjmp... no
checking for setjmp type... _setjmp
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for struct tm.tm_gmtoff... yes
checking for external int daylight... no
checking for external timezone... no
checking for external altzone... no
checking for timezone... yes
checking whether timezone requires zero arguments... no
checking for negative time_t for gmtime(3)... yes
checking for localtime(3) overflow correctly... no
checking whether right shift preserve sign bit... yes
checking read count field in FILE structures... _r
checking read buffer ptr field in FILE structures... _p
checking size of struct stat.st_ino... 4
checking whether _SC_CLK_TCK is supported... yes
checking stack growing direction on amd64... -1
checking for pthread_kill in -lpthread... yes
checking for pthread_np.h... yes
checking for sched_yield... (cached) yes
checking for pthread_attr_setinheritsched... yes
checking for pthread_getattr_np... no
checking for pthread_attr_get_np... yes
checking for pthread_attr_getstack... yes
checking for pthread_get_stackaddr_np... no
checking for pthread_get_stacksize_np... no
checking for thr_stksegment... no
checking for pthread_stackseg_np... no
checking for pthread_getthrds_np... no
checking for pthread_condattr_setclock... yes
checking for pthread_sigmask... yes
checking for getcontext... yes
checking for setcontext... yes
checking if fork works with pthread... yes
checking /usr/local/include/execinfo.h usability... yes
checking /usr/local/include/execinfo.h presence... yes
checking for /usr/local/include/execinfo.h... yes
checking for backtrace in -lexecinfo... yes
checking for backtrace... yes
checking valgrind/memcheck.h usability... no
checking valgrind/memcheck.h presence... no
checking for valgrind/memcheck.h... no
checking whether ELF binaries are produced... yes
checking whether OS depend dynamic link works... yes
checking for strip... strip
checking for prefix of external symbols... NONE
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for if make is GNU make... no
checking for safe null command for make... :
checking for nroff... /usr/bin/nroff
.ext/include/amd64-freebsd8/ruby/config.h updated
ruby library version = 1.9
configure: creating ./config.status
config.status: creating Makefile
config.status: creating ruby-1.9.pc
===>  Building for ruby-1.9.3.484_2,1
        CC = cc
        LD = ld
        LDSHARED = cc -shared
        CFLAGS = -I/usr/local/include -pipe  -g -fPIC
        XCFLAGS = -include ruby/config.h -include ruby/missing.h
-fvisibility=hidden -DRUBY_EXPORT
        CPPFLAGS = -I/usr/local/include   -I. -I.ext/include/amd64-freebsd8
-I./include -I.
        DLDFLAGS = -Wl,-soname,libruby19.so.19
        SOLIBS = -lexecinfo -lcrypt -lm -L/usr/local/lib
-Wl,-rpath,/usr/lib:/usr/local/lib -pthread
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling dmyversion.c
compiling miniprelude.c
compiling array.c
compiling bignum.c
compiling class.c
compiling compar.c
compiling complex.c
compiling dir.c
compiling dln_find.c
compiling enum.c
compiling enumerator.c
compiling error.c
compiling eval.c
compiling load.c
compiling proc.c
compiling file.c
compiling gc.c
compiling hash.c
compiling inits.c
compiling io.c
compiling marshal.c
compiling math.c
compiling node.c
compiling numeric.c
compiling object.c
compiling pack.c
compiling parse.c
compiling process.c
compiling random.c
compiling range.c
compiling rational.c
compiling re.c
compiling regcomp.c
compiling regenc.c
compiling regerror.c
compiling regexec.c
compiling regparse.c
compiling regsyntax.c
compiling ruby.c
compiling safe.c
compiling signal.c
compiling sprintf.c
compiling st.c
compiling strftime.c
compiling string.c
compiling struct.c
compiling time.c
compiling transcode.c
compiling util.c
compiling variable.c
compiling compile.c
compiling debug.c
compiling iseq.c
compiling vm.c
compiling vm_dump.c
compiling thread.c
compiling cont.c
compiling ./enc/ascii.c
compiling ./enc/us_ascii.c
compiling ./enc/unicode.c
compiling ./enc/utf_8.c
compiling newline.c
compiling ./missing/close.c
compiling addr2line.c
compiling dmyext.c
linking miniruby
Fatal error 'failed to get sysctl kern.sched.cpusetsize' at line 576 in
file /usr/src/lib/libthr/thread/thr_attr.c (errno = 2)
*** [./.rbconfig.time] Signal 6

Stop in /tmp/usr/ports/lang/ruby19/work/ruby-1.9.3-p484.
*** [do-build] Error code 1

Stop in /usr/ports/lang/ruby19.
*** [stage] Error code 1

Stop in /usr/ports/lang/ruby19.

===>>> make failed for lang/ruby19
===>>> Aborting update

Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> lang/ruby19


#uname -a
FreeBSD X 8.3-RELEASE FreeBSD 8.3-RELEASE #2: Thu Aug 23 14:57:25 CEST
2012     root at X:/usr/obj/usr/src/sys/X  amd64


#cat /etc/make.conf
.if (!empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj*))
.if !defined(NOCCACHE) && exists(/usr/local/libexec/ccache/world/cc)
CC:=${CC:C,^cc,/usr/local/libexec/ccache/world/cc,1}
CXX:=${CXX:C,^c\+\+,/usr/local/libexec/ccache/world/c++,1}
.endif
.endif
WITH_CCACHE_BUILD=yes


#pkg_info
autoconf-2.69       Automatically configure source code on many Un*x
platforms
autoconf-wrapper-20131203 Wrapper script for GNU autoconf
bash-4.3.11_2       The GNU Project's Bourne Again SHell
bison-2.7.1,1       Parser generator from FSF, (mostly) compatible with Yacc
ccache-3.1.9_7      Tool to minimize the compile time of C/C++ programs
cfengine33-3.3.8_5  Systems administration tool for networks
db5-5.3.28          The Oracle Berkeley DB, revision 5.3
dialog4ports-0.1.5_2 Console Interface to configure ports
gettext-0.18.3.1    GNU gettext package
gmake-3.82_1        GNU version of 'make' utility
help2man-1.43.3_1   Automatically generating simple manual pages from
program o
libexecinfo-1.1_3   Library for inspecting program's backtrace
libffi-3.0.13_1     Foreign Function Interface
libiconv-1.14_3     Character set conversion library
libyaml-0.1.6       A YAML 1.1 parser and emitter written in C
m4-1.4.17_1,1       GNU m4
p5-Locale-gettext-1.05_3 Message handling functions
pcre-8.34           Perl Compatible Regular Expressions library
perl5-5.16.3_9      Practical Extraction and Report Language
pkg_replace-0.8.0_10 Utility for upgrading installed packages
portaudit-0.6.2     Checks installed ports against a list of security
vulnerabi
portmaster-3.11     Manage your ports without external databases or
languages
tokyocabinet-1.4.48 A modern implementation of DBM


#sysctl -a | grep kern.sched
kern.sched.preemption: 1
kern.sched.topology_spec: <groups>
kern.sched.steal_thresh: 3
kern.sched.steal_idle: 1
kern.sched.steal_htt: 1
kern.sched.balance_interval: 133
kern.sched.balance: 1
kern.sched.affinity: 1
kern.sched.idlespinthresh: 4
kern.sched.idlespins: 10000
kern.sched.static_boost: 160
kern.sched.preempt_thresh: 64
kern.sched.interact: 30
kern.sched.slice: 13
kern.sched.name: ULE


Regards,
P


More information about the freebsd-ports mailing list