Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a question for kernel-ml #1

Open
Mrzhang-dada opened this issue Mar 11, 2023 · 4 comments
Open

a question for kernel-ml #1

Mrzhang-dada opened this issue Mar 11, 2023 · 4 comments

Comments

@Mrzhang-dada
Copy link

I'm sorry to bother you. However, I encountered the following problem while compiling my project into the kernel. Could you please advise on how to solve it? I'm using Ubuntu 18.04 as my operating system and GCC version 7.5.

MODPOST vmlinux.o
block/mq-adios.o: In function 'dd_init_queue':
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:493: undefined reference to 'build_linear_regression'
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:494: undefined reference to 'io_scheduler_linear_check_correction'
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:496: undefined reference to 'set_random_matrix'
block/mq-adios.o: In function '__dd_dispatch_request':
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:404: undefined reference to 'io_scheduler_linear_evaluate'
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:394: undefined reference to 'io_scheduler_linear_evaluate'
/home/niuma/kernel-ml/kernel-ml-linux/block/mq-adios.c:384: undefined reference to 'io_scheduler_linear_evaluate'
Makefile:1022: recipe for target 'vmlinux' failed.

This error message is indicating that there are undefined references to several functions in the mq-adios.c file, including "build_linear_regression", "io_scheduler_linear_check_correction", "set_random_matrix", and "io_scheduler_linear_evaluate". These errors occurred during the compilation of "vmlinux" and resulted in the failure of the make command.

@zhourrr
Copy link

zhourrr commented Jun 12, 2023

Were you able to fix this? I have run into a similar problem.

@JiaHuann
Copy link

The same,I stuck with printing AR kernel/built-in.a.
Looking forward to some of resolutions.

@iumitakgun
Copy link
Member

Hi Everybody, sorry for the late response. Could you please check makefile in "kernel-ml-linux/block/" for the paths. linking for kml.a we use path and I think we statically defined them. Please let me know if this solves the issue.

@sg11235
Copy link

sg11235 commented Feb 6, 2024

I'm sorry to bother you, but I have modified the path like below:
#KBUILD_CFLAGS += -I/home/umit/research/kernel-ml/kml/include
KBUILD_CFLAGS += -I/home/gs/Desktop/KML/kernel-ml/include
I made this modification but still get the same error. I don't know if there is a mistake in my modification, or there is a mistake in my understanding. I really hope to get help.

Hi Everybody, sorry for the late response. Could you please check makefile in "kernel-ml-linux/block/" for the paths. linking for kml.a we use path and I think we statically defined them. Please let me know if this solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants