Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
compiling genkernel with --luks fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dawgeestaeyelle
n00b
n00b


Joined: 09 Aug 2023
Posts: 2
Location: Wicklow, Ireland

PostPosted: Wed Aug 09, 2023 4:52 pm    Post subject: compiling genkernel with --luks fails Reply with quote

'ello lads, bit of a problem with genkernel...

so when compiling genkernel with --luks, it tries to compile a "json object constructor for c" (creatively named "json-c") which from what i've heard fails on clang (my only source being a random page from freebsd i googled haha) because the compiler cant "implicitly convert a long to double" (???) installing 2 compilers to solve 1 program seems like a stupid parallel of 2 birds 1 stone but if i do have to do that, might aswell lol

PROFILE:
Code:
archcraft / #  eselect profile show
Current /etc/portage/make.profile symlink:
  default/linux/amd64/17.0/musl/clang

GENKERNEL LOG:
http://0x0.st/H_p6.log

greatly appreciated if someone can figure this out, ive been losing my shit for a while lmfao
_________________
اَلسَّلَامُ عَلَیْکُمْ وَرَحْمَۃُ اللّٰہِ وَ بَرَکَاتُہُ

"why is your name like that?" https://www.youtube.com/playlist?list=OLAK5uy_kCVtuk6qfCGz0crsZR4ajs1aZIKLqN0f8
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30954
Location: here

PostPosted: Wed Aug 09, 2023 5:55 pm    Post subject: Reply with quote

Code:
json_object.c:701:26: error: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-const-int-float-conversion]
                if (jso->o.c_double >= INT64_MAX)
                                    ~~ ^~~~~~~~~
/usr/include/stdint.h:46:21: note: expanded from macro 'INT64_MAX'
#define INT64_MAX  (0x7fffffffffffffff)
                    ^~~~~~~~~~~~~~~~~~
1 error generated.

It seems an old problem with json-c-0.13.1 fixed in >=json-c-0.14.
Unfortunately, genkernel is not yet updated to work with a working version of json-c.
Open a new bug report.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
dawgeestaeyelle
n00b
n00b


Joined: 09 Aug 2023
Posts: 2
Location: Wicklow, Ireland

PostPosted: Wed Aug 09, 2023 9:24 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Code:
json_object.c:701:26: error: implicit conversion from 'long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-const-int-float-conversion]
                if (jso->o.c_double >= INT64_MAX)
                                    ~~ ^~~~~~~~~
/usr/include/stdint.h:46:21: note: expanded from macro 'INT64_MAX'
#define INT64_MAX  (0x7fffffffffffffff)
                    ^~~~~~~~~~~~~~~~~~
1 error generated.

It seems an old problem with json-c-0.13.1 fixed in >=json-c-0.14.
Unfortunately, genkernel is not yet updated to work with a working version of json-c.
Open a new bug report.

done, does this look right?
_________________
اَلسَّلَامُ عَلَیْکُمْ وَرَحْمَۃُ اللّٰہِ وَ بَرَکَاتُہُ

"why is your name like that?" https://www.youtube.com/playlist?list=OLAK5uy_kCVtuk6qfCGz0crsZR4ajs1aZIKLqN0f8
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30954
Location: here

PostPosted: Thu Aug 10, 2023 7:42 am    Post subject: Reply with quote

You should attach your emerge --info and build.log to the bug.
You can also post link to this thread.

-- edit --
in the bug don't post the pastebin url but attach a file of build.log and emerge --info.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum