All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] btrfs-tools: workaround DEBUG_BUILD for arm
@ 2015-03-10  9:25 Robert Yang
  2015-03-10  9:25 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Yang @ 2015-03-10  9:25 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit 0542472969d0eb28fd44da97e4e01d69d864d157:

  scripts/runqemu: clarify help text (2015-03-05 17:47:10 +0000)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib rbt/btrfs-tools
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/btrfs-tools

Robert Yang (1):
  btrfs-tools: workaround DEBUG_BUILD for arm

 .../btrfs-tools/btrfs-tools_git.bb                 |    7 +++++++
 1 file changed, 7 insertions(+)

-- 
1.7.9.5



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

* [PATCH 1/1] btrfs-tools: workaround DEBUG_BUILD for arm
  2015-03-10  9:25 [PATCH 0/1] btrfs-tools: workaround DEBUG_BUILD for arm Robert Yang
@ 2015-03-10  9:25 ` Robert Yang
  2015-03-10 10:32   ` Richard Purdie
  2015-03-10 16:28   ` Khem Raj
  0 siblings, 2 replies; 7+ messages in thread
From: Robert Yang @ 2015-03-10  9:25 UTC (permalink / raw)
  To: openembedded-core

Workaround when:
MACHINE = "qemuarm"
DEBUG_BUILD = "1"

Errors:
{standard input}: Assembler messages:
{standard input}:3383: Error: invalid operands (.text and *UND* sections) for `-'
{standard input}:3389: Error: invalid operands (.text and *UND* sections) for `-'
make: *** [cmds-fi-disk_usage.o] Error 1

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 .../btrfs-tools/btrfs-tools_git.bb                 |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
index d86075c..382ee7c 100644
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
@@ -28,3 +28,10 @@ do_install () {
 }
 
 BBCLASSEXTEND = "native"
+
+# Workaround when DEBUG_BUILD:
+# {standard input}: Assembler messages:
+# {standard input}:3383: Error: invalid operands (.text and *UND* sections) for `-'
+# {standard input}:3389: Error: invalid operands (.text and *UND* sections) for `-'
+# make: *** [cmds-fi-disk_usage.o] Error 1
+CFLAGS_append_arm = " -O2"
-- 
1.7.9.5



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

* Re: [PATCH 1/1] btrfs-tools: workaround DEBUG_BUILD for arm
  2015-03-10  9:25 ` [PATCH 1/1] " Robert Yang
@ 2015-03-10 10:32   ` Richard Purdie
  2015-03-10 16:28   ` Khem Raj
  1 sibling, 0 replies; 7+ messages in thread
From: Richard Purdie @ 2015-03-10 10:32 UTC (permalink / raw)
  To: Robert Yang; +Cc: openembedded-core

On Tue, 2015-03-10 at 02:25 -0700, Robert Yang wrote:
> Workaround when:
> MACHINE = "qemuarm"
> DEBUG_BUILD = "1"
> 
> Errors:
> {standard input}: Assembler messages:
> {standard input}:3383: Error: invalid operands (.text and *UND* sections) for `-'
> {standard input}:3389: Error: invalid operands (.text and *UND* sections) for `-'
> make: *** [cmds-fi-disk_usage.o] Error 1
> 
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
>  .../btrfs-tools/btrfs-tools_git.bb                 |    7 +++++++
>  1 file changed, 7 insertions(+)

I really don't like workarounds like this. They tend to get left in the
recipes for ever more and never get fixed properly. Please just use
something like

DEBUG_BUILD_pn-btrfs-tools = "0"

or similar.

Cheers,

Richard



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

* Re: [PATCH 1/1] btrfs-tools: workaround DEBUG_BUILD for arm
  2015-03-10  9:25 ` [PATCH 1/1] " Robert Yang
  2015-03-10 10:32   ` Richard Purdie
@ 2015-03-10 16:28   ` Khem Raj
  2015-03-11  2:05     ` Robert Yang
  1 sibling, 1 reply; 7+ messages in thread
From: Khem Raj @ 2015-03-10 16:28 UTC (permalink / raw)
  To: Robert Yang; +Cc: Patches and discussions about the oe-core layer

On Tue, Mar 10, 2015 at 2:25 AM, Robert Yang <liezhi.yang@windriver.com> wrote:
> Workaround when:
> MACHINE = "qemuarm"
> DEBUG_BUILD = "1"
>
> Errors:
> {standard input}: Assembler messages:
> {standard input}:3383: Error: invalid operands (.text and *UND* sections) for `-'
> {standard input}:3389: Error: invalid operands (.text and *UND* sections) for `-'
> make: *** [cmds-fi-disk_usage.o] Error 1
>

can you post full compiler command ?

> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
>  .../btrfs-tools/btrfs-tools_git.bb                 |    7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
> index d86075c..382ee7c 100644
> --- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
> +++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
> @@ -28,3 +28,10 @@ do_install () {
>  }
>
>  BBCLASSEXTEND = "native"
> +
> +# Workaround when DEBUG_BUILD:
> +# {standard input}: Assembler messages:
> +# {standard input}:3383: Error: invalid operands (.text and *UND* sections) for `-'
> +# {standard input}:3389: Error: invalid operands (.text and *UND* sections) for `-'
> +# make: *** [cmds-fi-disk_usage.o] Error 1
> +CFLAGS_append_arm = " -O2"
> --
> 1.7.9.5
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


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

