[MacPorts] #27359: ld: warning: in /opt/local/lib/libcppunit.dylib, missing required architecture x86_64 in file
#27359: ld: warning: in /opt/local/lib/libcppunit.dylib, missing required architecture x86_64 in file ------------------------------+--------------------------------------------- Reporter: blueduck@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 1.9.2 Keywords: cppunit | Port: ------------------------------+--------------------------------------------- If I try to compile some programm with cppunit I got the error above. Seems the libcppunit.dylib was not compiled for 64 bit, when installed by mac ports. lipo -info /opt/local/lib/libcppunit.dylib Architectures in the fat file: /opt/local/lib/libcppunit.dylib are: ppc7400 i386 -- Ticket URL: <https://trac.macports.org/ticket/27359> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27359: ld: warning: in /opt/local/lib/libcppunit.dylib, missing required architecture x86_64 in file ------------------------------+--------------------------------------------- Reporter: blueduck@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: cppunit ------------------------------+--------------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => mww@… * keywords: cppunit => * port: => cppunit * priority: High => Normal Comment: Please remember to cc the maintainer, and put the name of the port in the Port field. As per the ticket guidelines, the High priority is reserved for the use of MacPorts team members. Please show the output of {{{ port -v installed cppunit }}} and the universal_archs line from your macports.conf. -- Ticket URL: <https://trac.macports.org/ticket/27359#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27359: ld: warning: in /opt/local/lib/libcppunit.dylib, missing required architecture x86_64 in file ------------------------------+--------------------------------------------- Reporter: blueduck@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: cppunit ------------------------------+--------------------------------------------- Comment(by blueduck@…): Sorry for the inconvenience. {{{ $ port -v installed cppunit The following ports are currently installed: cppunit @1.12.1_0+universal (active) platform='darwin 10' archs='i386 ppc' }}} {{{ cat /opt/local/etc/macports/macports.conf ... # machine architectures universal_archs ppc i386 ... }}} -- Ticket URL: <https://trac.macports.org/ticket/27359#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27359: ld: warning: in /opt/local/lib/libcppunit.dylib, missing required architecture x86_64 in file -------------------------------+-------------------------------------------- Reporter: blueduck@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: invalid | Keywords: Port: cppunit | -------------------------------+-------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => invalid -- Ticket URL: <https://trac.macports.org/ticket/27359#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27359: ld: warning: in /opt/local/lib/libcppunit.dylib, missing required architecture x86_64 in file -------------------------------+-------------------------------------------- Reporter: blueduck@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: invalid | Keywords: Port: cppunit | -------------------------------+-------------------------------------------- Comment(by blueduck@…): Hey, what means "invalid" in this case? Did I misconfugured something? Does it work for you? How I could compile cppunit .cpp files? Thanks in advance, Stefano -- Ticket URL: <https://trac.macports.org/ticket/27359#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27359: ld: warning: in /opt/local/lib/libcppunit.dylib, missing required architecture x86_64 in file -------------------------------+-------------------------------------------- Reporter: blueduck@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: invalid | Keywords: Port: cppunit | -------------------------------+-------------------------------------------- Comment(by blueduck@…): Now it works for me too. I changed some settings in macports.conf {{{ # MACOSX_DEPLOYMENT_TARGET universal_target 10.5 -> universal_target 10.6 # the SDK "sysroot" to use universal_sysroot /Developer/SDKs/MacOSX10.5.sdk -> universal_sysroot /Developer/SDKs/MacOSX10.6.sdk # machine architectures universal_archs ppc i386 -> universal_archs i386 x86_64 }}} and compile cppunit again. Thanks for the hidden hints. Stefano -- Ticket URL: <https://trac.macports.org/ticket/27359#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27359: ld: warning: in /opt/local/lib/libcppunit.dylib, missing required architecture x86_64 in file -------------------------------+-------------------------------------------- Reporter: blueduck@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: invalid | Keywords: Port: cppunit | -------------------------------+-------------------------------------------- Comment(by jmr@…): Right, MacPorts did exactly what it was configured to do with universal_archs. FYI, universal_target and universal_sysroot no longer do anything. -- Ticket URL: <https://trac.macports.org/ticket/27359#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts