AMD Stoney Ridge(Careena) Custom Kernel not installing on Fedora 40

I have an HP Chromebook 14a G5 and I was able to get the UEFI Rom installed and everything works except for audio. I am on Fedora 40 and I am trying to install the custom kernel for audio drivers and I am getting this error. ./build.sh fedora
Building kernel
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 133M 100 133M 0 0 15.9M 0 0:00:08 0:00:08 --:–:-- 17.1M
YACC scripts/kconfig/parser.tab.[ch]
HOSTCC scripts/kconfig/lexer.lex.o
HOSTCC scripts/kconfig/menu.o
HOSTCC scripts/kconfig/parser.tab.o
HOSTCC scripts/kconfig/preprocess.o
HOSTCC scripts/kconfig/symbol.o
HOSTCC scripts/kconfig/util.o
HOSTLD scripts/kconfig/conf

configuration written to .config

GEN arch/x86/include/generated/asm/orc_hash.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h
SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h
UPD include/config/kernel.release
SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h
WRAP arch/x86/include/generated/uapi/asm/bpf_perf_event.h
WRAP arch/x86/include/generated/uapi/asm/errno.h
WRAP arch/x86/include/generated/uapi/asm/fcntl.h
WRAP arch/x86/include/generated/uapi/asm/ioctl.h
WRAP arch/x86/include/generated/uapi/asm/ioctls.h
WRAP arch/x86/include/generated/uapi/asm/ipcbuf.h
WRAP arch/x86/include/generated/uapi/asm/param.h
WRAP arch/x86/include/generated/uapi/asm/poll.h
WRAP arch/x86/include/generated/uapi/asm/resource.h
WRAP arch/x86/include/generated/uapi/asm/socket.h
WRAP arch/x86/include/generated/uapi/asm/sockios.h
SYSTBL arch/x86/include/generated/asm/syscalls_32.h
WRAP arch/x86/include/generated/uapi/asm/termbits.h
WRAP arch/x86/include/generated/uapi/asm/termios.h
WRAP arch/x86/include/generated/uapi/asm/types.h
SYSHDR arch/x86/include/generated/asm/unistd_32_ia32.h
UPD include/generated/uapi/linux/version.h
SYSHDR arch/x86/include/generated/asm/unistd_64_x32.h
UPD include/generated/utsrelease.h
SYSTBL arch/x86/include/generated/asm/syscalls_64.h
UPD include/generated/compile.h
HYPERCALLS arch/x86/include/generated/asm/xen-hypercalls.h
DESCEND objtool
:1:10: fatal error: libelf.h: No such file or directory
compilation terminated.
HOSTCC arch/x86/tools/relocs_32.o
gcc -o /home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/fixdep /home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/fixdep-in.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs

if [ ! -d ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’ ]; then install -d -m 755 ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’; fi; install exec-cmd.h -m 644 ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’

if [ ! -d ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’ ]; then install -d -m 755 ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’; fi; install help.h -m 644 ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’
WRAP arch/x86/include/generated/asm/early_ioremap.h
WRAP arch/x86/include/generated/asm/export.h
WRAP arch/x86/include/generated/asm/mcs_spinlock.h
WRAP arch/x86/include/generated/asm/irq_regs.h
WRAP arch/x86/include/generated/asm/kmap_size.h
WRAP arch/x86/include/generated/asm/local64.h
WRAP arch/x86/include/generated/asm/mmiowb.h
WRAP arch/x86/include/generated/asm/module.lds.h
WRAP arch/x86/include/generated/asm/rwonce.h
WRAP arch/x86/include/generated/asm/unaligned.h

if [ ! -d ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’ ]; then install -d -m 755 ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’; fi; install pager.h -m 644 ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’

if [ ! -d ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’ ]; then install -d -m 755 ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’; fi; install parse-options.h -m 644 ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’

if [ ! -d ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’ ]; then install -d -m 755 ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’; fi; install run-command.h -m 644 ‘/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/include/subcmd/’
rm -f /home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/libsubcmd.a && ar rcs /home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/libsubcmd.a /home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/libsubcmd/libsubcmd-in.o
HOSTCC scripts/selinux/genheaders/genheaders
In file included from /home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/include/objtool/objtool.h:13,
from /home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/include/objtool/arch.h:11,
from /home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/include/objtool/check.h:11,
from /home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/include/objtool/special.h:10,
from arch/x86/special.c:4:
/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory
10 | #include <gelf.h>
| ^~~~~~~~
compilation terminated.
make[5]: *** [/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/build/Makefile.build:98: /home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/arch/x86/special.o] Error 1
make[4]: *** [/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/build/Makefile.build:150: arch/x86] Error 2
make[3]: *** [Makefile:66: /home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/tools/objtool/objtool-in.o] Error 2
make[2]: *** [Makefile:73: objtool] Error 2
make[1]: *** [/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/Makefile:1362: tools/objtool] Error 2
make[1]: *** Waiting for unfinished jobs…
HOSTCC scripts/kallsyms
HOSTCC scripts/selinux/mdp/mdp
HOSTCC scripts/sorttable
HOSTCC scripts/asn1_compiler
HOSTCC scripts/sign-file
scripts/sign-file.c:25:10: fatal error: openssl/opensslv.h: No such file or directory
25 | #include <openssl/opensslv.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.host:114: scripts/sign-file] Error 1
make[2]: *** Waiting for unfinished jobs…
make[1]: *** [/home/loganbeck/Downloads/stoney-kernel-main/source/linux-6.6.43/Makefile:1185: scripts] Error 2
make: *** [Makefile:234: __sub-make] Error 2
I can not get the kernel to compile for the life of me and I dont know what I am doing wrong. I am using a script I found here GitHub - chrultrabook/stoney-kernel: Script to build the weird kernel needed on stoneyridge chromebooks

I have also attached some screenshots with my system info.

You’re missing libssl-dev ( openssl-devel on fedora)

Thank you, It looks like I am missing some other needed packages as well so Iwill just have to keep looking it over and installing until it runs

I have installed the package openssl and its still throwing errors at me but it gets farther now

I actually took a look at things and I am figuring it out. Its just taking its time.