From owner-freebsd-questions@FreeBSD.ORG Sun Feb 8 22:24:55 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 137BC1065672 for ; Sun, 8 Feb 2009 22:24:55 +0000 (UTC) (envelope-from davidcollins001@gmail.com) Received: from mail-bw0-f163.google.com (mail-bw0-f163.google.com [209.85.218.163]) by mx1.freebsd.org (Postfix) with ESMTP id 583B58FC0C for ; Sun, 8 Feb 2009 22:24:53 +0000 (UTC) (envelope-from davidcollins001@gmail.com) Received: by bwz7 with SMTP id 7so874070bwz.19 for ; Sun, 08 Feb 2009 14:24:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=SxSB2JPfiiM6lRIGygUV17+tze7HWwVMEG7/BtksdSM=; b=t7By3sQALCW5Th3KMbhfmosBg2HOp1wAxSvQyLb1KyIi40H/hQEzR0QtPs11PGl9Qx 2GoDSg4Ot9VOt8yP5pcgxiabL86VAqe3bKA9A+YanaladL2NoPYgZlOcgD3bNnwITROU eDcgHRmshrJlZ3EjNNtQ89vhhLGcrQGFR+tdo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=b/KJQShV8+6UhjeAoSzPdKj8DPBaVoWbfqZokQB3BQaiglwi2G+txIiz+TOMF8A/wn u9YG4f2fQPTfph+6I2Cbi3NbxJPT684g/l5yIzPLPJaZniR8t6U84cYhylTgzdnaPyb9 dFocXPLGZPacTNAKHPOm/GhGIYhXHMuxLi/70= MIME-Version: 1.0 Received: by 10.223.118.15 with SMTP id t15mr1130430faq.101.1234131892390; Sun, 08 Feb 2009 14:24:52 -0800 (PST) In-Reply-To: <20090208203553.GA99661@melon.esperance-linux.co.uk> References: <1b30fd140902050032x20e84ef6oc5030c99e6a62d81@mail.gmail.com> <498ABACC.3060102@bsdforen.de> <1b30fd140902050218m1660ad97ife6b0a679d8a946a@mail.gmail.com> <20090207075521.GA93084@melon.esperance-linux.co.uk> <1b30fd140902080816v7dfb8bb6g6f3c9a3d162f48c0@mail.gmail.com> <20090208203553.GA99661@melon.esperance-linux.co.uk> Date: Sun, 8 Feb 2009 22:24:52 +0000 Message-ID: <1b30fd140902081424p1d75e304y9f4ef9f9b472328c@mail.gmail.com> From: David Collins To: Frank Shute , David Collins , Dominic Fandrey , freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: broken ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: davidcollins001@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2009 22:24:55 -0000 > 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@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@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@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@gnu.org" #define PACKAGE "grub" #define VERSION "0.97" configure: exit 77