Modify

Opened 10 years ago

Closed 10 years ago

Last modified 5 years ago

#2901 closed defect (worksforme)

Error compiling iperf

Reported by: uniix@… Owned by: florian
Priority: low Milestone: Kamikaze 7.09
Component: packages Version:
Keywords: iperf compile error on IXP4XX Cc:

Description

Error compiling iperf on IXP4XX svn r9964

[xxxxx@radius kamikaze]$ make V=99 package/iperf-compile
Checking 'bison'... ok.
Checking 'npe-ucode'... ok.
make[1]: Entering directory `/home/xxxxx/kamikaze'
make[2]: Entering directory `/home/xxxxx/kamikaze/package/uclibc++'
make[2]: Leaving directory `/home/xxxxx/kamikaze/package/uclibc++'
make[2]: Entering directory `/home/xxxxx/kamikaze/package/iperf'
(cd /home/xxxxx/kamikaze/build_dir/armeb/iperf-2.0.2/./; if [ -x ./configure ]; then cp -fpR /home/xxxxx/kamikaze/scripts/config.{guess,sub} /home/xxxxx/kamikaze/build_dir/armeb/iperf-2.0.2// && AR=armeb-linux-uclibc-ar AS="armeb-linux-uclibc-gcc -c -Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts" LD=armeb-linux-uclibc-ld NM=armeb-linux-uclibc-nm CC="armeb-linux-uclibc-gcc" GCC="armeb-linux-uclibc-gcc" CXX=armeb-linux-uclibc-g++ RANLIB=armeb-linux-uclibc-ranlib STRIP=armeb-linux-uclibc-strip OBJCOPY=armeb-linux-uclibc-objcopy OBJDUMP=armeb-linux-uclibc-objdump SIZE=armeb-linux-uclibc-size CFLAGS="-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts " CXXFLAGS="-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts " CPPFLAGS="-I/home/xxxxx/kamikaze/staging_dir/armeb/usr/include -I/home/xxxxx/kamikaze/staging_dir/armeb/include " LDFLAGS="-L/home/xxxxx/kamikaze/staging_dir/armeb/usr/lib -L/home/xxxxx/kamikaze/staging_dir/armeb/lib " PKG_CONFIG_PATH="/home/xxxxx/kamikaze/staging_dir/armeb/usr/lib/pkgconfig:/home/xxxxx/kamikaze/staging_dir/host/usr/lib/pkgconfig" PKG_CONFIG_LIBDIR="/home/xxxxx/kamikaze/staging_dir/armeb/usr/lib/pkgconfig" CXX="g++-uc" CXXFLAGS="$CXX_CFLAGS -fno-rtti"   ./configure --target=armeb-linux --host=armeb-linux --build=i386-redhat-linux --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --disable-multicast  ; fi; )
configure: loading site script /home/xxxxx/kamikaze/include/site/armeb-linux-uclibc
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for armeb-linux-strip... armeb-linux-uclibc-strip
checking for armeb-linux-g++... g++-uc
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
make[2]: *** [/home/xxxxx/kamikaze/build_dir/armeb/iperf-2.0.2/.configured] Error 77
make[2]: Leaving directory `/home/xxxxx/kamikaze/package/iperf'
make[1]: *** [package/iperf/compile] Error 2
make[1]: Leaving directory `/home/xxxxx/kamikaze'
make: *** [package/iperf-compile] Error 2

Attachments (0)

Change History (14)

comment:1 Changed 10 years ago by florian

  • Owner changed from developers to florian
  • Priority changed from high to low
  • Status changed from new to assigned

Could you paste the content of /home/xxxxx/kamikaze/build_dir/armeb/iperf-2.0.2/config.log please ?

comment:2 Changed 10 years ago by florian

  • Resolution set to worksforme
  • Status changed from assigned to closed

Looks like some unresolved dependency, such as uclibc++

comment:3 Changed 10 years ago by uniix@…

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Soory for the late reply. I was on holiday. Thank you. Here are the config.log

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

It was created by Iperf configure 2.0.2, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --target=armeb-linux --host=armeb-linux --build=i386-redhat-linux --program-prefix= --program-suffix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --disable-multicast

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

hostname = radius.putranet.com
uname -m = i686
uname -r = 2.6.22.14-72.fc6
uname -s = Linux
uname -v = #1 SMP Wed Nov 21 15:12:59 EST 2007

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

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /home/xxxxx/kamikaze/staging_dir/toolchain-armeb_gcc4.1.2/bin
PATH: /home/xxxxx/kamikaze/staging_dir/host/bin
PATH: /home/xxxxx/kamikaze/staging_dir/armeb/host/bin
PATH: /home/xxxxx/kamikaze/staging_dir/toolchain-armeb_gcc4.1.2/bin
PATH: /home/xxxxx/kamikaze/staging_dir/host/bin
PATH: /home/xxxxx/kamikaze/staging_dir/armeb/host/bin
PATH: /home/xxxxx/kamikaze/staging_dir/toolchain-armeb_gcc4.1.2/bin
PATH: /home/xxxxx/kamikaze/staging_dir/host/bin
PATH: /home/xxxxx/kamikaze/staging_dir/armeb/host/bin
PATH: /usr/lib/qt-3.3/bin
PATH: /usr/kerberos/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /home/xxxxx/bin


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

configure:1221: loading site script /home/xxxxx/kamikaze/include/site/armeb-linux-uclibc
| #!/bin/sh
| 
| ac_cv_c_littleendian=${ac_cv_c_littleendian=no}
| ac_cv_c_bigendian=${ac_cv_c_bigendian=yes}
| 
| ac_cv_sizeof___int64=0
| ac_cv_sizeof_char=1
| ac_cv_sizeof_int=4
| ac_cv_sizeof_int16_t=2
| ac_cv_sizeof_int32_t=4
| ac_cv_sizeof_int64_t=8
| ac_cv_sizeof_long_int=4
| ac_cv_sizeof_long_long=8
| ac_cv_sizeof_long=4
| ac_cv_sizeof_off_t=4
| ac_cv_sizeof_short_int=2
| ac_cv_sizeof_short=2
| ac_cv_sizeof_size_t=4
| ac_cv_sizeof_u_int16_t=2
| ac_cv_sizeof_u_int32_t=4
| ac_cv_sizeof_u_int64_t=8
| ac_cv_sizeof_uint16_t=2
| ac_cv_sizeof_uint32_t=4
| ac_cv_sizeof_uint64_t=8
| ac_cv_sizeof_unsigned_int=4
| ac_cv_sizeof_unsigned_long=4
| ac_cv_sizeof_unsigned_short=2
| ac_cv_sizeof_void_p=4
| 
| . $TOPDIR/include/site/linux-uclibc
| 
configure:1369: checking for a BSD-compatible install
configure:1424: result: /usr/bin/install -c
configure:1435: checking whether build environment is sane
configure:1478: result: yes
configure:1543: checking for gawk
configure:1559: found /bin/gawk
configure:1569: result: gawk
configure:1579: checking whether make sets $(MAKE)
configure:1599: result: yes
configure:1675: checking for armeb-linux-strip
configure:1701: result: armeb-linux-uclibc-strip
configure:1813: checking for armeb-linux-g++
configure:1839: result: g++-uc
configure:1897: checking for C++ compiler version
configure:1900: g++-uc --version </dev/null >&5
./configure: line 1901: g++-uc: command not found
configure:1903: $? = 127
configure:1905: g++-uc -v </dev/null >&5
./configure: line 1906: g++-uc: command not found
configure:1908: $? = 127
configure:1910: g++-uc -V </dev/null >&5
./configure: line 1911: g++-uc: command not found
configure:1913: $? = 127
configure:1936: checking for C++ compiler default output file name
configure:1939: g++-uc  -fno-rtti -I/home/xxxxx/kamikaze/staging_dir/armeb/usr/include -I/home/xxxxx/kamikaze/staging_dir/armeb/include  -L/home/xxxxx/kamikaze/staging_dir/armeb/usr/lib -L/home/xxxxx/kamikaze/staging_dir/armeb/lib  conftest.cc  >&5
./configure: line 1940: g++-uc: command not found
configure:1942: $? = 127
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "Iperf"
| #define PACKAGE_TARNAME "iperf"
| #define PACKAGE_VERSION "2.0.2"
| #define PACKAGE_STRING "Iperf 2.0.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "iperf"
| #define VERSION "2.0.2"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:1981: error: C++ compiler cannot create executables
See `config.log' for more details.

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

ac_cv_c_bigendian=yes
ac_cv_c_gettext_without_libintl=yes
ac_cv_c_littleendian=no
ac_cv_c_long_double=no
ac_cv_conv_longlong_to_float=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=armeb-linux-uclibc-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-Os -pipe -mabi=aapcs-linux -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float '
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-I/home/xxxxx/kamikaze/staging_dir/armeb/usr/include -I/home/xxxxx/kamikaze/staging_dir/armeb/include '
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=' -fno-rtti'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=g++-uc
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/home/xxxxx/kamikaze/staging_dir/armeb/usr/lib -L/home/xxxxx/kamikaze/staging_dir/armeb/lib '
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i386-redhat-linux
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=armeb-linux
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=armeb-linux
ac_cv_func___adjtimex=yes
ac_cv_func___va_copy=no
ac_cv_func__exit=yes
ac_cv_func_bcmp=yes
ac_cv_func_bcopy=yes
ac_cv_func_bzero=yes
ac_cv_func_fchmod=yes
ac_cv_func_getaddrinfo=yes
ac_cv_func_getcwd=yes
ac_cv_func_getdomainname=yes
ac_cv_func_getpgrp_void=yes
ac_cv_func_getpwuid_r=yes
ac_cv_func_index=yes
ac_cv_func_lstat=yes
ac_cv_func_lstat_dereferences_slashed_symlink=yes
ac_cv_func_lstat_empty_string_bug=no
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_malloc_works=yes
ac_cv_func_memcmp_clean=yes
ac_cv_func_memcmp_working=yes
ac_cv_func_posix_getpwuid_r=yes
ac_cv_func_pthread_key_delete=yes
ac_cv_func_realloc_0_nonnull=yes
ac_cv_func_realloc_works=yes
ac_cv_func_rename=yes
ac_cv_func_rindex=yes
ac_cv_func_setlocale=yes
ac_cv_func_setpgrp_void=yes
ac_cv_func_setresuid=no
ac_cv_func_setvbuf_reversed=no
ac_cv_func_stat_empty_string_bug=no
ac_cv_func_stat_ignores_trailing_slash=no
ac_cv_func_strerror=yes
ac_cv_func_strftime=yes
ac_cv_func_utimes=yes
ac_cv_func_va_copy=no
ac_cv_func_vsnprintf=yes
ac_cv_have_accrights_in_msghdr=no
ac_cv_have_broken_snprintf=no
ac_cv_have_control_in_msghdr=yes
ac_cv_have_decl_sys_siglist=no
ac_cv_have_openpty_ctty_bug=yes
ac_cv_have_space_d_name_in_struct_dirent=yes
ac_cv_header_netinet_sctp_h=no
ac_cv_header_netinet_sctp_uio_h=no
ac_cv_int64_t=yes
ac_cv_lbl_unaligned_fail=no
ac_cv_linux_kernel_pppoe=yes
ac_cv_linux_vers=2
ac_cv_multicast=no
ac_cv_pack_bitfields_reversed=yes
ac_cv_path_LDCONFIG=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CXX=g++-uc
ac_cv_prog_STRIP=armeb-linux-uclibc-strip
ac_cv_prog_make_make_set=yes
ac_cv_regexec_segfault_emptystr=no
ac_cv_sctp=no
ac_cv_sizeof___int64=0
ac_cv_sizeof_char=1
ac_cv_sizeof_int=4
ac_cv_sizeof_int16_t=2
ac_cv_sizeof_int32_t=4
ac_cv_sizeof_int64_t=8
ac_cv_sizeof_long=4
ac_cv_sizeof_long_int=4
ac_cv_sizeof_long_long=8
ac_cv_sizeof_off_t=4
ac_cv_sizeof_short=2
ac_cv_sizeof_short_int=2
ac_cv_sizeof_size_t=4
ac_cv_sizeof_u_int16_t=2
ac_cv_sizeof_u_int32_t=4
ac_cv_sizeof_u_int64_t=8
ac_cv_sizeof_uint16_t=2
ac_cv_sizeof_uint32_t=4
ac_cv_sizeof_uint64_t=8
ac_cv_sizeof_unsigned_int=4
ac_cv_sizeof_unsigned_long=4
ac_cv_sizeof_unsigned_short=2
ac_cv_sizeof_void_p=4
ac_cv_sys_restartable_syscalls=yes
ac_cv_time_r_type=POSIX
ac_cv_type_suseconds_t=yes
ac_cv_uchar=no
ac_cv_uint=yes
ac_cv_uint64_t=yes
ac_cv_ulong=yes
ac_cv_ushort=yes
ac_cv_va_copy=no
ac_cv_va_val_copy=yes

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

ACLOCAL='${SHELL} /home/xxxxx/kamikaze/build_dir/armeb/iperf-2.0.2/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/xxxxx/kamikaze/build_dir/armeb/iperf-2.0.2/missing --run tar'
AUTOCONF='${SHELL} /home/xxxxx/kamikaze/build_dir/armeb/iperf-2.0.2/missing --run autoconf'
AUTOHEADER='${SHELL} /home/xxxxx/kamikaze/build_dir/armeb/iperf-2.0.2/missing --run autoheader'
AUTOMAKE='${SHELL} /home/xxxxx/kamikaze/build_dir/armeb/iperf-2.0.2/missing --run automake-1.9'
AWK='gawk'
CC='armeb-linux-uclibc-gcc'
CCDEPMODE=''
CFLAGS='-Os -pipe -mabi=aapcs-linux -march=armv5te -mtune=xscale -funit-at-a-time -fhonour-copts -msoft-float '
CPP=''
CPPFLAGS='-I/home/xxxxx/kamikaze/staging_dir/armeb/usr/include -I/home/xxxxx/kamikaze/staging_dir/armeb/include '
CXX='g++-uc'
CXXDEPMODE=''
CXXFLAGS=' -fno-rtti'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-L/home/xxxxx/kamikaze/staging_dir/armeb/usr/lib -L/home/xxxxx/kamikaze/staging_dir/armeb/lib '
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/xxxxx/kamikaze/build_dir/armeb/iperf-2.0.2/missing --run makeinfo'
OBJEXT=''
PACKAGE='iperf'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='Iperf'
PACKAGE_STRING='Iperf 2.0.2'
PACKAGE_TARNAME='iperf'
PACKAGE_VERSION='2.0.2'
PATH_SEPARATOR=':'
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
RANLIB='armeb-linux-uclibc-ranlib'
SET_MAKE=''
SHELL='/bin/sh'
STRIP='armeb-linux-uclibc-strip'
STRIP_BEGIN=''
STRIP_DUMMY=''
STRIP_END=''
VERSION='2.0.2'
WEB100_CFLAGS=''
WEB100_CONFIG=''
WEB100_LIBS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
acx_pthread_config=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='/usr/bin'
build='i386-redhat-linux'
build_alias='i386-redhat-linux'
build_cpu=''
build_os=''
build_vendor=''
datadir='/usr/share'
exec_prefix='/usr'
host='armeb-linux'
host_alias='armeb-linux'
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='/usr/info'
install_sh='/home/xxxxx/kamikaze/build_dir/armeb/iperf-2.0.2/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='/usr/lib'
localstatedir='/var'
mandir='/usr/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/usr'
program_transform_name='s,$$,,;s,^,,'
sbindir='/usr/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias='armeb-linux'

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

#define PACKAGE "iperf"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "Iperf"
#define PACKAGE_STRING "Iperf 2.0.2"
#define PACKAGE_TARNAME "iperf"
#define PACKAGE_VERSION "2.0.2"
#define VERSION "2.0.2"

configure: exit 77

comment:4 Changed 10 years ago by florian

  • Resolution set to worksforme
  • Status changed from reopened to closed

You did not resolve the uclibc++ dependency, please symlink this package to make sure it will get compiled before iperf.

comment:5 Changed 10 years ago by uniix@…

How to modify its symlink? Where is the symlink located?

comment:6 Changed 10 years ago by uniix@…

  • Resolution worksforme deleted
  • Status changed from closed to reopened

Sorry but how to modify its symlink? Where is the symlink located?

comment:7 Changed 10 years ago by kaloz

  • Resolution set to invalid
  • Status changed from reopened to closed

comment:8 Changed 10 years ago by kaloz

You've copied/symlinked only the iperf directory. Do the same with uclibc++, or follow the docs and instead of manually playing around do a "make symlinks".

comment:9 Changed 10 years ago by uniix@…

I already update my feeds & do make symlinks but still cannot compile

comment:10 Changed 10 years ago by anonymous

  • Resolution invalid deleted
  • Status changed from closed to reopened

I get this error too. Please find attached the config.log file.

comment:11 follow-up: Changed 10 years ago by anonymous

I couldn't attach the file. However my platform is brcm47xx.
Thanks

comment:12 in reply to: ↑ 11 Changed 10 years ago by anonymous

Replying to anonymous:

I couldn't attach the file. However my platform is brcm47xx.
Thanks

My fault... I had to download (from svn) the uclibc++ lib.
However, it is not immediate to understand that you need to download another library.

comment:13 Changed 10 years ago by florian

  • Resolution set to worksforme
  • Status changed from reopened to closed

comment:14 Changed 5 years ago by anonymous

given this is one of the top results for this error on google ...

the solution i found is to

1) read the docs http://wiki.openwrt.org/doc/howto/buildroot.exigence#procedure

2) more specifically run "./scripts/feeds install -a" or "./scripts/feeds install uclibc++" as descibed in #3 of the section i linked.

appologies for raising a dead thread.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.