Opened 13 years ago

Closed 13 years ago

#32063 closed defect (fixed)

Build llvm on Tiger

Reported by: rudloff@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: tiger Cc: erickt@…, mfeiri, jeremyhu (Jeremy Huddleston Sequoia)
Port: llvm

Description

The llvm port says it requires 10.5 and later. But if I download the tarball and manually launch configure && make, it builds just fine. So there must be something in the portfile that prevents building on Tiger.

If I remove the warning in the portfile, I get an unknown flag: -rpath, so I have patched configure to remove the -rpath flag and now I get this :

llvm[2]: Linking Release unit test ADT (without symbols)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: can't map file: /opt/local/var/macports/build/_Users_pierre_ports_lang_llvm/llvm/work/llvm-2.9/Release/lib ((os/kern) invalid argument)
collect2: ld returned 1 exit status
llvm[3]: Linking Release unit test JIT (without symbols)
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: can't map file: /opt/local/var/macports/build/_Users_pierre_ports_lang_llvm/llvm/work/llvm-2.9/Release/lib ((os/kern) invalid argument)

Attachments (1)

Portfile.diff (360 bytes) - added by rudloff@… 13 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 13 years ago by rudloff@…

I confirm that, using a very basic portfile (with no added flags or args or patchs), the port builds correctly on Tiger.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mfeiri@… jeremyhu@… added

The old llvm port is being deprecated soon in favor of the new llvm-2.9, llvm-3.0, and llvm-3.1 ports; you should do your testing with those ports.

comment:3 Changed 13 years ago by rudloff@…

I can confirm the same behavior for llvm-2.9 but I don't have time these days to find which argument is causing the build to fail.

comment:4 Changed 13 years ago by rudloff@…

Here is a quick workaround before I can investigate this any further.

Changed 13 years ago by rudloff@…

Attachment: Portfile.diff added

comment:5 Changed 13 years ago by rudloff@…

Here is a better patch.

comment:6 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed

r87880, thanks.

Note: See TracTickets for help on using tickets.