From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6141A3858D3C; Thu, 10 Nov 2022 12:49:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6141A3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668084541; bh=/Qc4us1HgnKV7bVbY0FBpKWxS7GIOqT/RK3Aosy3VoE=; h=From:To:Subject:Date:From; b=QGlgWskGrdaHTWJdp3pT7pSBJi28bHjK3IA266d5PeDpkd55YrSkfTfF79/xmqkcu IYxU7+ez2TTv/xK2VIaG4YQunP4lD/52Ra6OsV20sJctIdLtPCeEeAo2c3M9r7S2h5 7GehF8bXN1C2JjrVlyaBvEA+2TEH9GvHiaWYEIOY= From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/107612] New: plugin/m2rte doesn't build on Mac OS X 10.7 Date: Thu, 10 Nov 2022 12:48:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: gaius at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107612 Bug ID: 107612 Summary: plugin/m2rte doesn't build on Mac OS X 10.7 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: modula2 Assignee: gaius at gcc dot gnu.org Reporter: ro at gcc dot gnu.org Target Milestone: --- Host: x86_64-apple-darwin11.4.2 Target: x86_64-apple-darwin11.4.2 Build: x86_64-apple-darwin11.4.2 Building the current devel/modula-2 branch on Mac OS X 10.7 fails building the m2rte plugin: * First, compilation fails In file included from /vol/gcc/src/hg/master/modula-2/gcc/m2/plugin/m2rte.cc:31: /vol/gcc/src/hg/master/modula-2/gcc/intl.h:30:10: fatal error: libintl.h: No such file or directory 30 | #include | ^~~~~~~~~~~ There's no system libintl, but the compile command lacks $(INCINTL). To fix this, gcc/Makefile.in needs INCINTL =3D @INCINTL@ so $(INCINTL) can be used in gcc/m2/Make-lang.in. Then, the current instances of @INCINTL@ in gcc/Makefile.in can also be replaced by $(INCIN= TL). * This (done manually for now) lets the compilation succeed, but the link s= till fails: Undefined symbols for architecture x86_64: "__Z13integer_zeropPK9tree_node", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o "__Z13rtegraph_initv", referenced from: _plugin_init in m2rte.o "__Z15rtegraph_finishv", referenced from: __ZN12_GLOBAL__N_113analyse_graphEPvS0_ in m2rte.o "__Z15rtegraph_lookupP6gimpleP9tree_nodeb", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o "__Z17rtegraph_discoverv", referenced from: __ZN12_GLOBAL__N_113analyse_graphEPvS0_ in m2rte.o "__Z17rtegraph_get_funcP7rtenode", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o "__Z17tree_check_failedPK9tree_nodePKciS3_z", referenced from: =20=20=20=20=20 __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function.cold = in m2rte.o "__Z23tree_class_check_failedPK9tree_node15tree_code_classPKciS4_", referenced from: =20=20=20=20=20 __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function.cold = in m2rte.o "__Z24rtegraph_externs_includeP7rtenode", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o "__Z24rtegraph_include_rtscallP7rtenode", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o "__Z25tree_operand_check_failediPK9tree_nodePKciS3_", referenced from: =20=20=20=20=20 __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function.cold = in m2rte.o "__Z27rtegraph_candidates_includeP7rtenode", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o "__Z29rtegraph_constructors_includeP7rtenode", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o "__Z29rtegraph_set_current_functionP7rtenode", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o "__Z29tree_int_cst_elt_check_failediiPKciS0_", referenced from: =20=20=20=20=20 __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function.cold = in m2rte.o "__Z30rtegraph_include_function_callP7rtenode", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o =20 "__Z33tree_contains_struct_check_failedPK9tree_node24tree_node_structure_en= umPKciS4_", referenced from: =20=20=20=20=20 __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function.cold = in m2rte.o "__ZN8opt_pass14set_pass_paramEjb", referenced from: __ZTVN12_GLOBAL__N_130pass_warn_exception_inevitableE in m2rte.o "__ZN8opt_pass4gateEP8function", referenced from: __ZTVN12_GLOBAL__N_130pass_warn_exception_inevitableE in m2rte.o "__ZN8opt_pass5cloneEv", referenced from: __ZTVN12_GLOBAL__N_130pass_warn_exception_inevitableE in m2rte.o "__ZN8opt_passC2ERK9pass_dataPN3gcc7contextE", referenced from: _plugin_init in m2rte.o "_g", referenced from: _plugin_init in m2rte.o "_plugin_default_version_check", referenced from: _plugin_init in m2rte.o "_register_callback", referenced from: _plugin_init in m2rte.o "_tree_code_length", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o "_tree_code_type", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o "_tree_contains_struct", referenced from: __ZN12_GLOBAL__N_130pass_warn_exception_inevitable7executeEP8function= in m2rte.o ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status make: *** [plugin/m2rte.so] Error 1 For one, the plugin may need to be linked with $(LIBINTL) (or not, don't know for certain). Besides, according to gcc/testsuite/lib/plugin-support.exp, the link needs to add -undefined dynamic_lookup=