-
Notifications
You must be signed in to change notification settings - Fork 142
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
gdrcopy on CentOS 7.7 #93
Comments
This issue is quite common when compiling a kernel module (driver) with non-standard gcc versions. I suggest that you use the same gcc version (at least the major version) as what your linux kernel was compiled with. You can use |
Hi Pak, |
Thank you for trying that. I will try to reproduce your bug on our system. In the meantime, can I ask you to post the output of |
|
Hi @afernandezody, I have a few questions and requests.
|
Hi @pakmarkthub , |
Hi @afernandezody, Based on your reply to question 3, your gcc should support retpoline. Now, the possibility that make picks a different compiler is high.
So, I know that it picks the default gcc.
|
Hi @pakmarkthub ,
Not sure if you were able to reproduce the error in your system. Thanks. |
Hi @afernandezody, Your command is incorrect. If the full path of your gcc is To give you more details, our Makefile relies on your system's Makefile. Normally, it should pick your default compiler. For some reasons, I think that it does not pick your gcc, which should support retpoline according to your answer to my Question 3. |
Hi @pakmarkthub,
From your comment, could something wrong with the system Makefile be the cause of these problems? Thanks. |
@afernandezody I cannot reproduce your problem on my devel box, which is still at 3.10.0-1062.1.1.el7.x86_64, see below. Can you please verify the version of tools which are installed on that cloud instance, say by reporting the output of the commands below ?
|
Hi @drossetti, |
I went back to the GCP instance and got the following output:
|
这个问题最后解决了吗? |
Have the problem be solved,last? |
The problem is usually that you are building as a non-root user and the kernel makefiles cannot create a temporary directory in /usr/src/kernels/version to be able to detect the cc flags. When the kernel tries to determine if a CC flag is available it runs the 'try-run' macro in scripts/Makefile.compiler (or scripts/Kbuild.include depending on the kernel version) which creates a temp directory:
So you can see here that if KBUILD_EXTMOD is not set then $TMPOUT will end up using /usr/src/kernels/version. If you don't have write permissions there, the So the solution is one of the following: Note that if you are building a module with something like |
Hello,
Installing gdrcopy is causing some unexpected trouble. I suspect that the cause is some incompatibility with CentOS 7.7 (this is not the 1st piece of software complaining about the new version). The error message reads:
The kernel is updated to 3.10.0-1062.1.1 and I updated the compilers (GNU) to 9.2.
Thanks,
Arturo
The text was updated successfully, but these errors were encountered: