From nobody Fri Aug 26 19:28:32 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MDqcx0krNz4Zlmb for ; Fri, 26 Aug 2022 19:28:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MDqcw44dTz3hq6 for ; Fri, 26 Aug 2022 19:28:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MDqcw2vbFzW48 for ; Fri, 26 Aug 2022 19:28:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 27QJSWF5099491 for ; Fri, 26 Aug 2022 19:28:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 27QJSWWu099490 for ports-bugs@FreeBSD.org; Fri, 26 Aug 2022 19:28:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 266053] Build failure when building res_geolocation Date: Fri, 26 Aug 2022 19:28:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: seneca@vybenetworks.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: madpilot@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661542112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6DylQh4jrAknKZ6UYUivQDVd/yAGefSR8wmpyVrlxRI=; b=nO38rxerYB20rA7ntwjdUAD2dYi/jHafFY3+qz05D4tLM4ZRP8/0tXullXh5+LMid7KPW3 3Uh/4NXvcgB5/d4m54agPNeE3l3RJOhtUF2LAFLCBq8y5gvk9ST9AICF1Er29ZyEH5n+I4 thNknBGets3QCazFQnO1kmEOFGjWmqHHvPc9Hq6SJwc1GnwxuU8YLyjE5kY5ZulLEYdI0Q vYY+p71pUehYYPgfZ8QHW1u1Cg/vo8TIGcj7/0H8RbCs3KC3vH6llknDdaSgM80q25LIGM qNiZ939e8qAGJTAcja2GAhg1NOwdocH1YUUXYFfzDKV/pLbMm4PrFkuMqPUXjQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661542112; a=rsa-sha256; cv=none; b=Dv2ObfstIfewIOl5d8Uj2bxV3AdyJ8Aw9KiKAdQhfmRWZyJ8MQJBYVAZTW8031g8f+XgF1 yU16Df0gt9svn5LEp5ZmmdI7rltliBaH/3CqeDTYyFZRvI1b6AQFQG/DXZEwDniu6xsSnb VPZBRY2IEh4Pp6ZKZqieWwasOWQH1MGVozosLgGTNWzHgm6aRmGovA7QF05PiQimebVHv+ 4gVhcz2kSJ5WSzAmlYtS+QrOMOSb/RRkyCKFa52ThsxYRjWL8Kt7UmbkKj9bjfCYbPRN28 QGWH26RdN173LdivBwaqpqrLyOyKzifbrpv5htSuIB9dkJ6Y1y+uD7//xiST6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266053 Bug ID: 266053 Summary: Build failure when building res_geolocation Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: madpilot@FreeBSD.org Reporter: seneca@vybenetworks.com Assignee: madpilot@FreeBSD.org Flags: maintainer-feedback?(madpilot@FreeBSD.org) Asterisk 16.28.0 introduced a new module: res_geolocation (and also a corresponding res_pjsip_geolocation). Building this module fails, and the failure is connected to some newly-added rules to asterisk/Makefile.rules t= hat are supposed to generate .o files from XML or XSLT source files using just cc/ld (lines 207-220). A sample invocation with a trivial foo.xml that includes the expanded ld invocation is: $ cc -g -nostartfiles -nodefaultlibs -nostdlib -r -Wl,-b,binary -o foo.o foo.xml ld: error: target emulation unknown: -m or at least one .o file required cc: error: linker command failed with exit code 1 (use -v to see invocatio= n) $ cc -v -g -nostartfiles -nodefaultlibs -nostdlib -r -Wl,-b,binary -o foo= .o foo.xml FreeBSD clang version 13.0.0 (git@github.com:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a303) Target: x86_64-unknown-freebsd13.1 Thread model: posix InstalledDir: /usr/bin "/usr/bin/ld" --eh-frame-hdr -dynamic-linker /libexec/ld-elf.so.1 --hash-style=3Dboth --enable-new-dtags -o foo.o -L/usr/lib -r -r -b binary foo.xml ld: error: target emulation unknown: -m or at least one .o file required cc: error: linker command failed with exit code 1 (use -v to see invocatio= n) $ I have attempted the build in two different manners on this system: poudrie= re and portmaster, both with the same options file. The poudriere build completes, but it does not attempt to build res_geolocation. The portmaster build fails on turning the res_geolocation XML files into objects. I have = not yet found the difference in the environments that caused the difference in whether or not builds of res_geolocation are attempted. Build output specifically of res_geolocation: cc -o res_geolocation.o -c res_geolocation.c -MD -MT res_geolocation.o -MF .res_geolocation.o.d -MP -pthread -I/usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0/include -O2 -pipe= =20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -I/usr/local/include/libxml2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fblocks=20 -isystem /usr/local/include -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -fP= IC -DAST_MODULE=3D\"res_geolocation\" -DAST_MODULE_SELF_SYM=3D__internal_res_geolocation_self=20 -I/usr/local/include/libxml2 -I/usr/local/include/libxml2 -O2 -pipe=20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wno-unused-value -Wno-parentheses-equality cc -o res_geolocation/geoloc_civicaddr.o -c res_geolocation/geoloc_civicad= dr.c -MD -MT res_geolocation/geoloc_civicaddr.o -MF .res_geolocation_geoloc_civicaddr.o.d -MP -pthread -I/usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0/include -O2 -pipe= =20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -I/usr/local/include/libxml2 -Wal= l=20 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fblocks=20 -isystem /usr/local/include -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -fP= IC -DAST_MODULE=3D\"res_geolocation\" -DAST_MODULE_SELF_SYM=3D__internal_res_geolocation_self=20 -I/usr/local/include/libxml2 -I/usr/local/include/libxml2 -O2 -pipe=20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wno-unused-value -Wno-parentheses-equality cc -o res_geolocation/geoloc_common.o -c res_geolocation/geoloc_common.c -= MD -MT res_geolocation/geoloc_common.o -MF .res_geolocation_geoloc_common.o.d = -MP -pthread -I/usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0/include = -O2 -pipe -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -I/usr/local/include/lib= xml2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fbl= ocks -isystem /usr/local/include -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -f= PIC -DAST_MODULE=3D\"res_geolocation\" -DAST_MODULE_SELF_SYM=3D__internal_res_geolocation_self=20 -I/usr/local/include/libxml2 -I/usr/local/include/libxml2 -O2 -pipe=20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wno-unused-value -Wno-parentheses-equality cc -o res_geolocation/geoloc_config.o -c res_geolocation/geoloc_config.c -= MD -MT res_geolocation/geoloc_config.o -MF .res_geolocation_geoloc_config.o.d = -MP -pthread -I/usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0/include = -O2 -pipe -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -I/usr/local/include/lib= xml2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fbl= ocks -isystem /usr/local/include -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -f= PIC -DAST_MODULE=3D\"res_geolocation\" -DAST_MODULE_SELF_SYM=3D__internal_res_geolocation_self=20 -I/usr/local/include/libxml2 -I/usr/local/include/libxml2 -O2 -pipe=20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wno-unused-value -Wno-parentheses-equality res_geolocation/geoloc_config.c:600:81: warning: expression which evaluate= s to zero treated as a null pointer constant of type 'const char *' [-Wnon-literal-null-conversion] ast_sorcery_object_field_register_custom(geoloc_sorcery, "location", "format", AST_GEOLOC_FORMAT_NONE, =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~ /usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0/include/asterisk/so= rcery.h:1006:62: note: expanded from macro 'ast_sorcery_object_field_register_custom' __ast_sorcery_object_field_register(sorcery, type, name, default_val, OPT_CUSTOM_T, config_handler, sorcery_handler, multiple_handler, flags, 0, = 0, VA_NARGS(__VA_ARGS__), __VA_ARGS__); ^~~~~~~~~~~ 1 warning generated. cc -o res_geolocation/geoloc_datastore.o -c res_geolocation/geoloc_datasto= re.c -MD -MT res_geolocation/geoloc_datastore.o -MF .res_geolocation_geoloc_datastore.o.d -MP -pthread -I/usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0/include -O2 -pipe= =20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -I/usr/local/include/libxml2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fblocks=20 -isystem /usr/local/include -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -fP= IC -DAST_MODULE=3D\"res_geolocation\" -DAST_MODULE_SELF_SYM=3D__internal_res_geolocation_self=20 -I/usr/local/include/libxml2 -I/usr/local/include/libxml2 -O2 -pipe=20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wno-unused-value -Wno-parentheses-equality cc -o res_geolocation/geoloc_dialplan.o -c res_geolocation/geoloc_dialplan= .c -MD -MT res_geolocation/geoloc_dialplan.o -MF .res_geolocation_geoloc_dialplan.o.d -MP -pthread -I/usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0/include -O2 -pipe= =20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -I/usr/local/include/libxml2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fblocks=20 -isystem /usr/local/include -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -fP= IC -DAST_MODULE=3D\"res_geolocation\" -DAST_MODULE_SELF_SYM=3D__internal_res_geolocation_self=20 -I/usr/local/include/libxml2 -I/usr/local/include/libxml2 -O2 -pipe=20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wno-unused-value -Wno-parentheses-equality cc -o res_geolocation/geoloc_eprofile.o -c res_geolocation/geoloc_eprofile= .c -MD -MT res_geolocation/geoloc_eprofile.o -MF .res_geolocation_geoloc_eprofile.o.d -MP -pthread -I/usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0/include -O2 -pipe= =20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -I/usr/local/include/libxml2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fblocks=20 -isystem /usr/local/include -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -fP= IC -DAST_MODULE=3D\"res_geolocation\" -DAST_MODULE_SELF_SYM=3D__internal_res_geolocation_self=20 -I/usr/local/include/libxml2 -I/usr/local/include/libxml2 -O2 -pipe=20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wno-unused-value -Wno-parentheses-equality cc -o res_geolocation/geoloc_gml.o -c res_geolocation/geoloc_gml.c -MD -MT res_geolocation/geoloc_gml.o -MF .res_geolocation_geoloc_gml.o.d -MP -pthre= ad -I/usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0/include -O2 -pipe= =20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -I/usr/local/include/libxml2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fblocks=20 -isystem /usr/local/include -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -fP= IC -DAST_MODULE=3D\"res_geolocation\" -DAST_MODULE_SELF_SYM=3D__internal_res_geolocation_self=20 -I/usr/local/include/libxml2 -I/usr/local/include/libxml2 -O2 -pipe=20 -I/usr/local/include/lua52 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wno-unused-value -Wno-parentheses-equality cc -g -nostartfiles -nodefaultlibs -nostdlib -r -Wl,-b,binary -o res_geolocation/pidf_lo_test.o res_geolocation/pidf_lo_test.xml ld: error: target emulation unknown: -m or at least one .o file required cc: error: linker command failed with exit code 1 (use -v to see invocatio= n) gmake[2]: *** [/usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0/Makefile.rules:216: res_geolocation/pidf_lo_test.o] Error 1 gmake[2]: Leaving directory '/usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0/res' gmake[1]: *** [Makefile:396: res] Error 2 gmake[1]: Leaving directory '/usr/obj/usr/ports/net/asterisk16/work/asterisk-16.28.0' *** Error code 1 Stop. make: stopped in /usr/ports/net/asterisk16 =3D=3D=3D>>> make build failed for net/asterisk16 --=20 You are receiving this mail because: You are the assignee for the bug.=