All of lore.kernel.org
 help / color / mirror / Atom feed
* Trouble with yocto sdk in collaboration with eclipse and cmake
@ 2016-07-29  8:27 Hartwig, Guido
  2016-07-29 18:46 ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Hartwig, Guido @ 2016-07-29  8:27 UTC (permalink / raw)
  To: yocto

Hi,
I have some trouble with the yocto sdk in collaboration with eclipse and yocto CMake project. I have install all necessary eclipse plugins and linked my sdk with the yocto-plugin as described in the manual. When I try to build the "Hello World" yocto cmake project it fails with following message:

..
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler
 "/opt/puck/1.0.0/sysroots/x86_64-pucksdk-linux/usr/bin/arm-kostal-linux-gnueabi/arm-kostal-linux-gnueabi-gcc"
  is not able to compile a simple test program
...

This error occurs because the compiler is called with the wrong flags.
The SDK environment-setup script export the following environment variables
export CC="arm-kostal-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8 --sysroot=$SDKTARGETSYSROOT"
export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/work/x86_64-nativesdk-pucksdk-linux/meta-environment-scb/1.0-r8=/usr/src/debug/meta-environment-scb/1.0-r8 -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/sysroots/x86_64-nativesdk-pucksdk-linux= "

The eclipse environment (set by the yocto plugin) shows the following environment:
CC = arm-kostal-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8 --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueabi
CFLAGS =  --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueabi
OECMAKE_C_COMPILER = arm-kostal-linux-gnueabi-gcc
OECMAKE_C_FLAGS =    --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueabi

I assume that yocto cmake uses the OECMAKE* variables to build the program. 
The error occurs because the following compiler options (Tunes) are missing "-march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8"

Now my questions
1.	Is it right that the yocto plugin cuts off the tunes from the OECMAKE_C_COMPILER?
2.	Is there a reason that this compiler options are not appended to the CFLAGS?

Thank you for your help



Mit freundlichen Grüßen / Kind regards

KOSTAL Industrie Elektrik GmbH 

Dipl.-Ing.
Guido Hartwig 
IE1 Entwicklung Elektronik
R & D Electronics

Lange Eck 11, 58099 Hagen
Deutschland / Germany
Telefon: +49 2331 8040 - 688
Telefax: +49 2331 8040 - 4660
E-Mail: g.hartwig@kostal.com

Internet: http://www.kostal.com/industrie



KOSTAL Industrie Elektrik GmbH - Sitz Lüdenscheid, Registergericht Iserlohn HRB 3924 - USt-Id-Nr./Vat No.: DE 813742170
Postanschrift: An der Bellmerei 10, D-58513 Lüdenscheid * Telefon: +49  2351 16-0 * Telefax: +49  2351 16-2400
Werksanschrift: Lange Eck 11, D-58099 Hagen * Tel. +49 2331 8040-601 * Fax +49 2331 8040-602
Geschäftsführung: Axel Zimmermann, Dipl.-Ing. Marwin Kinzl, Dipl.-Oec. Andreas Kostal



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Trouble with yocto sdk in collaboration with eclipse and cmake
  2016-07-29  8:27 Trouble with yocto sdk in collaboration with eclipse and cmake Hartwig, Guido
@ 2016-07-29 18:46 ` Khem Raj
  2016-08-01  6:04   ` Hartwig, Guido
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2016-07-29 18:46 UTC (permalink / raw)
  To: Hartwig, Guido; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 3489 bytes --]


