This is the mail archive of the gcc-help@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: building cross compiler in OS X?


Geoff Oltmans wrote:
Well that must have been part of the problem. I can't recall giving any options to configure in binutils. I went back and did that with the following:

/configure --target=m68k-elf --program-prefix=cf-

however now I get the following build error with binutils

checking whether the C compiler (gcc -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

Should this 'gcc' be your normal 'CC' ? If so then it seems like you couldn't compile and link anything with your system compiler...

But your GCC build went to the 'libgcc' phase which means that your
system GCC could create executables like 'xgcc', 'cc1',... for the
crosscompiler...

There was a comment before this that said the following:

checking whether the C compiler (gcc -g -O2 ) is a cross-compiler... no

Does the gcc I build with need to be a cross compiler in order to build binutils for another target? Chicken and egg problem?

Of course not, the results should be 'm68k-elf-as', 'm68k-elf-ld' etc., in '$prefix/bin', here '/usr/local/bin', and the bare name copies of them in '$prefix/$target/bin', here '/usr/local/m68k-elf/bin', "binary utilities" which can handle 'm68k-elf' binaries on your OS X host...


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