From owner-freebsd-bugs@freebsd.org Thu Jul 23 22:13:34 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B7E6C3652ED for ; Thu, 23 Jul 2020 22:13:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BCRRy4XkRz4DbP for ; Thu, 23 Jul 2020 22:13:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9BCE4365615; Thu, 23 Jul 2020 22:13:34 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9B9283652EB for ; Thu, 23 Jul 2020 22:13:34 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BCRRy3f6qz4DTl for ; Thu, 23 Jul 2020 22:13:34 +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 60AB01FDF1 for ; Thu, 23 Jul 2020 22:13:34 +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 06NMDYbR071587 for ; Thu, 23 Jul 2020 22:13:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06NMDYPN071584 for bugs@FreeBSD.org; Thu, 23 Jul 2020 22:13:34 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 248230] [regression] Compiled C++ program fails to run with the Undefined symbol error Date: Thu, 23 Jul 2020 22:13:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vedran@miletic.net 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-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2020 22:13:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248230 Bug ID: 248230 Summary: [regression] Compiled C++ program fails to run with the Undefined symbol error Product: Base System Version: 12.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: vedran@miletic.net I'm running % uname -a FreeBSD bsd-testing 12.1-STABLE FreeBSD 12.1-STABLE r363428 GENERIC amd64 and % clang++ --version=20 FreeBSD clang version 10.0.0 (git@github.com:llvm/llvm-project.git llvmorg-10.0.0-0-gd32170dbd5b) Target: x86_64-unknown-freebsd12.1 Thread model: posix InstalledDir: /usr/bin I'm developing RxDock [1] and FreeBSD is one of our two primary target platforms [2], other being Linux. I recently did some refactoring (commit 6d99131ef712a27d6637564de75b2b59bbc23619 in [3]) and tests now fail with: The output from the failed tests: 1/5 rbcavity-1koc FAIL 0.01s (exit status 1) --- command --- 22:09:55 RBT_HOME=3D'/usr/home/vedranm/workspace/rxdock/build/test/RBT_HOME' RBT_ROOT=3D'/usr/home/vedranm/workspace/rxdock' /usr/home/vedranm/workspace/rxdock/builddir/rbcavity -r /usr/home/vedranm/workspace/rxdock/build/test/RBT_HOME/1koc.prm -W --- stderr --- ld-elf.so.1: /usr/home/vedranm/workspace/rxdock/builddir/rbcavity: Undefined symbol "_ZN6rxdock14PrintStdHeaderERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEE= ERKNS0_12basic_stringIcS3_NS0_9allocatorIcEEEE" ------- 2/5 rbcavity-1yet FAIL 0.01s (exit status 1) --- command --- 22:09:55 RBT_HOME=3D'/usr/home/vedranm/workspace/rxdock/build/test/RBT_HOME' RBT_ROOT=3D'/usr/home/vedranm/workspace/rxdock' /usr/home/vedranm/workspace/rxdock/builddir/rbcavity -r /usr/home/vedranm/workspace/rxdock/build/test/RBT_HOME/1YET.prm -W --- stderr --- ld-elf.so.1: /usr/home/vedranm/workspace/rxdock/builddir/rbcavity: Undefined symbol "_ZN6rxdock14PrintStdHeaderERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEE= ERKNS0_12basic_stringIcS3_NS0_9allocatorIcEEEE" ------- 3/5 rbcavity-1yet-test FAIL 0.01s (exit status 1) --- command --- 22:09:55 RBT_HOME=3D'/usr/home/vedranm/workspace/rxdock/build/test/RBT_HOME' RBT_ROOT=3D'/usr/home/vedranm/workspace/rxdock' /usr/home/vedranm/workspace/rxdock/builddir/rbcavity -r /usr/home/vedranm/workspace/rxdock/build/test/RBT_HOME/1YET_test.prm -W --- stderr --- ld-elf.so.1: /usr/home/vedranm/workspace/rxdock/builddir/rbcavity: Undefined symbol "_ZN6rxdock14PrintStdHeaderERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEE= ERKNS0_12basic_stringIcS3_NS0_9allocatorIcEEEE" ------- 4/5 unit-test FAIL 0.01s (exit status 1) --- command --- 22:09:55 RBT_HOME=3D'/usr/home/vedranm/workspace/rxdock/build/test/RBT_HOME' RBT_ROOT=3D'/usr/home/vedranm/workspace/rxdock' /usr/home/vedranm/workspace/rxdock/builddir/unit-test --- stderr --- ld-elf.so.1: Undefined symbol "_ZTVN6rxdock18RbtFlexAtomFactoryE" referenced from COPY relocation in /usr/home/vedranm/workspace/rxdock/builddir/unit-te= st ------- 5/5 rbdock-1yet-test FAIL 0.01s (exit status 1) --- command --- 22:09:55 RBT_HOME=3D'/usr/home/vedranm/workspace/rxdock/build/test/RBT_HOME' RBT_ROOT=3D'/usr/home/vedranm/workspace/rxdock' /usr/home/vedranm/workspace/rxdock/builddir/rbdock -r /usr/home/vedranm/workspace/rxdock/build/test/RBT_HOME/1YET_test.prm -i /usr/home/vedranm/workspace/rxdock/build/test/RBT_HOME/1YET_c.sd -p dock.pr= m -n 1 -s 48151623 -o /usr/home/vedranm/workspace/rxdock/build/test/RBT_HOME/1YET_test_out --- stderr --- ld-elf.so.1: /usr/home/vedranm/workspace/rxdock/builddir/rbdock: Undefined symbol "_ZN6rxdock14PrintStdHeaderERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEE= ERKNS0_12basic_stringIcS3_NS0_9allocatorIcEEEE" ------- Full log written to /usr/home/vedranm/workspace/rxdock/builddir/meson-logs/testlog.txt FAILED: meson-test=20 /usr/local/bin/meson test --no-rebuild --print-errorlogs ninja: build stopped: subcommand failed. However, tests works fine on FreeBSD 11.4 with Clang 10 and 12.1 with Clang= 8 (and also on Linux). If I revert that commit, the tests work fine on 12.1-STABLE as well. I trie= d to come up with a more minimal example, but I couldn't figure out what exactly makes it break. [1] https://www.rxdock.org/ [2] https://www.rxdock.org/documentation/devel/html/developer-guide/target-plat= forms.html [3] https://bitbucket.org/rxdock/rxdock --=20 You are receiving this mail because: You are the assignee for the bug.=