> On Jul 29, 2016, at 1:27 AM, Hartwig, Guido <g.hartwig@kostal.com> wrote:
> 
> Hi,
> I have some trouble with the yocto sdk in collaboration with eclipse and yocto CMake project. I have install all necessary eclipse plugins and linked my sdk with the yocto-plugin as described in the manual. When I try to build the "Hello World" yocto cmake project it fails with following message:
> 
> ..
> CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler
> "/opt/puck/1.0.0/sysroots/x86_64-pucksdk-linux/usr/bin/arm-kostal-linux-gnueabi/arm-kostal-linux-gnueabi-gcc"
>  is not able to compile a simple test program
> ...
> 
> This error occurs because the compiler is called with the wrong flags.
> The SDK environment-setup script export the following environment variables
> export CC="arm-kostal-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8 --sysroot=$SDKTARGETSYSROOT"
> export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/work/x86_64-nativesdk-pucksdk-linux/meta-environment-scb/1.0-r8=/usr/src/debug/meta-environment-scb/1.0-r8 -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/sysroots/x86_64-nativesdk-pucksdk-linux= "
> 
> The eclipse environment (set by the yocto plugin) shows the following environment:
> CC = arm-kostal-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8 --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueabi
> CFLAGS =  --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueabi
> OECMAKE_C_COMPILER = arm-kostal-linux-gnueabi-gcc
> OECMAKE_C_FLAGS =    --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueabi
> 
> I assume that yocto cmake uses the OECMAKE* variables to build the program.
> The error occurs because the following compiler options (Tunes) are missing "-march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8"
> 
> Now my questions
> 1.	Is it right that the yocto plugin cuts off the tunes from the OECMAKE_C_COMPILER?
> 2.	Is there a reason that this compiler options are not appended to the CFLAGS?

CFLAGS should be passed down to cmake build system. That seems to be the problem you
are seeing. Have you tried to append CFLAGS to OECMAKE_C_FLAGS ?

> 
> Thank you for your help
> 
> 
> 
> Mit freundlichen Grüßen / Kind regards
> 
> KOSTAL Industrie Elektrik GmbH
> 
> Dipl.-Ing.
> Guido Hartwig
> IE1 Entwicklung Elektronik
> R & D Electronics
> 
> Lange Eck 11, 58099 Hagen
> Deutschland / Germany
> Telefon: +49 2331 8040 - 688
> Telefax: +49 2331 8040 - 4660
> E-Mail: g.hartwig@kostal.com
> 
> Internet: http://www.kostal.com/industrie
> 
> 
> 
> KOSTAL Industrie Elektrik GmbH - Sitz Lüdenscheid, Registergericht Iserlohn HRB 3924 - USt-Id-Nr./Vat No.: DE 813742170
> Postanschrift: An der Bellmerei 10, D-58513 Lüdenscheid * Telefon: +49  2351 16-0 * Telefax: +49  2351 16-2400
> Werksanschrift: Lange Eck 11, D-58099 Hagen * Tel. +49 2331 8040-601 * Fax +49 2331 8040-602
> Geschäftsführung: Axel Zimmermann, Dipl.-Ing. Marwin Kinzl, Dipl.-Oec. Andreas Kostal
> 
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Trouble with yocto sdk in collaboration with eclipse and cmake
  2016-07-29 18:46 ` Khem Raj
@ 2016-08-01  6:04   ` Hartwig, Guido
  2016-08-01 13:50     ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Hartwig, Guido @ 2016-08-01  6:04 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

I have manually added the flags from CC (-march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8) to the OECMAKE_C_FLAGS and then it works. I try to find a way, where CMAKE works out of the Box with yocto-plugin. I think the plugin is the problem for this issue.

-----Ursprüngliche Nachricht-----
Von: Khem Raj [mailto:raj.khem@gmail.com] 
Gesendet: Freitag, 29. Juli 2016 20:46
An: Hartwig, Guido <g.hartwig@kostal.com>
Cc: yocto@yoctoproject.org
Betreff: Re: [yocto] Trouble with yocto sdk in collaboration with eclipse and cmake


