[MacPorts] #43123: Install amavisd-new fails to build pre-req p5.12-mail-clamav
#43123: Install amavisd-new fails to build pre-req p5.12-mail-clamav ---------------------------+-------------------------------- Reporter: horst.simon@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: p5.12-mail-clamav ---------------------------+-------------------------------- The latest command line tools include a newer version of clang that’s stricter about unused arguments. Where before it was only a warning, now it is an error. pre-req p5.12-mail-clamav build for amavisd-new fails with clang error unknown option :info:build clang: error: unknown argument: '-R/opt/local/lib' [-Wunused- command-line-argument-hard-error-in-future] :info:build clang: note: this will be a hard error (cannot be downgraded to a warning) in the future I am using OS/X Maverick 10.9.2 witch latest Xcode and command line tools from March 2014. -- Ticket URL: <https://trac.macports.org/ticket/43123> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: Install amavisd-new fails to build pre-req p5.12-mail-clamav --------------------------------+-------------------------------- Reporter: horst.simon@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: p5.12-mail-clamav | --------------------------------+-------------------------------- Description changed by ryandesign@…: Old description:
The latest command line tools include a newer version of clang that’s stricter about unused arguments. Where before it was only a warning, now it is an error. pre-req p5.12-mail-clamav build for amavisd-new fails with clang error unknown option
:info:build clang: error: unknown argument: '-R/opt/local/lib' [-Wunused- command-line-argument-hard-error-in-future] :info:build clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
I am using OS/X Maverick 10.9.2 witch latest Xcode and command line tools from March 2014.
New description: The latest command line tools include a newer version of clang that’s stricter about unused arguments. Where before it was only a warning, now it is an error. pre-req p5.12-mail-clamav build for amavisd-new fails with clang error unknown option {{{ :info:build clang: error: unknown argument: '-R/opt/local/lib' [-Wunused- command-line-argument-hard-error-in-future] :info:build clang: note: this will be a hard error (cannot be downgraded to a warning) in the future }}} I am using OS/X Maverick 10.9.2 witch latest Xcode and command line tools from March 2014. -- -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' --------------------------------+-------------------------------- Reporter: horst.simon@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: p5.12-mail-clamav | --------------------------------+-------------------------------- Comment (by ryandesign@…): We've seen a lot of this sort of error with the March 2014 command line tools; its clang is apparently stricter than old versions used to be. -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' ------------------------------------+--------------------- Reporter: horst.simon@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: clamav p5-mail-clamav | ------------------------------------+--------------------- Changes (by jmr@…): * owner: macports-tickets@… => dluke@… * port: p5.12-mail-clamav => clamav p5-mail-clamav Comment: The flag comes from clamav-config. -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' ------------------------------------+--------------------- Reporter: horst.simon@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: clamav p5-mail-clamav | ------------------------------------+--------------------- Comment (by dluke@…): Looks like clamav doesn't build on 10.9 now as well: {{{ In file included from llvm/lib/Analysis/LoopInfo.cpp:17: ./llvm/include/llvm/Analysis/LoopInfo.h:817:19: error: no matching member function for call to 'insert' TodoStack.insert(TodoStack.end(), InvBlockTraits::child_begin(X), ~~~~~~~~~~^~~~~~ ./llvm/include/llvm/Analysis/LoopInfo.h:755:22: note: in instantiation of member function 'llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::ConsiderForLoop' requested here if (LoopT *L = ConsiderForLoop(*NI, DT)) ^ llvm/lib/Analysis/LoopInfo.cpp:384:6: note: in instantiation of member function 'llvm::LoopInfoBase<llvm::BasicBlock, llvm::Loop>::Calculate' requested here LI.Calculate(getAnalysis<DominatorTree>().getBase()); // Update ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:718:14: note: candidate function not viable: no known conversion from 'ChildIteratorType' (aka 'PredIterator<llvm::BasicBlock, Value::use_iterator>') to 'size_type' (aka 'unsigned long') for 2nd argument iterator insert(const_iterator __position, size_type __n, const_reference __x); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:722:14: note: candidate template ignored: disabled by 'enable_if' [with _InputIterator = llvm::PredIterator<llvm::BasicBlock, llvm::value_use_iterator<llvm::User> >] __is_input_iterator <_InputIterator>::value && ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:733:13: note: candidate template ignored: disabled by 'enable_if' [with _ForwardIterator = llvm::PredIterator<llvm::BasicBlock, llvm::value_use_iterator<llvm::User> >] __is_forward_iterator<_ForwardIterator>::value && ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:710:14: note: candidate function not viable: requires 2 arguments, but 3 were provided iterator insert(const_iterator __position, const_reference __x); ^ 1 warning and 1 error generated. }}} -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' ------------------------------------+--------------------- Reporter: horst.simon@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: clamav p5-mail-clamav | ------------------------------------+--------------------- Comment (by horst.simon@…): Can this option -R be removed, since it is obsolete. -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' ------------------------------------+--------------------- Reporter: horst.simon@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: clamav p5-mail-clamav | ------------------------------------+--------------------- Comment (by horst.simon@…): The only clamav-config I found was in /opt/local/bin and under --libs was the -R/opt/local/lib option, which I removed, but this did not solve the build error. Is there any other way to get this build, I need to have amavisd-new. -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' ------------------------------------+--------------------- Reporter: horst.simon@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: clamav p5-mail-clamav | ------------------------------------+--------------------- Comment (by dluke@…): Upstream clamav build bug: https://bugzilla.clamav.net/show_bug.cgi?id=10757 The patch there seems to work, I'm doing some additional testing now and will commit an updated clamav port shortly. -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' ------------------------------------+--------------------- Reporter: horst.simon@… | Owner: dluke@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: clamav p5-mail-clamav | ------------------------------------+--------------------- Comment (by dluke@…): clamav build fixed in r119246 -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' -----------------------------+-------------------------------- Reporter: horst.simon@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: p5-mail-clamav | -----------------------------+-------------------------------- Changes (by dluke@…): * owner: dluke@… => macports-tickets@… * port: clamav p5-mail-clamav => p5-mail-clamav -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' -----------------------------+-------------------------------- Reporter: horst.simon@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: p5-mail-clamav | -----------------------------+-------------------------------- Comment (by horst.simon@…): Hi, I am still failing with the -R option, do I have to run some commands to remove the previous failed build before I can install it again? I am too have attached the latest main.log file -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' -----------------------------+-------------------------------- Reporter: horst.simon@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: p5-mail-clamav | -----------------------------+-------------------------------- Comment (by horst.simon@…): One more update I run sudo port clean p5-mail-clamav before I tried it. -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' -----------------------------+-------------------------------- Reporter: horst.simon@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: p5-mail-clamav | -----------------------------+-------------------------------- Comment (by jmr@…): Replying to [comment:12 horst.simon@…]:
One more update I run sudo port clean p5-mail-clamav before I tried it. You need to clean p5.12-mail-clamav since that is the port that is failing to build.
-- Ticket URL: <https://trac.macports.org/ticket/43123#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' -----------------------------+-------------------------------- Reporter: horst.simon@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: p5-mail-clamav | -----------------------------+-------------------------------- Comment (by horst.simon@…): I run following, but still get the error: jupiter:~ horst$ sudo port clean p5.12-mail-clamav Password: ---> Cleaning p5.12-mail-clamav jupiter:~ horst$ sudo port install p5.12-mail-clamav ---> Computing dependencies for p5.12-mail-clamav ---> Fetching archive for p5.12-mail-clamav ---> Attempting to fetch p5.12-mail- clamav-0.290.0_3.darwin_13.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/p5.12-mail-clamav ---> Attempting to fetch p5.12-mail- clamav-0.290.0_3.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/p5.12 -mail-clamav ---> Attempting to fetch p5.12-mail- clamav-0.290.0_3.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/p5.12-mail-clamav ---> Fetching distfiles for p5.12-mail-clamav ---> Verifying checksums for p5.12-mail-clamav ---> Extracting p5.12-mail-clamav ---> Applying patches to p5.12-mail-clamav ---> Configuring p5.12-mail-clamav ---> Building p5.12-mail-clamav Error: org.macports.build for port p5.12-mail-clamav returned: command execution failed Please see the log file for port p5.12-mail-clamav for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5 -mail-clamav/p5.12-mail-clamav/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port p5.12-mail-clamav failed -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' -----------------------------+-------------------------------- Reporter: horst.simon@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: p5-mail-clamav | -----------------------------+-------------------------------- Comment (by ryandesign@…): Please remember to use WikiFormatting. Have you already run the following? {{{ sudo port selfupdate sudo port upgrade outdated }}} -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' -----------------------------+-------------------------------- Reporter: horst.simon@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: p5-mail-clamav | -----------------------------+-------------------------------- Comment (by horst.simon@…): Thanks, this did it, it installed ok and too amavisd-new installed. Thanks again -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#43123: p5.12-mail-clamav: error: unknown argument: '-R/opt/local/lib' -----------------------------+-------------------------------- Reporter: horst.simon@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: p5-mail-clamav | -----------------------------+-------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/43123#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts