[MacPorts] #38141: ffmpeg compilation: "run out of registers" on 10.6.8
#38141: ffmpeg compilation: "run out of registers" on 10.6.8 ---------------------+-------------------------------- Reporter: aszoz@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: ---------------------+-------------------------------- While trying to compile ffmpeg I got this error on x86_64 (I was just upgrading ports): Please let me know if more info will can be helpful. :info:build /usr/bin/clang -I. -I./ -I/opt/local/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -DHAVE_AV_CONFIG_H -O2 -DHAVE_LRINTF -I/opt/local/include -arch i386 -std=c99 -fomit-frame- pointer -fPIC -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/opus -I/opt/local/include/schroedinger-1.0 -I/opt/local/include/orc-0.4 -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/include/SDL -g -Wdeclaration-after-statement -Wall -Wno- parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3 -fno-math-errno -fno-signed-zeros -mllvm -stack- alignment=16 -Qunused-arguments -Werror=implicit-function-declaration -Werror=missing-prototypes -MMD -c -o libavcodec/h264_cabac.o libavcodec/h264_cabac.c :info:build fatal error: error in backend: Ran out of registers during register allocation! -- Ticket URL: <https://trac.macports.org/ticket/38141> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38141: ffmpeg compilation: "run out of registers" on 10.6.8 ----------------------+------------------------ Reporter: aszoz@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: ffmpeg | ----------------------+------------------------ Changes (by larryv@…): * cc: devans@… (added) * owner: macports-tickets@… => jeremyhu@… * port: => ffmpeg Old description:
While trying to compile ffmpeg I got this error on x86_64 (I was just upgrading ports): Please let me know if more info will can be helpful.
:info:build /usr/bin/clang -I. -I./ -I/opt/local/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -DHAVE_AV_CONFIG_H -O2 -DHAVE_LRINTF -I/opt/local/include -arch i386 -std=c99 -fomit-frame- pointer -fPIC -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/opus -I/opt/local/include/schroedinger-1.0 -I/opt/local/include/orc-0.4 -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/include/SDL -g -Wdeclaration-after-statement -Wall -Wno- parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3 -fno-math-errno -fno-signed-zeros -mllvm -stack- alignment=16 -Qunused-arguments -Werror=implicit-function-declaration -Werror=missing-prototypes -MMD -c -o libavcodec/h264_cabac.o libavcodec/h264_cabac.c :info:build fatal error: error in backend: Ran out of registers during register allocation!
New description: While trying to compile ffmpeg I got this error on x86_64 (I was just upgrading ports): Please let me know if more info will can be helpful. {{{ :info:build /usr/bin/clang -I. -I./ -I/opt/local/include -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -DHAVE_AV_CONFIG_H -O2 -DHAVE_LRINTF -I/opt/local/include -arch i386 -std=c99 -fomit-frame- pointer -fPIC -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/opus -I/opt/local/include/schroedinger-1.0 -I/opt/local/include/orc-0.4 -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/include/SDL -g -Wdeclaration-after-statement -Wall -Wno- parentheses -Wno-switch -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -O3 -fno-math-errno -fno-signed-zeros -mllvm -stack- alignment=16 -Qunused-arguments -Werror=implicit-function-declaration -Werror=missing-prototypes -MMD -c -o libavcodec/h264_cabac.o libavcodec/h264_cabac.c :info:build fatal error: error in backend: Ran out of registers during register allocation! }}} -- Comment: Thanks for the ticket. In the future, please Cc relevant port maintainers. This looks similar to #37802, but that particular problem only showed up when compiling for i386. Please run the following; if it still fails, attach the entire `main.log`, which will be mentioned in the failure message. {{{ sudo port clean ffmpeg && sudo port install ffmpeg }}} -- Ticket URL: <https://trac.macports.org/ticket/38141#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38141: ffmpeg compilation: "run out of registers" on 10.6.8 ----------------------+------------------------ Reporter: aszoz@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: ffmpeg | ----------------------+------------------------ Comment (by jeremyhu@…): Also, what is your version of clang (/usr/bin/clang --version)? -- Ticket URL: <https://trac.macports.org/ticket/38141#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38141: ffmpeg compilation: "run out of registers" on 10.6.8 ----------------------+------------------------ Reporter: aszoz@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: ffmpeg | ----------------------+------------------------ Comment (by jeremyhu@…): This error *is* with i386 (see -arch i386 in the compilation line). Does ffmpeg-devel build? -- Ticket URL: <https://trac.macports.org/ticket/38141#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38141: ffmpeg compilation: "run out of registers" on 10.6.8 ----------------------+------------------------ Reporter: aszoz@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: ffmpeg | ----------------------+------------------------ Comment (by larryv@…): Replying to [comment:3 jeremyhu@…]:
This error *is* with i386 (see -arch i386 in the compilation line).
Womp. Brain shut off at “I got this error on x86_64”. -- Ticket URL: <https://trac.macports.org/ticket/38141#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38141: ffmpeg compilation: "run out of registers" on 10.6.8 ----------------------+------------------------ Reporter: aszoz@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: ffmpeg | ----------------------+------------------------ Comment (by aszoz@…): Yep the error is i386, I meant to say that my machine is 64bit unlike a similar error on 32bit here https://trac.macports.org/ticket/30137 I have compiled ffmpeg with gcc (configure.compiler=apple-gcc-4.2), but just reproduced the error for your benefit with "port clean ffmpeg && port install ffmpeg". I was actually updating opencv, when this error popped up, so it looks like something broken, never happend to me in 3 years since I use ports. {{{ clang -version clang version 3.0 (tags/RELEASE_30/final) Target: x86_64-apple-darwin10.8.0 Thread model: posix }}} -- Ticket URL: <https://trac.macports.org/ticket/38141#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38141: ffmpeg compilation: "run out of registers" on 10.6.8 ----------------------+------------------------ Reporter: aszoz@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: ffmpeg | ----------------------+------------------------ Comment (by jeremyhu@…): I need to know `/usr/bin/clang --version` and not `clang --version` ... thanks. -- Ticket URL: <https://trac.macports.org/ticket/38141#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38141: ffmpeg compilation: "run out of registers" on 10.6.8 ----------------------+------------------------ Reporter: aszoz@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: ffmpeg | ----------------------+------------------------ Comment (by aszoz@…): Yes, it's different. Is it the cause? {{{ /usr/bin/clang --version Apple clang version 2.0 (tags/Apple/clang-139) (based on LLVM 2.9svn) Target: x86_64-apple-darwin10 Thread model: posix }}} -- Ticket URL: <https://trac.macports.org/ticket/38141#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38141: ffmpeg compilation: "run out of registers" on 10.6.8 ----------------------+------------------------ Reporter: aszoz@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: ffmpeg | ----------------------+------------------------ Comment (by jeremyhu@…): Them being different is not the cause. You having an old clang is part of the problem. =) -- Ticket URL: <https://trac.macports.org/ticket/38141#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38141: ffmpeg compilation: "run out of registers" on 10.6.8 ----------------------+------------------------ Reporter: aszoz@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: ffmpeg | ----------------------+------------------------ Comment (by jeremyhu@…): It looks like you have XCode 4.0.x ... clang-137 was in 4.0.0 and clang-163.7.1 is in 4.1.0. I'll blacklist < 163.7.1. You should probably update to a newer Xcode, too =). -- Ticket URL: <https://trac.macports.org/ticket/38141#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#38141: ffmpeg compilation: "run out of registers" on 10.6.8 ----------------------+------------------------ Reporter: aszoz@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: ffmpeg | ----------------------+------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => fixed Comment: r103321 -- Ticket URL: <https://trac.macports.org/ticket/38141#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts