From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AE9383842417; Sun, 27 Sep 2020 21:27:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE9383842417 From: "zvr+gcc at zvr dot gr" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/93602] Missing reference to libiconv in 9.x libstdc++ Date: Sun, 27 Sep 2020 21:27:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zvr+gcc at zvr dot gr X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Sep 2020 21:27:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93602 Alexios Zavras (zvr) changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zvr+gcc at zvr dot gr --- Comment #14 from Alexios Zavras (zvr) --- I can confirm this bug also in gcc-9.3.0, gcc-10.1.0 and gcc-10.2.0. To recap: if the system has a libiconv installed, the generated and install= ed libstdc++.so depends on it. However the compiler, when using it when compiling a C++ program, does not = link libiconv, resulting in an error: $ g++ foo.cc /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-g= nu/bin/ld: /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/libstdc++.s= o: undefined reference to `libiconv' /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-g= nu/bin/ld: /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/libstdc++.s= o: undefined reference to `libiconv_close' /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-g= nu/bin/ld: /usr/local/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib64/libstdc++.s= o: undefined reference to `libiconv_open' collect2: error: ld returned 1 exit status=