You are not logged in.
I am trying to compile several pacakges, yet they hang on "configure: error: C++ [or C] compiler cannot create executables". I have tried reinstalling all of base-devel and everything, but it still doesn't work. Am I missing something?
EDIT: It is something wrong with makepkg, as when I compile manually it works fine.
Last edited by smartboyathome (2009-06-29 15:08:49)
Offline
Probably you are trying to install to the root system not $pkgdir . makepkg uses fakeroot so you can't write files to the root system directly .
English is not my native language .
Offline
Probably you are trying to install to the root system not $pkgdir . makepkg uses fakeroot so you can't write files to the root system directly .
That isn't the problem. That message is given during ./configure in a folder I have full permissions to (it is in my home folder). To me, it looks like some C compiler stuff isn't being set right.
Offline
What are you trying to compile?
"I'm Winston Wolfe. I solve problems."
~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~
Offline
check config.log for the error message.
Offline
What are you trying to compile?
Nted is one example. I ran the exact same code inside the PKGBUILD and outside manually and it worked outside, but not inside.
check config.log for the error message.
Here it is, all I could get out of it was posted above, "C++ compiler cannot create executables".
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by nted configure 1.6.0, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ ./configure --prefix=/usr
## --------- ##
## Platform. ##
## --------- ##
hostname = myhost
uname -m = i686
uname -r = 2.6.30-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri Jun 19 21:25:17 UTC 2009
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/bin/perlbin/site
PATH: /usr/bin/perlbin/vendor
PATH: /usr/bin/perlbin/core
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1949: checking for a BSD-compatible install
configure:2017: result: /bin/install -c
configure:2028: checking whether build environment is sane
configure:2071: result: yes
configure:2096: checking for a thread-safe mkdir -p
configure:2135: result: /bin/mkdir -p
configure:2148: checking for gawk
configure:2164: found /bin/gawk
configure:2175: result: gawk
configure:2186: checking whether make sets $(MAKE)
configure:2208: result: yes
configure:2451: checking for g++
configure:2467: found /usr/bin/g++
configure:2478: result: g++
configure:2505: checking for C++ compiler version
configure:2513: g++ --version >&5
g++ (GCC) 4.4.0 20090526 (prerelease)
Copyright (C) 2009 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:2517: $? = 0
configure:2524: g++ -v >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic
Thread model: posix
gcc version 4.4.0 20090526 (prerelease) (GCC)
configure:2528: $? = 0
configure:2535: g++ -V >&5
g++: '-V' option must have argument
configure:2539: $? = 1
configure:2562: checking for C++ compiler default output file name
configure:2584: g++ -march=native -O3 pipe conftest.cpp >&5
g++: pipe: No such file or directory
configure:2588: $? = 1
configure:2626: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "nted"
| #define PACKAGE_TARNAME "nted"
| #define PACKAGE_VERSION "1.6.0"
| #define PACKAGE_STRING "nted 1.6.0"
| #define PACKAGE_BUGREPORT "nted-user@tu-chemnitz.de"
| #define PACKAGE "nted"
| #define VERSION "1.6.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2632: error: in `/home/aabbott/nted/src/nted-1.6.0':
configure:2634: error: C++ compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_ALSA_CFLAGS_set=''
ac_cv_env_ALSA_CFLAGS_value=''
ac_cv_env_ALSA_LIBS_set=''
ac_cv_env_ALSA_LIBS_value=''
ac_cv_env_CAIRO_CFLAGS_set=''
ac_cv_env_CAIRO_CFLAGS_value=''
ac_cv_env_CAIRO_LIBS_set=''
ac_cv_env_CAIRO_LIBS_value=''
ac_cv_env_CCC_set=''
ac_cv_env_CCC_value=''
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=native -O3 pipe'
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=native -O3 pipe'
ac_cv_env_CXX_set=''
ac_cv_env_CXX_value=''
ac_cv_env_FT2_CFLAGS_set=''
ac_cv_env_FT2_CFLAGS_value=''
ac_cv_env_FT2_LIBS_set=''
ac_cv_env_FT2_LIBS_value=''
ac_cv_env_GTK_CFLAGS_set=''
ac_cv_env_GTK_CFLAGS_value=''
ac_cv_env_GTK_LIBS_set=''
ac_cv_env_GTK_LIBS_value=''
ac_cv_env_IMAGE2HEADER_set=''
ac_cv_env_IMAGE2HEADER_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_PANGO_CFLAGS_set=''
ac_cv_env_PANGO_CFLAGS_value=''
ac_cv_env_PANGO_LIBS_set=''
ac_cv_env_PANGO_LIBS_value=''
ac_cv_env_PKG_CONFIG_set=''
ac_cv_env_PKG_CONFIG_value=''
ac_cv_env_PO2XML_set=''
ac_cv_env_PO2XML_value=''
ac_cv_env_XML2POT_set=''
ac_cv_env_XML2POT_value=''
ac_cv_env_XMLTO_set=''
ac_cv_env_XMLTO_value=''
ac_cv_env_YELP_set=''
ac_cv_env_YELP_value=''
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_path_install='/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/aabbott/nted/src/nted-1.6.0/missing --run aclocal-1.10'
ALSA_CFLAGS=''
ALSA_LIBS=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/aabbott/nted/src/nted-1.6.0/missing --run tar'
AUTOCONF='${SHELL} /home/aabbott/nted/src/nted-1.6.0/missing --run autoconf'
AUTOHEADER='${SHELL} /home/aabbott/nted/src/nted-1.6.0/missing --run autoheader'
AUTOMAKE='${SHELL} /home/aabbott/nted/src/nted-1.6.0/missing --run automake-1.10'
AWK='gawk'
CAIRO_CFLAGS=''
CAIRO_LIBS=''
CC=''
CCDEPMODE=''
CFLAGS='-march=native -O3 pipe'
CPPFLAGS=''
CXX='g++'
CXXDEPMODE=''
CXXFLAGS='-march=native -O3 pipe'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
FT2_CFLAGS=''
FT2_LIBS=''
GETTEXT_MACRO_VERSION=''
GMSGFMT=''
GMSGFMT_015=''
GTK_CFLAGS=''
GTK_LIBS=''
IMAGE2HEADER=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
LDFLAGS=''
LIBICONV=''
LIBINTL=''
LIBOBJS=''
LIBS=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/aabbott/nted/src/nted-1.6.0/missing --run makeinfo'
MAKE_DOCBOOKS_FALSE=''
MAKE_DOCBOOKS_TRUE=''
MAKE_DOCS_FALSE=''
MAKE_DOCS_TRUE=''
MKDIR_P='/bin/mkdir -p'
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
OBJEXT=''
PACKAGE='nted'
PACKAGE_BUGREPORT='nted-user@tu-chemnitz.de'
PACKAGE_NAME='nted'
PACKAGE_STRING='nted 1.6.0'
PACKAGE_TARNAME='nted'
PACKAGE_VERSION='1.6.0'
PANGO_CFLAGS=''
PANGO_LIBS=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PO2XML=''
POSUB=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_NLS=''
VERSION='1.6.0'
XGETTEXT=''
XGETTEXT_015=''
XGETTEXT_EXTRA_OPTIONS=''
XML2POT=''
XMLTO=''
YELP=''
ac_ct_CC=''
ac_ct_CXX='g++'
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /home/aabbott/nted/src/nted-1.6.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
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 "nted"
#define PACKAGE_TARNAME "nted"
#define PACKAGE_VERSION "1.6.0"
#define PACKAGE_STRING "nted 1.6.0"
#define PACKAGE_BUGREPORT "nted-user@tu-chemnitz.de"
#define PACKAGE "nted"
#define VERSION "1.6.0"
configure: exit 77
Offline
your C[XX]FLAGS are wrong "pipe" without hypen "-"
Offline
your C[XX]FLAGS are wrong "pipe" without hypen "-"
Ah, thanks!!! No wonder it wasn't working.
Offline