* Re: [PATCH 1/1] btrfs-tools: workaround DEBUG_BUILD for arm
  2015-03-10 16:28   ` Khem Raj
@ 2015-03-11  2:05     ` Robert Yang
  2015-03-11  2:12       ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Robert Yang @ 2015-03-11  2:05 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer



On 03/11/2015 12:28 AM, Khem Raj wrote:
> On Tue, Mar 10, 2015 at 2:25 AM, Robert Yang <liezhi.yang@windriver.com> wrote:
>> Workaround when:
>> MACHINE = "qemuarm"
>> DEBUG_BUILD = "1"
>>
>> Errors:
>> {standard input}: Assembler messages:
>> {standard input}:3383: Error: invalid operands (.text and *UND* sections) for `-'
>> {standard input}:3389: Error: invalid operands (.text and *UND* sections) for `-'
>> make: *** [cmds-fi-disk_usage.o] Error 1
>>
>
> can you post full compiler command ?

Sorry, there is no detailed compile log by default, I will try to print them
later, here is default log:

     [CC]     cmds-qgroup.o
     [CC]     cmds-check.o
     [CC]     cmds-replace.o
     [CC]     cmds-restore.o
     [CC]     chunk-recover.o
     [CC]     cmds-rescue.o
     [CC]     super-recover.o
     [CC]     cmds-property.o
     [CC]     cmds-fi-disk_usage.o
     [CC]     btrfs-map-logical.o
     [CC]     btrfs-image.o
     [CC]     btrfs-zero-log.o
     [CC]     btrfs-convert.o
     [CC]     btrfs-find-root.o
     [CC]     btrfstune.o
     [CC]     btrfs-show-super.o
{standard input}: Assembler messages:
{standard input}:3368: Error: invalid operands (.text and *UND* sections) for `-'
{standard input}:3374: Error: invalid operands (.text and *UND* sections) for `-'
     [AR]     libbtrfs.a
     [LD]     libbtrfs.so.0.1
Makefile:129: recipe for target 'cmds-fi-disk_usage.o' failed
make: *** [cmds-fi-disk_usage.o] Error 1
make: *** Waiting for unfinished jobs....


// RObert

>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>>   .../btrfs-tools/btrfs-tools_git.bb                 |    7 +++++++
>>   1 file changed, 7 insertions(+)
>>
>> diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
>> index d86075c..382ee7c 100644
>> --- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
>> +++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
>> @@ -28,3 +28,10 @@ do_install () {
>>   }
>>
>>   BBCLASSEXTEND = "native"
>> +
>> +# Workaround when DEBUG_BUILD:
>> +# {standard input}: Assembler messages:
>> +# {standard input}:3383: Error: invalid operands (.text and *UND* sections) for `-'
>> +# {standard input}:3389: Error: invalid operands (.text and *UND* sections) for `-'
>> +# make: *** [cmds-fi-disk_usage.o] Error 1
>> +CFLAGS_append_arm = " -O2"
>> --
>> 1.7.9.5
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>


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

* Re: [PATCH 1/1] btrfs-tools: workaround DEBUG_BUILD for arm
  2015-03-11  2:05     ` Robert Yang
@ 2015-03-11  2:12       ` Khem Raj
  2015-03-11  2:50         ` Robert Yang
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2015-03-11  2:12 UTC (permalink / raw)
  To: Robert Yang; +Cc: Patches and discussions about the oe-core layer

On Tue, Mar 10, 2015 at 7:05 PM, Robert Yang <liezhi.yang@windriver.com> wrote:
>     [CC]     btrfs-show-super.o
> {standard input}: Assembler messages:
> {standard input}:3368: Error: invalid operands (.text and *UND* sections)
> for `-'
> {standard input}:3374: Error: invalid operands (.text and *UND* sections)
> for `-'
>     [AR]     libbtrfs.a

I meant detailed. use V=1


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

* Re: [PATCH 1/1] btrfs-tools: workaround DEBUG_BUILD for arm
  2015-03-11  2:12       ` Khem Raj
@ 2015-03-11  2:50         ` Robert Yang
  0 siblings, 0 replies; 7+ messages in thread
From: Robert Yang @ 2015-03-11  2:50 UTC (permalink / raw)
  To: Khem Raj; +Cc: Patches and discussions about the oe-core layer



On 03/11/2015 10:12 AM, Khem Raj wrote:
> On Tue, Mar 10, 2015 at 7:05 PM, Robert Yang <liezhi.yang@windriver.com> wrote:
>>      [CC]     btrfs-show-super.o
>> {standard input}: Assembler messages:
>> {standard input}:3368: Error: invalid operands (.text and *UND* sections)
>> for `-'
>> {standard input}:3374: Error: invalid operands (.text and *UND* sections)
>> for `-'
>>      [AR]     libbtrfs.a
>
> I meant detailed. use V=1

Thanks, here it is:

|     [CC]     cmds-fi-disk_usage.o
| arm-poky-linux-gnueabi-gcc  -march=armv5e -marm  -mthumb-interwork 
--sysroot=/buildarea/lyang1/test_w5/tmp/sysroots/qemuarm -Wall 
-D_FILE_OFFSET_BITS=64 -DBTRFS_FLAT_INCLUDES -D_XOPEN_SOURCE=700 -D_GNU_SOURCE 
-fno-strict-aliasing -fPIC -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2  -O 
-fno-omit-frame-pointer -g -feliminate-unused-debug-types -pipe -c 
cmds-fi-disk_usage.c
| {standard input}: Assembler messages:
| {standard input}:3383: Error: invalid operands (.text and *UND* sections) for `-'
| {standard input}:3389: Error: invalid operands (.text and *UND* sections) for `-'
| make: *** [cmds-fi-disk_usage.o] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.

// Robert


>
>


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

end of thread, other threads:[~2015-03-11  2:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-10  9:25 [PATCH 0/1] btrfs-tools: workaround DEBUG_BUILD for arm Robert Yang
2015-03-10  9:25 ` [PATCH 1/1] " Robert Yang
2015-03-10 10:32   ` Richard Purdie
2015-03-10 16:28   ` Khem Raj
2015-03-11  2:05     ` Robert Yang
2015-03-11  2:12       ` Khem Raj
2015-03-11  2:50         ` Robert Yang

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.