Skip to contentSkip to conversation

gcc-4.6: Fix packaging of native toolchains

PATCH Applied Kumar Gala 4 participants 5 messages Jul 22, 2011 – Jul 25, 2011

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 gcc-4.6: Fix packaging of native toolchains

The base gcc package is missing liblto_plugin.so. If we try a simple hello world compile we get something like:

root@p5020-ds:~# gcc hello.c
gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.

We need to include liblto_plugin.so in the base gcc package and not gcc-dev.

---
 meta/recipes-devtools/gcc/gcc-4.6.inc            |    2 +-
 meta/recipes-devtools/gcc/gcc-package-target.inc |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
meta/recipes-devtools/gcc/gcc-4.6.inc +1 -1
index a724594..4c1e1e1 100644
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r1"
+PR = "r2"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.6.0
meta/recipes-devtools/gcc/gcc-package-target.inc +1 -0
index e6105da..a0e5da4 100644
@@ -17,6 +17,7 @@ FILES_${PN} = "\
   ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc* \
   ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lto* \
   ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \
+  ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/liblto*${SOLIBSDEV} \
   ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \
   ${gcclibdir}/${TARGET_SYS}/${BINV}/specs \
   ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \
Signature · 1 line
1.7.3.4
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Kumar Gala

The base gcc package is missing liblto_plugin.so. If we try a simple hello world compile we get something like:

root@p5020-ds:~# gcc hello.c
gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.

We need to include liblto_plugin.so in the base gcc package and not gcc-dev.

Quoted 37 lines

---

meta/recipes-devtools/gcc/gcc-4.6.inc            |    2 +-
meta/recipes-devtools/gcc/gcc-package-target.inc |    1 +
2 files changed, 2 insertions(+), 1 deletions(-)
meta/recipes-devtools/gcc/gcc-4.6.inc +0 -0
index a724594..4c1e1e1 100644
@@ -1,6 +1,6 @@

require gcc-common.inc

meta/recipes-devtools/gcc/gcc-4.6.inc +1 -1
-PR = "r1"
+PR = "r2"

# Third digit in PV should be incremented after a minor release

# happens from this branch on gcc e.g. currently its 4.6.0
meta/recipes-devtools/gcc/gcc-package-target.inc +1 -0
index e6105da..a0e5da4 100644
@@ -17,6 +17,7 @@ FILES_${PN} = "\
  ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc* \
  ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lto* \
  ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \
+  ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/liblto*${SOLIBSDEV} \
  ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \
  ${gcclibdir}/${TARGET_SYS}/${BINV}/specs \
  ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \
Signature · 7 lines
1.7.3.4


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
#2 lore raw
In reply to Kumar Gala

Op 22 jul. 2011, om 15:57 heeft Kumar Gala het volgende geschreven:

Quoted 23 lines

The base gcc package is missing liblto_plugin.so. If we try a simple hello world compile we get something like:

root@p5020-ds:~# gcc hello.c
gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.

We need to include liblto_plugin.so in the base gcc package and not gcc-dev.

---

meta/recipes-devtools/gcc/gcc-4.6.inc            |    2 +-
meta/recipes-devtools/gcc/gcc-package-target.inc |    1 +
2 files changed, 2 insertions(+), 1 deletions(-)
meta/recipes-devtools/gcc/gcc-4.6.inc +0 -0
index a724594..4c1e1e1 100644
@@ -1,6 +1,6 @@

require gcc-common.inc

meta/recipes-devtools/gcc/gcc-4.6.inc line 3

Quoted 2 lines
meta/recipes-devtools/gcc/gcc-4.6.inc +1 -1
-PR = "r1"
+PR = "r2"

Doesn't this need a PR bump in gcc-4.5 as well?

#3 lore raw
Quoted 26 lines · Koen Kooi

Op 22 jul. 2011, om 15:57 heeft Kumar Gala het volgende geschreven:

Quoted 23 lines

The base gcc package is missing liblto_plugin.so.  If we try a simple hello world compile we get something like:

root@p5020-ds:~# gcc hello.c
gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.

We need to include liblto_plugin.so in the base gcc package and not gcc-dev.

---
meta/recipes-devtools/gcc/gcc-4.6.inc            |    2 +- meta/recipes-devtools/gcc/gcc-package-target.inc |    1 +

2 files changed, 2 insertions(+), 1 deletions(-)
meta/recipes-devtools/gcc/gcc-4.6.inc +0 -0
index a724594..4c1e1e1 100644
@@ -1,6 +1,6 @@

require gcc-common.inc

Quoted 4 lines

meta/recipes-devtools/gcc/gcc-4.6.inc line 3

Quoted 2 lines
meta/recipes-devtools/gcc/gcc-4.6.inc +1 -1
-PR = "r1"
+PR = "r2"

Doesn't this need a PR bump in gcc-4.5 as well?

yes indeed it does

Quoted 5 lines

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

Applied
#4 lore raw
In reply to Kumar Gala
Quoted 33 lines · Kumar Gala

The base gcc package is missing liblto_plugin.so. If we try a simple hello world compile we get something like:

root@p5020-ds:~# gcc hello.c
gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.

We need to include liblto_plugin.so in the base gcc package and not gcc-dev.

---
  meta/recipes-devtools/gcc/gcc-4.6.inc            |    2 +-
  meta/recipes-devtools/gcc/gcc-package-target.inc |    1 +
  2 files changed, 2 insertions(+), 1 deletions(-)
meta/recipes-devtools/gcc/gcc-4.6.inc +1 -1
index a724594..4c1e1e1 100644
@@ -1,6 +1,6 @@
  require gcc-common.inc
 
-PR = "r1"
+PR = "r2"
 
  # Third digit in PV should be incremented after a minor release
  # happens from this branch on gcc e.g. currently its 4.6.0
meta/recipes-devtools/gcc/gcc-package-target.inc +0 -0
index e6105da..a0e5da4 100644

meta/recipes-devtools/gcc/gcc-package-target.inc FILES_${PN} = "\ · line 23

Quoted 7 lines
meta/recipes-devtools/gcc/gcc-package-target.inc +1 -0
@@ -17,6 +17,7 @@ FILES_${PN} = "\
    ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc* \
    ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lto* \
    ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \
+  ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/liblto*${SOLIBSDEV} \
    ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \
    ${gcclibdir}/${TARGET_SYS}/${BINV}/specs \
    ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \

Merged into OE-Core

Thanks
Sau!