[Bug 843310] New: Swig update to version 2.0.11 causes build failures for plplot in Factory

https://bugzilla.novell.com/show_bug.cgi?id=843310 https://bugzilla.novell.com/show_bug.cgi?id=843310#c0 Summary: Swig update to version 2.0.11 causes build failures for plplot in Factory Classification: openSUSE Product: openSUSE Factory Version: 13.1 Beta 1 Platform: x86-64 OS/Version: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: badshah400@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=560905) --> (http://bugzilla.novell.com/attachment.cgi?id=560905) Build log showing failure at the end in obs://science/plplot for openSUSE_Factory User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 The recent update of swig to version 2.0.11 in openSUSE:Factory causes build failures for the package plplot (specifically its lua bindings) to break due to some swig internal "int" functions returning void data. plplot with lua bindings builds just fine in 13.1 for instance, which is still using swig 2.0.10. More details and log will be attached soon (as soon as local build is done). Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=843310 https://bugzilla.novell.com/show_bug.cgi?id=843310#c1 --- Comment #1 from Atri Bhattacharya <badshah400@gmail.com> 2013-09-30 19:38:05 UTC --- This is how the internally generated function causes problems by not returning a data of the correct function type (expects an int, gets a void):- SWIGINTERN int SWIG_Lua_add_namespace_details(lua_State* L, swig_lua_namespace* ns) { int i = 0; assert(lua_istable(L,-1)); /* There must be table at the top of the stack */ SWIG_Lua_InstallConstants(L, ns->ns_constants); lua_getmetatable(L,-1); /* add fns */ for(i=0;ns->ns_attributes[i].name;i++){ SWIG_Lua_add_class_variable(L,ns->ns_attributes[i].name,ns->ns_attributes[i].getmethod,ns->ns_attributes[i].setmethod); } /* add methods to the metatable */ SWIG_Lua_get_table(L,".fn"); /* find the .fn table */ assert(lua_istable(L,-1)); /* just in case */ for(i=0;ns->ns_methods[i].name;i++){ SWIG_Lua_add_function(L,ns->ns_methods[i].name,ns->ns_methods[i].method); } lua_pop(L,1); /* clear stack - remove metatble */ lua_pop(L,1); } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=843310 https://bugzilla.novell.com/show_bug.cgi?id=843310#c2 Greg Freemyer <Greg.Freemyer@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Greg.Freemyer@gmail.com --- Comment #2 from Greg Freemyer <Greg.Freemyer@gmail.com> 2013-09-30 15:50:44 EDT --- libprelude is having the same problem. And it to works fine in 13.1 but fails to build in recent factory. It is getting two build failures related to SWIG helpers. For both helpers they are declared as returning int, but don't have a return statement. One is the same as the previous comment. The second one is: /* helper function. creates namespace table and add it to module table */ SWIGINTERN int SWIG_Lua_namespace_register(lua_State* L, swig_lua_namespace* ns) { assert(lua_istable(L,-1)); /* just in case. This is supposed to be module table */ lua_checkstack(L,5); lua_pushstring(L, ns->name); lua_newtable(L); /* namespace itself */ lua_newtable(L); /* metatable for namespace */ /* add a table called ".get" */ lua_pushstring(L,".get"); lua_newtable(L); lua_rawset(L,-3); /* add a table called ".set" */ lua_pushstring(L,".set"); lua_newtable(L); lua_rawset(L,-3); /* add a table called ".fn" */ lua_pushstring(L,".fn"); lua_newtable(L); lua_rawset(L,-3); /* add accessor fns for using the .get,.set&.fn */ SWIG_Lua_add_function(L,"__index",SWIG_Lua_namespace_get); SWIG_Lua_add_function(L,"__newindex",SWIG_Lua_namespace_set); lua_setmetatable(L,-2); /* set metatable */ lua_rawset(L,-3); /* add namespace to module table */ } ================== The build of libprelude fails for the obvious reason: [ 236s] I: Program returns random data in a function [ 236s] E: libprelude no-return-in-nonvoid-function PreludeEasy.cxx:1278, 1248 [ 236s] [ 236s] I: Program returns random data in a function [ 236s] E: libprelude no-return-in-nonvoid-function PreludeEasy.cxx:1278, 1248 Greg -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=843310 https://bugzilla.novell.com/show_bug.cgi?id=843310#c Greg Freemyer <Greg.Freemyer@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |mmarek@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=843310 https://bugzilla.novell.com/show_bug.cgi?id=843310#c3 --- Comment #3 from Atri Bhattacharya <badshah400@gmail.com> 2013-09-30 20:19:12 UTC --- I have figured out the issue with swig 2.0.11 [1], and am soon going to submit the fix for swig that should correct these build failures. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

https://bugzilla.novell.com/show_bug.cgi?id=843310 https://bugzilla.novell.com/show_bug.cgi?id=843310#c4 --- Comment #4 from Atri Bhattacharya <badshah400@gmail.com> 2013-09-30 20:22:55 UTC --- Sorry, I forgot to link the upstream bug (tagged as [1] in c#3 above) [1] https://github.com/swig/swig/issues/93 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com