You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2020/05/19 21:07:31 UTC

[Bug 64456] New: [APR] Autotools configure fails when compiler is clang on Linux

https://bz.apache.org/bugzilla/show_bug.cgi?id=64456

            Bug ID: 64456
           Summary: [APR] Autotools configure fails when compiler is clang
                    on Linux
           Product: APR
           Version: 1.7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
          Assignee: bugs@apr.apache.org
          Reporter: tridacnid@gmail.com
  Target Milestone: ---

I saw that apr had been added to the conan center index so I went to check it
out. Sadly, the package refuses to get through the configure stage because of a
compiler warning turned error by -Werror.

reported by configure:
...
checking whether int64_t and int use fmt %d... no
checking whether int64_t and long use fmt %ld... no
checking whether int64_t and long long use fmt %lld... no
configure: error: could not determine the string function for int64_t

from config.log:
...
configure:24281: checking whether int64_t and long long use fmt %lld
configure:24313: /software/clang/9.0.0/bin/clang -c -m64 -O3 -s -fPIC -pthread 
-Werror -DNDEBUG -DLINUX -D_REENTRANT -D_GNU_SOURCE conftest.c >&5
clang-9: error: argument unused during compilation: '-s'
[-Werror,-Wunused-command-line-argument]
configure:24313: $? = 1

If the fix isn't too involved a patch could also be submitted to the conan
center index to fix 1.7.0.

I'll try digging around a bit but I'm an Autotools novice.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


[Bug 64456] [APR] Autotools configure fails when compiler is clang on Linux

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64456

--- Comment #1 from Joe Burzinski <tr...@gmail.com> ---
Turns out it's user error. I was running Conan with a gcc profile but had
manually overridden the CC and CXX env vars to point to my clang compiler.
Conan will set -s for a gcc build but not a clang build.

Feel free to close this out.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


[Bug 64456] [APR] Autotools configure fails when compiler is clang on Linux

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64456

William A. Rowe Jr. <wr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org