Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2019 11:00:22 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Rainer Hurling <rhurlin@gwdg.de>, freebsd-current@FreeBSD.org
Subject:   Re: r349100: buildworld does not compile (ld: error: duplicate symbol: sse42_crc32c)
Message-ID:  <f0634192-3e66-f4d2-e500-49f76f0c2d96@FreeBSD.org>
In-Reply-To: <e04776f5-3d8b-7198-de38-bf4e23c42d16@gwdg.de>
References:  <e04776f5-3d8b-7198-de38-bf4e23c42d16@gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--xw3SMI1307ZKXen0oSi7c7vhY8k6Qrs0k
Content-Type: multipart/mixed; boundary="U1sp2BI4PJ5LUOJ3e65rzlxkuJ3dCugD8";
 protected-headers="v1"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: Rainer Hurling <rhurlin@gwdg.de>, freebsd-current@FreeBSD.org
Message-ID: <f0634192-3e66-f4d2-e500-49f76f0c2d96@FreeBSD.org>
Subject: Re: r349100: buildworld does not compile (ld: error: duplicate
 symbol: sse42_crc32c)
References: <e04776f5-3d8b-7198-de38-bf4e23c42d16@gwdg.de>
In-Reply-To: <e04776f5-3d8b-7198-de38-bf4e23c42d16@gwdg.de>

--U1sp2BI4PJ5LUOJ3e65rzlxkuJ3dCugD8
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 6/16/19 8:49 AM, Rainer Hurling wrote:
> If I try to build world almost recent sources (r349100) on HEAD amd64
> (r348775), it stops with the following error:
>=20
>=20
> [..snip..]
> (cd /usr/src/tests/sys/kern &&  DEPENDFILE=3D.depend.libkern_crc32
> NO_SUBDIR=3D1 make -f /usr/src/tests/sys/kern/Makefile _RECURSING_PROGS=
=3Dt
> PROG=3Dlibkern_crc32 )
> echo libkern_crc32: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libc.a
> /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libprivateatf-c.a >>
> .depend.libkern_crc32
> cc -target x86_64-unknown-freebsd13.0
> --sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp
> -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin  -O2 -pipe
> -DUSERSPACE_TESTING -MD  -MF.depend.libkern_crc32.libkern_crc32.o
> -MTlibkern_crc32.o -std=3Dgnu99 -fstack-protector-strong -Wsystem-heade=
rs
> -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
> -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body
> -Wno-string-plus-int -Wno-unused-const-variable
> -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality
> -Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef
> -Wno-address-of-packed-member   -Qunused-arguments   -c
> /usr/src/tests/sys/kern/libkern_crc32.c -o libkern_crc32.o
> cc -target x86_64-unknown-freebsd13.0
> --sysroot=3D/usr/obj/usr/src/amd64.amd64/tmp
> -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin -O2 -pipe -DUSERSPACE_TESTIN=
G
> -std=3Dgnu99 -fstack-protector-strong -Wsystem-headers -Werror -Wall
> -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes
> -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized
> -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int
> -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value
> -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion
> -Wno-unused-local-typedef -Wno-address-of-packed-member
> -Qunused-arguments -DUSERSPACE_TESTING    -o libkern_crc32
> libkern_crc32.o  /usr/src/sys/libkern/x86/crc32_sse42.c -lprivateatf-c
> /usr/src/sys/libkern/x86/crc32_sse42.c -lprivateatf-c

Hmm /usr/src/sys/libkern/x86/crc32_sse42.c is listed twice unless I'm
reading it wrong. It's from an LDADD. I'm looking into it a bit more...

> ld: error: duplicate symbol: sse42_crc32c
>>>> defined at crc32_sse42.c
>>>>            /tmp/crc32_sse42-2988bd.o:(sse42_crc32c)
>>>> defined at crc32_sse42.c
>>>>            /tmp/crc32_sse42-bcf3d2.o:(.text+0x3C0)
> cc: error: linker command failed with exit code 1 (use -v to see invoca=
tion)
> *** [libkern_crc32] Error code 1
> make[6]: stopped in /usr/src/tests/sys/kern
> 1 error
> make[6]: stopped in /usr/src/tests/sys/kern
> *** [libkern_crc32] Error code 2
>=20
>=20
> This happens with two older cpus, Intel (Core 17-4770) and AMD (Phenom
> II X6 1090T).
>=20
> Am I the only one, who observes this breakage? Thanks for any hint.
>=20
> Regards,
> Rainer Hurling
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o=
rg"
>=20


--=20
Regards,
Bryan Drewery


--U1sp2BI4PJ5LUOJ3e65rzlxkuJ3dCugD8--

--xw3SMI1307ZKXen0oSi7c7vhY8k6Qrs0k
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEE+Rc8ssOq6npcih8JNddxu25Gl88FAl0KeDYACgkQNddxu25G
l8+lxQf+KhGYMvhvupKYjtpLZ/VG74uFY1DTf+VMsItZebkoaX5igfzyX4qMSXnr
FautmiHKVmWE4PHd4Spi3VlEh9TOq5HdGWz0lGgbiiHO9mo0vjORyGJjR386wt4y
tYKTmMjxhbHxTtv3uiBnT5B8ISKf9fI+tkDMEObn5V3LMRzLvXGnyyfDgFLxcDfL
N/uaJMhmSPJigWbDyHgj1OExA45GEQZ31T6tov2WO8RbvZvqVeHn92Ux2wfmuh2z
zroaNXN15GyKodkpoCgsIjmANA0XflclAEy4kj3/xhVWxfKdianhjTZRaSbkkV2j
Z3hBCLgb63u8aEV07wgRkh52Vu2MjA==
=7dpZ
-----END PGP SIGNATURE-----

--xw3SMI1307ZKXen0oSi7c7vhY8k6Qrs0k--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f0634192-3e66-f4d2-e500-49f76f0c2d96>