Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894410 - dev-lang/nim-1.6.10-r2 fails to compile (MUSL-CLANG-SYSTEM): @mnimsuggest.nim.c:5157:21: error: incompatible integer to pointer conversion passing unsigned long to parameter of type pthread_t (aka struct __pthread ) [-Wint-conversion]
Summary: dev-lang/nim-1.6.10-r2 fails to compile (MUSL-CLANG-SYSTEM): @mnimsuggest.nim...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nim project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-02-14 15:40 UTC by Agostino Sarubbo
Modified: 2023-08-01 18:53 UTC (History)
0 users

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


Attachments
build.log (build.log,103.29 KB, text/plain)
2023-02-14 15:40 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-02-14 15:40:46 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/nim-1.6.10-r2 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-14 15:40:48 UTC
Created attachment 851114 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-14 15:40:50 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


Error: execution of an external compiler program 'clang -c -w -fmax-errors=3 -pthread -O2 -march=x86-64 -pipe -pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0   -I/var/tmp/portage/dev-lang/nim-1.6.10-r2/work/nim-1.6.10/lib -I/var/tmp/portage/dev-lang/nim-1.6.10-r2/work/nim-1.6.10/nimsuggest -o /var/tmp/portage/dev-lang/nim-1.6.10-r2/homedir/.cache/nim/nimsuggest_r/@mnimsuggest.nim.c.o /var/tmp/portage/dev-lang/nim-1.6.10-r2/homedir/.cache/nim/nimsuggest_r/@mnimsuggest.nim.c' failed with exit code: 1
FAILURE
/var/tmp/portage/dev-lang/nim-1.6.10-r2/homedir/.cache/nim/nimsuggest_r/@mnimsuggest.nim.c:5157:21: error: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'pthread_t' (aka 'struct __pthread *') [-Wint-conversion]
Comment 3 Larry the Git Cow gentoo-dev 2023-08-01 18:53:29 UTC
The bug has been closed via the following commit(s):

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

commit dc782311e3321039894e8fa8f7a5188c5bdabf7b
Author:     Brahmajit Das <brahmajit.xyz@gmail.com>
AuthorDate: 2023-07-31 13:49:20 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2023-08-01 18:53:24 +0000

    dev-lang/nim: Fix incompatible integer to pointer conversion
    
    Closes: https://bugs.gentoo.org/894410
    Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/32120
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 .../nim/files/nim-1.6.14-clang16-musl-fix.patch    |  13 ++
 dev-lang/nim/nim-1.6.14-r1.ebuild                  | 202 +++++++++++++++++++++
 2 files changed, 215 insertions(+)