Comments (25)
is this issue related to build llvm in llvmtools?
For LLVM 12, I just fine while building. See #12 (comment)
Now moving to chroot steps. I'll report if an issue appeared.
Before you were contributing, i was working on LLVM12 branch...lol, but i was stuck on libcxx of llvmtools (by now, you, and others already fixed that). I thought i'd work on master (llvm11) to have it updated with latest software versions of June 18th 2021.
Hopefully, no GCC dependencies for llvmtools
!
from cmlfs.
I use GNU Make for LLVM, so mostly never install ninja (and less dependencies) until entering chroot (meson).
Good point. I like ninja for the clean text output... although, make can do that too.
Make is pretty common and less dependencies, i'd likely switch from ninja to make
Right, Ninja can show the total of source code and not showing the enter-close directory like Make.
from cmlfs.
I use GNU Make for LLVM, so mostly never install ninja (and less dependencies) until entering chroot (meson). I'm prefer Samurai.
May I ask. What packages that requires meson?
Samurai looks good. I do hate how ninja is either built with python or cmake. I may replace ninja with samurai in both CMLFS and MLFS.
For CMLFS, meson is not used. It is built so that a CMLFS system can build packages that use meson as their build system.... I forgot the original reason meson was added to LFS.
from cmlfs.
In LFS Appendix, meson is used when building Systemd.
from cmlfs.
Try this
https://github.com/zlib-ng/zlib-ng
I noticed hasn't been updated for a while. I suppose i'll switch to zlib-ng, just like how i dropped pkg-config for pkgconf
from cmlfs.
Added -DLLVM_TABLEGEN=/cgnutools/bin/llvm-tblgen
to cmake command. Not sure if this will cause llvm binaries to have GCC dependencies.
So far build has surpassed 220 built targets!
from cmlfs.
Added
-DLLVM_TABLEGEN=/cgnutools/bin/llvm-tblgen
to cmake command. Not sure if this will cause llvm binaries to have GCC dependencies.So far build has surpassed 220 built targets!
Could you add a file "../files/libunwind-llvm12/compact_unwind_encoding.h" for libunwind in BMLFS repo, because I want to try build llvm 12 and catch errors, too?
from cmlfs.
Added
-DLLVM_TABLEGEN=/cgnutools/bin/llvm-tblgen
to cmake command. Not sure if this will cause llvm binaries to have GCC dependencies.
So far build has surpassed 220 built targets!Could you add a file "../files/libunwind-llvm12/compact_unwind_encoding.h" for libunwind in BMLFS repo, because I want to try build llvm 12 and catch errors, too?
I actually have llvm12 working for bmlfs. Let me check which branch...
from cmlfs.
Ops. I forgot to extract the missing header from libunwind! Sorry. Misread
from cmlfs.
There is some code in file build-scripts/llvm12.build:
# Fix missing header for lld, https://bugs.llvm.org/show_bug.cgi?id=49228
mkdir -pv tools/lld/include/mach-o
cp -v ../files/libunwind-llvm12/compact_unwind_encoding.h tools/lld/include/mach-o
When I cloned BMLFS repo, this file is absent.
from cmlfs.
There is some code in file build-scripts/llvm12.build:
# Fix missing header for lld, https://bugs.llvm.org/show_bug.cgi?id=49228 mkdir -pv tools/lld/include/mach-o cp -v ../files/libunwind-llvm12/compact_unwind_encoding.h tools/lld/include/mach-o
When I cloned BMLFS repo, this file is absent.
Sorry. I’ll upload it
from cmlfs.
There is some code in file build-scripts/llvm12.build:
# Fix missing header for lld, https://bugs.llvm.org/show_bug.cgi?id=49228 mkdir -pv tools/lld/include/mach-o cp -v ../files/libunwind-llvm12/compact_unwind_encoding.h tools/lld/include/mach-o
When I cloned BMLFS repo, this file is absent.
Sorry. I’ll upload it
It is the same file like in $LLVMSRC/projects/libunwind/include/mach-o? Or this file is different?
it’s the same
from cmlfs.
I’ve uploaded the file to master branch of BMLFS
from cmlfs.
Now clang-tblgen
is not built....
[1752/3316] Building StmtDataCollectors.inc...
FAILED: tools/clang/include/clang/AST/StmtDataCollectors.inc
cd /mnt/cmlfs/sources/llvm/build && /mnt/cmlfs/sources/llvm/build/bin/clang-tblgen -gen-clang-data-collectors -I /mnt/cmlfs/sources/llvm/tools/clang/include/clang/AST -I /mnt/cmlfs/sources/llvm/tools/clang/include -I /mnt/cmlfs/sources/llvm/build/tools/clang/include -I /mnt/cmlfs/sources/llvm/build/include -I /mnt/cmlfs/sources/llvm/include /mnt/cmlfs/sources/llvm/tools/clang/include/clang/AST/StmtDataCollectors.td --write-if-changed -o tools/clang/include/clang/AST/StmtDataCollectors.inc -d tools/clang/include/clang/AST/StmtDataCollectors.inc.d
/bin/sh: /mnt/cmlfs/sources/llvm/build/bin/clang-tblgen: No such file or directory
[1753/3316] Building CXX object tools/ver...selistorder.dir/verify-uselistorder.cpp.o
ninja: build stopped: subcommand failed.
from cmlfs.
There is some code in file build-scripts/llvm12.build:
# Fix missing header for lld, https://bugs.llvm.org/show_bug.cgi?id=49228 mkdir -pv tools/lld/include/mach-o cp -v ../files/libunwind-llvm12/compact_unwind_encoding.h tools/lld/include/mach-o
When I cloned BMLFS repo, this file is absent.
no need
from cmlfs.
Now
clang-tblgen
is not built....[1752/3316] Building StmtDataCollectors.inc... FAILED: tools/clang/include/clang/AST/StmtDataCollectors.inc cd /mnt/cmlfs/sources/llvm/build && /mnt/cmlfs/sources/llvm/build/bin/clang-tblgen -gen-clang-data-collectors -I /mnt/cmlfs/sources/llvm/tools/clang/include/clang/AST -I /mnt/cmlfs/sources/llvm/tools/clang/include -I /mnt/cmlfs/sources/llvm/build/tools/clang/include -I /mnt/cmlfs/sources/llvm/build/include -I /mnt/cmlfs/sources/llvm/include /mnt/cmlfs/sources/llvm/tools/clang/include/clang/AST/StmtDataCollectors.td --write-if-changed -o tools/clang/include/clang/AST/StmtDataCollectors.inc -d tools/clang/include/clang/AST/StmtDataCollectors.inc.d /bin/sh: /mnt/cmlfs/sources/llvm/build/bin/clang-tblgen: No such file or directory [1753/3316] Building CXX object tools/ver...selistorder.dir/verify-uselistorder.cpp.o ninja: build stopped: subcommand failed.
clang-tblgen
is built but cannot execute...due to libraries not loading from llvmtools/lib
:
$ LD_LIBRARY_PATH=/llvmtools/lib ldd build/bin/clang-tblgen
/lib/ld-musl-x86_64.so.1 (0x7f75911d9000)
libexecinfo.so.1 => /llvmtools/lib/libexecinfo.so.1 (0x7f7591038000)
libc++.so.1 => /llvmtools/lib/libc++.so.1 (0x7f7590f6d000)
libc++abi.so.1 => /llvmtools/lib/libc++abi.so.1 (0x7f7590f10000)
libunwind.so.1 => /llvmtools/lib/libunwind.so.1 (0x7f7590efd000)
libc.so => /lib/ld-musl-x86_64.so.1 (0x7f75911d9000)
perhaps, I should have added LD_LIBRARY_PATH=/llvmtools/lib:/cgnutools/lib:/usr/lib:/lib
when compiling? Maybe llvm-tblgen
would have been built too?
from cmlfs.
is this issue related to build llvm in llvmtools?
from cmlfs.
is this issue related to build llvm in llvmtools?
For LLVM 12, I just fine while building. See #12 (comment)
Now moving to chroot steps. I'll report if an issue appeared.
from cmlfs.
is this issue related to build llvm in llvmtools?
yes for llvm11 (master). First build fails after 4mins for llvm-tblgen
not built or unable to execute. So i reconfigured with using llvm-tblgen
from cgnutools
. Build progresses for 58mins then fails on unable to execute built clang-tblgen
from cmlfs.
I use GNU Make for LLVM, so mostly never install ninja (and less dependencies) until entering chroot (meson). I prefer Samurai.
May I ask. What packages that requires meson?
from cmlfs.
I use GNU Make for LLVM, so mostly never install ninja (and less dependencies) until entering chroot (meson).
Good point. I like ninja for the clean text output... although, make can do that too.
Make is pretty common and less dependencies, i'd likely switch from ninja to make
from cmlfs.
For CMLFS, meson is not used. It is built so that a CMLFS system can build packages that use meson as their build system.... I forgot the original reason meson was added to LFS.
I think so!
from cmlfs.
Try this, and don't forget to enable --zlib-compat
.
https://github.com/zlib-ng/zlib-ng
from cmlfs.
And maybe pigz instead of gzip, but pigz requires zlib (zlib-ng works too). Cons: pigz doesn't have wrapper script such as for grep (zgrep). Can be installed for both, gzip just for wrapper script if needed 😄 lol
from cmlfs.
I'm closing this as I don't think anyone will want to build LLVM-11 for CMLFS.
from cmlfs.
Related Issues (20)
- References to `systemctl` during boot HOT 2
- utmps utmpx.h already includes utmps/utmpx.h HOT 4
- i686 (cross-compile on amd64): Python3 Build stalls under Chroot HOT 10
- Could we also have Heirloom NG as an alternative to GNU Coreutils in the future? HOT 63
- Python3 need to be rebuilt after final system clang is built HOT 8
- Clarity on CMLFS_TARGET at 1-cgnutools/4-musl HOT 2
- Compiler Warning: "-fuse-ld=' taking a path is deprecated"
- LLVM Compilation Failed HOT 1
- Unable to Compile Kernel HOT 25
- What are the packages that cannot be build without GCC? HOT 4
- Fail at Stage-0 (1-Mussel) HOT 6
- What is the state of CMLFS methods for cross-compiling? HOT 34
- Patch for musl's utmp.h is incomplete HOT 5
- OpenSSL needs certificates HOT 1
- LLVM-17.0.5: Stage 2 Clang has sysroot set as /llvmtools HOT 11
- Udev [from systemd] wont configure for final system; expects util-linux installed HOT 2
- Mention of `systemd-hwdb` when executing `udevadm` HOT 1
- Drop GNU's cpio for bsdcpio [provided by libarchive] HOT 14
- Autotools Broken -- `autoreconf` runs but exits with errors HOT 1
- Binutils: libctf fails to compile HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmlfs.