Package: mozjs
Severity: minor
Tags: patch
User: pkg-llvm-t...@lists.alioth.debian.org
Usertags: clang-ftbfs

Hello,

Using the rebuild infrastructure, your package fails to build with clang
(instead of gcc).

Detected this kind of error:
http://clang.debian.net/status.php?version=3.5.0rc1&key=UNDEF_REF

Full build log is available here:
http://clang.debian.net/logs/2014-08-05/mozjs_1.8.5-1.0.0+dfsg-4.1_unstable_clang.log

Thanks,
Arthur

-- System Information:
Debian Release: jessie/sid (unstable)
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-2-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE="en_US.UTF-8"
Shell: /bin/sh linked to /bin/dash
Compiler: Debian clang version 3.5.0-+rc1-2 (tags/RELEASE_35/rc1) (based on 
LLVM 3.5.0)
diff -Naur mozjs.orig/mozjs-1.8.5-1.0.0+dfsg/debian/changelog mozjs/mozjs-1.8.5-1.0.0+dfsg/debian/changelog
--- mozjs.orig/mozjs-1.8.5-1.0.0+dfsg/debian/changelog	2014-08-16 16:22:25.224560749 -0500
+++ mozjs/mozjs-1.8.5-1.0.0+dfsg/debian/changelog	2014-08-16 16:53:25.748593149 -0500
@@ -1,3 +1,10 @@
+mozjs (1.8.5-1.0.0+dfsg-4.2) unstable; urgency=low
+
+  * Fix FTBFS with clang
+    - Fixed Visibility does not match previous declaration
+
+ -- Arthur Marble <art...@info9.net>  Sat, 16 Aug 2014 16:53:25 -0500
+
 mozjs (1.8.5-1.0.0+dfsg-4.1) unstable; urgency=low
 
   [ Colin Watson ]
diff -Naur mozjs.orig/mozjs-1.8.5-1.0.0+dfsg/debian/patches/clang-ftbfs.diff mozjs/mozjs-1.8.5-1.0.0+dfsg/debian/patches/clang-ftbfs.diff 
--- mozjs.orig/mozjs-1.8.5-1.0.0+dfsg/debian/patches/clang-ftbfs.diff	1969-12-31 18:00:00.000000000 -0600
+++ mozjs/mozjs-1.8.5-1.0.0+dfsg/debian/patches/clang-ftbfs.diff	2014-08-16 16:56:12.432596051 -0500
@@ -0,0 +1,9 @@
+--- a/js/src/config/gcc_hidden.h
++++ b/js/src/config/gcc_hidden.h
+@@ -1,2 +1,5 @@
+ /* Begin all files as hidden visibility */
+-#pragma GCC visibility push(hidden)
++#if defined(__clang__)
++#else
++#  pragma GCC visibility push(hidden)
++#endif
diff -Naur mozjs.orig/mozjs-1.8.5-1.0.0+dfsg/debian/patches/series mozjs/mozjs-1.8.5-1.0.0+dfsg/debian/patches/series 
--- mozjs.orig/mozjs-1.8.5-1.0.0+dfsg/debian/patches/series	2014-08-16 16:22:25.224560749 -0500
+++ mozjs/mozjs-1.8.5-1.0.0+dfsg/debian/patches/series	2014-08-16 16:22:42.228561045 -0500
@@ -8,3 +8,4 @@
 fix-map-pages-on-ia64.patch
 disable-static-strings-on-ia64.patch
 autoconf.patch
+clang-ftbfs.diff

Reply via email to