[MacPorts] #32825: Problem building libwebp on Leopard
#32825: Problem building libwebp on Leopard ----------------------------------+----------------------------------------- Reporter: erg@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: ----------------------------------+----------------------------------------- I received an error message when trying to build libwebp on Leopard. The problem occurs in webp/work/libwebp-0.1.3/src/dsp/cpu.c. The error message is In function 'GetCPUInfo': cpu.c:35: error: can't find a register in class 'BREG' while reloading 'asm' # -- Ticket URL: <https://trac.macports.org/ticket/32825> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32825: Problem building libwebp on Leopard ----------------------------------+----------------------------------------- Reporter: erg@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: ----------------------------------+----------------------------------------- Comment(by macsforever2000@…): Please attach the main.log. -- Ticket URL: <https://trac.macports.org/ticket/32825#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32825: Problem building libwebp on Leopard ----------------------------------+----------------------------------------- Reporter: erg@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: leopard | Port: webp ----------------------------------+----------------------------------------- Changes (by macsforever2000@…): * owner: macports-tickets@… => ryandesign@… * keywords: => leopard * port: => webp Old description:
I received an error message when trying to build libwebp on Leopard. The problem occurs in webp/work/libwebp-0.1.3/src/dsp/cpu.c. The error message is
In function 'GetCPUInfo': cpu.c:35: error: can't find a register in class 'BREG' while reloading 'asm' #
New description: I received an error message when trying to build libwebp on Leopard. The problem occurs in webp/work/libwebp-0.1.3/src/dsp/cpu.c. The error message is {{{ In function 'GetCPUInfo': cpu.c:35: error: can't find a register in class 'BREG' while reloading 'asm' # }}} -- -- Ticket URL: <https://trac.macports.org/ticket/32825#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32825: webp: error: can't find a register in class 'BREG' while reloading 'asm' ----------------------------------+----------------------------------------- Reporter: erg@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: leopard | Port: webp ----------------------------------+----------------------------------------- Comment(by ryandesign@…): Thanks for the report, Emden. I had only tried to use it on Snow Leopard so far. There is a [http://code.google.com/p/webp/downloads/list pre- compiled binary for Leopard] on the webp project's downloads page, so it must be possible to compile it... I'll try to look into this problem soon. -- Ticket URL: <https://trac.macports.org/ticket/32825#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32825: webp: error: can't find a register in class 'BREG' while reloading 'asm' ----------------------------------+----------------------------------------- Reporter: erg@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: leopard | Port: webp ----------------------------------+----------------------------------------- Comment(by ryandesign@…): I see [http://stackoverflow.com/questions/4010069/problem-on-mac-cant- find-a-register-in-class-breg-while-reloading-asm this similar report], indicating it's a problem with position-independent code, which on OS X is generated by default; it shows flags we could try to disable PIC. Alternately, it suggests it's a problem with the old gcc on Leopard; we could try using gcc 4.2 which is also available in Leopard's Xcode, but not on Tiger's, so we'd need a different solution there. Finally, we should report this to the developers of webp. I checked the binary they have for Leopard, and it's compiled only for x86_64, which is strange because that's not the default architecture on Leopard. Perhaps it was made on Snow Leopard, with Snow Leopard's newer gcc. I will test these various theories when I get back to my Leopard machine. -- Ticket URL: <https://trac.macports.org/ticket/32825#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32825: webp: error: can't find a register in class 'BREG' while reloading 'asm' -----------------------------------+---------------------------------------- Reporter: erg@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: leopard Port: webp | -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: I verified that using gcc-4.2 on Leopard works, so that's what I did in r88797. I still intend to find a different solution for Tiger later. -- Ticket URL: <https://trac.macports.org/ticket/32825#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32825: webp: error: can't find a register in class 'BREG' while reloading 'asm' -----------------------------------+---------------------------------------- Reporter: erg@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: leopard Port: webp | -----------------------------------+---------------------------------------- Comment(by ryandesign@…): I can't get it to build on Tiger. I have reported the problem to the developers of webp as [http://code.google.com/p/webp/issues/detail?id=103 issue 103]. -- Ticket URL: <https://trac.macports.org/ticket/32825#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts