Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jan 2014 22:31:01 +0100
From:      Roman Divacky <rdivacky@freebsd.org>
To:        sparc64@freebsd.org
Subject:   Call for help: clang/llvm for sparc64
Message-ID:  <20140116213101.GA33444@freebsd.org>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi!

LLVM is getting a sparc64 backend. It can even selfhost on linux. But it cant
on FreeBSD. I am wondering what causes that difference.

A small test case where the difference can be seen is compiling tcsh from
base. The gethost utility used during the build just coredumps. I suspect
fixing that might get us on par with linux.

So I am looking for someone who is willing to compile llvm/clang and
analyze whats wrong with gethost in tcsh compilation.

This is how to do it (you need trunk llvm/clang):

svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
cd ../
CFLAGS=-fno-strict-aliasing CXXFLAGS=-fno-strict-aliasing ./configure --enable-optimized --enable-targets=sparc64
make
make install

will give you a clang binary that you can use for tcsh compilation:

cd /usr/src/bin/csh
CC=clang make

I am more than willing to help with llvm/clang side of this but I dont know
anything about sparc64 so I need help. But please contact me if you want to
help!

Thanks, Roman

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iEYEARECAAYFAlLYT5UACgkQLVEj6D3CBExz8ACeJJPnJ7OCBXOgO9asM3kiAqiJ
P5QAnjVehUozz6/kHzo1OQWBGB8R+vOs
=ZXrr
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140116213101.GA33444>