[MacPorts] #33219: testdisk @6.13 - Build fails using clang
#33219: testdisk @6.13 - Build fails using clang ---------------------------------------+------------------------------------ Reporter: larry.velazquez@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: testdisk ---------------------------------------+------------------------------------ Building testdisk fails for me when clang is used as the compiler: {{{ :info:build Undefined symbols for architecture x86_64: :info:build "_ext2fs_mark_generic_bitmap", referenced from: :info:build _ext2fs_mark_block_bitmap in ext2_dir.o :info:build _ext2fs_mark_inode_bitmap in ext2_dir.o :info:build _ext2fs_fast_mark_block_bitmap in ext2_dir.o :info:build _ext2fs_fast_mark_inode_bitmap in ext2_dir.o :info:build "_ext2fs_unmark_generic_bitmap", referenced from: :info:build _ext2fs_unmark_block_bitmap in ext2_dir.o :info:build _ext2fs_unmark_inode_bitmap in ext2_dir.o :info:build _ext2fs_fast_unmark_block_bitmap in ext2_dir.o :info:build _ext2fs_fast_unmark_inode_bitmap in ext2_dir.o :info:build "_ext2fs_test_generic_bitmap", referenced from: :info:build _ext2fs_test_block_bitmap in ext2_dir.o :info:build _ext2fs_test_inode_bitmap in ext2_dir.o :info:build _ext2fs_fast_test_block_bitmap in ext2_dir.o :info:build _ext2fs_fast_test_inode_bitmap in ext2_dir.o :info:build "_ext2fs_get_generic_bitmap_start", referenced from: :info:build _ext2fs_get_block_bitmap_start in ext2_dir.o :info:build _ext2fs_get_inode_bitmap_start in ext2_dir.o :info:build "_ext2fs_get_generic_bitmap_end", referenced from: :info:build _ext2fs_get_block_bitmap_end in ext2_dir.o :info:build _ext2fs_get_inode_bitmap_end in ext2_dir.o :info:build "_ext2fs_test_block_bitmap_range", referenced from: :info:build _ext2fs_fast_test_block_bitmap_range in ext2_dir.o :info:build "_ext2fs_mark_block_bitmap_range", referenced from: :info:build _ext2fs_fast_mark_block_bitmap_range in ext2_dir.o :info:build "_ext2fs_unmark_block_bitmap_range", referenced from: :info:build _ext2fs_fast_unmark_block_bitmap_range in ext2_dir.o :info:build ld: symbol(s) not found for architecture x86_64 :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) }}} However, `sudo port install testdisk configure.compiler=llvm-gcc-4.2` seems to make no difference; it still uses clang as the compiler. Manually adding "`configure.compiler llvm-gcc-4.2`" to the Portfile does fix the problem for me. I'm not sure why this is. Mac OS X 10.7.2 (11C74), Xcode 4.2.1 (4D502), MacPorts 2.0.3. -- Ticket URL: <https://trac.macports.org/ticket/33219> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33219: testdisk @6.13 - Build fails using clang ---------------------------------------+------------------------------------ Reporter: larry.velazquez@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: testdisk ---------------------------------------+------------------------------------ Comment(by larry.velazquez@…): Never mind, `sudo port install testdisk configure.compiler=llvm-gcc-4.2` just worked for me. Not sure what happened before. -- Ticket URL: <https://trac.macports.org/ticket/33219#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33219: testdisk @6.13 - Build fails using clang ---------------------------------------+------------------------------------ Reporter: larry.velazquez@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: testdisk ---------------------------------------+------------------------------------ Comment(by snc@…): Did you clean between the normal install and when you manually set the compiler? -- Ticket URL: <https://trac.macports.org/ticket/33219#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33219: testdisk @6.13 - Build fails using clang ---------------------------------------+------------------------------------ Reporter: larry.velazquez@… | Owner: snc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: testdisk ---------------------------------------+------------------------------------ Changes (by ryandesign@…): * cc: snc@… (removed) * keywords: => clang * owner: macports-tickets@… => snc@… -- Ticket URL: <https://trac.macports.org/ticket/33219#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33219: testdisk @6.13 - Build fails using clang ---------------------------------------+------------------------------------ Reporter: larry.velazquez@… | Owner: snc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: clang | Port: testdisk ---------------------------------------+------------------------------------ Comment(by larry.velazquez@…): Replying to [comment:2 snc@…]:
Did you clean between the normal install and when you manually set the compiler?
I think I neglected to do so when I wrote the ticket. So now testdisk installs fine with llvm-gcc, but not with clang. -- Ticket URL: <https://trac.macports.org/ticket/33219#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33219: testdisk @6.13 - Build fails using clang ---------------------------------------+------------------------------------ Reporter: larry.velazquez@… | Owner: snc@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Keywords: clang | Port: testdisk ---------------------------------------+------------------------------------ Changes (by snc@…): * status: new => assigned * version: 2.0.3 => Comment: Thanks, we're now avoiding clang: r90097. -- Ticket URL: <https://trac.macports.org/ticket/33219#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33219: testdisk @6.13 - Build fails using clang ----------------------------------------+----------------------------------- Reporter: larry.velazquez@… | Owner: snc@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: Resolution: fixed | Keywords: clang Port: testdisk | ----------------------------------------+----------------------------------- Changes (by snc@…): * status: assigned => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/33219#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts