Hi all, I have to install rosetta 2.1.1 since some code has been modified in this version by ourselves for special use two years ago. Now I have a problem about the installation.
I have successfully built rosetta 2.1.1 in Redhat by
$ make gcc64
the gcc version is :
gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14)
Copyright (C) 2006 Free Software Foundation, Inc.
However when I tried to build it in mac os x 10.6, I came across some errors.
In mac os x 10.6.8,
gcc version:
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
When I tried
$ sudo make mac
It can start to build, but it will terminate with the following errors:
ranlib 'lib/macos-ppc-32/libz.a'
g++ -Wl,-stack_size,4000000,-stack_addr,0xc0000000
......very long file here and the last several lines are :
ld: warning: in lib/macos-ppc-32/libz.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [rosetta.mac] Error 1
I also tried $ sudo make gcc
the errors are:
ranlib 'lib/linux-x86-32/libz.a'
ranlib: warning for library: lib/linux-x86-32/libz.a the table of contents is empty (no object file members in the library define global symbols)
g++ -static .gcc.version_rosetta.o
......very long file here and the last several lines are :
ld: library not found for -lcrt0.o
collect2: ld returned 1 exit status
make: *** [rosetta.gcc] Error 1
Could you give me some advice?
Thanks very much!
Well, the error says libz all over it. Apparently there is a linux libz available (perhaps it ships with the code) "lib/linux-x86-32/libz.a", and a mac libz "lib/macos-ppc-32/libz.a", which is also wrong. I don't know what one is right, but it seems likely what you need is a new version of libz.
Can you build any other Rosettas (2 or 3 series) on this particular computer? If so, figure out what libz they use, and get this computer to use that.
Thank you very much. I have successfully built rosetta 3.2 in my mac. I will try to figure out what libz they use.