freebsd 6.1-stable
порт: ruby18 (есть и др. с такими проблемами)==================================================================
==========================make log===================================> Configuring for ruby-1.8.4_8,1
/usr/bin/touch /usr/ports/lang/ruby18/work/ruby-1.8.4/configure
checking build system type... i386-portbld-freebsd6
checking host system type... i386-portbld-freebsd6
checking target system type... i386-portbld-freebsd6
checking for i386-portbld-freebsd6-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... Segmentation fault (core dumped)
===> Script "configure" failed unexpectedly.
Please report the problem to ports@FreeBSD.org [maintainer] and attach the
"/usr/ports/lang/ruby18/work/ruby-1.8.4/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.=======================================================================
==============================config.log===============================[pre]This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --program-prefix= --program-suffix=18 --enable-shared --with-openssl-include=/usr/include --disable-pthread --enable-ipv6 --prefix=/usr/local i386-portbld-freebsd6
## --------- ##
## Platform. ##
## --------- ##
hostname = freebsd.discountcenter.local
uname -m = i386
uname -r = 6.1-STABLE
uname -s = FreeBSD
uname -v = FreeBSD 6.1-STABLE #6: Thu Jun 1 14:43:22 MSD 2006 root@freebsd.discountcenter.local:/usr/obj/usr/src/sys/P4BGLMX
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/games
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/X11R6/bin
PATH: /root/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1402: checking build system type
configure:1420: result: i386-portbld-freebsd6
configure:1428: checking host system type
configure:1442: result: i386-portbld-freebsd6
configure:1450: checking target system type
configure:1464: result: i386-portbld-freebsd6
configure:1653: checking for i386-portbld-freebsd6-gcc
configure:1679: result: cc
configure:1961: checking for C compiler version
configure:1964: cc --version </dev/null >&5
cc (GCC) 3.4.4 [FreeBSD] 20050518
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:1967: $? = 0
configure:1969: cc -v </dev/null >&5
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.4 [FreeBSD] 20050518
configure:1972: $? = 0
configure:1974: cc -V </dev/null >&5
cc: `-V' option must have argument
configure:1977: $? = 1
configure:2000: checking for C compiler default output file name
configure:2003: cc -O2 -fno-strict-aliasing -pipe conftest.c -pthread >&5
configure:2006: $? = 0
configure:2052: result: a.out
configure:2057: checking whether the C compiler works
configure:2063: ./a.out
configure:2066: $? = 139
configure:2073: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_LDFLAGS_set=''
ac_cv_exeext=''
ac_cv_env_CFLAGS_set=set
lt_cv_sys_max_cmd_len=262144
ac_cv_env_CPP_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_host_alias_set=set
ac_cv_prog_CC=cc
ac_cv_env_build_alias_set=set
ac_cv_env_LDFLAGS_value=''
ac_cv_env_target_alias_set=set
ac_cv_host_alias=i386-portbld-freebsd6
ac_cv_env_CFLAGS_value='-O2 -fno-strict-aliasing -pipe '
ac_cv_env_CC_set=set
ac_cv_build_alias=i386-portbld-freebsd6
ac_cv_env_CPPFLAGS_value=''
ac_cv_target_alias=i386-portbld-freebsd6
ac_cv_host=i386-portbld-freebsd6
ac_cv_env_host_alias_value=i386-portbld-freebsd6
ac_cv_build=i386-portbld-freebsd6
ac_cv_env_build_alias_value=i386-portbld-freebsd6
ac_cv_target=i386-portbld-freebsd6
ac_cv_env_target_alias_value=i386-portbld-freebsd6
ac_cv_env_CC_value=cc
ac_cv_env_CPP_set=''
## ----------------- ##
## Output variables. ##
## ----------------- ##
ALLOCA=''
AR=''
ARCHFILE=''
ARCH_FLAG=''
CC='cc'
CCDLFLAGS=''
CFLAGS='-O2 -fno-strict-aliasing -pipe '
COMMON_HEADERS=''
COMMON_LIBS=''
COMMON_MACROS=''
CP=''
CPP=''
CPPFLAGS=''
CPPOUTFILE=''
DEFS=''
DLDFLAGS=''
DLDLIBS=''
DLEXT2=''
DLEXT=''
DLLWRAP=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_SHARED=''
EXEEXT=''
EXPORT_PREFIX=''
EXTOUT=''
EXTSTATIC=''
GNU_LD=''
INSTALL_DATA='install -o root -g wheel -m 444'
INSTALL_PROGRAM='install -s -o root -g wheel -m 555'
INSTALL_SCRIPT='install -o root -g wheel -m 555'
LDFLAGS=''
LDSHARED=''
LIBEXT=''
LIBOBJS=''
LIBPATHENV=''
LIBPATHFLAG=''
LIBRUBY=''
LIBRUBYARG=''
LIBRUBYARG_SHARED=''
LIBRUBYARG_STATIC=''
LIBRUBY_A=''
LIBRUBY_ALIASES=''
LIBRUBY_DLDFLAGS=''
LIBRUBY_LDSHARED=''
LIBRUBY_SO=''
LIBS=' -pthread'
LINK_SO=''
LN_S=''
LTLIBOBJS=''
MAINLIBS=''
MAJOR='1'
MAKEDIRS=''
MAKEFILES=''
MANTYPE=''
MINIOBJS=''
MINIRUBY=''
MINOR='8'
NM=''
NROFF=''
OBJDUMP=''
OBJEXT=''
OUTFLAG=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PREP=''
RANLIB=''
RDOCTARGET=''
RM=''
RPATHFLAG=''
RUBYW_INSTALL_NAME=''
RUBY_INSTALL_NAME=''
RUBY_SO_NAME=''
RUNRUBY=''
SET_MAKE=''
SHELL='/bin/sh'
SOLIBS=''
STATIC=''
STRIP=''
TEENY='4'
TRY_LINK=''
WINDRES=''
XCFLAGS=''
XLDFLAGS=''
YACC=''
ac_ct_AR=''
ac_ct_CC=''
ac_ct_DLLWRAP=''
ac_ct_NM=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_WINDRES=''
arch=''
bindir='${exec_prefix}/bin'
build='i386-portbld-freebsd6'
build_alias='i386-portbld-freebsd6'
build_cpu='i386'
build_os='freebsd6'
build_vendor='portbld'
configure_args=''
datadir='${prefix}/share'
exec_prefix='NONE'
host='i386-portbld-freebsd6'
host_alias='i386-portbld-freebsd6'
host_cpu='i386'
host_os='freebsd6'
host_vendor='portbld'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,$$,18,;s,^,,'
rubyw_install_name=''
sbindir='${exec_prefix}/sbin'
setup=''
sharedstatedir='${prefix}/com'
sitearch=''
sitedir=''
sysconfdir='${prefix}/etc'
target='i386-portbld-freebsd6'
target_alias='i386-portbld-freebsd6'
target_cpu='i386'
target_os='freebsd6'
target_vendor='portbld'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define USE_BUILTIN_FRAME_ADDRESS 1
configure: exit 1=========================================================================
=============================pkg_info====================================[pre]autoconf-2.59_2 Automatically configure source code on many Un*x platforms
bison-1.75_2,1 A parser generator from FSF, (mostly) compatible with Yacc
cvsup-without-gui-16.1h_2 General network file distribution system optimized for CVS
ezm3-1.2_1 Easier, more portable Modula-3 distribution for building CV
gdbm-1.8.3_2 The GNU database manager
gettext-0.14.5_2 GNU gettext package
gmake-3.80_2 GNU version of 'make' utility
help2man-1.36.4_1 Automatically generating simple manual pages from program o
libiconv-1.9.2_2 A character set conversion library
libtool-1.5.22_2 Generic shared library support script
m4-1.4.4 GNU m4
p5-gettext-1.05_1 Message handling functions
perl-5.8.8 Practical Extraction and Report Language
pkg-config-0.20_2 A utility to retrieve information about installed libraries
popt-1.7_1 A getopt(3) like library with a number of enhancements, fro
tcl-8.3.5_5 Tool Command Language[/pre]================================================================================
================================================================================в чем может быть проблема? в инете предлагали при похожей проблеме переставить gcc.
проблема решилась.... не скзать, что это было логично: надо было запустить make, получить из него ошибку, после чего запустить в полученной директории work/ruby-1.8.4 запустить скрипт configure --host=$HOST для разрешения cross compiling, о чем не упоминается нигде, в том числе и на сайте самого разработчика
собственно гря, на весь этот хелп я наткнулся только когда внес исправление в makefile, добавив к аргументам configure строку --help - чисто случайно.