[MacPorts] #32080: CMake build error on OSX 10.6.8
#32080: CMake build error on OSX 10.6.8 -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: CMake, DT_SONAME | Port: CMake -----------------------------------------+---------------------------------- CMake fails to build on a OSX 10.6.8 system with all Apple updates: sudo port install cmake {{{ ---> Computing dependencies for cmake ---> Building cmake Error: Target org.macports.build returned: shell command failed (see log for details) Log for cmake is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/cmake/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} It does not make any difference if the following are tried: {{{ * sudo port selfupdate * sudo port clean cmake * sudo port install cmake configure.compiler=llvm-gcc-4.2 * sudo port upgrade outdated * sudo port uninstall cmake }}} log is attached. Thanks for looking into this. -- Ticket URL: <https://trac.macports.org/ticket/32080> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Changes (by ryandesign@…): * keywords: CMake, DT_SONAME => * owner: macports-tickets@… => css@… * port: CMake => cmake Comment: Please attach a main.log that was generated by a clean build, i.e. after running "sudo port clean cmake". What version of Xcode are you using? -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by anotherperson2011@…): Replying to [comment:1 ryandesign@…]:
Please attach a main.log that was generated by a clean build, i.e. after running "sudo port clean cmake".
'main.log' updated as requested.
What version of Xcode are you using? Xcode 4.2 (build 4C199).
thanks -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by anotherperson2011@…): Issue still exists with OSX 10.7.3, Xcode 4.3 (build 4E71d). Please see updated log ('main.2.log') -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by css@…): I'm trying a build of 2.8.7 right now, although I don't have Lion or XCode 4.2+ yet. See #33388 -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by anotherperson2011@…): Tried suggestions from ticket #33388 but no change observed in erroneous behavior, believe it's a different issue. Tried manually running (as sudo) the command which appears to fail in the log, results are in the attached file 'terminal.txt'. It seems to be a failure of being able to open 'cmELF.cxx.o' and other '*.cxx.o' files. -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by css@…): The current 2.8.7 port seems to build and run fine for me. Can you run selfupdate and try again? -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by anotherperson2011@…): Similar errors with 2.8.7, though this time cmExprParser.cxx.o is not being created due to the same missing symbols. The issue appears to be with lines in 'cm*.cxx' that state : {{{ #include <elf.h> }}} 'elf.h' does not appear to be part of the cmake distribution. I have 55 versions of elf.h on my machine, in various source distributions, but the above code finds the only one in the common system paths at /usr/include/elf.h, which on this Mac system is a one line file consisting of: {{{ #define CONFIG_BINFMT_ELF 1 }}} Hence the build issue. Perhaps you could include 'elf.h' in the cmake build, or explicitly point to one elsewhere within MacPorts so that the expected one is used? -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by anotherperson2011@…): I can confirm that the lack of inclusion of a suitable 'elf.h' file is the source of the issue. Replacing the existing elf.h with a copy of elf.h from an Ubuntu distribution into /usr/include allowed cmake to build within 'sudo port upgrade outdated'. -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by anotherperson2011@…): Googling 'macports elf.h' reveals that some other macports and apps seems to have encountered the same issue and have some suggested workarounds: e.g. [http://plattanimattan.blogspot.com/2010/04/cross-compiling-linux- on-mac-osx.html] -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by anotherperson2011@…): Replying to [comment:8 anotherperson2011@…]: Just to clarify - with this workaround, macports cmake 2.8.7 builds cleanly on OSX 10.7.3 with Xcode 4.3 (build 4E71d). -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by css@…): I think something else is the issue. It's not that it can't find elf.h, but rather that it shouldn't be looking for it in the first place. This seems similar to #20871. -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Changes (by css@…): * status: new => assigned Comment: Could someone please attach a failed build's `CMakeCache.txt`? -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by css@…): It looks like files are getting picked up from `/usr/local`. Do you have another package tool of some type installed that could interfere with MacPorts? -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by anotherperson2011@…): Replying to [comment:13 css@…]:
It looks like files are getting picked up from `/usr/local`.
Can you clarify - which files? I can then take a look. The only ones from /usr/local I see being referenced within CMakeCache.txt are a few from /usr/local/bin Path on the machine is fairly ordinary: {{{ PATH=/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin }}}
Do you have another package tool of some type installed that could interfere with MacPorts? 'Pallet' is installed but rarely used.
-- Ticket URL: <https://trac.macports.org/ticket/32080#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by pixilla@…): Replying to [comment:14 anotherperson2011@…]:
Replying to [comment:13 css@…]:
It looks like files are getting picked up from `/usr/local`. The only ones from /usr/local I see being referenced within CMakeCache.txt are a few from /usr/local/bin
See [https://trac.macports.org/wiki/FAQ#usrlocal FAQ /usr/local] Try: {{{ sudo mv /usr/local /usr/local_tmp sudo port clean cmake sudo port install cmake }}} -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' -----------------------------------------+---------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: cmake -----------------------------------------+---------------------------------- Comment(by anotherperson2011@…): Replying to [comment:15 pixilla@…]:
Replying to [comment:14 anotherperson2011@…]:
Replying to [comment:13 css@…]:
It looks like files are getting picked up from `/usr/local`. The only ones from /usr/local I see being referenced within CMakeCache.txt are a few from /usr/local/bin
See [https://trac.macports.org/wiki/FAQ#usrlocal FAQ /usr/local]
Try: {{{ sudo mv /usr/local /usr/local_tmp sudo port clean cmake sudo port install cmake }}}
System is now OSX 10.7.4 Lion with Xcode Version 4.3.2 (4E2002) I tried: {{{ rm /usr/include/elf.h (which was the workaround which had been working) sudo port uninstall cmake sudo port install cmake }}} and it built with no problems. I don't know if it was a change to MacPort, CMake, OSX or Xcode which fixed things, but you may close the ticket. Thanks for looking at this. -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32080: cmake build error on OSX 10.6.8: use of undeclared identifier 'DT_SONAME' ------------------------------------------+--------------------------------- Reporter: anotherperson2011@… | Owner: css@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: worksforme | Keywords: Port: cmake | ------------------------------------------+--------------------------------- Changes (by macsforever2000@…): * status: assigned => closed * resolution: => worksforme -- Ticket URL: <https://trac.macports.org/ticket/32080#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts