Just Sharing: LFS + BLFS compiled mostly with clang
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Glad you got it to work. I did apply some of those patches, but maybe not in that sequence. If it is also accepting laTeX input, you must have gotten it to integrate with Texlive.
I will try this procedure.
The only potential problem is I am using gcc-7.2, not 6.x.
Equations can be inserted using MathML or LaTeX-style syntax.
Inserting a nice-looking equation is as simple as typing E=mc^2.
Figure 3 shows an example of a complex equation rendered by AbiWord.
The LaTeX-style input used to produce this figure was:
f(x) = \frac{1}{\sqrt{2\pi\sigma^2}}e^{\frac{-{(x-\mu)}^2}{2\sigma^2}}
So when you click Menu -> Insert -> Equation -> From LaTex, it will open a Text Area.
Copy and paste this text (LaTeX-style)
The above is a good tutorial by anak_bawang for setting up equations in Abiword.
When I compiled Abiword earlier, I used different patches than the ones above for gdome2, gmetadom, and gtkmathview. That is probably why the screen rendering was malfunctioning. Now it is working much better.
I added a few more configure options, including latex.
Code:
./configure --prefix=/usr --enable-plugins="collab openxml goffice grammar mathview command loadbindings presentation aiksaurus babelfish freetranslation google kword latex opendocument mswrite paint pdf wikipedia urldict xslfo" --enable-clipart --enable-templates
In addition, to get math font rendering to work better using latex syntax, it is a good idea to install Mozilla's latin modern math and stix fonts from the Abiword home page. Also, install latex-xft-fonts package from the arch linux wiki page. You can place them in separate subdirectories under /usr/share/fonts. Then update the font cache.
Thanks, that's a brilliant user manual. Only one thing you haven't told us: why use clang in the first place? What are the advantages over gcc? Is it faster? Or is this just to prove that it can be done?
As the thread title "Just Sharing: LFS + BLFS compiled mostly with clang",
so I tried to compile any source using clang.
Only when the source can not be compiled by clang, then I changed to gcc.
I've also been building LFS with clang lately, but have also taken a step forward to use llvm's standard libraries instead of gcc supplied ones (compiler-rt instead of libgcc, libc++ instead of libstdc++ and openmp instead of libgomp), and have found out that pixman needs a following sed after configure to build with clang v5:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.