Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

llvm on ia64 ?

10 views
Skip to first unread message

Anton Shterenlikht

unread,
Dec 16, 2009, 9:49:54 AM12/16/09
to freebsd...@freebsd.org
llvm port fails to build on ia64 current:

gmake[3]: Leaving directory `/usr/ports/devel/llvm/work/llvm-2.6/tools/llvmc/driver'
gmake[2]: Leaving directory `/usr/ports/devel/llvm/work/llvm-2.6/tools/llvmc'
/usr/ports/devel/llvm/work/llvm-2.6/Release/lib/libLLVMJIT.a(JIT.o)(.text+0x1231): In function `llvm::JIT::JIT(llvm::ModuleProvider*, llvm::TargetMachine&, llvm::TargetJITInfo&, llvm::JITMemoryManager*, llvm::CodeGenOpt::Level, bool)':
: undefined reference to `__register_frame'
/usr/ports/devel/llvm/work/llvm-2.6/Release/lib/libLLVMJIT.a(JIT.o)(.text+0x2011): In function `llvm::JIT::JIT(llvm::ModuleProvider*, llvm::TargetMachine&, llvm::TargetJITInfo&, llvm::JITMemoryManager*, llvm::CodeGenOpt::Level, bool)':
: undefined reference to `__register_frame'
gmake[2]: *** [/usr/ports/devel/llvm/work/llvm-2.6/Release/bin/lli] Error 1
gmake[2]: Leaving directory `/usr/ports/devel/llvm/work/llvm-2.6/tools/lli'
gmake[1]: *** [lli/.makeall] Error 2
gmake[1]: Leaving directory `/usr/ports/devel/llvm/work/llvm-2.6/tools'
gmake: *** [all] Error 1
*** Error code 1

Stop in /usr/ports/devel/llvm.
*** Error code 1


Anything I can do to help debug this?

many thanks

--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

Roman Divacky

unread,
Dec 16, 2009, 9:53:25 AM12/16/09
to Anton Shterenlikht, freebsd...@freebsd.org
I wont comment the failure but llvm does NOT support generating IA64
code as the support for this was removed some 6 months or so ago....

what exactly do you want to use the llvm@ia64 for?

Anton Shterenlikht

unread,
Dec 16, 2009, 10:19:50 AM12/16/09
to Roman Divacky, freebsd...@freebsd.org, Anton Shterenlikht
On Wed, Dec 16, 2009 at 03:50:33PM +0100, Roman Divacky wrote:
> I wont comment the failure but llvm does NOT support generating IA64
> code as the support for this was removed some 6 months or so ago....
>
> what exactly do you want to use the llvm@ia64 for?

replacement for gcc..

gcc44 and 45 fail to build on ia64. From what I can gather (I'm a
user, not a developer) after following this for some months on gcc bugzilla,
gcc folks do not really have a solution, or might not even understand
the problem. Lots of ports of interest to me are dependent on gcc44,
e.g. gfortran, blas, lapack, calculix, code_aster, etc. So I'm looking
for a possible replacement for gcc44 on ia64

many thanks

Mark Linimon

unread,
Dec 16, 2009, 11:27:28 AM12/16/09
to Anton Shterenlikht, Roman Divacky, freebsd...@freebsd.org
On Wed, Dec 16, 2009 at 03:18:47PM +0000, Anton Shterenlikht wrote:
> gcc44 and 45 fail to build on ia64. From what I can gather (I'm a
> user, not a developer) after following this for some months on gcc
> bugzilla, gcc folks do not really have a solution, or might not even
> understand the problem.

Well, this is a pretty serious problem, then, because IIUC the llvm
back-end for ia64 was recently dropped because it had not been maintained
for 6 months and no longer worked at all, without any committer interest.
Perhaps someone more up-to-date with llvm will correct me.

mcl

Steve Kargl

unread,
Dec 16, 2009, 11:52:42 AM12/16/09
to Anton Shterenlikht, giff...@tutopia.com, freebsd...@freebsd.org
On Wed, Dec 16, 2009 at 04:27:31PM +0000, Anton Shterenlikht wrote:
> On Wed, Dec 16, 2009 at 04:26:16PM +0000, giff...@tutopia.com wrote:
> > FWIW;
> >
> > For most of the scientific/CAD stuff you need a Fortran
> > compiler and llvm doesn't provide it.
>
> I understand gcc frontend for llvm gives you fortran.
>

llvm can be used within gcc's new plugin framework.
So, you would need both llvm and gcc to build on
IA64. Have you tried building gcc-4.3.5 on IA64?
gfortran in 4.3.5 is in fairly decent shape.

--
Steve

giff...@tutopia.com

unread,
Dec 16, 2009, 12:19:14 PM12/16/09
to Anton Shterenlikht, freebsd...@freebsd.org
FWIW;

For most of the scientific/CAD stuff you need a Fortran
compiler and llvm doesn't provide it.

I think your best solution is to try gfortran42 or
gfortran43 if it's supported in your platform.

best regards,

Pedro.

Pedro F. Giffuni

