h2o / h2o/qrintf

cmake: Detecting C compile features - failed

Open
#26 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
404
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Hi,

When I try to use qrintf with cmake, I got following errors:

```bash
➜ cmake-build-debug git:(master) CC="/usr/local/bin/qrintf cc" cmake ..
-- The C compiler identification is GNU 8.1.0
-- Check for working C compiler: /usr/local/bin/qrintf
-- Check for working C compiler: /usr/local/bin/qrintf -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - failed
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done

```

As you can see, the cmake try to test the C compile features, but it failed.

How we integrate qrintf with cmake?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the reported command with CC="/usr/local/bin/qrintf cc" cmake .. and inspect the CMake configure output around "Detecting C compile features". Trace how qrintf handles CMake's compiler probes and determine what successful integration should report; done means configuration completes without the compile-features failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.