> On Jul 29, 2016, at 1:27 AM, Hartwig, Guido <g.hartwig@kostal.com> wrote:
> 
> Hi,
> I have some trouble with the yocto sdk in collaboration with eclipse and yocto CMake project. I have install all necessary eclipse plugins and linked my sdk with the yocto-plugin as described in the manual. When I try to build the "Hello World" yocto cmake project it fails with following message:
> 
> ..
> CMake Error at 
> /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/opt/puck/1.0.0/sysroots/x86_64-pucksdk-linux/usr/bin/arm-kostal-linux-gnueabi/arm-kostal-linux-gnueabi-gcc"
>  is not able to compile a simple test program ...
> 
> This error occurs because the compiler is called with the wrong flags.
> The SDK environment-setup script export the following environment 
> variables export CC="arm-kostal-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8 --sysroot=$SDKTARGETSYSROOT"
> export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/work/x86_64-nativesdk-pucksdk-linux/meta-environment-scb/1.0-r8=/usr/src/debug/meta-environment-scb/1.0-r8 -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/sysroots/x86_64-nativesdk-pucksdk-linux= "
> 
> The eclipse environment (set by the yocto plugin) shows the following environment:
> CC = arm-kostal-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon  
> -mfloat-abi=hard -mcpu=cortex-a8 
> --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueab
> i CFLAGS =  
> --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueab
> i OECMAKE_C_COMPILER = arm-kostal-linux-gnueabi-gcc
> OECMAKE_C_FLAGS =    --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueabi
> 
> I assume that yocto cmake uses the OECMAKE* variables to build the program.
> The error occurs because the following compiler options (Tunes) are missing "-march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8"
> 
> Now my questions
> 1.	Is it right that the yocto plugin cuts off the tunes from the OECMAKE_C_COMPILER?
> 2.	Is there a reason that this compiler options are not appended to the CFLAGS?

CFLAGS should be passed down to cmake build system. That seems to be the problem you are seeing. Have you tried to append CFLAGS to OECMAKE_C_FLAGS ?

> 
> Thank you for your help
> 
> 
> 
> Mit freundlichen Grüßen / Kind regards
> 
> KOSTAL Industrie Elektrik GmbH
> 
> Dipl.-Ing.
> Guido Hartwig
> IE1 Entwicklung Elektronik
> R & D Electronics
> 
> Lange Eck 11, 58099 Hagen
> Deutschland / Germany
> Telefon: +49 2331 8040 - 688
> Telefax: +49 2331 8040 - 4660
> E-Mail: g.hartwig@kostal.com
> 
> Internet: http://www.kostal.com/industrie
> 
> 
> 
> KOSTAL Industrie Elektrik GmbH - Sitz Lüdenscheid, Registergericht 
> Iserlohn HRB 3924 - USt-Id-Nr./Vat No.: DE 813742170
> Postanschrift: An der Bellmerei 10, D-58513 Lüdenscheid * Telefon: +49  
> 2351 16-0 * Telefax: +49  2351 16-2400
> Werksanschrift: Lange Eck 11, D-58099 Hagen * Tel. +49 2331 8040-601 * 
> Fax +49 2331 8040-602
> Geschäftsführung: Axel Zimmermann, Dipl.-Ing. Marwin Kinzl, Dipl.-Oec. 
> Andreas Kostal
> 
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Trouble with yocto sdk in collaboration with eclipse and cmake
  2016-08-01  6:04   ` Hartwig, Guido
@ 2016-08-01 13:50     ` Khem Raj
  2016-08-01 15:01       ` Andersen, Christian
  2016-08-02  6:18       ` Hartwig, Guido
  0 siblings, 2 replies; 6+ messages in thread
From: Khem Raj @ 2016-08-01 13:50 UTC (permalink / raw)
  To: Hartwig, Guido; +Cc: yocto

On Mon, Aug 1, 2016 at 12:04 AM, Hartwig, Guido <g.hartwig@kostal.com> wrote:
> I have manually added the flags from CC (-march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8) to the OECMAKE_C_FLAGS and then it works. I try to find a way, where CMAKE works out of the Box with yocto-plugin. I think the plugin is the problem for this issue.

Please open a bug for this issue in bugzilla

