On 4/17/2014 7:19 PM, Stefan Bruda wrote:
> On the following system:
>
> Package manager version: 0.36.4.1
> Distribution version: selfupdate-rsync Thu Apr 17 18:38:07 2014, 10.9, x86_64
> Trees: local/main stable/main
> Xcode.app: 5.1.1
> Xcode command-line tools: 5.1.0.0.1.1396320587
> Max. Fink build jobs:  1
>
> building libx264-118 fails as follows:
>
> gcc -Wshadow -O3 -ffast-math  -Wall -I. -falign-loops=16 -arch x86_64 
> -std=gnu99 -I/usr/X11R6/include -fPIC -fomit-frame-pointer 
> -fno-tree-vectorize -I/sw/include  -c -o x264.o x264.c
> clang: warning: unknown argument: '-falign-loops=16' 
> [-Wunused-command-line-argument-hard-error-in-future]
> clang: note: this will be a hard error (cannot be downgraded to a warning) in 
> the future
> clang: warning: argument unused during compilation: '-falign-loops=16'
> In file included from x264.c:33:
> In file included from ./common/common.h:90:
> In file included from ./common/osdep.h:65:
> /usr/include/math.h:394:14: error: expected ')'
> extern float log2f(float);
>               ^
> ./common/osdep.h:44:26: note: expanded from macro 'log2f'
> #define log2f(x) (logf(x)/0.693147180559945f)
>                           ^
> /usr/include/math.h:394:14: note: to match this '('
> ./common/osdep.h:44:18: note: expanded from macro 'log2f'
> #define log2f(x) (logf(x)/0.693147180559945f)
>                   ^
> In file included from x264.c:33:
> In file included from ./common/common.h:90:
> In file included from ./common/osdep.h:65:
> /usr/include/math.h:395:15: error: expected ')'
> extern double log2(double);
>                ^
> ./common/osdep.h:45:24: note: expanded from macro 'log2'
> #define log2(x) (log(x)/0.693147180559945)
>                         ^
> /usr/include/math.h:395:15: note: to match this '('
> ./common/osdep.h:45:17: note: expanded from macro 'log2'
> #define log2(x) (log(x)/0.693147180559945)
>                  ^
> 2 errors generated.
> make: *** [x264.o] Error 1

I have no way to test 10.9.  If you feel comfortable manually editing 
files in the failed build dir, edit the file 
/sw/src/fink.build/libx264-118-shlibs/x264-snapshot-20111013-2245/common/osdep.h
 
as shown in this patch:

http://git.videolan.org/?p=x264.git;a=blobdiff;f=common/osdep.h;h=054953d38fd8405ee6393ebc52ae04904fb8bfb9;hp=dba1eb071a5f62dcaf22ff5ecf9ffd0b0dcf9044;hb=c628e3bacabb3ec6aff74332c76a7879b80a7a3d;hpb=44b9b6d480eb91cd56d262088d7a9fa5af02338a

Then manually run this command from inside
/sw/src/fink.build/libx264-118-shlibs/x264-snapshot-20111013-2245

clang -stdlib=libc++ -Wshadow -O3 -ffast-math  -Wall -I. 
-falign-loops=16 -arch x86_64 -std=gnu99 -I/usr/X11R6/include -fPIC 
-fomit-frame-pointer -fno-tree-vectorize -I/sw/include  -c -o x264.o x264.c

Hanspeter


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to