unread,
Dec 16, 2009, 12:22:19 PM12/16/09
to Anton Shterenlikht, freebsd...@freebsd.org, Anton Shterenlikht

----- Original Message ----
..


>
> On Wed, Dec 16, 2009 at 04:26:16PM +0000, giff...@tutopia.com wrote:

> > FWIW;
> >
> > For most of the scientific/CAD stuff you need a Fortran
> > compiler and llvm doesn't provide it.
>

> I understand gcc frontend for llvm gives you fortran.
>

It gives you a limited implementation of�gfortran42. Right now It's better and
simpler�to build gcc42 (or gcc43) with fortran support.

Julian Elischer

unread,
Dec 16, 2009, 1:40:28 PM12/16/09
to Mark Linimon, Roman Divacky, freebsd...@freebsd.org, Anton Shterenlikht
Mark Linimon wrote:
> On Wed, Dec 16, 2009 at 03:18:47PM +0000, Anton Shterenlikht wrote:
>> gcc44 and 45 fail to build on ia64. From what I can gather (I'm a
>> user, not a developer) after following this for some months on gcc
>> bugzilla, gcc folks do not really have a solution, or might not even
>> understand the problem.
>
> Well, this is a pretty serious problem, then, because IIUC the llvm
> back-end for ia64 was recently dropped because it had not been maintained
> for 6 months and no longer worked at all, without any committer interest.
> Perhaps someone more up-to-date with llvm will correct me.

maybe the intel cc compiler?

Anton Shterenlikht

unread,
Dec 17, 2009, 2:52:59 AM12/17/09
to Steve Kargl, giff...@tutopia.com, Anton Shterenlikht, freebsd...@freebsd.org
On Wed, Dec 16, 2009 at 08:51:08AM -0800, Steve Kargl wrote:
> On Wed, Dec 16, 2009 at 04:27:31PM +0000, Anton Shterenlikht wrote:
> > On Wed, Dec 16, 2009 at 04:26:16PM +0000, giff...@tutopia.com wrote:
> > > FWIW;
> > >
> > > For most of the scientific/CAD stuff you need a Fortran
> > > compiler and llvm doesn't provide it.
> >
> > I understand gcc frontend for llvm gives you fortran.
> >
>
> llvm can be used within gcc's new plugin framework.
> So, you would need both llvm and gcc to build on
> IA64. Have you tried building gcc-4.3.5 on IA64?
> gfortran in 4.3.5 is in fairly decent shape.

no, gcc43 fails to build as well

--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423

Ulrich Spörlein

unread,
Dec 18, 2009, 11:35:43 AM12/18/09
to Anton Shterenlikht, Roman Divacky, freebsd...@freebsd.org
On Wed, 16.12.2009 at 15:18:47 +0000, Anton Shterenlikht wrote:
> On Wed, Dec 16, 2009 at 03:50:33PM +0100, Roman Divacky wrote:
> > I wont comment the failure but llvm does NOT support generating IA64
> > code as the support for this was removed some 6 months or so ago....
> >
> > what exactly do you want to use the llvm@ia64 for?
>
> replacement for gcc..
>
> gcc44 and 45 fail to build on ia64. From what I can gather (I'm a
> user, not a developer) after following this for some months on gcc bugzilla,
> gcc folks do not really have a solution, or might not even understand
> the problem. Lots of ports of interest to me are dependent on gcc44,
> e.g. gfortran, blas, lapack, calculix, code_aster, etc. So I'm looking
> for a possible replacement for gcc44 on ia64

Have you tried with a recent gcc45 port? It now depends on newer
binutils, which is required to build it with -march=native on amd64,
perhaps you're hitting the same base-binutils-is-too-freaking-old issue?

hth,
Uli

Anton Shterenlikht

unread,
Dec 18, 2009, 12:28:57 PM12/18/09
to Anton Shterenlikht, Roman Divacky, freebsd...@freebsd.org
On Fri, Dec 18, 2009 at 05:34:00PM +0100, Ulrich Sp�rlein wrote:
> On Wed, 16.12.2009 at 15:18:47 +0000, Anton Shterenlikht wrote:
> > On Wed, Dec 16, 2009 at 03:50:33PM +0100, Roman Divacky wrote:
> > > I wont comment the failure but llvm does NOT support generating IA64
> > > code as the support for this was removed some 6 months or so ago....
> > >
> > > what exactly do you want to use the llvm@ia64 for?
> >
> > replacement for gcc..
> >
> > gcc44 and 45 fail to build on ia64. From what I can gather (I'm a
> > user, not a developer) after following this for some months on gcc bugzilla,
> > gcc folks do not really have a solution, or might not even understand
> > the problem. Lots of ports of interest to me are dependent on gcc44,
> > e.g. gfortran, blas, lapack, calculix, code_aster, etc. So I'm looking
> > for a possible replacement for gcc44 on ia64
>
> Have you tried with a recent gcc45 port? It now depends on newer
> binutils, which is required to build it with -march=native on amd64,
> perhaps you're hitting the same base-binutils-is-too-freaking-old issue?

checked again now. gcc45 fails as before:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40959

thank you

--
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423

0 new messages