>
> -----Ursprüngliche Nachricht-----
> Von: Khem Raj [mailto:raj.khem@gmail.com]
> Gesendet: Freitag, 29. Juli 2016 20:46
> An: Hartwig, Guido <g.hartwig@kostal.com>
> Cc: yocto@yoctoproject.org
> Betreff: Re: [yocto] Trouble with yocto sdk in collaboration with eclipse and cmake
>
>
>> On Jul 29, 2016, at 1:27 AM, Hartwig, Guido <g.hartwig@kostal.com> wrote:
>>
>> Hi,
>> I have some trouble with the yocto sdk in collaboration with eclipse and yocto CMake project. I have install all necessary eclipse plugins and linked my sdk with the yocto-plugin as described in the manual. When I try to build the "Hello World" yocto cmake project it fails with following message:
>>
>> ..
>> CMake Error at
>> /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/opt/puck/1.0.0/sysroots/x86_64-pucksdk-linux/usr/bin/arm-kostal-linux-gnueabi/arm-kostal-linux-gnueabi-gcc"
>>  is not able to compile a simple test program ...
>>
>> This error occurs because the compiler is called with the wrong flags.
>> The SDK environment-setup script export the following environment
>> variables export CC="arm-kostal-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8 --sysroot=$SDKTARGETSYSROOT"
>> export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/work/x86_64-nativesdk-pucksdk-linux/meta-environment-scb/1.0-r8=/usr/src/debug/meta-environment-scb/1.0-r8 -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/sysroots/x86_64-nativesdk-pucksdk-linux= "
>>
>> The eclipse environment (set by the yocto plugin) shows the following environment:
>> CC = arm-kostal-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon
>> -mfloat-abi=hard -mcpu=cortex-a8
>> --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueab
>> i CFLAGS =
>> --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueab
>> i OECMAKE_C_COMPILER = arm-kostal-linux-gnueabi-gcc
>> OECMAKE_C_FLAGS =    --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueabi
>>
>> I assume that yocto cmake uses the OECMAKE* variables to build the program.
>> The error occurs because the following compiler options (Tunes) are missing "-march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8"
>>
>> Now my questions
>> 1.    Is it right that the yocto plugin cuts off the tunes from the OECMAKE_C_COMPILER?
>> 2.    Is there a reason that this compiler options are not appended to the CFLAGS?
>
> CFLAGS should be passed down to cmake build system. That seems to be the problem you are seeing. Have you tried to append CFLAGS to OECMAKE_C_FLAGS ?
>
>>
>> Thank you for your help
>>
>>
>>
>> Mit freundlichen Grüßen / Kind regards
>>
>> KOSTAL Industrie Elektrik GmbH
>>
>> Dipl.-Ing.
>> Guido Hartwig
>> IE1 Entwicklung Elektronik
>> R & D Electronics
>>
>> Lange Eck 11, 58099 Hagen
>> Deutschland / Germany
>> Telefon: +49 2331 8040 - 688
>> Telefax: +49 2331 8040 - 4660
>> E-Mail: g.hartwig@kostal.com
>>
>> Internet: http://www.kostal.com/industrie
>>
>>
>>
>> KOSTAL Industrie Elektrik GmbH - Sitz Lüdenscheid, Registergericht
>> Iserlohn HRB 3924 - USt-Id-Nr./Vat No.: DE 813742170
>> Postanschrift: An der Bellmerei 10, D-58513 Lüdenscheid * Telefon: +49
>> 2351 16-0 * Telefax: +49 2351 16-2400
>> Werksanschrift: Lange Eck 11, D-58099 Hagen * Tel. +49 2331 8040-601 *
>> Fax +49 2331 8040-602
>> Geschäftsführung: Axel Zimmermann, Dipl.-Ing. Marwin Kinzl, Dipl.-Oec.
>> Andreas Kostal
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Trouble with yocto sdk in collaboration with eclipse and cmake
  2016-08-01 13:50     ` Khem Raj
@ 2016-08-01 15:01       ` Andersen, Christian
  2016-08-02  6:18       ` Hartwig, Guido
  1 sibling, 0 replies; 6+ messages in thread
From: Andersen, Christian @ 2016-08-01 15:01 UTC (permalink / raw)
  To: yocto

Hi,

>> On Jul 29, 2016, at 1:27 AM, Hartwig, Guido <g.hartwig@kostal.com> wrote:
>>
>> Hi,
>> I have some trouble with the yocto sdk in collaboration with eclipse and yocto CMake project. I have install all necessary eclipse plugins and linked my sdk with the yocto-plugin as described in the manual. When I try to build the "Hello World" yocto cmake project it fails with following message:
>>
>> ..
>> CMake Error at
>> /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/opt/puck/1.0.0/sysroots/x86_64-pucksdk-linux/usr/bin/arm-kostal-linux-gnueabi/arm-kostal-linux-gnueabi-gcc"
>>  is not able to compile a simple test program ...
>>
>> This error occurs because the compiler is called with the wrong flags.

the error seems to be already fixed in the eclipse-poky repository. Commit #8315d3ec84 to luna/krogoth branch:

org.yocto.sdk.ide: Use CFLAGS from CC variable in cmake toolchain file
The CC and CXX variables imported from the Yocto build environment
may contain additional compiler flags after the compiler name. Extract
those and add them to cmake toolchain file variables, too.

This is the exact issue we have seen. Unfortunately this change has been commited after the tag for yocto-2.1 was created and so this is not released yet. After building a new version of the eclipse plugin based on the luna/krogoth branch the error mentioned above is gone.

Regards
Christian


KOSTAL Industrie Elektrik GmbH - Sitz Lüdenscheid, Registergericht Iserlohn HRB 3924 - USt-Id-Nr./Vat No.: DE 813742170
Postanschrift: An der Bellmerei 10, D-58513 Lüdenscheid * Telefon: +49  2351 16-0 * Telefax: +49  2351 16-2400
Werksanschrift: Lange Eck 11, D-58099 Hagen * Tel. +49 2331 8040-601 * Fax +49 2331 8040-602
Geschäftsführung: Axel Zimmermann, Dipl.-Ing. Marwin Kinzl, Dipl.-Oec. Andreas Kostal


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Trouble with yocto sdk in collaboration with eclipse and cmake
  2016-08-01 13:50     ` Khem Raj
  2016-08-01 15:01       ` Andersen, Christian
@ 2016-08-02  6:18       ` Hartwig, Guido
  1 sibling, 0 replies; 6+ messages in thread
