* [ruby-core:69931] [Ruby trunk - Bug #11343] [Open] random.c: getrandom compile error with clang
[not found] <redmine.issue-11343.20150710084208@ruby-lang.org>
@ 2015-07-10 8:42 ` hanmac
2015-07-10 8:46 ` [ruby-core:69932] [Ruby trunk - Bug #11343] " hanmac
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: hanmac @ 2015-07-10 8:42 UTC (permalink / raw)
To: ruby-core
Issue #11343 has been reported by Hans Mackowiak.
----------------------------------------
Bug #11343: random.c: getrandom compile error with clang
https://bugs.ruby-lang.org/issues/11343
* Author: Hans Mackowiak
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v:
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:69932] [Ruby trunk - Bug #11343] random.c: getrandom compile error with clang
[not found] <redmine.issue-11343.20150710084208@ruby-lang.org>
2015-07-10 8:42 ` [ruby-core:69931] [Ruby trunk - Bug #11343] [Open] random.c: getrandom compile error with clang hanmac
@ 2015-07-10 8:46 ` hanmac
2015-10-30 7:04 ` [ruby-core:71276] " nobu
2015-11-28 18:16 ` [ruby-core:71723] " nagachika00
3 siblings, 0 replies; 4+ messages in thread
From: hanmac @ 2015-07-10 8:46 UTC (permalink / raw)
To: ruby-core
Issue #11343 has been updated by Hans Mackowiak.
Description updated
Assignee set to Nobuyoshi Nakada
----------------------------------------
Bug #11343: random.c: getrandom compile error with clang
https://bugs.ruby-lang.org/issues/11343#change-53354
* Author: Hans Mackowiak
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* ruby -v:
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
`
random.c:526:8: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
ret = syscall(SYS_getrandom, seed, size, 0);
`
which does make the build of clang fail
and there is a warning in rb_ary_new too
`
enum.c:766:11: warning: unused typedef 'static_assert_rb_ary_new_from_args_check' [-Wunused-local-typedef]
values = rb_ary_new3(1, i);
./include/ruby/intern.h:91:21: note: expanded from macro 'rb_ary_new3'
#define rb_ary_new3 rb_ary_new_from_args
./internal.h:649:6: note: expanded from macro 'rb_ary_new_from_args'
STATIC_ASSERT(rb_ary_new_from_args, numberof(args_to_new_ary) == (n)); \
./internal.h:79:48: note: expanded from macro 'STATIC_ASSERT'
# define STATIC_ASSERT(name, expr) typedef int static_assert_##name##_check[1 - 2*!(expr)]
<scratch space>:354:1: note: expanded from here
static_assert_rb_ary_new_from_args_check
`
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:71276] [Ruby trunk - Bug #11343] random.c: getrandom compile error with clang
[not found] <redmine.issue-11343.20150710084208@ruby-lang.org>
2015-07-10 8:42 ` [ruby-core:69931] [Ruby trunk - Bug #11343] [Open] random.c: getrandom compile error with clang hanmac
2015-07-10 8:46 ` [ruby-core:69932] [Ruby trunk - Bug #11343] " hanmac
@ 2015-10-30 7:04 ` nobu
2015-11-28 18:16 ` [ruby-core:71723] " nagachika00
3 siblings, 0 replies; 4+ messages in thread
From: nobu @ 2015-10-30 7:04 UTC (permalink / raw)
To: ruby-core
Issue #11343 has been updated by Nobuyoshi Nakada.
Description updated
Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED
Please backport r51242 to 2.2.
----------------------------------------
Bug #11343: random.c: getrandom compile error with clang
https://bugs.ruby-lang.org/issues/11343#change-54653
* Author: Hans Mackowiak
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* ruby -v:
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED
----------------------------------------
```
random.c:526:8: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
ret = syscall(SYS_getrandom, seed, size, 0);
```
which does make the build of clang fail
and there is a warning in `rb_ary_new` too
```
enum.c:766:11: warning: unused typedef 'static_assert_rb_ary_new_from_args_check' [-Wunused-local-typedef]
values = rb_ary_new3(1, i);
./include/ruby/intern.h:91:21: note: expanded from macro 'rb_ary_new3'
#define rb_ary_new3 rb_ary_new_from_args
./internal.h:649:6: note: expanded from macro 'rb_ary_new_from_args'
STATIC_ASSERT(rb_ary_new_from_args, numberof(args_to_new_ary) == (n)); \
./internal.h:79:48: note: expanded from macro 'STATIC_ASSERT'
# define STATIC_ASSERT(name, expr) typedef int static_assert_##name##_check[1 - 2*!(expr)]
<scratch space>:354:1: note: expanded from here
static_assert_rb_ary_new_from_args_check
```
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:71723] [Ruby trunk - Bug #11343] random.c: getrandom compile error with clang
[not found] <redmine.issue-11343.20150710084208@ruby-lang.org>
` (2 preceding siblings ...)
2015-10-30 7:04 ` [ruby-core:71276] " nobu
@ 2015-11-28 18:16 ` nagachika00
3 siblings, 0 replies; 4+ messages in thread
From: nagachika00 @ 2015-11-28 18:16 UTC (permalink / raw)
To: ruby-core
Issue #11343 has been updated by Tomoyuki Chikanaga.
Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE
Backported r51242 into `ruby_2_2` branch at r52778.
----------------------------------------
Bug #11343: random.c: getrandom compile error with clang
https://bugs.ruby-lang.org/issues/11343#change-55129
* Author: Hans Mackowiak
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* ruby -v:
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE
----------------------------------------
```
random.c:526:8: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
ret = syscall(SYS_getrandom, seed, size, 0);
```
which does make the build of clang fail
and there is a warning in `rb_ary_new` too
```
enum.c:766:11: warning: unused typedef 'static_assert_rb_ary_new_from_args_check' [-Wunused-local-typedef]
values = rb_ary_new3(1, i);
./include/ruby/intern.h:91:21: note: expanded from macro 'rb_ary_new3'
#define rb_ary_new3 rb_ary_new_from_args
./internal.h:649:6: note: expanded from macro 'rb_ary_new_from_args'
STATIC_ASSERT(rb_ary_new_from_args, numberof(args_to_new_ary) == (n)); \
./internal.h:79:48: note: expanded from macro 'STATIC_ASSERT'
# define STATIC_ASSERT(name, expr) typedef int static_assert_##name##_check[1 - 2*!(expr)]
<scratch space>:354:1: note: expanded from here
static_assert_rb_ary_new_from_args_check
```
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-28 17:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <redmine.issue-11343.20150710084208@ruby-lang.org>
2015-07-10 8:42 ` [ruby-core:69931] [Ruby trunk - Bug #11343] [Open] random.c: getrandom compile error with clang hanmac
2015-07-10 8:46 ` [ruby-core:69932] [Ruby trunk - Bug #11343] " hanmac
2015-10-30 7:04 ` [ruby-core:71276] " nobu
2015-11-28 18:16 ` [ruby-core:71723] " nagachika00
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).