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

Fixes Solaris build. #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixes Solaris build. #55

wants to merge 1 commit into from

Conversation

psumbera
Copy link

On Solaris /usr/include/sys/isa_defs.h defines _LITTLE_ENDIAN or _BIG_ENDIAN
without any value.

Following is build error from Firefox where it's used:

gmake[1]: Entering directory '/scratch/firefox/obj-x86_64-pc-solaris2.11/gfx/angle/targets/angle_common'
/usr/bin/g++ -std=gnu++14 -o PMurHash.o -c -I/scratch/firefox/obj-x86_64-pc-solaris2.11/dist/stl_wrappers -I/scratch/firefox/obj-x86_64-pc-solaris2.11/dist/system_wrappers -include /scratch/firefox/config/gcc_hidden.h -DNDEBUG=1 -DTRIMMED=1 -D__NDK_FPABI__= -Dconstexpr14= -DANGLE_SKIP_DXGI_1_2_CHECK -DANGLE_ENABLE_DEBUG_ANNOTATIONS -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES -DNOMINMAX -DNTDDI_VERSION=0x0A000000 -DUNICODE -D_ATL_NO_OPENGL -D_CRT_RAND_S -D_CRT_SECURE_NO_DEPRECATE -D_HAS_EXCEPTIONS=0 -D_SCL_SECURE_NO_DEPRECATE -D_SECURE_ATL -D_UNICODE -I/scratch/firefox/gfx/angle/targets/angle_common -I/scratch/firefox/obj-x86_64-pc-solaris2.11/gfx/angle/targets/angle_common -I/scratch/firefox/gfx/angle/checkout -I/scratch/firefox/gfx/angle/checkout/include -I/scratch/firefox/gfx/angle/checkout/out/gen -I/scratch/firefox/gfx/angle/checkout/out/gen/angle -I/scratch/firefox/gfx/angle/checkout/src -I/scratch/firefox/gfx/angle/checkout/src/common/third_party/base -I/scratch/firefox/obj-x86_64-pc-solaris2.11/dist/include -I/scratch/firefox/obj-x86_64-pc-solaris2.11/dist/include/nspr -I/scratch/firefox/obj-x86_64-pc-solaris2.11/dist/include/nss -fPIC -DMOZILLA_CLIENT -include /scratch/firefox/obj-x86_64-pc-solaris2.11/mozilla-config.h -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-error=free-nonheap-object -Wformat -fno-sized-deallocation -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -pthread -pipe -g -O -fno-omit-frame-pointer -msse2 -MD -MP -MF .deps/PMurHash.o.pp /scratch/firefox/gfx/angle/checkout/src/common/third_party/smhasher/src/PMurHash.cpp
/scratch/firefox/gfx/angle/checkout/src/common/third_party/smhasher/src/PMurHash.cpp:94:102: error: operator '&&' has no right operand
#if defined(LITTLE_ENDIAN) && LITTLE_ENDIAN==1 || defined(_LITTLE_ENDIAN) && _LITTLE_ENDIAN==1
^
gmake[1]: *** [/scratch/firefox/config/rules.mk:1047: PMurHash.o] Error 1

On Solaris /usr/include/sys/isa_defs.h defines _LITTLE_ENDIAN or _BIG_ENDIAN
without any value.
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

Successfully merging this pull request may close these issues.

None yet

1 participant