Bug 24392

Summary: Build fails on Mac OS X 10.6
Product: liboil Reporter: David <lessen42>
Component: unknownAssignee: David Schleef <ds>
Status: NEW --- QA Contact: David Schleef <ds>
Severity: normal    
Priority: medium    
Version: HEAD   
Hardware: x86-64 (AMD64)   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:

Description David 2009-10-08 04:11:21 UTC
First, configure fails to detect that gcc produces 64-bit binaries, leading to

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../.. -Wall -D_BSD_SOURCE -D_GNU_SOURCE -I../.. -DOIL_ENABLE_UNSTABLE_API -g -O2 -MT libi386_la-argb_paint_i386.lo -MD -MP -MF .deps/libi386_la-argb_paint_i386.Tpo -c argb_paint_i386.c  -fno-common -DPIC -o .libs/libi386_la-argb_paint_i386.o
/var/folders/WC/WCQfew6LEaqrFEF+j4W8CE+++TI/-Tmp-//ccgjScsQ.s:52:Incorrect register `%rax' used with `l' suffix
/var/folders/WC/WCQfew6LEaqrFEF+j4W8CE+++TI/-Tmp-//ccgjScsQ.s:58:Incorrect register `%rax' used with `l' suffix
make[3]: *** [libi386_la-argb_paint_i386.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

adding --host=x86_64-apple-darwin lets the build get further, failing at

libtool: link: ( cd ".libs" && rm -f "liboilfunctions.la" && ln -s "../liboilfunctions.la" "liboilfunctions.la" )
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -no-undefined -export-symbols-regex 'oil_'  -o liboiltmp1.la -rpath /usr/local/lib liboiltmp.lo liboilfunctions.la   
libtool: link: link -dump -symbols  .libs/liboiltmp.o   ./.libs/liboilfunctions.a |  | /usr/bin/sed 's/.* //' | sort | uniq > .libs/liboiltmp1.exp
../libtool: eval: line 947: syntax error near unexpected token `|'
../libtool: eval: line 947: `link -dump -symbols  .libs/liboiltmp.o   ./.libs/liboilfunctions.a |  | /usr/bin/sed 's/.* //' | sort | uniq > .libs/liboiltmp1.exp'
make[3]: *** [liboiltmp1.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Comment 1 David Schleef 2009-10-15 08:44:44 UTC
This requires updating autoconf, which means that building from git will likely work automatically.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.