skufog / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

llvm build error #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
../../source/row_posix.cc:1825:5: error: ran out of registers during register 
allocation
    "movdqa    %[kShuffleMaskARGBToRGB24_0],%%xmm5 \n"

Change DEPS
"chromium_revision": "195633",

modify build/common.gypi
#'-momit-leaf-frame-pointer',

svn up --revision 618

tools/clang/scripts/update.sh

GYP_DEFINES='clang=1 target_arch=ia32' ./build/gyp_chromium -f ninja --depth=. 
libyuv_test.gyp
ninja -j10 -C out/Debug

confirm clang version
third_party/llvm-build/Release+Asserts/bin/clang --version

Original issue reported on code.google.com by fbarch...@chromium.org on 23 Apr 2013 at 12:17

GoogleCodeExporter commented 9 years ago
../../source/row_posix.cc:2035:21: error: unknown attribute 'optimize' ignored 
[-Werror,-Wattributes]
void __attribute__((optimize("omit-frame-pointer"))) I422ToRGB24Row_SSSE3(const 
uint8* y_buf,
                    ^
1 error generated.
ninja: build stopped: subcommand failed.

Original comment by fbarch...@chromium.org on 23 Apr 2013 at 1:09

GoogleCodeExporter commented 9 years ago
The only known issue with the work around for that function is that msys gcc 64 
bit requires xmm5/xmm6 be preserved.

r675 changes the ifdef from APPLE to __i386__

Original comment by fbarch...@chromium.org on 23 Apr 2013 at 1:33

GoogleCodeExporter commented 9 years ago
Rolling r675 into chromium to address
https://code.google.com/p/chromium/issues/detail?id=233709

Original comment by fbarch...@chromium.org on 23 Apr 2013 at 3:50