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

Can't build under macOS #16

Open
gmisail opened this issue Sep 1, 2017 · 3 comments
Open

Can't build under macOS #16

gmisail opened this issue Sep 1, 2017 · 3 comments

Comments

@gmisail
Copy link

gmisail commented Sep 1, 2017

I followed the steps in the README. After building, I get this error message.

/Users/gmisail/Desktop/Projects/Junior/CPP/CRay/fips-workspace/fips-bgfx/bgfx/3rdparty/etc2/ProcessRGB.cpp:208:53: error: 
      member reference base type 'v4i' (aka 'uint16 [4]') is not a structure or
      union
        __m128i d = _mm_loadu_si128((__m128i*)a[i*2].data());
                                              ~~~~~~^~~~~
/Users/gmisail/Desktop/Projects/Junior/CPP/CRay/fips-workspace/fips-bgfx/bgfx/3rdparty/etc2/ProcessRGB.cpp:225:44: error: 
      member reference base type 'v4i' (aka 'uint16 [4]') is not a structure or
      union
        _mm_storeu_si128((__m128i*)a[4+i*2].data(), a0);
                                   ~~~~~~~~^~~~~
/Users/gmisail/Desktop/Projects/Junior/CPP/CRay/fips-workspace/fips-bgfx/bgfx/3rdparty/etc2/ProcessRGB.cpp:230:53: error: 
      member reference base type 'v4i' (aka 'uint16 [4]') is not a structure or
      union
        __m128i d = _mm_loadu_si128((__m128i*)a[i*2].data());
                                              ~~~~~~^~~~~
/Users/gmisail/Desktop/Projects/Junior/CPP/CRay/fips-workspace/fips-bgfx/bgfx/3rdparty/etc2/ProcessRGB.cpp:237:42: error: 
      member reference base type 'v4i' (aka 'uint16 [4]') is not a structure or
      union
        _mm_storeu_si128((__m128i*)a[i*2].data(), t2);
                                   ~~~~~~^~~~~
4 errors generated.

** BUILD FAILED **


The following build commands failed:
	CompileC /Users/gmisail/Desktop/Projects/Junior/CPP/CRay/fips-workspace/fips-build/fips-bgfx/osx-xcode-debug/fips-bgfx.build/Debug/bgfx-etc2.build/Objects-normal/x86_64/ProcessRGB.o bgfx/3rdparty/etc2/ProcessRGB.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
[ERROR] Failed to build config 'osx-xcode-debug' of project 'fips-bgfx'

I am running macOS 10.12.4.

@floooh
Copy link
Owner

floooh commented Sep 2, 2017

Hmm yes I can reproduce, might be caused by new clang versions. Unfortunately simply updating the bgfx and bx submodule introduced other problems (with the fips cmake wrapper scripts, could be that the directory structure has changed). I currently cannot take care of this since I'm not working with bgfx at the moment, but pull requests are welcome of course.

@SirTrashyton
Copy link

Would you happen to know a fix? I have scoured the internet far and wide and have yet to find a conclusion.
My logs:
/bin/sh: cmake: command not found
[ERROR] Failed to generate 'osx-xcode-debug' of project 'fips-bgfx'

@floooh
Copy link
Owner

floooh commented May 3, 2019

@SirTrashyton ...I'm only seeing the original error outlined above when trying to compile (which is somehow related to SIMD intrinsics). Your problem looks more basic, like fips itself isn't working.

When you run ./fips diag tools, does it find cmake? It should roughly look like this:

> ./fips diag tools
=== tools:
git:	found
cmake:	found
ccmake:	found
make:	found
ninja:	found
xcodebuild:	found
xcrun:	found
javac:	found
java:	found
python2:	found
ccache:	OPTIONAL, NOT FOUND (used with './fips set ccache on')
vscode:	found
clion:	OPTIONAL, NOT FOUND (used as IDE with clion configs)

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

3 participants