Skip to contentSkip to conversation

btrfs-tools: workaround DEBUG_BUILD for arm

PATCH In review Robert Yang 3 participants 7 messages Mar 10, 2015 – Mar 11, 2015

lore
Share & tools
lore
#0 lore raw

cover btrfs-tools: workaround DEBUG_BUILD for arm

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(+)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 btrfs-tools: workaround DEBUG_BUILD for arm

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

---
 .../btrfs-tools/btrfs-tools_git.bb                 |    7 +++++++
 1 file changed, 7 insertions(+)
meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb +7 -0
index d86075c..382ee7c 100644
@@ -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"
Signature · 1 line
1.7.9.5
#2 lore raw
Quoted 10 lines · Robert Yang

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

Quoted 4 lines
---
 .../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

#3 lore raw
In reply to Robert Yang
Quoted 10 lines · Robert Yang

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 ?

Quoted 28 lines
---
 .../btrfs-tools/btrfs-tools_git.bb                 |    7 +++++++
 1 file changed, 7 insertions(+)
meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb +7 -1
index d86075c..382ee7c 100644
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#4 lore raw
Quoted 5 lines · Khem Raj
Quoted 4 lines · Robert Yang

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

Quoted 8 lines
Quoted 6 lines

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

Quoted 31 lines
Quoted 29 lines
---
  .../btrfs-tools/btrfs-tools_git.bb                 |    7 +++++++
  1 file changed, 7 insertions(+)
meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb +7 -1
index d86075c..382ee7c 100644
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#5 lore raw
Quoted 7 lines · Robert Yang

[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

#6 lore raw
Quoted 10 lines · Khem Raj
Quoted 7 lines · Robert Yang

[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

Quoted 2 lines