This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 3.4 on Mac OS X: compilable, but with problems


Hi,

Bojan Antonovic wrote:
gcc-3.4 -v
Reading specs from /usr/local/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/specs
Configured with: ./configure --enable-languages=java : (reconfigured) ./configure --program-suffix=-3.4 --enable-languages=c,c++,java
Thread model: posix
gcc version 3.4.0

See below.
Building in the source tree is dangerous, it may screw up your source and then you have to unpack the source again ......


This seems to be commonly reported.

Also compiling HelloWorld.java produced the same problem:

gcj-3.4 --main=HelloWorld -o HelloWorld HelloWorld.java
/usr/bin/ld: warning multiple definitions of symbol _sqrt
/usr/local/lib/gcc/powerpc-apple-darwin7.3.0/3.4.0/../../../libgcj.dylib(libgcj.5.0.0.dylib-master.o) definition of _sqrt
/usr/lib/libm.dylib(sqrt970.o) definition of _sqrt

Yes, I did not bother about it since there are much more important things which have to be cared about first. And as long it is just warning ... (I know....)


- e.g, Signal handling etc.


Bytheway: Call it with


./HelloWord

worked! Great job, people !!!

4. Building GCC 3.4 by

  % mkdir objdir
  % cd objdir
  % srcdir/configure [options] [target]

did _never_ work

Always works here :)


[wallstreet:xufs/gcc-cvs-clean/objdir] andreast% ./gcc/xgcc -v
Using built-in specs.
Configured with: /Volumes/xufs/gcc-cvs-clean/gcc/configure --prefix=/Volumes/xufs/gcc-cvs-clean/testbin --enable-languages=c,c++,java --disable-checking --enable-debug
Thread model: posix
gcc version 3.5.0 20040220 (experimental)
(it doesn't matter if 3.4 or 3.5 both work the same way).


You may have to take the absolute path for the confiugre.


Andreas




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]