Bug 58879

Summary: Build failure: codegen/nv50_ir.cpp:718:4: error: must #include <typeinfo> before using typeid
Product: Mesa Reporter: Iaroslav Andrusyak <pontostroy>
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Iaroslav Andrusyak 2012-12-30 10:31:41 UTC
Mesa-git 
gcc version 4.7.2 20121218 [gcc-4_7-branch revision 194579] (SUSE Linux) 


[  706s] g++ -c -I. -I../../../../src/gallium/include -I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers -I/usr/include/libdrm   -fomit-frame-pointer -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -DNDEBUG -Wall -fno-strict-aliasing -fno-builtin-memcmp -fPIC -D_GNU_SOURCE -DHAVE_PTHREAD -DTEXTURE_FLOAT_ENABLED -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DIN_DRI_DRIVER -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_PTHREAD -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_LLVM=0x0302 -fvisibility=hidden -I/usr/include  -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS codegen/nv50_ir.cpp -o codegen/nv50_ir.o
[  706s] codegen/nv50_ir.cpp: In member function 'virtual nv50_ir::Instruction* nv50_ir::Instruction::clone(nv50_ir::ClonePolicy<nv50_ir::Function>&, nv50_ir::Instruction*) const':
[  706s] codegen/nv50_ir.cpp:718:4: error: must #include <typeinfo> before using typeid
[  706s] codegen/nv50_ir.cpp:718:4: error: must #include <typeinfo> before using typeid
[  706s] gmake[4]: *** [codegen/nv50_ir.o] Error 1
[  706s] gmake[4]: Leaving directory `/home/abuild/rpmbuild/BUILD/mesa/src/gallium/drivers/nv50'
[  706s] gmake[3]: *** [all-recursive] Error 1
[  706s] gmake[3]: Leaving directory `/home/abuild/rpmbuild/BUILD/mesa/src/gallium/drivers'
[  706s] gmake[2]: *** [all-recursive] Error 1
[  706s] gmake[2]: Leaving directory `/home/abuild/rpmbuild/BUILD/mesa/src/gallium'
[  706s] gmake[1]: *** [all-recursive] Error 1
[  706s] gmake[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/mesa/src'
[  706s] make: *** [all-recursive] Error 1
[  706s] error: Bad exit status from /var/tmp/rpm-tmp.L4KiHH (%build)
Comment 1 Johannes Obermayr 2012-12-30 14:44:11 UTC
I cannot see this failure in home:pontostroy:X11.

Maybe you should try soon to merge automake branch:
https://github.com/jobermayr/mesa

If build failure is there I will investigate it (but it works on my local OBS instance for i586 and x86_64 against openSUSE_12.2).

Btw. you must adapt your spec file for this:
%_libdir/libdricore%version.so* were removed
%_libdir/mesa-%version dir was introduced

And please don't introduce a stupid new %version package.
Comment 2 Iaroslav Andrusyak 2012-12-30 14:55:01 UTC
(In reply to comment #1)
> I cannot see this failure in home:pontostroy:X11.

I removed nouveau from spec due to this error over a month ago.
Comment 3 Iaroslav Andrusyak 2012-12-30 15:58:54 UTC
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir.cpp
index 335e9e0..14d6f79 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir.cpp
@@ -23,6 +23,7 @@
 #include "nv50_ir.h"
 #include "nv50_ir_target.h"
 #include "nv50_ir_driver.h"
+#include <typeinfo>
 
 extern "C" {
 #include "nv50/nv50_program.h"

With this works fine.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.