Package: excellent-bifurcation
Severity: minor
Tags: patch
User: [email protected]
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/excellent-bifurcation_0.0.20071015-6_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 excellent-bifurcation.orig/excellent-bifurcation-0.0.20071015/debian/changelog excellent-bifurcation/excellent-bifurcation-0.0.20071015/debian/changelog 
--- excellent-bifurcation.orig/excellent-bifurcation-0.0.20071015/debian/changelog	2014-08-07 15:28:30.484522595 -0500
+++ excellent-bifurcation/excellent-bifurcation-0.0.20071015/debian/changelog	2014-08-07 15:35:46.152530182 -0500
@@ -1,3 +1,12 @@
+excellent-bifurcation (0.0.20071015-7) unstable; urgency=low
+
+  * Fix FTBFS with clang
+    - Fixed undefined reference error in
+      src/stuff.c
+      src/stuff.h
+
+ -- Arthur Marble <[email protected]>  Thu, 07 Aug 2014 15:35:46 -0500
+
 excellent-bifurcation (0.0.20071015-6) unstable; urgency=medium
 
   * Team upload.
diff -Naur excellent-bifurcation.orig/excellent-bifurcation-0.0.20071015/debian/patches/clang-ftbfs.diff excellent-bifurcation/excellent-bifurcation-0.0.20071015/debian/patches/clang-ftbfs.diff 
--- excellent-bifurcation.orig/excellent-bifurcation-0.0.20071015/debian/patches/clang-ftbfs.diff	1969-12-31 18:00:00.000000000 -0600
+++ excellent-bifurcation/excellent-bifurcation-0.0.20071015/debian/patches/clang-ftbfs.diff	2014-08-07 15:32:27.420526722 -0500
@@ -0,0 +1,40 @@
+--- a/src/stuff.h
++++ b/src/stuff.h
+@@ -7,8 +7,8 @@ int grand(int number);
+ int crandom(int number);
+ int turn_towards_angle(int angle, int tangle, int turning);
+ int turn_towards_xy(int x1, int y1, int x2, int y2, int angle, int turning);
+-inline int xpart(int angle, int length);
+-inline int ypart(int angle, int length);
++int xpart(int angle, int length);
++int ypart(int angle, int length);
+ int pulsate(int speed, int amount, int county);
+ int angle_difference(int a1, int a2);
+ 
+--- a/src/stuff.c
++++ b/src/stuff.c
+@@ -53,7 +53,7 @@ float decoy_table [ANGLE_1]; // not used
+ float cos_table [ANGLE_1];
+ float sin_table [ANGLE_1];
+ 
+-inline int xpart(int angle, int length);
++int xpart(int angle, int length);
+ 
+ void init_trig(void)
+ {
+@@ -68,13 +68,13 @@ void init_trig(void)
+ 
+ }
+ 
+-inline int xpart(int angle, int length)
++int xpart(int angle, int length)
+ {
+ // return (lcos(angle) * length);// / ANGLE_1;
+  return (cos_table [angle & 1023] * length);// / ANGLE_1;
+ }
+ 
+-inline int ypart(int angle, int length)
++int ypart(int angle, int length)
+ {
+  return (sin_table [angle & 1023] * length);// / ANGLE_1;
+ }
diff -Naur excellent-bifurcation.orig/excellent-bifurcation-0.0.20071015/debian/patches/series excellent-bifurcation/excellent-bifurcation-0.0.20071015/debian/patches/series --- excellent-bifurcation.orig/excellent-bifurcation-0.0.20071015/debian/patches/series	2014-08-07 15:28:30.484522595 -0500
+++ excellent-bifurcation/excellent-bifurcation-0.0.20071015/debian/patches/series	2014-08-07 15:28:58.480523083 -0500
@@ -4,3 +4,4 @@
 link-with-libm.patch
 fix_allegro_linker_flag.patch
 fix_hurd_ftbfs.patch
+clang-ftbfs.diff

Reply via email to