-
Notifications
You must be signed in to change notification settings - Fork 18
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
Math functions already defined for clib4. #149
Conversation
These changes should also happen in configure.ac I think so that after auto generation they are still present. |
Can you suggest what should be changed in configure.ac? The change that I am making is analogous to the change made in the case that ${host} is avr*--). |
The configure file is generated from configure.ac via autoconf. So all changes to configure have to be done in the origin file. See the other patches. |
@sba1 There is already precedent for direct changes to configure files in previous patches. Regardless, I always prefer a cleaner approach. I would prefer also to put them into configure.ac but I cannot see how that is going to help; I may very well be missing something. |
If there is a configure-only change (without the same being done in configure.ac) then I think it is a bug in the patches. The patches must contain, both the configure.ac and configure changes. It is common to have a configure.ac and the configure script (as generated by autoconf or autoreconf) in source code distributions even if the latter is being built from the former. This is nothing new to adtools gcc. The idea is to modify configure.ac and to |
@sba1 |
Hi, So, this is required me to build automake and autoconf from source. Versions 1.15.1 (https://ftp.gnu.org/gnu/automake/automake-1.15.1.tar.gz) and 2.69 (https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz) respectively. This was done by just running ./configure --prefix=/some/arbitrary/folder && make && make install. I then prepended the bin folder of those installs to my path and exported my path. Of course, I reverted the change in this PR so that the configure file was back to normal. I then added some stuff into crossconfig.m4 because that contains some definitions that are - in turn - used in configure.ac. From the directory: libstdc++-v3 I ran aclocal ; autoreconf. I saw - almost - the expected change in the newly generated configure file. However, there are a few instances of extra changes to the configure file that I did not expect such as: Going to: Going to:
Going to: The output I got from aclocal when running the command was:
Do you have any idea why I getting more changes than just the change that I expected? Regards, |
I think that you must run it in the top-level folder. Also make sure that the versions are really matching. If this doesn't help you could identify where the first change was. It is possible that a file was not regenerated when the patches were ported to a newer version. |
Yes, running it in the top level what was I was thinking. I will try again soon. Btw, what if the maintainers used a bunch of options along with aclocal, or autoconf - how am I meant to know. All I am doing is running the tools directly without any options. |
Normally there is an autogen.sh file. I had no time to check if this is the case here. |
It seems to be an issue somewhere in the list of patches. When I GILD-clone GCC 11 and --skip-patches, and when I then modify the configure.ac file and then invoke autoreconf -fv I see that the expected change, and only expected change, is generated in the resulting configure script. At this point, the only thing I can think of is doing the change without the patches, storing those diffs to the configure.ac and configure file, adding all of the GCC 11 patches and then fitting in that original diff. Can you suggest any other way? |
The patch to introduce clib4 should also modify the configure file of libstdc++-v3 so that math functions that are already defined in the C-library of clib4 are not also defined by libstdc++, otherwise, multiple definition errros will occur. This only affect clib4.
e9f7932
to
3b4e723
Compare
@sba1 pinging you because I do not know if you get notified on forced pushes. |
Thanks! |
The patch to introduce clib4 should also modify the configure file of libstdc++-v3 so that math functions that are already defined in the C-library of clib4 are not also defined by libstdc++, otherwise, multiple definition errros will occur. This only affect clib4.