Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915603 - net-misc/whois-5.5.19 fails to build with LLVM/Clang
Summary: net-misc/whois-5.5.19 fails to build with LLVM/Clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://github.com/termux/termux-pack...
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2023-10-11 19:24 UTC by asdfg
Modified: 2023-11-17 15:11 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,20.85 KB, text/plain)
2023-10-11 19:24 UTC, asdfg
Details
Complete build log (build.log,6.37 KB, text/plain)
2023-10-11 19:24 UTC, asdfg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description asdfg 2023-10-11 19:24:20 UTC
Created attachment 872589 [details]
emerge --info

In file included from utils.c:34:
./utils.h:62:7: error: 'malloc' attribute takes
      no arguments
   62 | void *MALLOC_FREE NONNULL do_nofail(void *ptr, const char *fil...
      |       ^
./utils.h:20:37: note: expanded from macro
      'MALLOC_FREE'
   20 | # define MALLOC_FREE __attribute__((malloc(free)))
      |                                     ^
In file included from simple_recode.c:29:
./utils.h:62:7: error: 'malloc' attribute takes
      no arguments
   62 | void *MALLOC_FREE NONNULL do_nofail(void *ptr, const char *fil...
      |       ^
./utils.h:20:37: note: expanded from macro
      'MALLOC_FREE'
   20 | # define MALLOC_FREE __attribute__((malloc(free)))
      |                                     ^
1 error generated.
1 error generated.
make: *** [Makefile:71: utils.o] Error 1
make: *** Waiting for unfinished jobs....
msgfmt --statistics --check --verbose --output-file=cs.mo cs.po
make: *** [Makefile:71: simple_recode.o] Error 1


emerge -pv1 whois:

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 2.83 s (backtrack: 0/10).

[ebuild     U  ] net-misc/whois-5.5.19::gentoo [5.5.18-r1::gentoo] USE="iconv nls -idn -xcrypt" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB
Comment 1 asdfg 2023-10-11 19:24:47 UTC
Created attachment 872590 [details]
Complete build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-13 15:15:45 UTC
Clang doesn't support the malloc attribute with multiple arguments, see https://github.com/llvm/llvm-project/issues/51607.
Comment 3 Larry the Git Cow gentoo-dev 2023-11-12 04:24:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=023f317a9630dc99e8a2da3190c3beb3e615208a

commit 023f317a9630dc99e8a2da3190c3beb3e615208a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-11-12 04:05:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-11-12 04:05:37 +0000

    net-misc/whois: add 5.5.20
    
    Closes: https://bugs.gentoo.org/915603
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/whois/Manifest            |  1 +
 net-misc/whois/whois-5.5.20.ebuild | 81 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)