Subject: configure: error: C compiler cannot create executables in each package in pkgsrc
To: None <pkgsrc-users@netbsd.org>
From: Josh Seidel <oddik@hotmail.com>
List: pkgsrc-users
Date: 08/07/2006 17:07:18
I recently updated my NetBSD release from 2.0.2 to 3.0.1 for the i386
platform. I followed the process:
http://wiki.onetbsd.org/index.php/How_to_upgrade_NetBSD to do the upgrade. I
have installed my own custom linux kernel for my i686.
I also updated via cvs pkgsrc when I was done using the command: cd
/usr/pkgsrc; cvs update -dP;
When I was done, I went into the bootstrap directory I ran; ./clean;
./bootstrap
Both of which compeleted successfully. Now I am trying to build
pkgtools/pkg_install (or any other package that I try) and I ALWAYS get the
build error, weither I try `make update` or `make`.
I have `export CC=/usr/src/tools/bin/i386--netbsdelf-gcc` and `export
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/pkg/java/sun-1.5/bin:/usr/src/tools/bin`
The output from `make update` is:
/usr/bin/make
===> Installing dependencies for pkg_install-20060720
===> Overriding tools for pkg_install-20060720
===> Extracting for pkg_install-20060720
===> Patching for pkg_install-20060720
===> Creating toolchain wrappers for pkg_install-20060720
===> Configuring for pkg_install-20060720
checking build system type... i386-unknown-netbsdelf3.0.
checking host system type... i386-unknown-netbsdelf3.0.
checking whether make sets $(MAKE)... yes
checking for gcc... i386--netbsdelf-gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
*** Error code 77
Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
The contents of pkgtoolsconfig.log are:
PATH: /usr/pkgsrc/pkgtools/pkg_install/work/.wrapper/bin
PATH: /usr/pkgsrc/pkgtools/pkg_install/work/.buildlink/bin
PATH: /usr/pkgsrc/pkgtools/pkg_install/work/.gcc/bin
PATH: /usr/pkgsrc/pkgtools/pkg_install/work/.tools/bin
PATH: /usr/pkg/bin
PATH: /home/josh/bin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/X11R6/bin
PATH: /usr/pkg/bin
PATH: /usr/pkg/sbin
PATH: /usr/games
PATH: /usr/local/bin
PATH: /usr/local/sbin
PATH: /usr/pkg/java/sun-1.5/bin
PATH: /usr/src/tools/bin
PATH: /usr/pkg/bin
PATH: /usr/X11R6/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1357: checking build system type
configure:1375: result: i386-unknown-netbsdelf3.0.
configure:1383: checking host system type
configure:1397: result: i386-unknown-netbsdelf3.0.
configure:1410: checking whether make sets $(MAKE)
configure:1430: result: yes
configure:1485: checking for gcc
configure:1511: result: i386--netbsdelf-gcc
configure:1755: checking for C compiler version
configure:1758: i386--netbsdelf-gcc --version </dev/null >&5
i386--netbsdelf-gcc (GCC) 3.3.3 (NetBSD nb3 20040520)
Copyright (C) 2003 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:1761: $? = 0
configure:1763: i386--netbsdelf-gcc -v </dev/null >&5
Reading specs from /usr/src/tools/lib/gcc-lib/i386--netbsdelf/3.3.3/specs
Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc/configure
--target=i386--
netbsdelf --disable-nls --enable-long-long --disable-multilib
--enable-threads -
-program-transform-name=s,^,i386--netbsdelf-, --enable-languages=c c++ objc
f77
--prefix=/usr/src/tools
Thread model: posix
gcc version 3.3.3 (NetBSD nb3 20040520)
configure:1766: $? = 0
configure:1768: i386--netbsdelf-gcc -V </dev/null >&5
i386--netbsdelf-gcc: couldn't run
`/usr/src/tools/bin/i386--netbsdelf-gcc--I/usr
/pkgsrc/pkgtools/pkg_install/work/.buildlink/include': No such file or
directory
configure:1771: $? = 1
configure:1794: checking for C compiler default output file name
configure:1797: i386--netbsdelf-gcc -O2 -DDEF_UMASK=0022
-I/usr/pkgsrc/pkgtools/
pkg_install/work/libnbcompat
-L/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat
-Wl,-R/usr/pkg/lib conftest.c >&5
/usr/src/tools/lib/gcc-lib/i386--netbsdelf/3.3.3/../../../../i386--netbsdelf/bin
/ld: crt0.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:1800: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libnbcompat"
| #define PACKAGE_TARNAME "libnbcompat"
| #define PACKAGE_VERSION "20040911"
| #define PACKAGE_STRING "libnbcompat 20040911"
| #define PACKAGE_BUGREPORT "grant@NetBSD.org"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:1838: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i386-unknown-netbsdelf3.0.
ac_cv_build_alias=i386-unknown-netbsdelf3.0.
ac_cv_env_CC_set=set
ac_cv_env_CC_value=i386--netbsdelf-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-O2
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-DDEF_UMASK=0022
-I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat
-Wl,-R/usr/pkg/lib'
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
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-unknown-netbsdelf3.0.
ac_cv_host_alias=i386-unknown-netbsdelf3.0.
ac_cv_path_ECHO=echo
ac_cv_path_EGREP=/usr/bin/egrep
ac_cv_path_ENV=/usr/bin/env
ac_cv_path_FALSE=false
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_TEST=test
ac_cv_path_TRUE=true
ac_cv_prog_ac_ct_CC=i386--netbsdelf-gcc
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AUTOCONF=''
AUTOHEADER=''
AWK='/usr/bin/awk'
CANONICAL_HOST='i386-unknown-netbsdelf3.0.'
CC='i386--netbsdelf-gcc'
CFLAGS='-O2'
CPP=''
CPPFLAGS='-DDEF_UMASK=0022
-I/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='/usr/bin/egrep'
EXEEXT=''
INCLUDES=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS='-L/usr/pkgsrc/pkgtools/pkg_install/work/libnbcompat
-Wl,-R/usr/pkg/lib'
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT='grant@NetBSD.org'
PACKAGE_NAME='libnbcompat'
PACKAGE_STRING='libnbcompat 20040911'
PACKAGE_TARNAME='libnbcompat'
PACKAGE_VERSION='20040911'
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
ac_ct_CC='i386--netbsdelf-gcc'
ac_ct_RANLIB=''
bindir='${exec_prefix}/bin'
build='i386-unknown-netbsdelf3.0.'
build_alias=''
build_cpu='i386'
build_os='netbsdelf3.0.'
build_vendor='unknown'
datadir='${prefix}/share'
exec_prefix='NONE'
host='i386-unknown-netbsdelf3.0.'
host_alias=''
host_cpu='i386'
host_os='netbsdelf3.0.'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_BUGREPORT "grant@NetBSD.org"
#define PACKAGE_NAME "libnbcompat"
#define PACKAGE_STRING "libnbcompat 20040911"
#define PACKAGE_TARNAME "libnbcompat"
#define PACKAGE_VERSION "20040911"
configure: exit 77
If anyone has an idea on what is going on and a fix. The main issue I think
is at hand is from the output in config.log: "configure:1838: error: C
compiler cannot create executables" seems out of place because the compiler
should be creating object files to be passed to ld for linking to an
executable. Any ideas would be greatly appreciated.
Sincerely,
Josh