All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pseudo: pseudo-native breaks native builds for symver.patch
@ 2013-07-11  7:58 Chunrong Guo
  2013-07-11 16:12 ` Peter Seebach
  0 siblings, 1 reply; 4+ messages in thread
From: Chunrong Guo @ 2013-07-11  7:58 UTC (permalink / raw)
  To: openembedded-core

      *symver.patch causes failure if the host glibc does not provide the glibc-2.0 version of the symbol.
      *fix the below error log:
      |tmp/work/ppc64-linux/pseudo-native/1.5.1-r3/pseudo-1.5.1/pseudo_ipc.c:153: more
      |undefined references to `memcpy@GLIBC_2.0' follow
      |/pseudo_db.ccollect2: error: ld returned 1 exit status

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 meta/recipes-devtools/pseudo/files/symver.patch |   26 -----------------------
 meta/recipes-devtools/pseudo/pseudo.inc         |    2 -
 2 files changed, 0 insertions(+), 28 deletions(-)
 delete mode 100644 meta/recipes-devtools/pseudo/files/symver.patch

diff --git a/meta/recipes-devtools/pseudo/files/symver.patch b/meta/recipes-devtools/pseudo/files/symver.patch
deleted file mode 100644
index 8d1b377..0000000
--- a/meta/recipes-devtools/pseudo/files/symver.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-When running as pseudo-nativesdk, we might need to run host binaries 
-linked against the host libc. Having a 2.14 libc dependency from memcpy is
-problematic so instruct the linker to use older symbols.
-
-Upstream-Status: Pending
-
-RP 2012/4/22
-
-Index: pseudo-1.3/pseudo.h
-===================================================================
---- pseudo-1.3.orig/pseudo.h	2012-04-22 12:17:59.078909060 +0000
-+++ pseudo-1.3/pseudo.h	2012-04-22 12:32:42.954888587 +0000
-@@ -29,6 +29,13 @@
- int pseudo_set_value(const char *key, const char *value);
- char *pseudo_get_value(const char *key);
- 
-+#ifdef __amd64__   
-+#define GLIBC_COMPAT_SYMBOL(SYM) __asm__(".symver " #SYM "," #SYM "@GLIBC_2.2.5")
-+#else   
-+#define GLIBC_COMPAT_SYMBOL(SYM) __asm__(".symver " #SYM "," #SYM "@GLIBC_2.0")
-+#endif
-+GLIBC_COMPAT_SYMBOL(memcpy);
-+
- #include "pseudo_tables.h"
- 
- extern void pseudo_debug_verbose(void);
diff --git a/meta/recipes-devtools/pseudo/pseudo.inc b/meta/recipes-devtools/pseudo/pseudo.inc
index 3baf3af..f5d0608 100644
--- a/meta/recipes-devtools/pseudo/pseudo.inc
+++ b/meta/recipes-devtools/pseudo/pseudo.inc
@@ -9,9 +9,7 @@ SECTION = "base"
 LICENSE = "LGPL2.1"
 DEPENDS = "sqlite3"
 
-SRC_URI_append_class-nativesdk = " file://symver.patch"
 
-SRC_URI_append_class-native = " file://symver.patch"
 
 FILES_${PN} = "${libdir}/pseudo/lib*/libpseudo.so ${bindir}/* ${localstatedir}/pseudo ${prefix}/var/pseudo"
 FILES_${PN}-dbg += "${libdir}/pseudo/lib*/.debug"
-- 
1.7.5.4




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

* Re: [PATCH] pseudo: pseudo-native breaks native builds for symver.patch
  2013-07-11  7:58 [PATCH] pseudo: pseudo-native breaks native builds for symver.patch Chunrong Guo
@ 2013-07-11 16:12 ` Peter Seebach
  2013-07-12  2:10   ` Guo Chunrong-B40290
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Seebach @ 2013-07-11 16:12 UTC (permalink / raw)
  To: Chunrong Guo; +Cc: openembedded-core

On Thu, 11 Jul 2013 15:58:41 +0800
Chunrong Guo <B40290@freescale.com> wrote:

>       *symver.patch causes failure if the host glibc does not provide the glibc-2.0 version of the symbol.

I don't think we should take this out unconditionally, because it was added
to address a (different) problem -- we were ending up with the pseudo-native
libraries being used with host glibc that might be too old, and not have
newer versions.

I was under the impression that glibc tried to maintain binary compatibility
a fairly long way back; which hosts are omitting this symbol? What
architecture are you on?

-s
-- 
Listen, get this.  Nobody with a good compiler needs to be justified.


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

* Re: [PATCH] pseudo: pseudo-native breaks native builds for symver.patch
  2013-07-11 16:12 ` Peter Seebach
@ 2013-07-12  2:10   ` Guo Chunrong-B40290
  2013-07-12 18:28     ` Peter Seebach
  0 siblings, 1 reply; 4+ messages in thread
From: Guo Chunrong-B40290 @ 2013-07-12  2:10 UTC (permalink / raw)
  To: Peter Seebach; +Cc: openembedded-core

Powerpc architecture and ppc64 hosts.


-----Original Message-----
From: Peter Seebach [mailto:peter.seebach@windriver.com] 
Sent: Friday, July 12, 2013 12:12 AM
To: Guo Chunrong-B40290
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] pseudo: pseudo-native breaks native builds for symver.patch

On Thu, 11 Jul 2013 15:58:41 +0800
Chunrong Guo <B40290@freescale.com> wrote:

>       *symver.patch causes failure if the host glibc does not provide the glibc-2.0 version of the symbol.

I don't think we should take this out unconditionally, because it was added to address a (different) problem -- we were ending up with the pseudo-native libraries being used with host glibc that might be too old, and not have newer versions.

I was under the impression that glibc tried to maintain binary compatibility a fairly long way back; which hosts are omitting this symbol? What architecture are you on?

-s
--
Listen, get this.  Nobody with a good compiler needs to be justified.




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

* Re: [PATCH] pseudo: pseudo-native breaks native builds for symver.patch
  2013-07-12  2:10   ` Guo Chunrong-B40290
@ 2013-07-12 18:28     ` Peter Seebach
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Seebach @ 2013-07-12 18:28 UTC (permalink / raw)
  To: Guo Chunrong-B40290; +Cc: openembedded-core

On Fri, 12 Jul 2013 02:10:21 +0000
Guo Chunrong-B40290 <B40290@freescale.com> wrote:

> Powerpc architecture and ppc64 hosts.

Okay. We haven't previously tried pseudo on those that I know of. We may need
to revisit the way this patch gets applied. For the short term, it might be
possible to apply it only to x86 or x86_64.

-s
-- 
Listen, get this.  Nobody with a good compiler needs to be justified.


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

end of thread, other threads:[~2013-07-12 18:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-11  7:58 [PATCH] pseudo: pseudo-native breaks native builds for symver.patch Chunrong Guo
2013-07-11 16:12 ` Peter Seebach
2013-07-12  2:10   ` Guo Chunrong-B40290
2013-07-12 18:28     ` Peter Seebach

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.