* [PATCH v2 1/2] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64
@ 2012-07-10 4:29 Matthew McClintock
2012-07-10 4:29 ` [PATCH v2 2/2] libgomp: add libgomp (openmp) library, and build for powerpc targets by default Matthew McClintock
2012-07-17 15:57 ` [PATCH v2 1/2] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64 Saul Wold
0 siblings, 2 replies; 5+ messages in thread
From: Matthew McClintock @ 2012-07-10 4:29 UTC (permalink / raw)
To: openembedded-core
This fixes the issue where gcc invokes the linker with an incorrect -L
library location and gives up because it can't find libraries. It was
looking in a /lib folder instead of /lib64
Signed-off-by: Matthew McClintock <msm@freescale.com>
---
meta/recipes-devtools/gcc/gcc-4.7.inc | 2 +-
meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
index 65153b3..c7dbc3c 100644
--- a/meta/recipes-devtools/gcc/gcc-4.7.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
@@ -1,6 +1,6 @@
require gcc-common.inc
-PR = "r2"
+PR = "r3"
# Third digit in PV should be incremented after a minor release
# happens from this branch on gcc e.g. currently its 4.7.1
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
index efa345f..308e6f5 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
@@ -9,8 +9,8 @@ DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
SYSTEMHEADERS = "/usr/include"
-SYSTEMLIBS = "/lib/"
-SYSTEMLIBS1 = "/usr/lib/"
+SYSTEMLIBS = "${target_base_libdir}/"
+SYSTEMLIBS1 = "${target_libdir}/"
EXTRA_OECONF += "--disable-libunwind-exceptions --disable-libssp \
--disable-libgomp --disable-libmudflap \
--
1.7.10
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH v2 2/2] libgomp: add libgomp (openmp) library, and build for powerpc targets by default
2012-07-10 4:29 [PATCH v2 1/2] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64 Matthew McClintock
@ 2012-07-10 4:29 ` Matthew McClintock
2012-07-10 5:15 ` Khem Raj
2012-07-17 15:57 ` [PATCH v2 1/2] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64 Saul Wold
1 sibling, 1 reply; 5+ messages in thread
From: Matthew McClintock @ 2012-07-10 4:29 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Matthew McClintock <msm@freescale.com>
---
meta/recipes-devtools/gcc/gcc-4.7.inc | 2 +-
meta/recipes-devtools/gcc/gcc-configure-runtime.inc | 10 ++++++++++
meta/recipes-devtools/gcc/gcc-package-runtime.inc | 14 +++++++++++++-
3 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
index c7dbc3c..be142a1 100644
--- a/meta/recipes-devtools/gcc/gcc-4.7.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
@@ -1,6 +1,6 @@
require gcc-common.inc
-PR = "r3"
+PR = "r4"
# Third digit in PV should be incremented after a minor release
# happens from this branch on gcc e.g. currently its 4.7.1
diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
index 095d6c1..d0e49ce 100644
--- a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc
@@ -8,6 +8,8 @@ EXTRA_OECONF_PATHS = " \
--with-build-sysroot=${STAGING_DIR_TARGET}"
RUNTIMETARGET = "libssp libstdc++-v3"
+RUNTIMETARGET_append_powerpc = " libgomp"
+RUNTIMETARGET_append_powerpc64 = " libgomp"
# ?
# libiberty
# libmudflap
@@ -42,6 +44,14 @@ do_install () {
cd ${B}/$target/$d/
oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/$d/ install
done
+
+ # clean up extra libgomp files
+ if [[ "${RUNTIMETARGET}" =~ "libgomp" ]]; then
+ rm -rf ${D}${datadir}/info/libgomp.info ${D}${datadir}/info/dir
+ rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
+ rmdir --ignore-fail-on-non-empty -p ${D}${datadir}/info
+ fi
+
chown -R root:root ${D}
}
diff --git a/meta/recipes-devtools/gcc/gcc-package-runtime.inc b/meta/recipes-devtools/gcc/gcc-package-runtime.inc
index e0cb51b..a81e3b7 100644
--- a/meta/recipes-devtools/gcc/gcc-package-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-runtime.inc
@@ -13,6 +13,9 @@ PACKAGES = "\
libgfortran-dev \
libmudflap \
libmudflap-dev \
+ libgomp \
+ libgomp-dev \
+ libgomp-staticdev \
"
# The base package doesn't exist, so we clear the recommends.
RRECOMMENDS_${PN}-dbg = ""
@@ -61,7 +64,16 @@ FILES_libmudflap-dev = "\
${libdir}/libmudflap*.a \
${libdir}/libmudflap*.la"
+FILES_libgomp-dev = "\
+ ${libdir}/libgomp*.so \
+ ${libdir}/libgomp*.la \
+ ${libdir}/libgomp.spec \
+ ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/omp.h \
+ "
+FILES_libgomp-staticdev = "\
+ ${libdir}/libgomp*.a \
+ "
+
do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_package"
do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_package"
do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_package"
-
--
1.7.10
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH v2 2/2] libgomp: add libgomp (openmp) library, and build for powerpc targets by default
2012-07-10 4:29 ` [PATCH v2 2/2] libgomp: add libgomp (openmp) library, and build for powerpc targets by default Matthew McClintock
@ 2012-07-10 5:15 ` Khem Raj
2012-07-10 14:52 ` McClintock Matthew-B29882
0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2012-07-10 5:15 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Mon, Jul 9, 2012 at 9:29 PM, Matthew McClintock <msm@freescale.com> wrote:
> +
> + # clean up extra libgomp files
> + if [[ "${RUNTIMETARGET}" =~ "libgomp" ]]; then
This seems bashism.
if could just check the valued of $d in the loop instead something like
> + rm -rf ${D}${datadir}/info/libgomp.info ${D}${datadir}/info/dir
> + rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
> + rmdir --ignore-fail-on-non-empty -p ${D}${datadir}/info
> + fi
> +
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH v2 2/2] libgomp: add libgomp (openmp) library, and build for powerpc targets by default
2012-07-10 5:15 ` Khem Raj
@ 2012-07-10 14:52 ` McClintock Matthew-B29882
0 siblings, 0 replies; 5+ messages in thread
From: McClintock Matthew-B29882 @ 2012-07-10 14:52 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Tue, Jul 10, 2012 at 12:15 AM, Khem Raj <raj.khem@gmail.com> wrote:
> On Mon, Jul 9, 2012 at 9:29 PM, Matthew McClintock <msm@freescale.com> wrote:
>> +
>> + # clean up extra libgomp files
>> + if [[ "${RUNTIMETARGET}" =~ "libgomp" ]]; then
>
> This seems bashism.
>
> if could just check the valued of $d in the loop instead something like
v3 sent.
-M
>
>
>> + rm -rf ${D}${datadir}/info/libgomp.info ${D}${datadir}/info/dir
>> + rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
>> + rmdir --ignore-fail-on-non-empty -p ${D}${datadir}/info
>> + fi
>> +
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 1/2] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64
2012-07-10 4:29 [PATCH v2 1/2] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64 Matthew McClintock
2012-07-10 4:29 ` [PATCH v2 2/2] libgomp: add libgomp (openmp) library, and build for powerpc targets by default Matthew McClintock
@ 2012-07-17 15:57 ` Saul Wold
1 sibling, 0 replies; 5+ messages in thread
From: Saul Wold @ 2012-07-17 15:57 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Matthew McClintock
On 07/09/2012 09:29 PM, Matthew McClintock wrote:
> This fixes the issue where gcc invokes the linker with an incorrect -L
> library location and gives up because it can't find libraries. It was
> looking in a /lib folder instead of /lib64
>
> Signed-off-by: Matthew McClintock <msm@freescale.com>
> ---
> meta/recipes-devtools/gcc/gcc-4.7.inc | 2 +-
> meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-devtools/gcc/gcc-4.7.inc b/meta/recipes-devtools/gcc/gcc-4.7.inc
> index 65153b3..c7dbc3c 100644
> --- a/meta/recipes-devtools/gcc/gcc-4.7.inc
> +++ b/meta/recipes-devtools/gcc/gcc-4.7.inc
> @@ -1,6 +1,6 @@
> require gcc-common.inc
>
> -PR = "r2"
> +PR = "r3"
>
> # Third digit in PV should be incremented after a minor release
> # happens from this branch on gcc e.g. currently its 4.7.1
> diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
> index efa345f..308e6f5 100644
> --- a/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
> +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian_4.7.bb
> @@ -9,8 +9,8 @@ DEPENDS += "gmp-nativesdk mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
> RDEPENDS_${PN} += "mpfr-nativesdk libmpc-nativesdk elfutils-nativesdk"
>
> SYSTEMHEADERS = "/usr/include"
> -SYSTEMLIBS = "/lib/"
> -SYSTEMLIBS1 = "/usr/lib/"
> +SYSTEMLIBS = "${target_base_libdir}/"
> +SYSTEMLIBS1 = "${target_libdir}/"
>
> EXTRA_OECONF += "--disable-libunwind-exceptions --disable-libssp \
> --disable-libgomp --disable-libmudflap \
>
Merged this change into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-07-17 16:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-10 4:29 [PATCH v2 1/2] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64 Matthew McClintock
2012-07-10 4:29 ` [PATCH v2 2/2] libgomp: add libgomp (openmp) library, and build for powerpc targets by default Matthew McClintock
2012-07-10 5:15 ` Khem Raj
2012-07-10 14:52 ` McClintock Matthew-B29882
2012-07-17 15:57 ` [PATCH v2 1/2] gcc: gcc-cross-canadian: use correct location for libraries for powerpc64 Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox