public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug debuginfod/25493] New: --enable-debuginfod fails if CXX is set
@ 2020-02-02 10:52 heirecka at exherbo dot org
  2020-02-03 11:36 ` [Bug debuginfod/25493] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: heirecka at exherbo dot org @ 2020-02-02 10:52 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=25493

            Bug ID: 25493
           Summary: --enable-debuginfod fails if CXX is set
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debuginfod
          Assignee: unassigned at sourceware dot org
          Reporter: heirecka at exherbo dot org
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

The c++ compiler isn't named "g++" or "c++" on my system, but
"x86_64-pc-linux-gnu-c++" and I set CXX to that. This causes configure with
--enable-debuginfod to bail out on "if test "x$ac_cv_prog_ac_ct_CXX" = "x";
then enable_debuginfod=no; fi" (output below). Setting the cache variable lets
configure and the build succeed.

checking size of long... 8
checking for struct user_regs_struct... yes
checking x86_64-pc-linux-gnu-cc option for 32-bit word size... -m32
checking for 64-bit host... yes
checking whether x86_64-pc-linux-gnu-cc -m32 makes executables we can run... no
checking for bunzip2... yes
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-c++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-c++... none
configure: WARNING: not running biarch tests, x86_64-pc-linux-gnu-cc -m32 does
not work
checking whether x86_64-pc-linux-gnu-c++ supports C++11 features by default...
yes
configure: checking debuginfod dependencies, disable to skip
checking pkg-config is at least version 0.9.0... yes
checking for libmicrohttpd... yes
checking for libcurl... yes
checking for sqlite3... yes
checking for libarchive... yes
configure: error: C++ compiler or dependencies not found, use
--disable-debuginfod to disable.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug debuginfod/25493] --enable-debuginfod fails if CXX is set
  2020-02-02 10:52 [Bug debuginfod/25493] New: --enable-debuginfod fails if CXX is set heirecka at exherbo dot org
@ 2020-02-03 11:36 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2020-02-03 11:36 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=25493

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |fche at redhat dot com
         Resolution|---                         |FIXED

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
https://sourceware.org/git/?p=elfutils.git;a=commitdiff;h=14d5b412dc3baef19bc993c83acdb750fc7e194f
fixes

--- a/configure.ac
+++ b/configure.ac
@@ -687,18 +687,18 @@ fi
 # both client and server.
 AC_ARG_ENABLE([debuginfod],AC_HELP_STRING([--enable-debuginfod], [Build
debuginfod server and client]))
 AC_PROG_CXX
-AX_CXX_COMPILE_STDCXX(11, noext, optional)
 AS_IF([test "x$enable_debuginfod" != "xno"], [
-    AC_MSG_NOTICE([checking debuginfod dependencies, disable to skip])
+    AC_MSG_NOTICE([checking debuginfod C++11 support, --disable-debuginfod to
skip])
+    AX_CXX_COMPILE_STDCXX(11, noext, mandatory)
+    AC_MSG_NOTICE([checking debuginfod dependencies, --disable-debuginfod to
skip])
     enable_debuginfod=yes # presume success
     PKG_PROG_PKG_CONFIG
-    if test "x$ac_cv_prog_ac_ct_CXX" = "x"; then enable_debuginfod=no; fi
     PKG_CHECK_MODULES([libmicrohttpd],[libmicrohttpd >=
0.9.33],[],[enable_debuginfod=no])
     PKG_CHECK_MODULES([libcurl],[libcurl >= 7.29.0],[],[enable_debuginfod=no])
     PKG_CHECK_MODULES([sqlite3],[sqlite3 >= 3.7.17],[],[enable_debuginfod=no])
     PKG_CHECK_MODULES([libarchive],[libarchive >=
3.1.2],[],[enable_debuginfod=no])
     if test "x$enable_debuginfod" = "xno"; then
-      AC_MSG_ERROR([C++ compiler or dependencies not found, use
--disable-debuginfod to disable.])
+      AC_MSG_ERROR([dependencies not found, use --disable-debuginfod to
disable.])
     fi
 ])

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-03 11:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-02 10:52 [Bug debuginfod/25493] New: --enable-debuginfod fails if CXX is set heirecka at exherbo dot org
2020-02-03 11:36 ` [Bug debuginfod/25493] " fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).