mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Hardik A Gohil <hardik@willowglen.com.my>
To: ptxdist@pengutronix.de
Cc: Prabhakara Rao Kolusu <prabhak@willowglen.com.my>
Subject: [ptxdist] configure: error: cannot run C compiled programs
Date: Mon, 7 Sep 2015 16:56:12 +0800	[thread overview]
Message-ID: <CAEZH62Oa9cbJOqbv5C4P807+avEhLoz7c816k+rVuDHN=y8vnw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1455 bytes --]

Hello,

I am working with phyCORE-AM335x-PD13.1.2 an getting the error

Platform details:

PTXCONF_GNU_TARGET="arm-cortexa8-linux-gnueabihf"
PTXCONF_COMPILER_PREFIX="${PTXCONF_GNU_TARGET}-"

-------------------------------
target: host-pkg-config.prepare
-------------------------------

checking for a BSD-compatible install...
/usr/local/lib/ptxdist-2013.01.0/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p...
/usr/local/lib/ptxdist-2013.01.0/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-host/pkg-config-0.25':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make: ***
[/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/state/host-pkg-config.prepare]
Error 1

attached config.log file


-- 
Regards
Hardik A Gohil
Willowglen Msc Bhd

[-- Attachment #1.2: Type: text/html, Size: 1896 bytes --]

[-- Attachment #2: config.log --]
[-- Type: text/x-log, Size: 12077 bytes --]

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.65.  Invocation command line was

  $ ./configure --prefix=/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host

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

hostname = osserv
uname -m = x86_64
uname -r = 3.11.0-15-generic
uname -s = Linux
uname -v = #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014

/usr/bin/uname -p = unknown
/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: /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/lib/wrapper
PATH: /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/bin
PATH: /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/sbin
PATH: /export/home/os/phyCORE-AM335x-PD13.1.2/selected_toolchain
PATH: /usr/local/lib/ptxdist-2013.01.0/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


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

configure:2362: checking for a BSD-compatible install
configure:2430: result: /usr/local/lib/ptxdist-2013.01.0/bin/install -c
configure:2441: checking whether build environment is sane
configure:2491: result: yes
configure:2632: checking for a thread-safe mkdir -p
configure:2671: result: /usr/local/lib/ptxdist-2013.01.0/bin/mkdir -p
configure:2684: checking for gawk
configure:2700: found /usr/bin/gawk
configure:2711: result: gawk
configure:2722: checking whether make sets $(MAKE)
configure:2744: result: yes
configure:2825: checking whether to enable maintainer-specific portions of Makefiles
configure:2834: result: no
configure:2880: checking build system type
configure:2894: result: x86_64-unknown-linux-gnu
configure:2914: checking host system type
configure:2927: result: x86_64-unknown-linux-gnu
configure:2959: checking for style of include used by make
configure:2987: result: GNU
configure:3057: checking for gcc
configure:3084: result: gcc
configure:3313: checking for C compiler version
configure:3322: gcc --version >&5
gcc (OSELAS.Toolchain-2012.12.1 linaro-4.7-2012.11) 4.7.3 20121106 (prerelease)
Copyright (C) 2012 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:3333: $? = 0
configure:3322: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/export/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/../libexec/gcc/arm-cortexa8-linux-gnueabihf/4.7.3/lto-wrapper
Target: arm-cortexa8-linux-gnueabihf
Configured with: /export/OStoolsrc/OSELAS.Toolchain-2012.12.1/platform-arm-cortexa8-linux-gnueabihf-gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/build-cross/gcc-linaro-4.7-2012.11/configure --build=x86_64-host-linux-gnu --host=x86_64-host-linux-gnu --target=arm-cortexa8-linux-gnueabihf --with-sysroot=/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/sysroot-arm-cortexa8-linux-gnueabihf --disable-multilib --with-float=hard --with-fpu=neon --with-cpu=cortex-a8 --enable-__cxa_atexit --disable-sjlj-exceptions --disable-nls --disable-decimal-float --disable-fixed-point --disable-win32-registry --enable-symvers=gnu --with-pkgversion='OSELAS.Toolchain-2012.12.1 linaro-4.7-2012.11' --enable-threads=posix --with-system-zlib --with-gmp=/export/OStoolsrc/OSELAS.Toolchain-2012.12.1/platform-arm-cortexa8-linux-gnueabihf-gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/sysroot-host --with-mpfr=/export/OStoolsrc/OSELAS.Toolchain-2012.12.1/platform-arm-cortexa8-linux-gnueabihf-gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/sysroot-host --prefix=/opt/OSELAS.Toolchain-2012.12.1/arm-cortexa8-linux-gnueabihf/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized --enable-languages=c,c++ --enable-c99 --enable-long-long --enable-libstdcxx-debug --enable-profile --enable-shared --disable-libssp --enable-checking=release
Thread model: posix
gcc version 4.7.3 20121106 (prerelease) (OSELAS.Toolchain-2012.12.1 linaro-4.7-2012.11) 
configure:3333: $? = 0
configure:3322: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3333: $? = 1
configure:3322: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3333: $? = 1
configure:3353: checking whether the C compiler works
configure:3375: gcc  -isystem /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/include -L/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/lib -Wl,-rpath -Wl,/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages conftest.c  >&5
configure:3379: $? = 0
configure:3428: result: yes
configure:3431: checking for C compiler default output file name
configure:3433: result: a.out
configure:3439: checking for suffix of executables
configure:3446: gcc -o conftest  -isystem /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/include -L/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/lib -Wl,-rpath -Wl,/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages conftest.c  >&5
configure:3450: $? = 0
configure:3472: result: 
configure:3494: checking whether we are cross compiling
configure:3502: gcc -o conftest  -isystem /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/include -L/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/lib -Wl,-rpath -Wl,/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages conftest.c  >&5
configure:3506: $? = 0
configure:3513: ./conftest
./configure: line 3515: ./conftest: cannot execute binary file
configure:3517: $? = 126
configure:3524: error: in `/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-host/pkg-config-0.25':
configure:3528: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

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

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-isystem /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/include'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-L/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/lib -Wl,-rpath -Wl,/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_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_host=x86_64-unknown-linux-gnu
ac_cv_path_install='/usr/local/lib/ptxdist-2013.01.0/bin/install -c'
ac_cv_path_mkdir=/usr/local/lib/ptxdist-2013.01.0/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

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

ACLOCAL='${SHELL} /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-host/pkg-config-0.25/missing --run aclocal-1.11'
ALLOCA=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-host/pkg-config-0.25/missing --run tar'
AR=''
AUTOCONF='${SHELL} /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-host/pkg-config-0.25/missing --run autoconf'
AUTOHEADER='${SHELL} /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-host/pkg-config-0.25/missing --run autoheader'
AUTOMAKE='${SHELL} /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-host/pkg-config-0.25/missing --run automake-1.11'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS='-isystem /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/include'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GLIB_CFLAGS=''
GLIB_LIBS=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS='-L/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/lib -Wl,-rpath -Wl,/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host/lib -Wl,-rpath -Wl,/this/is/a/long/path/to/make/host/tools/relocateable/with/chrpath/when/using/dev/packages'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-host/pkg-config-0.25/missing --run makeinfo'
MKDIR_P='/usr/local/lib/ptxdist-2013.01.0/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='pkg-config'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
POPT_LIBS=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
USE_INSTALLED_GLIB_FALSE=''
USE_INSTALLED_GLIB_TRUE=''
USE_INSTALLED_POPT_FALSE=''
USE_INSTALLED_POPT_TRUE=''
VERSION='0.25'
WARN_CFLAGS=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/build-host/pkg-config-0.25/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='/usr/local/lib/ptxdist-2013.01.0/bin/mkdir -p'
oldincludedir='/usr/include'
pc_path=''
pdfdir='${docdir}'
prefix='/export/home/os/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
target_alias=''
use_indirect_deps=''

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

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "pkg-config"
#define VERSION "0.25"

configure: exit 1

[-- Attachment #3: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2015-09-07  8:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-07  8:56 Hardik A Gohil [this message]
2015-09-07  9:40 ` Juergen Borleis
2015-09-08  2:43   ` Hardik A Gohil
2015-09-09  4:06     ` Hardik A Gohil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEZH62Oa9cbJOqbv5C4P807+avEhLoz7c816k+rVuDHN=y8vnw@mail.gmail.com' \
    --to=hardik@willowglen.com.my \
    --cc=prabhak@willowglen.com.my \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox