On 14/03/2024 18:34, Thomas Hedden via Cygwin wrote:
I installed a test version of gcc and cannot revert to an earlier,
non-test version. Here are the latest versions listed in the setup routine:
11.4.0-1
12.3.1+20240202-0.1 (Test)
13.2.1+20240203-0.1 (Test)
(there are some even older ones, but I want 11.4.0-1.)
$ gcc --version
gcc (GCC) 13.2.1 20240203
[...]
$ gcc -o hello.exe hello.c
/usr/lib/gcc/x86_64-pc-cygwin/13/../../../../x86_64-pc-cygwin/bin/ld:
cannot find -lintl: No such file or directory
/usr/lib/gcc/x86_64-pc-cygwin/13/../../../../x86_64-pc-cygwin/bin/ld:
cannot find -liconv: No such file or directory
collect2: error: ld returned 1 exit status
This seems like a problem with this test version of gcc. I guess maybe
it now links with intl and iconv by default in the specsfile, which will
require the corresponding devel packages to be installed, but it doesn't
depend on them.
This seems like a mistake. (I think libstdc++ will now require these,
but they shouldn't be needed just for c compilation.)
So, I can't compile anything. I don't need the test version to work, I
just want to downgrade to 11.4.0-1. However, if I uninstall the test
version, and then try to install 11.4.0-1, I get the following message:
Problem 1/1
package gcc-g++-11.4.0-1 requires gcc11, but none of the providers can
be installed
Solution 1/2
- allow replacement of gcc-core-13.2.1+20240203-0.1 with
gcc-core-11.4.0-1
Solution 2/2 (default)
- do not ask to lock gcc-g++-11.4.0-1
What should I do?
Sorry that this message isn't very clear, and this situation is not
handled well by setup.
You need to downgrade all the various gcc packages in step.
Which you can do manually, but perhaps the easiest way to do this is to
select the 'Sync' option at the top-right, which will downgrade all test
packages.
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple