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

CMake Error at /usr/share/cmake/Modules/TestBigEndian.cmake with GCC 4.4 #36

Closed
dranch opened this issue Feb 7, 2016 · 1 comment
Closed
Assignees
Milestone

Comments

@dranch
Copy link

dranch commented Feb 7, 2016

When compiling the Airspu host libraries and tools on Centos6.7, running the "cmake ../ -DINSTALL_UDEV_RULES=ON" command gives the following error:

-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of unsigned short
-- Check size of unsigned short - failed
-- Check size of unsigned int
-- Check size of unsigned int - failed
-- Check size of unsigned long
-- Check size of unsigned long - failed
CMake Error at /usr/share/cmake/Modules/TestBigEndian.cmake:44 (message):
no suitable type found
Call Stack (most recent call first):
libairspy/CMakeLists.txt:73 (TEST_BIG_ENDIAN)

Per this HackRF thread ( https://pairlist9.pair.net/pipermail/hackrf-dev/2013-July/000120.html ), the libairspy/CMakeLists.txt and airspy-tools/CMakeLists.txt files improperly specify the gnu90 ANSI standard but GCC v4.4 only supports GNU89. Simply deleting these two lines fixes the issue and things compile fine.

--David

bvernoux added a commit that referenced this issue Feb 21, 2016
@bvernoux
Copy link
Member

Could you confirm your problem is fixed ? (in order to close this issue)

@bvernoux bvernoux added this to the 1.0.8 milestone Feb 21, 2016
@bvernoux bvernoux self-assigned this Feb 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants