inspircd / inspircd

A modular C++ IRC server (ircd).
https://www.inspircd.org
1.14k stars 265 forks source link

[slibtool] [clang] make: No targets specified and no makefile found. Stop. #2070

Closed clinew closed 4 months ago

clinew commented 6 months ago

Description

I got a bug report where a user is not able to build inspircd with the clang compiler.

Looking at the logs shows that the CXX environment variable appears to be set to clang++ and the find_compilers() method in make/configure.pm shows clang++ in the list of compilers. Based on looking at the code, I don't see why clang++ isn't found. Any ideas what might be going wrong here?

Steps to reproduce the issue:

  1. Currently unknown :(

Describe the results you received: Build failure.

Describe the results you expected: Build success.

Additional information you deem important (e.g. issue happens only occasionally): Bug report: https://bugs.gentoo.org/show_bug.cgi?id=919508

Output of ./bin/inspircd --version: N/A since build fails, but source is 3.16.1.

SadieCat commented 6 months ago

The way it checks if the compiler exists is by trying to execute it. It should output something if you're using INSPIRCD_VERBOSE=1 but it doesn't seem to be doing that for some reason? Weird.

satmd commented 4 months ago

There's a proposed solution in https://github.com/inspircd/inspircd/pull/2071