* hello world fails in eclipse
@ 2016-02-29 14:35 Markus Haege
2016-02-29 16:24 ` Mark Hatle
0 siblings, 1 reply; 2+ messages in thread
From: Markus Haege @ 2016-02-29 14:35 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]
Hello there,
I searched the web for a while, figured out that I'm not the first person
with this problem
but I don't find the solution.
I use Debian 8 with Eclipse luna Release 2.
I installed the yocto plugins in eclipse as described in the manual.
Now I want to compile a hello world for the meta-raspberrypi but it fails:
The C compiler
"/home/markus/poky/meta-raspberrypi/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc"
is not able to compile a simple test program.
/home/markus/poky/meta-raspberrypi/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/ld:
error: cmTryCompileExec1319352149 uses VFP register arguments,
CMakeFiles/cmTryCompileExec1319352149.dir/testCCompiler.c.o does not
I sourced the environment setup so eclipse finds under
properties/C++Build/Environment the settings. That's all I achieved.
I read about flags to set but don't know where. Something about floating
point. What I read was very old.
Thanks to any help
Markus
[-- Attachment #2: Type: text/html, Size: 1379 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: hello world fails in eclipse
2016-02-29 14:35 hello world fails in eclipse Markus Haege
@ 2016-02-29 16:24 ` Mark Hatle
0 siblings, 0 replies; 2+ messages in thread
From: Mark Hatle @ 2016-02-29 16:24 UTC (permalink / raw)
To: yocto
On 2/29/16 8:35 AM, Markus Haege wrote:
> Hello there,
>
> I searched the web for a while, figured out that I'm not the first person with
> this problem
> but I don't find the solution.
>
> I use Debian 8 with Eclipse luna Release 2.
> I installed the yocto plugins in eclipse as described in the manual.
>
> Now I want to compile a hello world for the meta-raspberrypi but it fails:
>
> The C compiler
>
> "/home/markus/poky/meta-raspberrypi/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc"
> is not able to compile a simple test program.
>
> /home/markus/poky/meta-raspberrypi/tmp/sysroots/x86_64-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/5.2.0/ld:
> error: cmTryCompileExec1319352149 uses VFP register arguments,
> CMakeFiles/cmTryCompileExec1319352149.dir/testCCompiler.c.o does not
I'm not sure about the eclipse aspect of this, but the failure is indicating
that one item is trying to use one ABI, and other items are using a different
ABI. Resulting in incompatibilities. (This for ARM is EABI and HF EABI --
error says "cmTryCompileExec1319352149" is the HF EABI.)
About the best I can suggest it to check that eclipse imported not only the name
of the compile, but also the required compiler (and linker) arguments from the
environment file.
Also verify that any produced make (cmake) files are not overriding the compile
and link cflags with something else.
> I sourced the environment setup so eclipse finds under
> properties/C++Build/Environment the settings. That's all I achieved.
> I read about flags to set but don't know where. Something about floating point.
> What I read was very old.
The flags in question that are incompatible are:
-mfloat-abi=hard
-mfloat-abi=softfp
--Mark
> Thanks to any help
>
> Markus
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-29 16:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-29 14:35 hello world fails in eclipse Markus Haege
2016-02-29 16:24 ` Mark Hatle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.