Ruby source compilation fail

Hi,

sorry if this is the wrong place. I’m new here.
I got the following error when I try to compile ruby-2.2.4 e ruby-2.3.0

synology ruby-2.2.4 # ./configure
checking build system type… powerpc-unknown-linux-gnu
checking host system type… powerpc-unknown-linux-gnu
checking target system type… powerpc-unknown-linux-gnu
checking for gcc… gcc
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 gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking how to run the C preprocessor… gcc -E
checking for grep that handles long lines and -e… /opt/bin/grep
checking for egrep… /opt/bin/grep -E
checking whether gcc needs -traditional… no
checking for ld… ld
checking whether the linker is GNU ld… yes
checking whether gcc -E 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… /opt/bin/install -c
checking for a thread-safe mkdir -p… /opt/bin/mkdir -p
checking for dtrace… no
checking for dot… no
checking for doxygen… no
checking for pkg-config… no
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 minix/config.h usability… no
checking minix/config.h presence… no
checking for minix/config.h… no
checking whether it is safe to define EXTENSIONS… yes
checking for cd using physical directory… cd -P
checking whether CFLAGS is valid… yes
checking whether LDFLAGS is valid… yes
checking whether -Wno-unused-parameter is accepted as CFLAGS… yes
checking whether -Wno-parentheses is accepted as CFLAGS… yes
checking whether -Wno-long-long is accepted as CFLAGS… yes
checking whether -Wno-missing-field-initializers is accepted as
CFLAGS… no
checking whether -Wunused-variable is accepted as CFLAGS… yes
checking whether -Wpointer-arith is accepted as CFLAGS… yes
checking whether -Wwrite-strings is accepted as CFLAGS… yes
checking whether -Wdeclaration-after-statement is accepted as CFLAGS…
yes
checking whether -Wshorten-64-to-32 is accepted as CFLAGS… no
checking whether -Wimplicit-function-declaration is accepted as
CFLAGS… yes
checking whether -Wdivision-by-zero is accepted as CFLAGS… no
checking whether -Wdeprecated-declarations is accepted as CFLAGS… yes
checking whether -Wno-packed-bitfield-compat is accepted as CFLAGS…
yes
checking whether -Wall is accepted as CFLAGS… yes
checking whether -Qunused-arguments is accepted as CFLAGS… no
checking whether -D_FORTIFY_SOURCE=2 is accepted as CFLAGS… yes
checking whether -fstack-protector is accepted as CFLAGS… no
checking whether -std=iso9899:1999 is accepted as CFLAGS… yes
checking whether -fno-strict-overflow is accepted as CFLAGS… no
checking whether -ggdb3 is accepted as CFLAGS… yes
checking whether -Wl,-unexported_symbol,Init* is accepted as
LDFLAGS… no
checking whether -fno-fast-math is accepted as CFLAGS… yes
checking for crypt in -lcrypt… no
checking for dlopen in -ldl… no
checking for shl_load in -ldld… no
checking for shutdown in -lsocket… no
checking for dirent.h that defines DIR… yes
checking for library containing opendir… no
checking for stdbool.h that conforms to C99… yes
checking for _Bool… yes
checking for sys/wait.h that is POSIX.1 compatible… yes
checking limits.h usability… yes
checking limits.h presence… yes
checking for limits.h… yes
checking sys/file.h usability… yes
checking sys/file.h presence… yes
checking for sys/file.h… yes
checking sys/ioctl.h usability… yes
checking sys/ioctl.h presence… yes
checking for sys/ioctl.h… yes
checking sys/syscall.h usability… yes
checking sys/syscall.h presence… yes
checking for sys/syscall.h… yes
checking fcntl.h usability… yes
checking fcntl.h presence… yes
checking for fcntl.h… yes
checking sys/fcntl.h usability… yes
checking sys/fcntl.h presence… yes
checking for sys/fcntl.h… yes
checking sys/param.h usability… yes
checking sys/param.h presence… yes
checking for sys/param.h… yes
checking sys/select.h usability… yes
checking sys/select.h presence… yes
checking for sys/select.h… yes
checking sys/time.h usability… yes
checking sys/time.h presence… yes
checking for sys/time.h… yes
checking sys/times.h usability… yes
checking sys/times.h presence… yes
checking for sys/times.h… yes
checking syscall.h usability… yes
checking syscall.h presence… yes
checking for syscall.h… yes
checking pwd.h usability… yes
checking pwd.h presence… yes
checking for pwd.h… 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 utime.h usability… yes
checking utime.h presence… yes
checking for utime.h… 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 float.h usability… yes
checking float.h presence… yes
checking for float.h… yes
checking ieeefp.h usability… no
checking ieeefp.h presence… no
checking for ieeefp.h… no
checking ucontext.h usability… yes
checking ucontext.h presence… yes
checking for ucontext.h… yes
checking intrinsics.h usability… no
checking intrinsics.h presence… no
checking for intrinsics.h… no
checking langinfo.h usability… yes
checking langinfo.h presence… yes
checking for langinfo.h… yes
checking locale.h usability… yes
checking locale.h presence… yes
checking for locale.h… yes
checking sys/sendfile.h usability… yes
checking sys/sendfile.h presence… yes
checking for sys/sendfile.h… yes
checking time.h usability… yes
checking time.h presence… yes
checking for time.h… yes
checking net/socket.h usability… no
checking net/socket.h presence… no
checking for net/socket.h… no
checking sys/socket.h usability… yes
checking sys/socket.h presence… yes
checking for sys/socket.h… yes
checking process.h usability… no
checking process.h presence… no
checking for process.h… no
checking sys/prctl.h usability… yes
checking sys/prctl.h presence… yes
checking for sys/prctl.h… yes
checking sys/uio.h usability… yes
checking sys/uio.h presence… yes
checking for sys/uio.h… yes
checking atomic.h usability… no
checking atomic.h presence… no
checking for atomic.h… no
checking malloc.h usability… yes
checking malloc.h presence… yes
checking for malloc.h… yes
checking malloc_np.h usability… no
checking malloc_np.h presence… no
checking for malloc_np.h… no
checking malloc/malloc.h usability… no
checking malloc/malloc.h presence… no
checking for malloc/malloc.h… no
checking setjmpex.h usability… no
checking setjmpex.h presence… no
checking for setjmpex.h… no
checking sys/attr.h usability… no
checking sys/attr.h presence… no
checking for sys/attr.h… no
checking sys/id.h usability… no
checking sys/id.h presence… no
checking for sys/id.h… no
checking gmp.h usability… yes
checking gmp.h presence… yes
checking for gmp.h… yes
checking for __gmpz_init in -lgmp… no
checking for special C compiler options needed for large files… no
checking for _FILE_OFFSET_BITS value needed for large files… 64
checking whether byte ordering is bigendian… yes
checking for an ANSI C-conforming const… yes
checking whether char is unsigned… yes
checking for inline… inline
checking for working volatile… yes
checking for typeof syntax and keyword spelling… typeof
checking for long long… yes
checking for off_t… yes
checking char bit… 8
checking size of int… 0
checking size of short… 0
checking size of long… 0
checking size of long long… configure: error: in
/volume1/ruby/ruby-2.2.4': configure: error: cannot compute sizeof (long long) Seeconfig.log’ for more details

Is a ppc box and the gcc version is 3.4.6. I can paste the long
config.log if needed.
Sorry, this should be a simple problem, but I’m stuck. Any help will be
appreciated.