Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 101755

Summary: net-analyzer/mtr-0.69 fails to compile due to "error: C compiler cannot create executables"
Product: Gentoo/Alt Reporter: Daniel Beckham <dbeckham>
Component: Mac OSXAssignee: Gentoo for Mac OS X <ppc-macos>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Beckham 2005-08-08 08:09:37 UTC
net-analyzer/mtr-0.69 fails to compile on my 10.4 system with the error:

checking for C compiler default output file name... configure: error: C compiler
cannot create executables

Full config.log otuput follows:
===============================================
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 --prefix=/usr --host=powerpc-apple-darwin
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --build=powerpc-apple-darwin
--without-gtk --disable-gtk2 --disable-ipv6

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

hostname = danbeck.local
uname -m = Power Macintosh
uname -r = 8.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT 2005;
root:xnu-792.2.4.obj~3/RELEASE_PPC

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

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = Mach kernel version:
	 Darwin Kernel Version 8.2.0: Fri Jun 24 17:46:54 PDT 2005;
root:xnu-792.2.4.obj~3/RELEASE_PPC
Kernel configured for up to 2 processors.
2 processors are physically available.
Processor type: ppc970 (PowerPC 970)
Processors active: 0 1
Primary memory available: 2.50 gigabytes
Default processor set: 74 tasks, 268 threads, 2 processors
Load average: 1.25, Mach factor: 0.74
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib/portage/bin
PATH: /bin
PATH: /usr/bin
PATH: .
PATH: /usr/X11R6/bin


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

configure:1347: checking for a BSD-compatible install
configure:1402: result: /usr/bin/install -c
configure:1413: checking whether build environment is sane
configure:1456: result: yes
configure:1490: checking for gawk
configure:1519: result: no
configure:1490: checking for mawk
configure:1519: result: no
configure:1490: checking for nawk
configure:1519: result: no
configure:1490: checking for awk
configure:1506: found /usr/bin/awk
configure:1516: result: awk
configure:1526: checking whether make sets $(MAKE)
configure:1546: result: yes
configure:1664: checking for powerpc-apple-darwin-gcc
configure:1690: result: /usr/bin/gcc
configure:1972: checking for C compiler version
configure:1975: /usr/bin/gcc --version </dev/null >&5
powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple Computer, Inc. build
4061)
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:1978: $? = 0
configure:1980: /usr/bin/gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs
Configured with: /private/var/tmp/gcc/gcc-4061.obj~8/src/configure
--disable-checking --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/gcc/darwin/4.0/c++ --build=powerpc-apple-darwin8
--host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
configure:1983: $? = 0
configure:1985: /usr/bin/gcc -V </dev/null >&5
gcc: argument to `-V' is missing
configure:1988: $? = 1
configure:2011: checking for C compiler default output file name
configure:2014: /usr/bin/gcc -O2 -pipe   -Wl,-z,now conftest.c  >&5
/usr/bin/ld: unknown flag: -z
collect2: ld returned 1 exit status
configure:2017: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "mtr"
| #define VERSION "0.69"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2056: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -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=set
ac_cv_env_LDFLAGS_value=' -Wl,-z,now'
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=powerpc-apple-darwin
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=powerpc-apple-darwin
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_CC=/usr/bin/gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /var/tmp/portage/mtr-0.69/work/mtr-0.69/missing --run aclocal'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/mtr-0.69/work/mtr-0.69/missing --run tar'
AUTOCONF='${SHELL} /var/tmp/portage/mtr-0.69/work/mtr-0.69/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/mtr-0.69/work/mtr-0.69/missing --run
autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/mtr-0.69/work/mtr-0.69/missing --run automake'
AWK='awk'
CC='/usr/bin/gcc'
CCDEPMODE=''
CFLAGS='-O2 -pipe'
CPP=''
CPPFLAGS=''
CURSES_OBJ='curses.o'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GTK_CFLAGS=''
GTK_CONFIG=''
GTK_LIBS=''
GTK_OBJ='gtk.o'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS=' -Wl,-z,now'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/portage/mtr-0.69/work/mtr-0.69/missing --run makeinfo'
OBJEXT='o'
PACKAGE='mtr'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
SET_MAKE=''
SHELL='/bin/sh'
VERSION='0.69'
ac_ct_CC=''
am__include=''
am__quote=''
bindir='${exec_prefix}/bin'
build_alias='powerpc-apple-darwin'
datadir='/usr/share'
exec_prefix='NONE'
host_alias='powerpc-apple-darwin'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='/var/tmp/portage/mtr-0.69/work/mtr-0.69/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='/var/lib'
mandir='/usr/share/man'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

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

#define PACKAGE "mtr"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "0.69"

configure: exit 77
Comment 1 Daniel Beckham 2005-08-08 08:14:15 UTC
My emerge --info output.  Forgot to include this earlier:

=================================================================
Portage 2.0.51.22-r2 (default-darwin/macos/10.4, gcc-4.0.0, libsystem-7.1-r0,
8.2.0 Power Macintosh)
=================================================================
System uname: 8.2.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632)
[disabled]
ccache version 2.3 [disabled]
dev-lang/python:     [Not Present]
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  [Not Present]
sys-devel/automake:  [Not Present]
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  7.1
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CBUILD="powerpc-apple-darwin"
CFLAGS="-O2 -pipe"
CHOST="powerpc-apple-darwin"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc emboss ppc-macos userland_Darwin kernel_Darwin elibc_Darwin"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 2 Fabian Groffen gentoo-dev 2005-08-08 08:59:48 UTC
marking as duplicate because it deals with the same -z flag which the linker on
OSX doesn't understand.

*** This bug has been marked as a duplicate of 99577 ***