trouble compiling Ruby

Stanislav Sedov stas at FreeBSD.org
Tue Jan 16 23:14:40 UTC 2007


On Tue, 16 Jan 2007 19:22:59 +0100
Torfinn Ingolfsen <torfinn.ingolfsen at broadpark.no> mentioned:

> Hello, I'm having trouble compiling runy on FreeBSD/ppc:
> Script started on Tue Jan 16 09:20:59 2007
> root at kg-g4# uname -a
> FreeBSD kg-g4.kg4.no 7.0-CURRENT-200701 FreeBSD 7.0-CURRENT-200701 #0: Sun Jan  7 15:57:16 UTC 2007
> root at xserve.pn.xcllnt.net:/usr/obj/usr/src/sys/GENERIC  powerpc
> root at kg-g4# cd /usr/ports/lang/ruby18
> root at kg-g4# make clean
> ===>  Cleaning for ruby-1.8.5.12,1
> root at kg-g4# make
> ===>  Vulnerability check disabled, database not found
> ===>  Found saved configuration for ruby+oniguruma-1.8.5.12,1
> ===>  Extracting for ruby-1.8.5.12,1
> => MD5 Checksum OK for ruby/ruby-1.8.5-p12.tar.gz.
> => SHA256 Checksum OK for ruby/ruby-1.8.5-p12.tar.gz.
> /bin/mv /usr/ports/lang/ruby18/work/ruby-1.8.5-p12/ext/dl/h2rb /usr/ports/lang/ruby18/work/ruby-1.8.5-p1
> 2/bin/
> ===>  Patching for ruby-1.8.5.12,1
> ===>  Applying FreeBSD patches for ruby-1.8.5.12,1
> /usr/bin/sed -i.bak -e 's|-l$pthread_lib|-pthread|g'  /usr/ports/lang/ruby18/work/ruby-1.8.5-p12/configu
> re
> /bin/rm -rf /usr/ports/lang/ruby18/work/ruby-1.8.5-p12/ext/Win32API
> /bin/rm -rf /usr/ports/lang/ruby18/work/ruby-1.8.5-p12/ext/win32ole
> /bin/mv /usr/ports/lang/ruby18/work/ruby-1.8.5-p12/ext/gdbm /usr/ports/lang/ruby18/work/
> /bin/mv /usr/ports/lang/ruby18/work/ruby-1.8.5-p12/ext/iconv /usr/ports/lang/ruby18/work/
> /bin/mv /usr/ports/lang/ruby18/work/ruby-1.8.5-p12/ext/tk /usr/ports/lang/ruby18/work/
> ===>  Configuring for ruby-1.8.5.12,1
> /usr/bin/touch /usr/ports/lang/ruby18/work/ruby-1.8.5-p12/configure
> configure: WARNING: you should use --build, --host, --target
> checking build system type... powerpc-portbld-freebsd7
> checking host system type... powerpc-portbld-freebsd7
> checking target system type... powerpc-portbld-freebsd7
> checking for powerpc-portbld-freebsd7-gcc... cc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
> ===>  Script "configure" failed unexpectedly.
> Please report the problem to stas at FreeBSD.org [maintainer] and attach the
> "/usr/ports/lang/ruby18/work/ruby-1.8.5-p12/config.log" including the output
> of the failure of your make command. Also, it might be a good idea to provide
> an overview of all packages installed on your system (e.g. an `ls
> /var/db/pkg`).
> *** Error code 1
>
> Stop in /usr/ports/lang/ruby18.
> root at kg-g4#
> root at kg-g4#
> Script done on Tue Jan 16 18:28:02 2007
>
> Also, Ruby (the installed version) crashes:
> root at kg-g4# pkg_info | grep ruby
> ruby-1.8.5,1        An object-oriented interpreted scripting language
> ruby18-bdb-0.5.9_2  Ruby interface to Sleepycat's Berkeley DB revision 2 or lat
> root at kg-g4# ruby --version
> Illegal instruction (core dumped)
>
> Has anyone else seen this?
> I have already upgraded some other ports:
> root at kg-g4# ls -lt /var/db/pkg | more
> total 4664
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:39 startup-notification-0.8_3
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:38 fontconfig-2.3.2_6,1
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:38 freetype2-2.2.1_1
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:38 libdrm-2.0.2
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:38 pkg-config-0.21
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:38 xorg-libraries-6.9.0
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:38 expat-2.0.0_1
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:34 hicolor-icon-theme-0.9_2
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:30 libxml2-2.6.26
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:28 libiconv-1.9.2_2
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:08 cairo-1.2.6_1
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:08 glitz-0.5.6
> drwxr-xr-x  2 root  wheel      512 Jan 16 02:06 png-1.2.14
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:45 dbh-4.5.0
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:40 intltool-0.35.4
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:39 p5-XML-Parser-2.34_2
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:39 perl-5.8.8
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:00 xorg-6.9.0
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:00 xorg-nestserver-6.9.0_1
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:00 xorg-printserver-6.9.0_2
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:00 xorg-server-6.9.0_5
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:00 xorg-vfbserver-6.9.0_2
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:00 xorg-fonts-truetype-6.9.0
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:00 xorg-fonts-type1-6.9.0
> drwxr-xr-x  2 root  wheel      512 Jan 16 01:00 xorg-clients-6.9.0_3
> drwxr-xr-x  2 root  wheel      512 Jan 16 00:56 bitstream-vera-1.10_2
> drwxr-xr-x  2 root  wheel      512 Jan 16 00:56 xorg-fontserver-6.9.0_1
> drwxr-xr-x  2 root  wheel      512 Jan 16 00:56 xterm-223
> drwxr-xr-x  2 root  wheel      512 Jan 16 00:56 xorg-documents-6.9.0
> drwxr-xr-x  2 root  wheel      512 Jan 16 00:56 xorg-fonts-100dpi-6.9.0_1
> drwxr-xr-x  2 root  wheel      512 Jan 16 00:56 xorg-fonts-75dpi-6.9.0_1
> drwxr-xr-x  2 root  wheel      512 Jan 16 00:56 libXft-2.1.7_1
> drwxr-xr-x  2 root  wheel      512 Jan 16 00:56 xorg-fonts-cyrillic-6.9.0_1
> drwxr-xr-x  2 root  wheel      512 Jan 16 00:56 xorg-fonts-encodings-6.9.0_1
> drwxr-xr-x  2 root  wheel      512 Jan 16 00:56 xorg-fonts-miscbitmaps-6.9.0_1
> drwxr-xr-x  2 root  wheel      512 Jan 16 00:56 xorg-manpages-6.9.0
> drwxr-xr-x  2 root  wheel      512 Jan 15 20:55 tiff-3.8.2_1
> drwxr-xr-x  2 root  wheel      512 Jan 15 20:53 jpeg-6b_4
> drwxr-xr-x  2 root  wheel      512 Jan 15 18:59 gmake-3.81_1
> drwxr-xr-x  2 root  wheel      512 Jan 15 18:47 db41-4.1.25_4
> drwxr-xr-x  2 root  wheel      512 Jan 15 17:55 portmanager-0.4.1_7
> drwxr-xr-x  2 root  wheel      512 Jan 15 01:35 bsdstats-5.3_1
>
> Any hints on how to debug this?
> --

Can you, please, provide configure.log file from work directory to let
me see what happens? The last problem may be caused by ruby compiled
for incompatible arch (e.g. with instructions not available in your
cpu).

--
Stanislav Sedov
ST4096-RIPE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ppc/attachments/20070116/1843ea98/attachment.pgp


More information about the freebsd-ppc mailing list