All of lore.kernel.org
 help / color / mirror / Atom feed
* Weston fails to compile when DEBUG_BUILD is enabled
@ 2018-05-03  3:21 Keskinarkaus, Teemu
  2018-05-22 20:57 ` Otavio Salvador
  0 siblings, 1 reply; 3+ messages in thread
From: Keskinarkaus, Teemu @ 2018-05-03  3:21 UTC (permalink / raw)
  To: 'meta-freescale@yoctoproject.org'

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

Hi,

I'm using latest Yocto 2.4 (rocko) and latest meta-freescale with i.MX6Q custom target. I'm trying to build debugfs for my Yocto image so I can debug it better and have these options in local.conf to make it happen:

DEBUG_BUILD = "1"
IMAGE_GEN_DEBUGFS = "1"
PACKAGE_DEBUG_SPLIT_STYLE = "debug-file-directory"

After those changes the Weston fails to compile.

This is the error:

| configure: error: in `/home/teemu/proj/vi2/debug-test/src/platform/vs/build/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/weston/2.0.0-r0.13/build':
| configure: error: C compiler cannot create executables

from config.log I can see this

--
configure:3209: arm-poky-linux-gnueabi-gcc  -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/home/teemu/proj/vi2/debug-test/src/platform/vs/build/tmp/sysroots/vs  -O -fno-omit-frame-pointer -g -feliminate-unused-debug-types -fdebug-prefix-map=/
home/teemu/proj/vi2/debug-test/src/platform/vs/build/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/weston/2.0.0-r0.13=/usr/src/debug/weston/2.0.0-r0.13 -fdebug-prefix-map=/home/teemu/proj/vi2/debug-test/src/platform/vs/build/tmp/work/cortexa9hf-neon-mx6qdl-poky-linu
x-gnueabi/weston/2.0.0-r0.13/recipe-sysroot-native= -fdebug-prefix-map=/home/teemu/proj/vi2/debug-test/src/platform/vs/build/tmp/sysroots/vs=  -pipe-DLINUX -DEGL_API_FB -DWL_EGL_PLATFORM  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c  >&5
arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-pipe-DLINUX'
configure:3213: $? = 1
configure:3251: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "weston"
| #define PACKAGE_TARNAME "weston"
| #define PACKAGE_VERSION "2.0.0"
| #define PACKAGE_STRING "weston 2.0.0"
| #define PACKAGE_BUGREPORT "https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=2.0.0"
| #define PACKAGE_URL "http://wayland.freedesktop.org"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3256: error: in `/home/teemu/proj/vi2/debug-test/src/platform/vs/build/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/weston/2.0.0-r0.13/build':
configure:3258: error: C compiler cannot create executables
See `config.log' for more details
--

I'm not that much of a autobuild/configure expert that I know how to fix that.

-Teemu Keskinarkaus

________________________________

Actuant Corporation Email Notice

This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL.
This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received.

Thank you.

[-- Attachment #2: Type: text/html, Size: 8057 bytes --]

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

* Re: Weston fails to compile when DEBUG_BUILD is enabled
  2018-05-03  3:21 Weston fails to compile when DEBUG_BUILD is enabled Keskinarkaus, Teemu
@ 2018-05-22 20:57 ` Otavio Salvador
  2018-05-24  3:20   ` Teemu K
  0 siblings, 1 reply; 3+ messages in thread
From: Otavio Salvador @ 2018-05-22 20:57 UTC (permalink / raw)
  To: Keskinarkaus, Teemu; +Cc: meta-freescale

On Thu, May 3, 2018 at 12:21 AM, Keskinarkaus, Teemu
<teemu.keskinarkaus@crosscontrol.com> wrote:
> I’m using latest Yocto 2.4 (rocko) and latest meta-freescale with i.MX6Q
> custom target. I’m trying to build debugfs for my Yocto image so I can debug
> it better and have these options in local.conf to make it happen:

Please check if this happens in master, specially without using i.MX
weston fork.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854          Mobile: +1 (347) 903-9750


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

* Re: Weston fails to compile when DEBUG_BUILD is enabled
  2018-05-22 20:57 ` Otavio Salvador
@ 2018-05-24  3:20   ` Teemu K
  0 siblings, 0 replies; 3+ messages in thread
From: Teemu K @ 2018-05-24  3:20 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: meta-freescale

On Tue, May 22, 2018 at 11:57 PM, Otavio Salvador
<otavio.salvador@ossystems.com.br> wrote:
> On Thu, May 3, 2018 at 12:21 AM, Keskinarkaus, Teemu
> <teemu.keskinarkaus@crosscontrol.com> wrote:
>> I’m using latest Yocto 2.4 (rocko) and latest meta-freescale with i.MX6Q
>> custom target. I’m trying to build debugfs for my Yocto image so I can debug
>> it better and have these options in local.conf to make it happen:
>
> Please check if this happens in master, specially without using i.MX
> weston fork.

Based on my tests, the vanilla version Weston in morty compiles ok
with debugfs. i.MX fork fails to compile even if using master.

-Teemu Keskinarkaus


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

end of thread, other threads:[~2018-05-24  3:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03  3:21 Weston fails to compile when DEBUG_BUILD is enabled Keskinarkaus, Teemu
2018-05-22 20:57 ` Otavio Salvador
2018-05-24  3:20   ` Teemu K

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.