-
Notifications
You must be signed in to change notification settings - Fork 70
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
Encountered a build error: "unrecognized command-line option '-Wp'" on Fedora 37 #394
Comments
Dear @heartofrain thanks for letting us know! I've came across your issue when I was trying to compile ltfs on Fedora 38, and got the -Wp issue as well. It was a different one this time, several Makefiles were generated with ',-Wp' rather than ' -Wp'. The extra comma before -Wp caused make to fail. I also used sed to correct all makefiles:
And I was able to build LTFS successfully, as well. It's a Fedora Workstation 38 (desktop) and these are the versions:
|
Dear @piste-jp-ibm good afternoon, just to let you know I've just cloned master branch and re-installed in Fedora 40 successfully, however we still need to tweak the auto-generated Makefiles by using the following command after configure:
Tested with Fedora 39 and Fedora 40, and works a treat. As stated before, there's something odd happening with configure when running on latest Fedora versions. Maybe something worth looking in a near future. Cheers. |
Describe the bug
When I was building LTFS on Fedora 37, I encountered a build error: unrecognized command-line option '-Wp'.
To Reproduce
Run the build command:
Then gcc complained:
in verbose:
Then I checked the Makefile and found an option:
There seems to be a redundant "-Wp", so I ran the command:
Then I ran the build command again:
Then, LTFS was built successfully!
Desktop:
My Fedora, GCC, autoconf and automake versions:
LTFS source code version(commit hash): f95a9a4
Additional context
Given that the Makefile was generated by autotools, the real cause of the problem may be related to autotools configurations. Could you do a check? Thanks in advance!
I am very interested in how it happened.
The text was updated successfully, but these errors were encountered: