[MacPorts] #42158: libbiosig: build fails with universal variant
#42158: libbiosig: build fails with universal variant --------------------------+------------------------ Reporter: ryandesign@… | Owner: christsc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Keywords: | Port: libbiosig --------------------------+------------------------ {{{ ld: warning: ignoring file CMakeFiles/cmTryCompileExec713066221.dir/testCCompiler.c.o, file was built for unsupported file format ( 0xCF 0xFA 0xED 0xFE 0x07 0x00 0x00 0x01 0x03 0x00 0x00 0x00 0x01 0x00 0x00 0x00 ) which is not the architecture being linked (i386): CMakeFiles/cmTryCompileExec713066221.dir/testCCompiler.c.o Undefined symbols for architecture i386: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture i386 }}} -- Ticket URL: <https://trac.macports.org/ticket/42158> MacPorts <http://www.macports.org/> Ports system for OS X
#42158: libbiosig: build fails with universal variant ---------------------------+------------------------ Reporter: ryandesign@… | Owner: christsc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libbiosig | ---------------------------+------------------------ Comment (by christsc@…): That's odd. CMake compiles "without" arch flags although `CMAKE_OSX_ARCHITECTURES` is set to "x86_64;i386": {{{ /usr/bin/clang -DMACPORTS -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.9 -o CMakeFiles/cmTryCompileExec3523348986.dir/testCCompiler.c.o -c }}} But then it links ''with'' arch flags: {{{ /usr/bin/clang -DMACPORTS -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -mmacosx-version-min=10.9 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -lz -lcholmod -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -arch x86_64 -arch i386 CMakeFiles/cmTryCompileExec3523348986.dir/testCCompiler.c.o -o cmTryCompileExec3523348986 }}} Any ideas? -- Ticket URL: <https://trac.macports.org/ticket/42158#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#42158: libbiosig: build fails with universal variant ---------------------------+------------------------ Reporter: ryandesign@… | Owner: christsc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: | Keywords: Port: libbiosig | ---------------------------+------------------------ Comment (by christsc@…): Apologies, the attached files belong to ticket #42159. -- Ticket URL: <https://trac.macports.org/ticket/42158#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#42158: libbiosig: build fails with universal variant ---------------------------+------------------------ Reporter: ryandesign@… | Owner: christsc@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.1 Resolution: fixed | Keywords: Port: libbiosig | ---------------------------+------------------------ Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: The problem is the portfile overrides the cflags and cxxflags the portgroup sets. Fixed in r117319. -- Ticket URL: <https://trac.macports.org/ticket/42158#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts