From: Hardik A Gohil <hardik@willowglen.com.my>
To: Juergen Borleis <jbe@pengutronix.de>
Cc: ptxdist@pengutronix.de,
Prabhakara Rao Kolusu <prabhak@willowglen.com.my>
Subject: Re: [ptxdist] configure: error: cannot run C compiled programs
Date: Wed, 9 Sep 2015 12:06:09 +0800 [thread overview]
Message-ID: <CAEZH62NjfPqJ6jiriKbwR5YAF_2_=tsu2OC-WTB+3WCUhipc1A@mail.gmail.com> (raw)
In-Reply-To: <CAEZH62N7ZLcjmOLxq7CG109LAUivzrW6EfarSvEJeezc9jcVNQ@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3169 bytes --]
Hello,
from config.log
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)
why cross-gcc is getting selected here where host-gcc need to be selected ?
what wrong going on in environment ?
On Tue, Sep 8, 2015 at 10:43 AM, Hardik A Gohil <hardik@willowglen.com.my>
wrote:
>
>
> On Mon, Sep 7, 2015 at 5:40 PM, Juergen Borleis <jbe@pengutronix.de>
> wrote:
>
>> Hi,
>>
>> On Monday 07 September 2015 10:56:12 Hardik A Gohil wrote:
>> > 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
>>
>> Strange. The autotools are using your native host compiler and its result
>> isn't
>> executable.
>>
>> [...]
>> 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
>> [...]
>>
>> Can you manually compile and run other programs?
>>
>
> I tried to manually compile using
>
> #./configure
> --prefix=/opt/PHYTEC_BSPs/phyCORE-AM335x-PD13.1.2/platform-phyCORE-AM335x/sysroot-host
>
>
> # make
>
> I am able to compile.
>
> --
> Regards
> Hardik A Gohil
> Willowglen Msc Bhd
>
>
--
Regards
Hardik A Gohil
Willowglen Msc Bhd
[-- Attachment #1.2: Type: text/html, Size: 4606 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2015-09-09 4:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-07 8:56 Hardik A Gohil
2015-09-07 9:40 ` Juergen Borleis
2015-09-08 2:43 ` Hardik A Gohil
2015-09-09 4:06 ` Hardik A Gohil [this message]
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='CAEZH62NjfPqJ6jiriKbwR5YAF_2_=tsu2OC-WTB+3WCUhipc1A@mail.gmail.com' \
--to=hardik@willowglen.com.my \
--cc=jbe@pengutronix.de \
--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