broken ports

David Collins davidcollins001 at gmail.com
Sun Feb 8 14:24:55 PST 2009


> I'm wondering whether your use of sudo is mucking things up and it's a
> permissions problem. i.e: it's running make OK but freaking out when
> it tries to invoke the compiler in the config stuff.
>
> I always build my ports using portupgrade as root.
>
> Maybe you could try logging in as root & then running it. If you'd
> rather not do that, portupgrade has got an -s switch which allows you
> to run the commands via sudo but you'd probably have to put cc & c++
> in your sudoers (aswell as other commands e.g: install(1)).

I tried running portupgrade as root user, not sudo, and no success.
The bottom line is
--->  Packages processed: 2 done, 69 ignored, 133 skipped and 28 failed

I think the most pressing issue is that I am not able to compile. I
have watched the output periodically and I saw a lot of configure
errors. Picking one at random this is the config.log (grub) file, the
error being "compiler is unable to create executables" exit 77:

I think if this were to be solved then my ports would be unbroken!


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by GRUB configure 0.97, which was
generated by GNU Autoconf 2.62.  Invocation command line was

  $ ./configure --libdir=/usr/local/share --prefix=/usr/local
--mandir=/usr/local/man --infodir=/usr/local/info/
--build=i386-freebsd-freebsd7.0

## --------- ##
## Platform. ##
## --------- ##

hostname = viper.homeunix.com
uname -m = i386
uname -r = 7.0-RELEASE-p7
uname -s = FreeBSD
uname -v = FreeBSD 7.0-RELEASE-p7 #0: Sun Dec 21 12:33:45 UTC 2008
root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/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: /home/davidcollins/Library/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2048: checking for a BSD-compatible install
configure:2116: result: /usr/bin/install -c -o root -g wheel
configure:2127: checking whether build environment is sane
configure:2170: result: yes
configure:2232: checking for gawk
configure:2248: found /usr/local/bin/gawk
configure:2259: result: gawk
configure:2270: checking whether gmake sets $(MAKE)
configure:2292: result: yes
configure:2483: checking build system type
configure:2501: result: i386-freebsd-freebsd7.0
configure:2523: checking host system type
configure:2538: result: i386-freebsd-freebsd7.0
configure:2576: checking whether to enable maintainer-specific
portions of Makefiles
configure:2585: result: no
configure:2704: checking for gcc
configure:2731: result: cc
configure:2805: checking for gcc
configure:2832: result: cc
configure:3070: checking for C compiler version
configure:3078: cc --version >&5
cc (GCC) 4.2.1 20070719  [FreeBSD]
Copyright (C) 2007 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:3082: $? = 0
configure:3089: cc -v >&5
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719  [FreeBSD]
configure:3093: $? = 0
configure:3100: cc -V >&5
cc: '-V' option must have argument
configure:3104: $? = 1
configure:3127: checking for C compiler default output file name
configure:3149: cc -O2 -fno-strict-aliasing -pipe   conftest.c  >&5
/usr/bin/ld: cannot find -lgcc_s
configure:3153: $? = 1
configure:3191: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "GRUB"
| #define PACKAGE_TARNAME "grub"
| #define PACKAGE_VERSION "0.97"
| #define PACKAGE_STRING "GRUB 0.97"
| #define PACKAGE_BUGREPORT "bug-grub at gnu.org"
| #define PACKAGE "grub"
| #define VERSION "0.97"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3197: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i386-freebsd-freebsd7.0
ac_cv_env_CC_set=set
ac_cv_env_CC_value=cc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -fno-strict-aliasing -pipe'
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i386-freebsd-freebsd7.0
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=i386-freebsd-freebsd7.0
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=cc
ac_cv_prog_make_gmake_set=yes
lt_cv_sys_max_cmd_len=262144

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='/usr/local/bin/aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /usr/ports/sysutils/grub/work/grub-0.97/missing --run tar'
AUTOCONF='/usr/local/bin/autoconf-2.62'
AUTOHEADER='/usr/local/bin/autoheader-2.62'
AUTOMAKE='/usr/local/bin/automake-1.9'
AWK='gawk'
BUILD_EXAMPLE_KERNEL_FALSE=''
BUILD_EXAMPLE_KERNEL_TRUE=''
CC='cc'
CCAS=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS='-O2 -fno-strict-aliasing -pipe'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DISKLESS_SUPPORT_FALSE=''
DISKLESS_SUPPORT_TRUE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FSYS_CFLAGS=''
GRAPHICS_SUPPORT_FALSE=''
GRAPHICS_SUPPORT_TRUE=''
GREP=''
GRUB_CFLAGS=''
GRUB_LIBS=''
HERCULES_SUPPORT_FALSE=''
HERCULES_SUPPORT_TRUE=''
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'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /usr/ports/sysutils/grub/work/grub-0.97/missing
--run makeinfo'
NETBOOT_DRIVERS=''
NETBOOT_SUPPORT_FALSE=''
NETBOOT_SUPPORT_TRUE=''
NET_CFLAGS=''
NET_EXTRAFLAGS=''
OBJCOPY=''
OBJEXT=''
PACKAGE='grub'
PACKAGE_BUGREPORT='bug-grub at gnu.org'
PACKAGE_NAME='GRUB'
PACKAGE_STRING='GRUB 0.97'
PACKAGE_TARNAME='grub'
PACKAGE_VERSION='0.97'
PATH_SEPARATOR=':'
PERL=''
RANLIB=''
SERIAL_SPEED_SIMULATION_FALSE=''
SERIAL_SPEED_SIMULATION_TRUE=''
SERIAL_SUPPORT_FALSE=''
SERIAL_SUPPORT_TRUE=''
SET_MAKE=''
SHELL='/bin/sh'
STAGE1_CFLAGS=''
STAGE2_CFLAGS=''
STRIP=''
VERSION='0.97'
ac_ct_CC='cc'
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i386-freebsd-freebsd7.0'
build_alias='i386-freebsd-freebsd7.0'
build_cpu='i386'
build_os='freebsd7.0'
build_vendor='freebsd'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i386-freebsd-freebsd7.0'
host_alias=''
host_cpu='i386'
host_os='freebsd7.0'
host_vendor='freebsd'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/local/info'
install_sh='/usr/ports/sysutils/grub/work/grub-0.97/install-sh'
libdir='/usr/local/share'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='/usr/local/man'
mkdir_p='$(mkinstalldirs)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "GRUB"
#define PACKAGE_TARNAME "grub"
#define PACKAGE_VERSION "0.97"
#define PACKAGE_STRING "GRUB 0.97"
#define PACKAGE_BUGREPORT "bug-grub at gnu.org"
#define PACKAGE "grub"
#define VERSION "0.97"

configure: exit 77


More information about the freebsd-questions mailing list