Skip to contentSkip to conversation

gcc: add TUNE_CCARGS for CFLAGS_FOR_TARGET of gcc-cross-canadian

PATCH In review Li Zhou 3 participants 5 messages Mar 1, 2016 – Mar 4, 2016

lore
Share & tools
lore

Li Zhou

author
#0 lore raw

PATCH 1/1 gcc: add TUNE_CCARGS for CFLAGS_FOR_TARGET of gcc-cross-canadian

Add TUNE_CCARGS for CFLAGS_FOR_TARGET of gcc-cross-canadian to solve below errors when compiling gcc-cross-canadian-powerpc64 within a debug build:

configure:3655: checking for suffix of object files configure:3677: powerpc64-wrs-linux-gcc --sysroot=......bitbake_build/ tmp/sysroots/fsl-t2xxx -isystem=/usr/include --sysroot=....../
bitbake_build/tmp/sysroots/fsl-t2xxx -c -O0 -fno-omit-frame-pointer -g
-pipe -g -Os conftest.c >&5
{standard input}: Assembler messages:
{standard input}:23: Error: register save offset not a multiple of 8 {standard input}:24: Error: register save offset not a multiple of 8

---
 meta/recipes-devtools/gcc/gcc-cross-canadian.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +1 -1
index ec1d281..04ae981 100644
@@ -51,7 +51,7 @@ do_configure () {
 	export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
 	export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
 	export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
-	export CFLAGS_FOR_TARGET="${TARGET_CFLAGS}"
+	export CFLAGS_FOR_TARGET="${TARGET_CFLAGS} ${TUNE_CCARGS}"
 	export CPPFLAGS_FOR_TARGET="${TARGET_CPPFLAGS}"
 	export CXXFLAGS_FOR_TARGET="${TARGET_CXXFLAGS}"
 	export LDFLAGS_FOR_TARGET="${TARGET_LDFLAGS}"
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 23 lines · Li Zhou

Add TUNE_CCARGS for CFLAGS_FOR_TARGET of gcc-cross-canadian to solve below errors when compiling gcc-cross-canadian-powerpc64 within a debug build:

configure:3655: checking for suffix of object files configure:3677: powerpc64-wrs-linux-gcc --sysroot=......bitbake_build/ tmp/sysroots/fsl-t2xxx -isystem=/usr/include --sysroot=....../
bitbake_build/tmp/sysroots/fsl-t2xxx -c -O0 -fno-omit-frame-pointer -g
-pipe -g -Os conftest.c >&5
{standard input}: Assembler messages:
{standard input}:23: Error: register save offset not a multiple of 8 {standard input}:24: Error: register save offset not a multiple of 8

---
 meta/recipes-devtools/gcc/gcc-cross-canadian.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +0 -0
index ec1d281..04ae981 100644

meta/recipes-devtools/gcc/gcc-cross-canadian.inc do_configure () { · line 54

Quoted 5 lines
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +1 -1
@@ -51,7 +51,7 @@ do_configure () {
        export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
        export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
        export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
-       export CFLAGS_FOR_TARGET="${TARGET_CFLAGS}"
+       export CFLAGS_FOR_TARGET="${TARGET_CFLAGS} ${TUNE_CCARGS}"

Will this cause canadian builds to become too specific instead of generic common arch

Quoted 11 lines
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +0 -1
        export CPPFLAGS_FOR_TARGET="${TARGET_CPPFLAGS}"
        export CXXFLAGS_FOR_TARGET="${TARGET_CXXFLAGS}"
        export LDFLAGS_FOR_TARGET="${TARGET_LDFLAGS}"
--

1.7.9.5

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

author
#2 lore raw

Please refer to Peter Seebach's patch earlier:
http://lists.openembedded.org/pipermail/openembedded-core/2016-January/115472.html
My patch should be based on that.
I think the change is not only for canadian build. Thanks.

Quoted 43 lines · Khem Raj
Quoted 23 lines · Li Zhou

Add TUNE_CCARGS for CFLAGS_FOR_TARGET of gcc-cross-canadian to solve below errors when compiling gcc-cross-canadian-powerpc64 within a debug build:

configure:3655: checking for suffix of object files configure:3677: powerpc64-wrs-linux-gcc --sysroot=......bitbake_build/ tmp/sysroots/fsl-t2xxx -isystem=/usr/include --sysroot=....../
bitbake_build/tmp/sysroots/fsl-t2xxx -c -O0 -fno-omit-frame-pointer -g
-pipe -g -Os conftest.c >&5
{standard input}: Assembler messages:
{standard input}:23: Error: register save offset not a multiple of 8 {standard input}:24: Error: register save offset not a multiple of 8

---
  meta/recipes-devtools/gcc/gcc-cross-canadian.inc |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +0 -0
index ec1d281..04ae981 100644

meta/recipes-devtools/gcc/gcc-cross-canadian.inc do_configure () { · line 54

Quoted 5 lines
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +1 -1
@@ -51,7 +51,7 @@ do_configure () {
         export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
         export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
         export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
-       export CFLAGS_FOR_TARGET="${TARGET_CFLAGS}"
+       export CFLAGS_FOR_TARGET="${TARGET_CFLAGS} ${TUNE_CCARGS}"

Will this cause canadian builds to become too specific instead of generic common arch

Quoted 11 lines
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +0 -1
         export CPPFLAGS_FOR_TARGET="${TARGET_CPPFLAGS}"
         export CXXFLAGS_FOR_TARGET="${TARGET_CXXFLAGS}"
         export LDFLAGS_FOR_TARGET="${TARGET_LDFLAGS}"
--

1.7.9.5

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 3 lines
Best Regards!
Zhou Li
Phone number: 86-10-84778511
#3 lore raw
Quoted 6 lines · Li

Please refer to Peter Seebach's patch earlier:
http://lists.openembedded.org/pipermail/openembedded-core/2016-Januar
y/115472.html
My patch should be based on that.
I think the change is not only for canadian build. Thanks.

Quoted 41 lines
Quoted 40 lines · Khem Raj
Quoted 35 lines · Li Zhou

Add TUNE_CCARGS for CFLAGS_FOR_TARGET of gcc-cross-canadian to solve
below errors when compiling gcc-cross-canadian-powerpc64 within a debug
build:

configure:3655: checking for suffix of object files configure:3677: powerpc64-wrs-linux-gcc - -sysroot=......bitbake_build/
tmp/sysroots/fsl-t2xxx -isystem=/usr/include --sysroot=....../
bitbake_build/tmp/sysroots/fsl-t2xxx -c -O0 -fno-omit-frame

(quoted diff) +0 -2
-pointer -g
-pipe -g -Os  conftest.c >&5

{standard input}: Assembler messages:
{standard input}:23: Error: register save offset not a multiple of 8
{standard input}:24: Error: register save offset not a multiple of 8

---
  meta/recipes-devtools/gcc/gcc-cross-canadian.inc |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +1 -1
index ec1d281..04ae981 100644
@@ -51,7 +51,7 @@ do_configure () {
         export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
         export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
         export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
-       export CFLAGS_FOR_TARGET="${TARGET_CFLAGS}"
+       export CFLAGS_FOR_TARGET="${TARGET_CFLAGS}
Quoted 1 line

${TUNE_CCARGS}"

Will this cause canadian builds to become too specific instead of generic common arch

I agree with Khem, I think there are potential problems this introduces. Did you try running the selftests for sstate sigs with this change? I suspect it breaks :(

Cheers,

Richard

author
#4 lore raw

Hi, Richard:
Could you please give me some information about how to do
"selftests for sstate sigs"? Thank you.

Quoted 55 lines · Richard Purdie
Quoted 6 lines · Li

Please refer to Peter Seebach's patch earlier:
http://lists.openembedded.org/pipermail/openembedded-core/2016-Januar
y/115472.html
My patch should be based on that.
I think the change is not only for canadian build. Thanks.

Quoted 41 lines
Quoted 40 lines · Khem Raj
Quoted 35 lines · Li Zhou

Add TUNE_CCARGS for CFLAGS_FOR_TARGET of gcc-cross-canadian to solve
below errors when compiling gcc-cross-canadian-powerpc64 within a debug
build:

configure:3655: checking for suffix of object files configure:3677: powerpc64-wrs-linux-gcc - -sysroot=......bitbake_build/
tmp/sysroots/fsl-t2xxx -isystem=/usr/include --sysroot=....../
bitbake_build/tmp/sysroots/fsl-t2xxx -c -O0 -fno-omit-frame

(quoted diff) +0 -2
-pointer -g
-pipe -g -Os  conftest.c >&5

{standard input}: Assembler messages:
{standard input}:23: Error: register save offset not a multiple of 8
{standard input}:24: Error: register save offset not a multiple of 8

---
   meta/recipes-devtools/gcc/gcc-cross-canadian.inc |    2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +1 -1
index ec1d281..04ae981 100644
@@ -51,7 +51,7 @@ do_configure () {
          export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
          export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
          export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
-       export CFLAGS_FOR_TARGET="${TARGET_CFLAGS}"
+       export CFLAGS_FOR_TARGET="${TARGET_CFLAGS}
Quoted 1 line

${TUNE_CCARGS}"

Will this cause canadian builds to become too specific instead of generic common arch

I agree with Khem, I think there are potential problems this introduces. Did you try running the selftests for sstate sigs with this change? I suspect it breaks :(

Cheers,

Richard

Signature · 3 lines
Best Regards!
Zhou Li
Phone number: 86-10-84778511