Opened 15 years ago

Closed 15 years ago

#21490 closed defect (fixed)

pure 0.35 depends on llvm 2.6, but only llvm 2.5 is available

Reported by: jadenb1729@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Low Milestone:
Component: ports Version: 1.8.0
Keywords: Cc:
Port: pure

Description

I don't know whether this counts as a bug or not, but it seems impossible to install the current version of pure through MacPorts on a PowerPC:

$ port info llvm pure
    llvm @2.5 (lang)
    ...
    --
    pure @0.35 (lang)
    ...
$ port installed pure
    The following ports are currently active:
        pure @0.34_0+macosx (active)
$ port upgrade pure
    ...
    Error: pure 0.35 requires llvm 2.6 or later on PowerPC but you have llvm 2.5.

I'm using MacPorts 1.8.0 on a PowerPC (obviously) running 10.4.11.

Change History (6)

comment:1 Changed 15 years ago by blb@…

Owner: changed from macports-tickets@… to ryandesign@…

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

Status: newassigned

Yes, that is correct. pure has never worked correctly on PowerPC, and now that the author of pure has had the chance to investigate this, it was found that llvm < 2.6 generates incorrect code on PowerPC. I have already requested llvm-devel be updated to the latest prerelease version of llvm 2.6 but the maintainer has not yet responded.

comment:3 Changed 15 years ago by shawjef3@…

I made a Portfile for LLVM that builds LLVM 2.6. Pure compiled without complaining on my powerbook g4. I installed with +pic+ocaml.

#22299

If you put the Portfile in /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/llvm it should work fine. If not, post the problem to my ticket and I'll try to fix it.

comment:4 Changed 15 years ago by shawjef3@…

Correction: I installed llvm with+pic+ocaml+host_only.

I added the host_only variant so that llvm wouldn't build support for targets like Alpha, MIPS, etc. that most people won't use. However it won't support compiling universal libraries. Later if people want I can look into adding variants like +x86, +PowerPC, +MIPS, etc.

comment:5 in reply to:  3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to shawjef3@…:

I made a Portfile for LLVM that builds LLVM 2.6.

Thanks.

Replying to shawjef3@…:

However it won't support compiling universal libraries.

#15496 is already filed for that.

Later if people want I can look into adding variants like +x86, +PowerPC, +MIPS, etc.

We don't use variants for architectures (though variants can be used for platforms, like Intel vs. PowerPC). If the port doesn't already build correctly for 64-bit when build_arch is set to a 64-bit architecture in macports.conf, the port should examine the build_arch variable and do something appropriate with it to build 64-bit when 64-bit is requested.

comment:6 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

llvm is updated to 2.6 and pure should work fine with it.

Note: See TracTickets for help on using tickets.