extra/alt: llvm-12 fails to compile with netbsd-curses at stage 8 of cgnutools #47
Replies: 23 comments 8 replies
-
Ugh. I always have issues with ncurses. Even back then when developing MLFS. For my first experimental build of CMLFS, I mysteriously built cgnutools without ncurses. I could never find out why as every other attempt, I had to build ncurses. luckily, one can use patchelf to fix/change dependencies in built libraries. A quick and dirty way to force a toolchain to work, but I prefer not. I admit, I did use different flags for ncurses in Optimux. I can’t remember off the top of my head if it’s was only for the final system in chroot or in one of the tools chains |
Beta Was this translation helpful? Give feedback.
-
Yeah, i understand your pain. I've been experimenting with *MLFS since January and always ncurses was the source of some error in some part of the process.
I think it's better to just clean the toolchain and recompile it with the correct settings.
Don't worry about that for now. :^) |
Beta Was this translation helpful? Give feedback.
-
Hmm, mine is fine using netbsd-curses .. 🤔 |
Beta Was this translation helpful? Give feedback.
-
Could you share with us the What are your |
Beta Was this translation helpful? Give feedback.
-
BTW, removed netbsd-curses and built GNU ncurses on its place; trying to compile clang right now. |
Beta Was this translation helpful? Give feedback.
-
Sure. I only built dynamic libraries and the program binaries. # Build.
time { make CC="${CMLFS_TARGET}-gcc" all-dynamic; }
# Install.
time { make PREFIX=/cgnutools install-dynamic; } |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Nice, i was doing |
Beta Was this translation helpful? Give feedback.
-
Well, may the problem is just mine. PS: May it was because ncurses was being compiled with the host GCC and not the toolchain one. PS²: Besides that, i also figured out that i may have messed up with musl libc when fixing that link. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure, but i think i figured out what actually happened. |
Beta Was this translation helpful? Give feedback.
-
I’d say this the curse of ncurses! |
Beta Was this translation helpful? Give feedback.
-
Well, in fact, i think i've discovered the real problem here. I don't know if it's my host's (Arch Linux with LTS kernel) problem or if the docs are wrong in don't exporting If you guys have any objection to this, just say. I'm closing this issue. |
Beta Was this translation helpful? Give feedback.
-
So strange, the GCC in the Lines 53 to 70 in 1b8e2d7 Also .. in my builds, I don't use these stuffs. The last, I only use Line 25 in 1b8e2d7 Lines 47 to 48 in 1b8e2d7 |
Beta Was this translation helpful? Give feedback.
-
Well, and it was, at least the dummy.c that i compiled at this step was linked to cgnutools' libc; but for some reason, after file, it was trying to link to host's libc. |
Beta Was this translation helpful? Give feedback.
-
Btw, i'll reopen as this can be a really interesting discussion. |
Beta Was this translation helpful? Give feedback.
-
Should migrate to discussion tab. 😄 |
Beta Was this translation helpful? Give feedback.
-
How could i do this? 🧐 |
Beta Was this translation helpful? Give feedback.
-
Only maintainer can do that, otherwise you can start a new discussion. |
Beta Was this translation helpful? Give feedback.
-
Well, may @dslm4515 could do this for us. 😃 |
Beta Was this translation helpful? Give feedback.
-
Well, i don't have a clue of what happened after compiling file that resulted in those weird errors and if it is in fact related to Arch Linux. For now i'll just try to compile the "vanilla" Musl-LFS. 🤷🏽♂️ EDIT: Screw that, i'm trying CMLFS again. |
Beta Was this translation helpful? Give feedback.
-
Now i think i did figured out. "Why it worked in my X distro?" Well, i think it's because Arch filesystem structure sucks in a certain way and cmake tries to search for |
Beta Was this translation helpful? Give feedback.
-
Cool, apparently i fixed this exporting CC, CXX and everything (except for LD, because it was giving me a "symbol not found" error ) in .bashrc explicitly as $CMLFS_TARGET-g{cc,++}. |
Beta Was this translation helpful? Give feedback.
-
I'm building Optimux for a Chromebook as GalliumOS is very very slow when running off a class 10 micro-SD card. Booted an old CMLFS build on the chromebook and it's very snappy and boots way faster than GalliumOS (may change once I build Wayland+Wayfire). So i am going to try to use netbsd-curses instead of GNU's ncurses. Is this the correct source URL? |
Beta Was this translation helpful? Give feedback.
-
I was compiling llvm and then i got this error:
Full text log: https://termbin.com/eibv
As you can see, it's trying to "call"/link to
libc.so.6
from the host system, not the toolchain one.So, just to be sure, i ran
ldd
both from the toolchain and from the host just to see where exactly libterminfo.so was trying to link:And yes; apparently, when i built netbsd-curses, it was linked to the wrong libc.
I'm not sure if i will fix this right now -- it's late and i have to study and work tomorrow -- , so take this as a reminder and as an advice.
Beta Was this translation helpful? Give feedback.
All reactions