-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
fix(main/nasm): fix building with ./build-all.sh
#22009
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is your opinion of my alternative implementation of this workaround in 2 lines instead of 10 lines and globally applying to all packages instead of having to be inserted into every package individually?
Visible here https://github.com/termux/termux-packages/pull/21835/files#diff-1654a7508beaa6c5568cce6c8856a2ba7eafc7879acc96e37496489e31db2815
Long, in-depth explanation and non-exhaustive list of other packages also simultaneously fixed by my implementation are in the PR discussion tab.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK in this case the
-I
line is generated by autotools, it is not a part of CFLAGS or something. So it will not work here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I test my code it works for me to solve the same error you name here.
Could you test the change I linked to
termux_setup_toolchain_27b.sh
in your environment to confirm for yourself that it will not work?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surprising but it worked. I payed attention only now, but you modified CPPFLAGS, not CXXFLAGS as I thought before. @sylirre can you take a look at the referenced PR please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you and I am not trying to discredit or negatively attack your PR in any way so I hope it is not interpreted that way, your version is also a valid potential solution, just different, so it is possible there might be reasons yours is better. I just wanted to make sure that you know that my method of solving that error does also work, in case it is worth it to compare them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't
-isysroot
broke compilation unlessndk-sysroot
package content extracted to TERMUX_PREFIX?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK
-isysroot
adds header search path with low priority, it does not overwrite paths.And I tried to replace CXXFLAGS's
-I$TERMUX_PREFIX/include
with-isystem $TERMUX_PREFIX/include
and it worked. I can try to invoke./build-all.sh
with this to make sure it won't brake build.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok if it doesn't replace original compiler paths.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I cloned current master, applied diff of #20513, changed
CPPFLAGS
intermux_setup_toolchain_27b.sh
to haveisystem
instead ofI
and invoked./build-all.sh
, skippedhilbish
because oftask
bug andlibmaa
where I got HTTP error 503. I've got thisI stucked on libmcrypt because I did not apply the fix from my PR but I assume nothing was broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update note regarding the viability of
-isysroot
vs-isystem