Andrew Church wrote:
>> I'm not that familiar with OSX and will have to ask someone how to
>> determine the binutils version used natively.
>>     
x:~# as -v
Apple Computer, Inc. version cctools-622.5.obj~13, GNU assembler version
1.38

Doesn't look like the binutils I installed is being used:

$ port contents binutils
Port binutils contains:
/opt/local/bin/gaddr2line
/opt/local/bin/gar
/opt/local/bin/gc++filt
/opt/local/bin/gnm
/opt/local/bin/gobjcopy
/opt/local/bin/gobjdump
/opt/local/bin/granlib
/opt/local/bin/greadelf
/opt/local/bin/gsize
/opt/local/bin/gstrings
/opt/local/bin/gstrip
/opt/local/i386-apple-darwin8.9.1/bin/ar
/opt/local/i386-apple-darwin8.9.1/bin/nm
/opt/local/i386-apple-darwin8.9.1/bin/objdump
/opt/local/i386-apple-darwin8.9.1/bin/ranlib
/opt/local/i386-apple-darwin8.9.1/bin/strip
/opt/local/include/ansidecl.h
/opt/local/include/bfd.h
/opt/local/include/bfdlink.h
/opt/local/include/dis-asm.h
/opt/local/include/symcat.h
/opt/local/lib/libbfd.a
/opt/local/lib/libbfd.la
/opt/local/lib/libiberty.a
/opt/local/lib/libopcodes.a
/opt/local/lib/libopcodes.la

>> However, I see there's a port of this binutils:
>>
>> binutils devel/binutils 2.17 FSF Binutils for native development.
>>
>> I installed this, but the build fails in the same way; full log below.
>>     
>
> Are you sure it's actually using the newly-installed binutils?  Try adding
> a -v to the compilation command and see what version "as" reports (this
> should all be on one line):
>
> cd aclib && gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -DLINUX -I.. -Wall 
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 
> -no-cpp-precomp -D_INTL_REDIRECT_MACROS -c tcmemcpy.c -fno-common -DPIC -o 
> .libs/tcmemcpy.o -v
>   
transcode-1.0.3/aclib$ gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT
-DLINUX -I.. -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -g -O2 -no-cpp-precomp -D_INTL_REDIRECT_MACROS -c
tcmemcpy.c -fno-common -DPIC -o .libs/tcmemcpy.o -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic
--program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/cc1 -quiet -v -I. -I. -I..
-I.. -D__DYNAMIC__ -DHAVE_CONFIG_H -D_REENTRANT -DLINUX
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-D_INTL_REDIRECT_MACROS -DPIC tcmemcpy.c
-feliminate-unused-debug-symbols -fPIC -quiet -dumpbase tcmemcpy.c
-march=nocona -auxbase-strip .libs/tcmemcpy.o -g -O2 -Wall -version
-fno-common -o /var/tmp//cc6rFnCU.s
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../../i686-apple-darwin8/include"
ignoring duplicate directory "."
ignoring duplicate directory ".."
#include "..." search starts here:
#include <...> search starts here:
.
..
/usr/lib/gcc/i686-apple-darwin8/4.0.1/include
/usr/include
/System/Library/Frameworks
/Library/Frameworks
End of search list.
GNU C version 4.0.1 (Apple Computer, Inc. build 5367) (i686-apple-darwin8)
compiled by GNU C version 4.0.1 (Apple Computer, Inc. build 5367).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 6194c5c0186b5ef61debe245948e5508
as -arch i386 -force_cpusubtype_ALL -o .libs/tcmemcpy.o /var/tmp//cc6rFnCU.s
/var/tmp//cc6rFnCU.s:43:missing or invalid immediate expression `0b111'
taken as 0
/var/tmp//cc6rFnCU.s:43:suffix or operands invalid for `and'
/var/tmp//cc6rFnCU.s:117:missing or invalid immediate expression `0b11'
taken as 0
/var/tmp//cc6rFnCU.s:117:suffix or operands invalid for `and'
/var/tmp//cc6rFnCU.s:176:missing or invalid immediate expression `0b111'
taken as 0
/var/tmp//cc6rFnCU.s:176:suffix or operands invalid for `and'
/var/tmp//cc6rFnCU.s:199:missing or invalid immediate expression `0b11'
taken as 0
/var/tmp//cc6rFnCU.s:199:suffix or operands invalid for `and'
/var/tmp//cc6rFnCU.s:206:Alignment too large: 15. assumed.
/var/tmp//cc6rFnCU.s:263:missing or invalid immediate expression `0b11'
taken as 0
/var/tmp//cc6rFnCU.s:263:suffix or operands invalid for `and'

> Either way, I guess I'll just bite the bullet and use more compatible
> syntax.  I've committed patches for both the "0b111" problem and the
> ".align" problem to CVS HEAD; try compiling that and see if you have any
> better luck.
>   
OK, I'll give it a try!

Dave

>   
>> Interesting -- because adding the --disable-mmx doesn't solve the
>> problem -- build fails in the same way. I'm happy to send the full log
>> of that too.
>>     
>
> I can't reproduce this with CVS HEAD; the configure system was considerably
> less refined in 1.0.x, so there may be some problems there.  Repeat after
> me: "I want to use CVS HEAD... I want to use CVS HEAD..." (:
>
>   --Andrew Church
>     [EMAIL PROTECTED]
>     http://achurch.org/
>
>   

Reply via email to