From owner-freebsd-bugs@freebsd.org Sun Dec 2 21:20:02 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A113D132F825 for ; Sun, 2 Dec 2018 21:20:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 210EF7E653 for ; Sun, 2 Dec 2018 21:20:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id D2D50132F824; Sun, 2 Dec 2018 21:20:01 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B04C3132F821 for ; Sun, 2 Dec 2018 21:20:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 504457E652 for ; Sun, 2 Dec 2018 21:20:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 83875C3D1 for ; Sun, 2 Dec 2018 21:20:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id wB2LK0rG053095 for ; Sun, 2 Dec 2018 21:20:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wB2LK0RK053094 for bugs@FreeBSD.org; Sun, 2 Dec 2018 21:20:00 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: bugs@FreeBSD.org Subject: [Bug 233734] Possible build race: ld: cannot find -lh_csu Date: Sun, 02 Dec 2018 21:20:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lwhsu@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter 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 MIME-Version: 1.0 X-Rspamd-Queue-Id: 210EF7E653 X-Spamd-Result: default: False [1.43 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_LONG(0.01)[0.010,0]; NEURAL_SPAM_SHORT(0.76)[0.764,0]; NEURAL_SPAM_MEDIUM(0.65)[0.653,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Dec 2018 21:20:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233734 Bug ID: 233734 Summary: Possible build race: ld: cannot find -lh_csu Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: lwhsu@FreeBSD.org Failed runs: https://ci.freebsd.org/job/FreeBSD-head-mips-build/5273/console https://ci.freebsd.org/job/FreeBSD-head-mips64-build/5365/console For a failed run ( https://ci.freebsd.org/job/FreeBSD-head-mips-build/5273/consoleText ) We can see only libh_csu.so.full has been built before -lh_csu is used: $ grep h_csu consoleText echo cxx_constructors.full: /usr/obj/usr/src/mips.mips/tmp/usr/lib/libc.a /usr/obj/usr/src/mips.mips/lib/csu/tests/dso/libh_csu.so /usr/obj/usr/src/mips.mips/tmp/usr/lib/libprivateatf-c++.a /usr/obj/usr/src/mips.mips/tmp/usr/lib/libprivateatf-c.a >> .depend.cxx_constructors --- libh_csu.so.full --- building shared library libh_csu.so cc --sysroot=3D/usr/obj/usr/src/mips.mips/tmp -B/usr/obj/usr/src/mips.mips/tmp/usr/bin -EB -mabi=3D32 -shared -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel -o libh_csu.so.full -Wl,-soname,libh_csu.so `NM=3D'nm' NMFLAGS=3D'' lorder init_test.pico fini_test.pico cxx_constructors.pico | tsort -q` echo init_test.full: /usr/obj/usr/src/mips.mips/tmp/usr/lib/libc.a /usr/obj/usr/src/mips.mips/lib/csu/tests/dso/libh_csu.so /usr/obj/usr/src/mips.mips/tmp/usr/lib/libprivateatf-c++.a /usr/obj/usr/src/mips.mips/tmp/usr/lib/libprivateatf-c.a >> .depend.init_te= st c++ --sysroot=3D/usr/obj/usr/src/mips.mips/tmp -B/usr/obj/usr/src/mips.mips/tmp/usr/bin -O -pipe -DDSO_BASE -I/usr/src/lib/csu/mips -G0 -EB -mabi=3D32 -msoft-float -g -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -Wl,-rpath,/usr/tests/lib/csu/dynamiclib -L/usr/obj/usr/src/mips.mips/lib/csu/tests/dso -EB -mabi=3D32 -o init_test= .full=20 init_test.o -lh_csu -lprivateatf-c++ -lprivateatf-c -lprivateatf-c /usr/obj/usr/src/mips.mips/tmp/usr/bin/ld: cannot find -lh_csu But for a successful run: ( https://ci.freebsd.org/job/FreeBSD-head-mips-build/5274/consoleText ) libh_csu.so has beed built before -lh_csu is used: $ grep h_csu consoleText --- libh_csu.so.full --- building shared library libh_csu.so cc --sysroot=3D/usr/obj/usr/src/mips.mips/tmp -B/usr/obj/usr/src/mips.mips/tmp/usr/bin -EB -mabi=3D32 -shared -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel -o libh_csu.so.full -Wl,-soname,libh_csu.so `NM=3D'nm' NMFLAGS=3D'' lorder init_test.pico fini_test.pico cxx_constructors.pico | tsort -q` --- libh_csu.so.debug --- objcopy --only-keep-debug libh_csu.so.full libh_csu.so.debug --- libh_csu.so --- objcopy --strip-debug --add-gnu-debuglink=3Dlibh_csu.so.debug libh_csu.so.= full libh_csu.so echo cxx_constructors.full: /usr/obj/usr/src/mips.mips/tmp/usr/lib/libc.a /usr/obj/usr/src/mips.mips/lib/csu/tests/dso/libh_csu.so /usr/obj/usr/src/mips.mips/tmp/usr/lib/libprivateatf-c++.a /usr/obj/usr/src/mips.mips/tmp/usr/lib/libprivateatf-c.a >> .depend.cxx_constructors c++ --sysroot=3D/usr/obj/usr/src/mips.mips/tmp -B/usr/obj/usr/src/mips.mips/tmp/usr/bin -O -pipe -DDSO_BASE -I/usr/src/lib/csu/mips -G0 -EB -mabi=3D32 -msoft-float -g -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -Wl,-rpath,/usr/tests/lib/csu/dynamiclib -L/usr/obj/usr/src/mips.mips/lib/csu/tests/dso -EB -mabi=3D32 -o cxx_constructors.full cxx_constructors.o -lh_csu -lprivateatf-c++ -lprivateatf-c -lprivateatf-c echo init_test.full: /usr/obj/usr/src/mips.mips/tmp/usr/lib/libc.a /usr/obj/usr/src/mips.mips/lib/csu/tests/dso/libh_csu.so /usr/obj/usr/src/mips.mips/tmp/usr/lib/libprivateatf-c++.a /usr/obj/usr/src/mips.mips/tmp/usr/lib/libprivateatf-c.a >> .depend.init_te= st c++ --sysroot=3D/usr/obj/usr/src/mips.mips/tmp -B/usr/obj/usr/src/mips.mips/tmp/usr/bin -O -pipe -DDSO_BASE -I/usr/src/lib/csu/mips -G0 -EB -mabi=3D32 -msoft-float -g -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -Wl,-rpath,/usr/tests/lib/csu/dynamiclib -L/usr/obj/usr/src/mips.mips/lib/csu/tests/dso -EB -mabi=3D32 -o init_test= .full=20 init_test.o -lh_csu -lprivateatf-c++ -lprivateatf-c -lprivateatf-c echo fini_test.full: /usr/obj/usr/src/mips.mips/tmp/usr/lib/libc.a /usr/obj/usr/src/mips.mips/lib/csu/tests/dso/libh_csu.so /usr/obj/usr/src/mips.mips/tmp/usr/lib/libprivateatf-c++.a /usr/obj/usr/src/mips.mips/tmp/usr/lib/libprivateatf-c.a >> .depend.fini_te= st c++ --sysroot=3D/usr/obj/usr/src/mips.mips/tmp -B/usr/obj/usr/src/mips.mips/tmp/usr/bin -O -pipe -DDSO_BASE -I/usr/src/lib/csu/mips -G0 -EB -mabi=3D32 -msoft-float -g -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wpointer-arith -Wno-uninitialized -Wl,-rpath,/usr/tests/lib/csu/dynamiclib -L/usr/obj/usr/src/mips.mips/lib/csu/tests/dso -EB -mabi=3D32 -o fini_test= .full=20 fini_test.o -lh_csu -lprivateatf-c++ -lprivateatf-c -lprivateatf-c install -N /usr/src/etc -s -o root -g wheel -m 444 -S libh_csu.so /usr/obj/usr/src/mips.mips/release/dist/base/usr/tests/lib/csu/dynamiclib// install -N /usr/src/etc -o root -g wheel -m 444 libh_csu.so.debug /usr/obj/usr/src/mips.mips/release/dist/base/usr/lib/debug/usr/tests/lib/cs= u/dynamiclib// a ./usr/tests/lib/csu/dynamiclib/libh_csu.so a usr/lib/debug/usr/tests/lib/csu/dynamiclib/libh_csu.so.debug --=20 You are receiving this mail because: You are the assignee for the bug.=