Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build is broken #55

Open
Hi-Angel opened this issue Jan 28, 2017 · 1 comment
Open

Build is broken #55

Hi-Angel opened this issue Jan 28, 2017 · 1 comment

Comments

@Hi-Angel
Copy link

Hi-Angel commented Jan 28, 2017

As of gcc-6.3, build stops with the error on this line

In file included from ../../src/vectormath/sse/vectormath_aos.h:2543:0,
				 from ../../src/vectormath/vmInclude.h:11,
				 from ../../src/BulletMultiThreaded/PlatformDefinitions.h:16,
				 from ../../src/BulletMultiThreaded/Win32Threading.cpp:1:
../../src/vectormath/sse/vec_aos.h: In member function ‘const Vectormath::Aos::Vector3 Vectormath::Aos::Vector3::operator-() const’:
../../src/vectormath/sse/vec_aos.h:580:97: error: narrowing conversion of ‘2147483648u’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]
  VM_ATTRIBUTE_ALIGN16 static const int array[] = {0x80000000, 0x80000000, 0x80000000, 0x80000000};
																								 ^
../../src/vectormath/sse/vec_aos.h:580:97: error: narrowing conversion of ‘2147483648u’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]
../../src/vectormath/sse/vec_aos.h:580:97: error: narrowing conversion of ‘2147483648u’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]
../../src/vectormath/sse/vec_aos.h:580:97: error: narrowing conversion of ‘2147483648u’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]
In file included from ../../src/vectormath/vmInclude.h:11:0,
				 from ../../src/BulletMultiThreaded/PlatformDefinitions.h:16,
				 from ../../src/BulletMultiThreaded/Win32Threading.cpp:1:
../../src/vectormath/sse/vectormath_aos.h: At global scope:
../../src/vectormath/sse/vectormath_aos.h:695:39: warning: inline function ‘const Vectormath::Aos::Vector3 Vectormath::Aos::select(const Vectormath::Aos::Vector3&, const Vectormath::Aos::Vector3&, const Vectormath::boolInVec&)’ used but never defined
 VECTORMATH_FORCE_INLINE const Vector3 select( const Vector3 &vec0, const Vector3 &vec1, const boolInVec &select1 );
									   ^~~~~~
In file included from ../../src/vectormath/vmInclude.h:11:0,
				 from ../../src/BulletMultiThreaded/PlatformDefinitions.h:16,
				 from ../../src/BulletMultiThreaded/Win32Threading.cpp:1:
../../src/vectormath/sse/vectormath_aos.h:1648:36: warning: inline function ‘const Vectormath::Aos::Quat Vectormath::Aos::select(const Vectormath::Aos::Quat&, const Vectormath::Aos::Quat&, const Vectormath::boolInVec&)’ used but never defined
 VECTORMATH_FORCE_INLINE const Quat select( const Quat &quat0, const Quat &quat1, const boolInVec &select1 );
									^~~~~~
make[1]: *** [BulletMultiThreaded.make:135: obj/Release/BulletMultiThreaded/Win32Threading.o] Error 1
make: *** [Makefile:25: BulletMultiThreaded] Error 2
 + Linking...
 + Module created at ../build/bin/linux/release/vphysics_srv.so

I tried to fix this, and from my research the code there should be

VM_ATTRIBUTE_ALIGN16 static const unsigned short array[] = {0x8000, 0x8000, 0x8000, 0x8000};

Unfortunately it didn't fix the problem, and I've no idea what else is in there that I didn't see. Sorry.

@melvyn2
Copy link

melvyn2 commented Oct 7, 2020

Hi,
I realize that this is an old issue, but this simple fix silences the error:
VM_ATTRIBUTE_ALIGN16 static const int array[] = {static_cast<int>(0x80000000), static_cast<int>(0x80000000), static_cast<int>(0x80000000), static_cast<int>(0x80000000)};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants