From nobody Thu Mar 23 18:50:02 2023 X-Original-To: desktop@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 4PjDt50x8Zz41gBd for ; Thu, 23 Mar 2023 18:50:05 +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 4PjDt31pQMz3lsx for ; Thu, 23 Mar 2023 18:50:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679597403; 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=YRzQRLC/j42VuApyvYjZpHN7rE0svlX4Oi2xPGr0ykU=; b=LF8W3LKLVMFG2YOtwXVb+p8TgOSKfskYTKygKU4tE6bAZKoJM0ksG56dXMLRzeO+X2XsSW 3mcXqbz/xSskr6jPVduaZi5kQV4yHox2nWCIUK+nSUgF3h18R+V5zFWH9tu6C5U8zvSWz5 573DILfdVKJtdPdocA7dvdWSM9EstcuSEhzujYN2EwHFkF9jpxS5skVZBsdu1vSOiHKCk6 QdkByvJmphw0uUAoGQ/4vm5K7eqZdUOc03W4fzWKg+/sHxOEjBr0n2Jp5rCSbiQQ4SZEsU 0cD7EFq3gWYL29PS6krw77n2hZVEyLdesUeu4EcqDdCfUpgQxj5LeS1dB8McLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679597403; a=rsa-sha256; cv=none; b=iK6UzVZue/ay7swJmF1R1KhZgXneQkcUQu5RV0szyubWLD1C+0De6XahQTZ6WznsUqOKsG B79K9z/rRlkPKekYdbCvA/RK0NxbpvmIoYOkBOgO/bYbPA5lNakdpW/Ov9mAou/6mx7cMY kX7r5/EOOyIymMKKcEAFCF+/Flbl0+Kd/zWjZcnwOipqsDq1J/PnwvFiJKvhX7SIBqP9L5 s/H2SW5mUPNXPe+GCe9PqUmS261WKFCbulyXnuEYXrlXVIMs28zWnPOC1QxZ4xSBsP+0gh Fecwt45IKvA5b8AdfqLJlR7B2V+OE3bV+t2JKKEZLKg7JO+8xu3cynw/cqEBCA== 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 4PjDt26t79zmxK for ; Thu, 23 Mar 2023 18:50:02 +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 32NIo2N9043484 for ; Thu, 23 Mar 2023 18:50:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32NIo2G0043483 for desktop@FreeBSD.org; Thu, 23 Mar 2023 18:50:02 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: desktop@FreeBSD.org Subject: [Bug 270421] graphics/librsvg2-rust: 2.56.0 Fails to compile because of LLVM version mismatch Date: Thu, 23 Mar 2023 18:50:02 +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: freebsd@lunaa.pink X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: desktop@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: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270421 Bug ID: 270421 Summary: graphics/librsvg2-rust: 2.56.0 Fails to compile because of LLVM version mismatch Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: desktop@FreeBSD.org Reporter: freebsd@lunaa.pink Flags: maintainer-feedback?(desktop@FreeBSD.org) Assignee: desktop@FreeBSD.org When trying to compile librsvg2-rust it fails with this error: ``` CPPFLAGS=3D"" CFLAGS=3D"-march=3Dnative -O3 -pipe -funroll-loops -march=3Dz= nver2=20 -fstack-protector-strong -fno-strict-aliasing " LDFLAGS=3D"-fstack-protector-strong " CC=3D"cc" PKG_CONFIG=3D"pkgconf" GI_H= OST_OS=3D"" DLLTOOL=3D"false" /usr/local/bin/g-ir-scanner --add-include-path=3D. --symbol-prefix=3Drsvg --symbol-prefix=3Dlibrsvg --warn-all --namespace=3DR= svg --nsversion=3D2.0 --libtool=3D"/bin/sh ./libtool" --pkg=3Dpango --pkg=3Dlib= xml-2.0 --include=3DGLib-2.0 --include=3DGObject-2.0 --include=3DGio-2.0 --include= =3Dcairo-1.0 --include=3DGdkPixbuf-2.0 --pkg-export=3Dlibrsvg-2.0 --library=3Dlibrsvg-= 2.la --c-include=3D"librsvg/rsvg.h" --cflags-begin -I./include -I. -I./include -DRSVG_COMPILATION --cflags-end include/librsvg/rsvg.h include/librsvg/rsvg-cairo.h include/librsvg/rsvg-features.h include/librsvg/rsvg-version.h librsvg-2.la --output Rsvg-2.0.gir g-ir-scanner: link: /bin/sh ./libtool --mode=3Dlink --tag=3DCC cc -o /wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.56.0/tmp-introspec= tn2ree5hw/Rsvg-2.0 -export-dynamic -march=3Dnative -O3 -pipe -funroll-loops -march=3Dznver2 -fstack-protector-strong -fno-strict-aliasing /wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.56.0/tmp-introspec= tn2ree5hw/Rsvg-2.0.o -L. librsvg-2.la -L/usr/local/lib -lgio-2.0 -Wl,--export-dynamic -lgmodule-= 2.0 -pthread -lglib-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lxml2 -fstack-protector-strong libtool: link: cc -o /wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.56.0/tmp-introspec= tn2ree5hw/.libs/Rsvg-2.0 -march=3Dnative -O3 -pipe -funroll-loops -march=3Dznver2 -fstack-protector-= strong -fno-strict-aliasing /wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.56.0/tmp-introspec= tn2ree5hw/Rsvg-2.0.o -Wl,--export-dynamic -fstack-protector-strong -Wl,--export-dynamic -L. ./.libs/librsvg-2.so -L/usr/local/lib -lgmodule-2.0 -lpng16 -lcairo-gobject -lgdk_pixbuf-2.0 -lgio-2.0 -lxml2 -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lfontconfig -lfreet= ype -lm -pthread -Wl,-rpath -Wl,/usr/local/lib ld: error: undefined symbol: rsvg_error_get_type >>> referenced by Rsvg-2.0.c >>> /wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.= 56.0/tmp-introspectn2ree5hw/Rsvg-2.0.o:(GI_GET_TYPE_FUNCS_) ld: error: undefined symbol: rsvg_handle_get_type >>> referenced by Rsvg-2.0.c >>> /wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.= 56.0/tmp-introspectn2ree5hw/Rsvg-2.0.o:(GI_GET_TYPE_FUNCS_) ld: error: undefined symbol: rsvg_handle_flags_get_type >>> referenced by Rsvg-2.0.c >>> /wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.= 56.0/tmp-introspectn2ree5hw/Rsvg-2.0.o:(GI_GET_TYPE_FUNCS_) ld: error: undefined symbol: rsvg_error_quark >>> referenced by Rsvg-2.0.c >>> /wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.= 56.0/tmp-introspectn2ree5hw/Rsvg-2.0.o:(GI_ERROR_QUARK_FUNCS_) cc: error: linker command failed with exit code 1 (use -v to see invocation) linking of temporary binary failed: Command '['/bin/sh', './libtool', '--mode=3Dlink', '--tag=3DCC', 'cc', '-o', '/wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.56.0/tmp-introspe= ctn2ree5hw/Rsvg-2.0', '-export-dynamic', '-march=3Dnative', '-O3', '-pipe', '-funroll-loops', '-march=3Dznver2', '-fstack-protector-strong', '-fno-strict-aliasing', '/wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.56.0/tmp-introspe= ctn2ree5hw/Rsvg-2.0.o', '-L.', 'librsvg-2.la', '-L/usr/local/lib', '-lgio-2.0', '-Wl,--export-dynam= ic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-lpango-1.0', '-lgobject-2.0', '-lglib-2.0', '-lintl', '-lharfbuzz', '-lxml2', '-fstack-protector-strong']' returned non-zero exit status 1. gmake[3]: *** [/usr/local/share/gobject-introspection-1.0/Makefile.introspection:156: Rsvg-2.0.gir] Error 1 gmake[3]: Leaving directory '/wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.56.0' gmake[2]: *** [Makefile:1075: all-recursive] Error 1 gmake[2]: Leaving directory '/wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.56.0' gmake[1]: *** [Makefile:710: all] Error 2 gmake[1]: Leaving directory '/wrkdirs/usr/ports/graphics/librsvg2-rust/work/librsvg-2.56.0' *** Error code 1 ``` Further up another error occurs: ``` libtool: link: ranlib .libs/librsvg_c_api.a libtool: link: ( cd ".libs" && rm -f "librsvg_c_api.la" && ln -s "../librsvg_c_api.la" "librsvg_c_api.la" ) /bin/sh ./libtool --tag=3DCC --mode=3Dlink cc -march=3Dnative -O3 -pipe -funroll-loops -march=3Dznver2 -fstack-protector-strong -fno-strict-aliasi= ng=20=20 -version-info 50:0:48 -export-dynamic -no-undefined -export-symbols-regex "^rsvg_.*" -fstack-protector-strong -o librsvg-2.la -rpath /usr/local/li= b=20=20 librsvg_c_api.la -L/usr/local/lib -lpng16 -lcairo-gobject -lgdk_pixbuf-2.0 -lgio-2.0 -lxml2 -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lfontconfig -lfreetype -lm=20= =20 libtool: link: /usr/bin/nm -B ./.libs/librsvg_c_api.a | /usr/bin/sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][=20=20=20=20=20 ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | /usr/bin/sed '/ __gnu_lto/d' | /usr/bin/sed 's/.* //' | sort | uniq > .libs/librsvg-2.exp /usr/bin/nm: error: ./.libs/librsvg_c_api.a(rsvg-44ebdb0941189021.rsvg.623880d2-cgu.0.rcgu.o): Unknown attribute kind (82) (Producer: 'LLVM15.0.6-rust-1.68.0-stable' Read= er: 'LLVM 13.0.0') /usr/bin/nm: error: ./.libs/librsvg_c_api.a(pangocairo-8fa3a9f2ef17cb23.pangocairo.00c80890-cgu= .0.rcgu.o): Unknown attribute kind (82) (Producer: 'LLVM15.0.6-rust-1.68.0-stable' Read= er: 'LLVM 13.0.0') LLVM ERROR: Type mismatch in constant table! PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include = the crash backtrace. Stack dump: 0. Program arguments: /usr/bin/nm -B ./.libs/librsvg_c_api.a #0 0x00000000007e3879 (/usr/bin/nm+0x7e3879) #1 0x00000000007e4443 (/usr/bin/nm+0x7e4443) #2 0x0000000824ea07a0 (/lib/libthr.so.3+0x1a7a0) #3 0x0000000824e9fdac (/lib/libthr.so.3+0x19dac) #4 0x00007fffffffe2d3 ([vdso]+0x2d3) #5 0x000000082871914a thr_kill (/lib/libc.so.7+0x14414a) #6 0x000000082868a424 _raise (/lib/libc.so.7+0xb5424) #7 0x0000000828743ae9 abort (/lib/libc.so.7+0x16eae9) #8 0x00000000007d3a73 (/usr/bin/nm+0x7d3a73) #9 0x00000000007d3937 (/usr/bin/nm+0x7d3937) #10 0x00000000006f85c6 (/usr/bin/nm+0x6f85c6) #11 0x00000000006759f1 (/usr/bin/nm+0x6759f1) #12 0x0000000000680a76 (/usr/bin/nm+0x680a76) #13 0x0000000000669d2a (/usr/bin/nm+0x669d2a) #14 0x0000000000665cac (/usr/bin/nm+0x665cac) #15 0x000000000078eeaf (/usr/bin/nm+0x78eeaf) #16 0x000000000063f0b1 (/usr/bin/nm+0x63f0b1) #17 0x000000000063d172 (/usr/bin/nm+0x63d172) #18 0x000000000054c17c (/usr/bin/nm+0x54c17c) Abort trap (core dumped) libtool: link: /usr/bin/egrep -e "^rsvg_.*" ".libs/librsvg-2.exp" > ".libs/librsvg-2.expT" libtool: link: mv -f ".libs/librsvg-2.expT" ".libs/librsvg-2.exp" libtool: link: echo "{ global:" > .libs/librsvg-2.so.2.48.0-ver ``` Disabling lto with LTO_UNSAFE=3D is a temporary workaround. --=20 You are receiving this mail because: You are the assignee for the bug.=