gcc 4 frontend binary for mac os x x86

Hi,

I wanted to install llvm 1.8 and the frontend at my MacBook Pro but I think the gcc4 frontend doesn't work (gcc3 and llvm 1.8 works fine on my old ppc-based mac). There are no fixheaders-script and no include directories ...
Are there working gcc 4 binaries? Did I miss some informations on the llvm-webpage?
Or do I have to build my own gcc frontend?

Thank you
Nico

I wanted to install llvm 1.8 and the frontend at my MacBook Pro but I
think the gcc4 frontend doesn't work (gcc3 and llvm 1.8 works fine on
my old ppc-based mac). There are no fixheaders-script and no include
directories ...
Are there working gcc 4 binaries? Did I miss some informations on the
llvm-webpage?
Or do I have to build my own gcc frontend?

I assume you have an Mac with an Intel processor.

Download this:
http://llvm.org/releases/1.8/llvm-gcc4-1.8-x86-darwin.tar.gz

Let me know if that doesn't work.

-Tanya

Hi,

I assume you have an Mac with an Intel processor.

Yes. Sorry, I forgot to mentioned it in the mailbody.

Download this:
http://llvm.org/releases/1.8/llvm-gcc4-1.8-x86-darwin.tar.gz

I think that is the same tarball I used before.

Let me know if that doesn't work.

Again: there is no fixheader-script like you describe here Getting Started with the LLVM System — LLVM 18.0.0git documentation. (in the gcc3 frontends there are fixheader-scripts, but there is no gcc3-frontend for darwin intel/x86)
And I think it is necessary. Some gcc output:

I assume you have an Mac with an Intel processor.

Yes. Sorry, I forgot to mentioned it in the mailbody.

Download this:
http://llvm.org/releases/1.8/llvm-gcc4-1.8-x86-darwin.tar.gz

I think that is the same tarball I used before.

Ok. I'm confused. Do you want llvm-gcc3 or llvm-gcc4? The tarball above is a binary for llvm-gcc4 for Mac x86. You don't need to compile anything or fix any headers.

Let me know if that doesn't work.

Again: there is no fixheader-script like you describe here http://
llvm.org/docs/GettingStarted.html#quickstart. (in the gcc3 frontends
there are fixheader-scripts, but there is no gcc3-frontend for darwin
intel/x86)

There is no fixheader script for llvm-gcc4. That is for llvm-gcc3.

Lastly, I think maybe I missed the real question here. If you want to emit llvm bytecode be sure to pass -emit-llvm to llvm-gcc.

-Tanya

I assume you have an Mac with an Intel processor.

Yes. Sorry, I forgot to mentioned it in the mailbody.

Download this:
http://llvm.org/releases/1.8/llvm-gcc4-1.8-x86-darwin.tar.gz

I think that is the same tarball I used before.

Ok. I'm confused.

Perhaps its my flavor of english :-/

Do you want llvm-gcc3 or llvm-gcc4?

I want llvm-gcc4! Before I sent my first mail to this list, I used the gcc3-binary on a ppc mac (that works) and the gcc4-binary on my intel-mac - that creates x86-binaries but no llvm-bytecode.

The tarball above is
a binary for llvm-gcc4 for Mac x86.

This is one of the rare facts I understand :wink:

You don't need to compile anything or
fix any headers.

Ok. But then it doesn't work. Or I forgot to set pathes or make to less links ... I don't know.

Let me know if that doesn't work.

Again: there is no fixheader-script like you describe here http://
llvm.org/docs/GettingStarted.html#quickstart. (in the gcc3 frontends
there are fixheader-scripts, but there is no gcc3-frontend for darwin
intel/x86)

There is no fixheader script for llvm-gcc4. That is for llvm-gcc3.

Ok.

Lastly, I think maybe I missed the real question here.

Perhaps this is a real question:
The messages I posted last time

The linker does not know how to link llvm-byte code.
If you add -c on the command line

$ llvm-gcc4-1.8-x86-darwin/bin/gcc -v -emit-llvm main.c

then you will get llvm-byte code in main.o file. You can
select the name of byte code file using standard gcc -o switch.

Shame on me - sorry for wasting the list :-[
I think I was confused by the little differences between gcc3 and gcc4 - sorry again.

Thanks
Nico