From: Hartwig, Guido @ 2016-08-02  6:18 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

I saw that this issue is already solved in the masterbranch of the yocto eclipse plugin (http://git.yoctoproject.org/cgit/cgit.cgi/eclipse-poky/commit/?id=06fa262d309628e31648994c55324bc70f5d7dc8). Thank you for your support.

-----Ursprüngliche Nachricht-----
Von: Khem Raj [mailto:raj.khem@gmail.com] 
Gesendet: Montag, 1. August 2016 15:50
An: Hartwig, Guido <g.hartwig@kostal.com>
Cc: yocto@yoctoproject.org
Betreff: Re: [yocto] Trouble with yocto sdk in collaboration with eclipse and cmake

On Mon, Aug 1, 2016 at 12:04 AM, Hartwig, Guido <g.hartwig@kostal.com> wrote:
> I have manually added the flags from CC (-march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8) to the OECMAKE_C_FLAGS and then it works. I try to find a way, where CMAKE works out of the Box with yocto-plugin. I think the plugin is the problem for this issue.

Please open a bug for this issue in bugzilla

>
> -----Ursprüngliche Nachricht-----
> Von: Khem Raj [mailto:raj.khem@gmail.com]
> Gesendet: Freitag, 29. Juli 2016 20:46
> An: Hartwig, Guido <g.hartwig@kostal.com>
> Cc: yocto@yoctoproject.org
> Betreff: Re: [yocto] Trouble with yocto sdk in collaboration with 
> eclipse and cmake
>
>
>> On Jul 29, 2016, at 1:27 AM, Hartwig, Guido <g.hartwig@kostal.com> wrote:
>>
>> Hi,
>> I have some trouble with the yocto sdk in collaboration with eclipse and yocto CMake project. I have install all necessary eclipse plugins and linked my sdk with the yocto-plugin as described in the manual. When I try to build the "Hello World" yocto cmake project it fails with following message:
>>
>> ..
>> CMake Error at
>> /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message): The C compiler "/opt/puck/1.0.0/sysroots/x86_64-pucksdk-linux/usr/bin/arm-kostal-linux-gnueabi/arm-kostal-linux-gnueabi-gcc"
>>  is not able to compile a simple test program ...
>>
>> This error occurs because the compiler is called with the wrong flags.
>> The SDK environment-setup script export the following environment 
>> variables export CC="arm-kostal-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8 --sysroot=$SDKTARGETSYSROOT"
>> export CFLAGS=" -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/work/x86_64-nativesdk-pucksdk-linux/meta-environment-scb/1.0-r8=/usr/src/debug/meta-environment-scb/1.0-r8 -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/hartwig02/Workspace/build-puck/build/tmp/sysroots/x86_64-nativesdk-pucksdk-linux= "
>>
>> The eclipse environment (set by the yocto plugin) shows the following environment:
>> CC = arm-kostal-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon 
>> -mfloat-abi=hard -mcpu=cortex-a8 
>> --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnuea
>> b
>> i CFLAGS =
>> --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnuea
>> b i OECMAKE_C_COMPILER = arm-kostal-linux-gnueabi-gcc
>> OECMAKE_C_FLAGS =    --sysroot=/opt/puck/1.0.0/sysroots/cortexa8hf-neon-kostal-linux-gnueabi
>>
>> I assume that yocto cmake uses the OECMAKE* variables to build the program.
>> The error occurs because the following compiler options (Tunes) are missing "-march=armv7-a -marm -mfpu=neon  -mfloat-abi=hard -mcpu=cortex-a8"
>>
>> Now my questions
>> 1.    Is it right that the yocto plugin cuts off the tunes from the OECMAKE_C_COMPILER?
>> 2.    Is there a reason that this compiler options are not appended to the CFLAGS?
>
> CFLAGS should be passed down to cmake build system. That seems to be the problem you are seeing. Have you tried to append CFLAGS to OECMAKE_C_FLAGS ?
>
>>
>> Thank you for your help
>>
>>
>>
>> Mit freundlichen Grüßen / Kind regards
>>
>> KOSTAL Industrie Elektrik GmbH
>>
>> Dipl.-Ing.
>> Guido Hartwig
>> IE1 Entwicklung Elektronik
>> R & D Electronics
>>
>> Lange Eck 11, 58099 Hagen
>> Deutschland / Germany
>> Telefon: +49 2331 8040 - 688
>> Telefax: +49 2331 8040 - 4660
>> E-Mail: g.hartwig@kostal.com
>>
>> Internet: http://www.kostal.com/industrie
>>
>>
>>
>> KOSTAL Industrie Elektrik GmbH - Sitz Lüdenscheid, Registergericht 
>> Iserlohn HRB 3924 - USt-Id-Nr./Vat No.: DE 813742170
>> Postanschrift: An der Bellmerei 10, D-58513 Lüdenscheid * Telefon: 
>> +49
>> 2351 16-0 * Telefax: +49 2351 16-2400
>> Werksanschrift: Lange Eck 11, D-58099 Hagen * Tel. +49 2331 8040-601 
>> * Fax +49 2331 8040-602
>> Geschäftsführung: Axel Zimmermann, Dipl.-Ing. Marwin Kinzl, Dipl.-Oec.
>> Andreas Kostal
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>
>
>

KOSTAL Industrie Elektrik GmbH - Sitz Lüdenscheid, Registergericht Iserlohn HRB 3924 - USt-Id-Nr./Vat No.: DE 813742170
Postanschrift: An der Bellmerei 10, D-58513 Lüdenscheid * Telefon: +49  2351 16-0 * Telefax: +49  2351 16-2400
Werksanschrift: Lange Eck 11, D-58099 Hagen * Tel. +49 2331 8040-601 * Fax +49 2331 8040-602
Geschäftsführung: Axel Zimmermann, Dipl.-Ing. Marwin Kinzl, Dipl.-Oec. Andreas Kostal


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-02  6:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-29  8:27 Trouble with yocto sdk in collaboration with eclipse and cmake Hartwig, Guido
2016-07-29 18:46 ` Khem Raj
2016-08-01  6:04   ` Hartwig, Guido
2016-08-01 13:50     ` Khem Raj
2016-08-01 15:01       ` Andersen, Christian
2016-08-02  6:18       ` Hartwig, Guido

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.