[MacPorts] #32087: cairo fails to build on Lion
#32087: cairo fails to build on Lion ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: cairo, lion | Port: cairo ------------------------------+--------------------------------------------- I'm not getting cairo compiled under Lion, it seems to have some problems with the system includes. I attached the log... Does anybody have any suggestions? -- Ticket URL: <https://trac.macports.org/ticket/32087> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo fails to build on Lion ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: cairo, lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ongrie@…): Replying to [ticket:32087 ongrie@…]:
I'm not getting cairo compiled under Lion, it seems to have some problems with the system includes. I attached the log...
Does anybody have any suggestions?
I also tried with: {{{ $ sudo port install cairo build.jobs=1 configure.compiler=gcc-4.2 }}} as mentioned in [https://trac.macports.org/ticket/30405] but got the same error… -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo fails to build on Lion ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: cairo, lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ongrie@…): Replying to [comment:2 ongrie@…]:
Cc Me!
OK now I completely messed up this track. I wanted to set the Cc but accidentally added myself. Also there is no edit button so I replied to it. I hope some admins will fix it. Sorry though! -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => ryandesign@… * cc: ongrie@… (removed) * keywords: cairo, lion => lion Comment: The log you attached isn't complete... can you clean and try again please? {{{ sudo port clean cairo sudo port install cairo }}} If that still fails, please attach the new main.log. -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ongrie@…): Replying to [comment:4 ryandesign@…]:
The log you attached isn't complete... can you clean and try again please? {{{ sudo port clean cairo sudo port install cairo }}} If that still fails, please attach the new main.log.
Yea it failed, I attached the full log. -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ryandesign@…): It looks like you're running OS X 10.7.2, right? What version of Xcode do you have? -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ongrie@…): Replying to [comment:6 ryandesign@…]:
It looks like you're running OS X 10.7.2, right? What version of Xcode do you have?
You're right, I'm using 10.7.2 and the latest Xcode 4.2. {{{ $ uname -a Darwin greybox.local 11.2.0 Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64 }}} -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ryandesign@…): If you have Xcode 4.2, then I'm confused why /usr/bin/gcc-4.2 exists; Xcode 4.2 doesn't include gcc anymore. -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ongrie@…): Replying to [comment:8 ryandesign@…]:
If you have Xcode 4.2, then I'm confused why /usr/bin/gcc-4.2 exists; Xcode 4.2 doesn't include gcc anymore.
I need the GNU GCC for some other projects, that's why it's installed. Below my "compiler collection" ;-) {{{ anonymous@anonymous.local:/ $ ls -al /usr/bin/gcc* lrwxr-xr-x 1 root wheel 12 Nov 15 22:21 /usr/bin/gcc -> llvm- gcc-4.2 -rwxr-xr-x 1 root wheel 97392 May 18 2009 /usr/bin/gcc-4.0 -rwxr-xr-x 1 root wheel 166128 May 18 2009 /usr/bin/gcc-4.2 anonymous@anonymous.local:/ $ ls -al /usr/bin/llvm-* lrwxr-xr-x 1 root admin 32 Nov 15 22:20 /usr/bin/llvm-cpp-4.2 -> ../llvm-gcc-4.2/bin/llvm-cpp-4.2 lrwxr-xr-x 1 root admin 32 Nov 15 22:20 /usr/bin/llvm-g++ -> ../llvm- gcc-4.2/bin/llvm-g++-4.2 lrwxr-xr-x 1 root admin 32 Nov 15 22:20 /usr/bin/llvm-g++-4.2 -> ../llvm-gcc-4.2/bin/llvm-g++-4.2 lrwxr-xr-x 1 root admin 32 Nov 15 22:20 /usr/bin/llvm-gcc -> ../llvm- gcc-4.2/bin/llvm-gcc-4.2 lrwxr-xr-x 1 root admin 32 Nov 15 22:20 /usr/bin/llvm-gcc-4.2 -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2 }}} -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ongrie@…): I set the compiler to LLVM GCC: {{{ sudo port install cairo configure.compiler=llvm-gcc-4.2 }}} and executed clean, then tried to compile it again, but no luck. Although I've got another error message, I still don't know what to do. I attached the new log (llvm-main.log) and post the relevant line below. {{{ :info:build Undefined symbols for architecture x86_64: :info:build "_cairo_boilerplate_get_target_by_name", referenced from: :info:build _main in cairo_sphinx-sphinx.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) :info:build make[4]: *** [cairo-sphinx] Error 1 }}} -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ryandesign@…): We already know that cairo will not work correctly when compiled with clang or llvm-gcc-4.2, which is why the port forces the use of gcc-4.2. However, on Xcode 4.2, there isn't supposed to be a gcc-4.2, so the port is supposed to use the apple-gcc42 port in that case. But since you've somehow restored gcc-4.2 onto your system, the port is using it. Try installing the apple-gcc42 port and using it compile cairo: {{{ sudo port install apple-gcc42 sudo port clean cairo sudo port install cairo configure.compiler=apple-gcc-4.2 configure.cxx=g++-apple-4.2 }}} See ProblemHotlist#xcode42. Several other ports use the same programming to force the use of gcc-4.2; these might also fail because of your rogue gcc-4.2/gcc-4.0 compilers, so I recommend you remove them. If you need the Apple versions of gcc while using Xcode 4.2, consider using the compilers installed by the apple-gcc42 /apple-gcc40 ports. These should be slightly newer versions that should work on Lion. -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ongrie@…): Replying to [comment:11 ryandesign@…]:
Several other ports use the same programming to force the use of gcc-4.2; these might also fail because of your rogue gcc-4.2/gcc-4.0 compilers, so I recommend you remove them. If you need the Apple versions of gcc while using Xcode 4.2, consider using the compilers installed by the apple-gcc42/apple-gcc40 ports. These should be slightly newer versions that should work on Lion.
OK thanks! I'm now building apple-gcc42 and try it again. One more question, how should I remove my "rough gcc4.2" compiles safely? -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ryandesign@…): Replying to [comment:12 ongrie@…]:
how should I remove my "rough gcc4.2" compiles safely?
I'm not sure... how did you install them? -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion | Port: cairo ------------------------------+--------------------------------------------- Comment(by ongrie@…): Replying to [comment:13 ryandesign@…]:
Replying to [comment:12 ongrie@…]:
how should I remove my "rough gcc4.2" compiles safely?
I'm not sure... how did you install them?
I installed Xcode 3.2 and then Xcode 4.2 ;-) I'll figure it out anyhow… Thanks for your help regarding cairo, now it built fine! -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion haspatch | Port: cairo ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * keywords: lion => lion haspatch * status: new => assigned * cc: jerkejacobs@…, raimue@…, jxzhu@… (added) Comment: Has duplicates #32811 (has a patch for disabling lto so that cairo can be compiled with llvm-gcc-4.2 to avoid the problem) and #32848. -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" ------------------------------+--------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: lion haspatch | Port: cairo ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * cc: sarma72@… (added) Comment: Has duplicate #33009. -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32087: cairo: error: implicit declaration of function "__builtin___stpncpy_chk" -------------------------------+-------------------------------------------- Reporter: ongrie@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: lion haspatch Port: cairo | -------------------------------+-------------------------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: r89314 -- Ticket URL: <https://trac.macports.org/ticket/32087#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts