<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple>What version did you build? There was a git push last night.<br/><br/>-- Sean<hr/><div><b>From: </b> "David Munday" <cromom@soe.ucsc.edu>
</div><div><b>Date: </b>Mon, 7 Feb 2011 10:50:10 -0800</div><div><b>To: </b><gseanmcg@gmail.com></div><div><b>Subject: </b>Disregard last email</div><div><br/></div><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Sorry Sean,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I sent that message out prematurely I figured out the problem after I saw that quiet needed to be removed from the parameter list.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I am having a different problem now though. X264 runs fine if I specify 1 thread. –threads 1, but if I specify 2 or more threads I get:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>y4m [info]: 640x360p 0:0 @ 25/1 fps (cfr)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>x264 [info]: using cpu capabilities: none!<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>x264 [error]: malloc of size 0 failed<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>x264 [error]: x264_encoder_open failed<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>David<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Sean McGovern [mailto:gseanmcg@gmail.com] <br><b>Sent:</b> Friday, February 04, 2011 7:40 PM<br><b>To:</b> David Munday; Mailing List for x264 developers<br><b>Subject:</b> Re: x264 for sparcV9<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Pass --disable-asm to configure, and then re-run gmake.<br><br>Rebuilding often? Use gmake -j `/usr/sbin/psrinfo -p`<br><br>Want to follow proper Solaris standards for library placement? Add --libdir=\${exec_prefix}/lib/sparcv9 to configure, and then don't forget to symlink sparcv9 to '64' in the lib directory.<br><br>-- Sean<o:p></o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=2 width="100%" align=center></span></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>From: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>"David Munday" <cromom@soe.ucsc.edu> <o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Date: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Fri, 4 Feb 2011 19:11:01 -0800<o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>To: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><gseanmcg@gmail.com>; 'Mailing List for x264 developers'<x264-devel@videolan.org><o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Subject: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>RE: x264 for sparcV9<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'>Yes, I see your point, I added m64 to LDFLAGS but now I get the following:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>gcc -o x264 x264.o input/input.o input/timecode.o input/raw.o input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_bytestream.o filters/filters.o filters/video/video.o filters/video/source.o filters/video/internal.o filters/video/resize.o filters/video/cache.o filters/video/fix_vfr_pts.o filters/video/select_every.o filters/video/crop.o filters/video/depth.o input/thread.o extras/getopt.o libx264.a -m64 -lm -lpthread -s<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Undefined first referenced<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>symbol in file<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>x264_pixel_sad_16x16_vis libx264.a(pixel.o)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>x264_pixel_sad_8x8_vis libx264.a(pixel.o)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>x264_pixel_sad_8x16_vis libx264.a(pixel.o)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>x264_pixel_sad_16x8_vis libx264.a(pixel.o)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ld: fatal: Symbol referencing errors. No output written to x264<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>collect2: ld returned 1 exit status<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I’m just using configure with the appropriate variables and running the Makefile as it came from the git repo. Do I need to tell it something else to not link in pixel.o?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks,<br>David<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Sean McGovern [mailto:gseanmcg@gmail.com] <br><b>Sent:</b> Friday, February 04, 2011 7:01 PM<br><b>To:</b> David Munday; Mailing List for x264 developers<br><b>Subject:</b> Re: x264 for sparcV9<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Also, pixel.o shouldn't be built or linked in as its not 64-bit.<br><br>-- Sean<o:p></o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=2 width="100%" align=center></span></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>From: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>"David Munday" <cromom@soe.ucsc.edu> <o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Date: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Fri, 4 Feb 2011 18:38:31 -0800<o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>To: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><gseanmcg@gmail.com>; 'Mailing List for x264 developers'<x264-devel@videolan.org><o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Subject: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>RE: x264 for sparcV9<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'>Hi Sean,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks for the reply, I’m using gcc 4.3.2 and I ran configured with <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>#CFLAGS=”-m64 mcpu=v9” ./configure<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>And then ran gmake. Unfortunately, I’m getting a linking error related to the ELFCLASS of the x264.o object file. I’m thinking this is something simple that I’m not remembering. Would you mind taking a look at my build?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I appreciate your help,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>David<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Here’s the last few lines of my build:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>gcc -Wshadow -O3 -ffast-math -m64 -mcpu=v9 -Wall -I. -std=gnu99 -s -fomit-frame-pointer -fno-tree-vectorize -c -o common/threadpool.o common/threadpool.c<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>as -xarch=v8plusa -DBIT_DEPTH=8 -o common/sparc/pixel.o common/sparc/pixel.asm<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ar rc libx264.a common/mc.o common/predict.o common/pixel.o common/macroblock.o common/frame.o common/dct.o common/cpu.o common/cabac.o common/common.o common/osdep.o common/re<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ctangle.o common/set.o common/quant.o common/deblock.o common/vlc.o common/mvpred.o common/bitstream.o encoder/analyse.o encoder/me.o encoder/ratecontrol.o encoder/set.o encode<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>r/macroblock.o encoder/cabac.o encoder/cavlc.o encoder/encoder.o encoder/lookahead.o common/threadpool.o common/sparc/pixel.o<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ranlib libx264.a<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>gcc -o x264 x264.o input/input.o input/timecode.o input/raw.o input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_bytestream.o filters/fil<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ters.o filters/video/video.o filters/video/source.o filters/video/internal.o filters/video/resize.o filters/video/cache.o filters/video/fix_vfr_pts.o filters/video/select_every.o filters/video/crop.o filters/video/depth.o input/thread.o extras/getopt.o libx264.a -lm -lpthread -s<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ld: fatal: file x264.o: wrong ELF class: ELFCLASS64<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>ld: fatal: File processing errors. No output written to x264<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>collect2: ld returned 1 exit status<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>gmake: *** [x264] Error 1<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Sean McGovern [mailto:gseanmcg@gmail.com] <br><b>Sent:</b> Friday, February 04, 2011 4:27 PM<br><b>To:</b> David Munday; Mailing List for x264 developers<br><b>Subject:</b> Re: x264 for sparcV9<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>No, it should compile stock provided you are using a recent version of gcc -- 3.4.3 from Solaris 10 is ever so slightly on the old side. You might want to get your hands on GCCFSS or Blastwave. I built my own gcc 4.5.2 against SunFreeware's binutils package. <br><br>I've been working with the x264 team to keep this building properly "out of the box" on SPARC. <br><br>-- Sean<o:p></o:p></span></p><div class=MsoNormal align=center style='text-align:center'><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><hr size=2 width="100%" align=center></span></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>From: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>"David Munday" <cromom@soe.ucsc.edu> <o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Date: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Fri, 4 Feb 2011 16:02:30 -0800<o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>To: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><sean@seanmcgovern.ca><o:p></o:p></span></p></div><div><p class=MsoNormal><b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Subject: </span></b><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>x264 for sparcV9<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p></div><p class=MsoNormal>Hi Sean,<o:p></o:p></p><p class=MsoNormal>I’m a graduate student doing research with x264 and I need to compile a 64-bit version for sparcv9. I noticed that you are distributing solaris packages of exactly what I need, except I need to modify the source code.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Did you have to do anything special to get x264 to compile for 64-bit other than pass m64 to the compiler?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks for your help,<br>David <o:p></o:p></p></div></body></html>