Forum Replies Created
-
AuthorPosts
-
Hi Gordon,
That turned out to be a bug in LLVM that was subsequently fixed: http://llvm.org/bugs/show_bug.cgi?id=18643
The fix has been incorporated in ELLCC.
The good news is that you’re almost there. You are building the runtime libraries.
You can get to a better place by
cd ellcc # Get the latest sources/ svn update # Build a new compiler. cd llvm-build make install # Build the libraries. cd ../libecc make
-Rich
Hi Trent,
Could you post the errors you’re getting? I suspect your build is failing during the GNU part of the build because of some missing packages.
-Rich
Hi Gordon,
You may be able to fix the issue by going into /Users/gordon/Applications/ellcc/gnu/src/qemu/pixman/
and running “autoreconf”. The GNU configure stuff is kind of a black box to me.
-RichHi,
Sorry about that. I restricted comments because I was getting a lot of spam. I loosened it up again. Maybe you’ll have better luck now.
I guess I know more about tools, etc., than web stuff.
-Rich
Hi,
Thanks for asking about a freestanding ELLCC. It is high on my wish list also. I hope to start working on it soon (after I fix a few outstanding bugs and ELLCC successfully compiles the Linux kernel).
-Rich
I looked into it a bit more. This happened because the latest version of OS X (Mavericks) uses clang as its compiler and /usr/include/unistd.h has a deprecated declaration of sbrk().
The solution was to add a -Wno-error=deprecated-declarations option to the CFLAGS for binutils. I also had to make a few other changes to complete the Max OS build. You can find the latest stuff in the ELLCC subversion tree.
This error is occurring because sbrk() is deprecated on OSX, -Werror is enabled for the binutils build, and the compiler (in this case “gcc” is an alias for clang) rightly complains about the use of sbrk(). I’ll be looking into eliminating this error this weekend when I won’t have to be at my day job. 😉
Hi James. For now I modified clang to use double for long double on the PowerPC. eventually it would be nice if musl supported double-doubles.
-
AuthorPosts