[Bug 985386] New: GCC6: vtk fails to build
http://bugzilla.opensuse.org/show_bug.cgi?id=985386 Bug ID: 985386 Summary: GCC6: vtk fails to build Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: dimstar@opensuse.org QA Contact: qa-bugs@suse.de Blocks: 984984 Found By: --- Blocker: --- Since the update to GCC6, openSUSE:Factory/vtk fails to build -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985386
Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=985386 http://bugzilla.opensuse.org/show_bug.cgi?id=985386#c1 Marguerite Su changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |i@marguerite.su --- Comment #1 from Marguerite Su --- [ 2764s] In file included from /home/abuild/rpmbuild/BUILD/VTK-7.0.0/Filters/StatisticsGnuR/vtkRInterface.cxx:50:0: [ 2764s] /usr/lib/R/include/Rinterface.h:106:24: error: conflicting declaration 'typedef long unsigned int uintptr_t' [ 2764s] typedef unsigned long uintptr_t; [ 2764s] ^~~~~~~~~ [ 2764s] In file included from /usr/lib/gcc/i586-suse-linux/6/include/stdint.h:9:0, [ 2764s] from /usr/include/c++/6/cstdint:41, [ 2764s] from /usr/include/c++/6/bits/char_traits.h:420, [ 2764s] from /usr/include/c++/6/ios:40, [ 2764s] from /usr/include/c++/6/ostream:38, [ 2764s] from /usr/include/c++/6/iostream:39, [ 2764s] from /home/abuild/rpmbuild/BUILD/VTK-7.0.0/Common/Core/vtkIOStream.h:28, [ 2764s] from /home/abuild/rpmbuild/BUILD/VTK-7.0.0/Common/Core/vtkSystemIncludes.h:36, [ 2764s] from /home/abuild/rpmbuild/BUILD/VTK-7.0.0/Common/Core/vtkIndent.h:25, [ 2764s] from /home/abuild/rpmbuild/BUILD/VTK-7.0.0/Common/Core/vtkObjectBase.h:44, [ 2764s] from /home/abuild/rpmbuild/BUILD/VTK-7.0.0/Common/Core/vtkObject.h:42, [ 2764s] from /home/abuild/rpmbuild/BUILD/VTK-7.0.0/Filters/StatisticsGnuR/vtkRInterface.h:43, [ 2764s] from /home/abuild/rpmbuild/BUILD/VTK-7.0.0/Filters/StatisticsGnuR/vtkRInterface.cxx:21: [ 2764s] /usr/include/stdint.h:128:23: note: previous declaration as 'typedef unsigned int uintptr_t' [ 2764s] typedef unsigned int uintptr_t; [ 2764s] ^~~~~~~~~ It's not a bug of VTK but R-base. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985386 http://bugzilla.opensuse.org/show_bug.cgi?id=985386#c2 Marguerite Su changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED CC| |detlef.steuer@gmx.de Flags| |needinfo?(detlef.steuer@gmx | |.de) --- Comment #2 from Marguerite Su --- Hi, Detlef, Can you please look at this bug? looks to me that stdint.h from glibc-devel defined a different typedef of uintptr_t (unsigned int) with the typedef in R/include/Rinterface.h. In x86_64, int and long and indentical, but in ix86, there're not the same. I think a simple patch in R-base will resolve this. Marguerite -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985386
http://bugzilla.opensuse.org/show_bug.cgi?id=985386#c3
Detlef Steuer
http://bugzilla.opensuse.org/show_bug.cgi?id=985386
http://bugzilla.opensuse.org/show_bug.cgi?id=985386#c4
--- Comment #4 from Atri Bhattacharya
Thx for reporting! Have sent question to upstream.
Any progress? vtk still fails on Factory/i586 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985386
http://bugzilla.opensuse.org/show_bug.cgi?id=985386#c5
--- Comment #5 from Detlef Steuer
(In reply to Detlef Steuer from comment #3)
Thx for reporting! Have sent question to upstream.
Any progress? vtk still fails on Factory/i586
There are two points I got from discussions: 1. The toolchain change to gcc6 is a major point for R and therefore happens only in R-devel. Transistion to gcc6 is not complete right now. Current versions of R (3.3.1) wonŽt get special treatment for gcc6. (-released/-patched) 2. Concerning this bug the status seems to be (from some discussion) ---------------- AFAICT it's not about R sources not compiling. Rather, SUSE has a failed build of VTK-7.0.0/Filters/StatisticsGnuR/vtkRInterface.cxx which is presumably an interface to R using the embedding API. This #includes Rinterface.h, which contains #if !defined(HAVE_UINTPTR_T) && !defined(uintptr_t) typedef unsigned long uintptr_t; #endif which conflicts with a previous typedef of uintptr_t. The !defined(uintptr_t) bit will not catch it because typedefs are not macros, so HAVE_UINTPTR_T is the only vehicle for telling the compiler about the previous definition. For standalone R, it looks like configure works out the setting of HAVE_UINTPTR_T, but it's not setting it for embedded R uses. Presumably that is for a reason - the embedder might not be using the same compilers, e.g. According to R/doc/manual/R-exts.texi (= the manual "Writing R Extensions"), for embedded R " Note that @code{uintptr_t} is a C99 type for which a substitute is defined in @R{}, so your code needs to define @code{HAVE_UINTPTR_T} appropriately. " Notice "your code". In short, this seems to be is an application error that needs to be fixed downstreams. ----------------------------------------------------------------- The last two lines for me seem relevant for the current problems in VTK. Hope that helps a bit. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=985386
http://bugzilla.opensuse.org/show_bug.cgi?id=985386#c6
Atri Bhattacharya
http://bugzilla.opensuse.org/show_bug.cgi?id=985386
http://bugzilla.opensuse.org/show_bug.cgi?id=985386#c7
Dominique Leuenberger
participants (1)
-
bugzilla_noreply@novell.com