Package: libgc
Version: 7.2d-6
Severity: normal

Dear Maintainer,

This bug is to track the enablement of the ppc64el architecture on libgc.  In
fact, this bug solves part of the bug#732349.

Other than that, I need to use set EXTRA_TEST_LIBS="-lpthread" (that I copied
fro Ubuntu) in order to be able to build the test binaries. Otherwise I found
this problem:

powerpc64le-linux-gnu-gcc -DHAVE_CONFIG_H   -I./include -I./include   
-fexceptions -g -O2 -fno-strict-aliasing -c -o test.o `test -f 'tests/test.c' 
|| echo './'`tests/test.c
/bin/bash ./libtool --tag=CC   --mode=link powerpc64le-linux-gnu-gcc 
-fexceptions -g -O2 -fno-strict-aliasing   -o gctest test.o ./libgc.la  
libtool: link: powerpc64le-linux-gnu-gcc -fexceptions -g -O2 
-fno-strict-aliasing -o .libs/gctest test.o  ./.libs/libgc.so
/usr/bin/ld.bfd.real: test.o: undefined reference to symbol 
'pthread_getspecific@@GLIBC_2.17'
//lib/powerpc64le-linux-gnu/libpthread.so.0: error adding symbols: DSO missing 
from command line
collect2: error: ld returned 1 exit status

Anyway, I just want to provide the patch as a reference of what we have been
using internally to be able to build libgc for ppc64el.

Index: libgc-7.2d/debian/rules
===================================================================
--- libgc-7.2d.orig/debian/rules        2013-12-23 11:28:27.000000000 +0000
+++ libgc-7.2d/debian/rules     2014-06-02 19:37:50.000000000 +0000
@@ -8,11 +8,12 @@
 LDFLAGS += -pthread
 
 %:
-       dh $@ --with pkgkde_symbolshelper
+       dh $@ --with autoreconf,pkgkde_symbolshelper
 
 override_dh_auto_configure:
        [ ! -d libatomic_ops-1.2 ] || mv libatomic_ops-1.2 libatomic_ops-1.2.bak
        autoconf
+       EXTRA_TEST_LIBS="-lpthread" \
        ./configure \
                $(CONFIG_OPTS) \
                --enable-cplusplus \
Index: libgc-7.2d/debian/control
===================================================================
--- libgc-7.2d.orig/debian/control      2014-06-02 19:51:13.000000000 +0000
+++ libgc-7.2d/debian/control   2014-06-02 19:51:29.000000000 +0000
@@ -6,7 +6,8 @@
  autoconf,
  libatomic-ops-dev (>= 7.3~),
  pkg-config,
- pkg-kde-tools
+ pkg-kde-tools,
+ dh-autoreconf
 Standards-Version: 3.9.4
 Homepage: http://www.hpl.hp.com/personal/Hans_Boehm/gc/
 Vcs-Git: git://git.debian.org/git/collab-maint/libgc.git

Thank you,
Breno


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.13-1-powerpc64le (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to