#1298 SWIG go support not properly compiling on GCC >4.7.0

None
closed
go (2)
5
2014-05-02
2013-01-01
Alan Wild
No

Building swig 2.0.9 with gcc-4.7.2 and Go support I discovered an error in goruntime.swg. Here's a diff:

--- swig-2.0.9/Lib/go/goruntime.swg     2012-10-30 22:41:10.000000000 -0500
+++ swig-2.0.9.modified/Lib/go/goruntime.swg    2012-12-31 14:57:24.000000000 -0600
@@ -123,7 +123,7 @@
 #define SwigCgocallBackDone SWIGCONCAT1(SWIGMODULE, SwigCgocallBackDone)

 #define SWIG_GCC_VERSION \
-  (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC__PATH_LEVEL__)
+  (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)

 #if SWIG_GCC_VERSION < 40700
 #define SwigDoCgocall()

Discussion

  • William Fulton

    William Fulton - 2013-01-06
    • labels: --> go
    • milestone: -->
     
  • William Fulton

    William Fulton - 2014-05-02

    Thanks, fixed for fixed for 3.0.1.

     
  • William Fulton

    William Fulton - 2014-05-02
    • status: open --> closed
    • assigned_to: Karl Wette
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks