Bug#763103: Aw: Re: Bug#763103: Enable building libphobos-dev package on hppa arch

2014-10-10 Thread Helge Deller
 please could you document what was/is needed to build phobos on hppa?

As mentioned before, I've started to fix phobos on hppa, but am not finished 
yet.
Below you can see the current diff I'm using against gcc-4.9_4.9.1-16.
Right now enabling phobos has moved down on my priority list, because I'm 
working on enabling systemd on hppa as well, which I finally got to work.
So, I'm trying to bring those kernel/glibc patches for systemd upstream first 
before continuing on phobos.

By the way, the patch below fixes some parts of the phobos build, but then it 
seems to fail on a trivial const statement:
/build/gcc-4.9/gcc-4.9-4.9.1/src/libphobos/libdruntime/core/sys/posix/signal.d:479:
 error: divide by 0
Makefile:584: recipe for target 'gcc/gthreads/posix.o' failed
make[6]: *** [gcc/gthreads/posix.o] Error 1

Helge

diff -up ./debian/rules.defs.org ./debian/rules.defs
--- ./debian/rules.defs.org 2014-10-01 15:28:18.106770764 +0200
+++ ./debian/rules.defs 2014-10-01 15:29:16.326762926 +0200
@@ -811,12 +811,12 @@ ifeq ($(with_d)-$(with_separate_gdc),yes
 endif
 
 ifeq ($(with_d),yes)
-  libphobos_archs = amd64 armel armhf i386 x32 kfreebsd-amd64 kfreebsd-i386
+  libphobos_archs = amd64 armel armhf i386 x32 kfreebsd-amd64 kfreebsd-i386 
hppa
   ifneq (,$(filter $(DEB_TARGET_ARCH), $(libphobos_archs)))
 with_libphobos := yes
   endif
 
-  libphobos_no_cpus := alpha avr arm64 hppa ia64 m68k \
+  libphobos_no_cpus := alpha avr arm64 ia64 m68k \
mips mipsel mips64 mips64el mipsn32 mipsn32el \
powerpc powerpcspe ppc64 s390 s390x sh4 sparc sparc64
   libphobos_no_systems := gnu kfreebsd-gnu
diff -up ./src/libphobos/libdruntime/core/sys/posix/sys/types.d.org 
./src/libphobos/libdruntime/core/sys/posix/sys/types.d
--- ./src/libphobos/libdruntime/core/sys/posix/sys/types.d.org  2014-10-02 
12:25:54.289864666 +0200
+++ ./src/libphobos/libdruntime/core/sys/posix/sys/types.d  2014-10-02 
12:26:37.493861780 +0200
@@ -343,6 +343,18 @@ version (linux)
 enum __SIZEOF_PTHREAD_BARRIER_T = 20;
 enum __SIZEOF_PTHREAD_BARRIERATTR_T = 4;
 }
+else version (HPPA)/* FIXME */
+{
+enum __SIZEOF_PTHREAD_ATTR_T = 64;
+enum __SIZEOF_PTHREAD_MUTEX_T = 48;
+enum __SIZEOF_PTHREAD_MUTEXATTR_T = 8;
+enum __SIZEOF_PTHREAD_COND_T = 48;
+enum __SIZEOF_PTHREAD_CONDATTR_T = 8;
+enum __SIZEOF_PTHREAD_RWLOCK_T = 56;
+enum __SIZEOF_PTHREAD_RWLOCKATTR_T = 8;
+enum __SIZEOF_PTHREAD_BARRIER_T = 32;
+enum __SIZEOF_PTHREAD_BARRIERATTR_T = 8;
+}
 else version (IA64)
 {
 enum __SIZEOF_PTHREAD_ATTR_T = 56;


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#763103: Enable building libphobos-dev package on hppa arch

2014-10-09 Thread Matthias Klose
Am 01.10.2014 um 22:22 schrieb Helge Deller:
 Am 27.09.2014 um 22:13 schrieb Helge Deller:
 Package: gcc-defaults
 Version: 1.133
 Severity: bug
 Tags: patch

 Can you please add the hppa arch to the list of arches which provides the
 libphobos packages?

 I can't find the patch for gcc-4.9, and libphobos is currently not built for
 hppa.
 
 That's correct. I'm still working on enabling libphobos in gcc-4.9.
 Anyway, it would be nice if you could apply this patch already, since this 
 will
 then
 automatically show up if libphobos from gcc get's available.

please could you document what was/is needed to build phobos on hppa?

Thanks, Matthias


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#763103: Enable building libphobos-dev package on hppa arch

2014-10-01 Thread Helge Deller

Am 27.09.2014 um 22:13 schrieb Helge Deller:

Package: gcc-defaults
Version: 1.133
Severity: bug
Tags: patch

Can you please add the hppa arch to the list of arches which provides the
libphobos packages?


I can't find the patch for gcc-4.9, and libphobos is currently not built for 
hppa.


That's correct. I'm still working on enabling libphobos in gcc-4.9.
Anyway, it would be nice if you could apply this patch already, since this will 
then
automatically show up if libphobos from gcc get's available.

Thanks,
Helge


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#763103: Enable building libphobos-dev package on hppa arch

2014-09-30 Thread Matthias Klose
Control: tags -1 + moreinfo

Am 27.09.2014 um 22:13 schrieb Helge Deller:
 Package: gcc-defaults
 Version: 1.133
 Severity: bug
 Tags: patch
 
 Can you please add the hppa arch to the list of arches which provides the
 libphobos packages?
 Patch is attached.
 Please apply for next upload.

I can't find the patch for gcc-4.9, and libphobos is currently not built for 
hppa.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#763103: Enable building libphobos-dev package on hppa arch

2014-09-27 Thread Helge Deller

Package: gcc-defaults
Version: 1.133
Severity: bug
Tags: patch

Can you please add the hppa arch to the list of arches which provides the 
libphobos packages?
Patch is attached.
Please apply for next upload.

Thanks!
Helge
diff -up ./debian/rules.org ./debian/rules
--- ./debian/rules.org	2014-09-27 10:13:56.827749550 +0200
+++ ./debian/rules	2014-09-27 10:15:28.568012543 +0200
@@ -264,7 +264,7 @@ multilib_archs = amd64 i386 kfreebsd-amd
 go_archs = amd64 arm64 armel armhf i386 ia64 mips mipsel \
 	powerpc ppc64 ppc64el s390 s390x x32
 
-phobos_archs = amd64 armel armhf i386 x32 kfreebsd-amd64 kfreebsd-i386
+phobos_archs = amd64 armel armhf i386 x32 kfreebsd-amd64 kfreebsd-i386 hppa
 
 ifneq (,$(filter $(DEB_HOST_ARCH), $(multilib_archs)))
   with_multilib = yes