From owner-freebsd-questions@freebsd.org Fri Apr 8 15:14:09 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 148F2B0846C for ; Fri, 8 Apr 2016 15:14:09 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B4AF31F91 for ; Fri, 8 Apr 2016 15:14:08 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [192.168.151.122]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id u38FDjRg091447; Fri, 8 Apr 2016 09:13:45 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org Subject: Re: llvm37 build failure, libatomic? References: <57067324.8070603@dreamchaser.org> <20160408083614.5af4c89e@fujitsu> To: Aleksander Alekseev Cc: FreeBSD Mailing List From: Gary Aitken X-Enigmail-Draft-Status: N1110 Message-ID: <5707CA5C.7060902@dreamchaser.org> Date: Fri, 8 Apr 2016 09:12:28 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <20160408083614.5af4c89e@fujitsu> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [192.168.151.101]); Fri, 08 Apr 2016 09:13:46 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2016 15:14:09 -0000 Hello Aleksander and Peter, Thanks for your replies. >>> Updated ports (it's been quite a while) and attempting to rebuild x11 >>> fails for llvm37 claiming the compiler needs libatomic and it's not >>> there. What's the deal with libatomic? > > You will need to install lang/clang-devel to successfully update llvm37. When I try to install clang-devel I get the same error: -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB -- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Failed -- Looking for __atomic_fetch_add_4 in atomic -- Looking for __atomic_fetch_add_4 in atomic - not found CMake Error at cmake/modules/CheckAtomic.cmake:36 (message): Host compiler appears to require libatomic, but cannot find it. Call Stack (most recent call first): cmake/config-ix.cmake:296 (include) CMakeLists.txt:412 (include) > If you still have a problem with libatomic could you please provide > more information - OS version, make.conf, port flags, more logs, etc? The CMakeError.log file indicates a number of errors: Run Build Command:"/usr/local/bin/ninja" "cmTC_32962" [1/2] Building C object CMakeFiles/cmTC_32962.dir/CheckIncludeFile.c.o FAILED: /usr/local/bin/gcc48 -O2 -pipe -isystem /usr/local/include -fstack-protector -Wl,-rpath=/usr/local/lib/gcc48 -fno-strict- aliasing -o CMakeFiles/cmTC_32962.dir/CheckIncludeFile.c.o -c CheckIncludeFile.c In file included from CheckIncludeFile.c:1:0: /usr/include/malloc.h:3:2: error: #error " has been replaced by " #error " has been replaced by " ^ ninja: build stopped: subcommand failed. and others, ending with: /usr/local/bin/ld: cannot find -lcxxrt collect2: error: ld returned 1 exit status I'm guessing this is a configuration error on my system, probably related to 10.x changes; I'm running 9.2-RELEASE-p12 /etc/make.conf contains: PERL_VERSION=5.20.3_9 DEFAULT_VERSIONS+=perl5=5.20.3_9 WITH_PKGNG=yes WITH_BDB_VER=5 OPTIONS_SET=X11 OPTIONS_UNSET=NLS WITH_OPENSSL_PORT=yes When I first saw the error I installed devel/libatomic_ops, but that creates /usr/local/lib/libatomic_ops.a and libatomic_ops_gpl.a. Not libatomic.* There is also a libboost_atomic.* set from about 6 months ago. However, given the other errors above from ninja I'm guessing this is more than just a libatomic problem. Thanks for any additional clues, Gary