Comments (19)
Hmm, mine is fine using netbsd-curses .. π€
Iβd say this the curse of ncurses!
from cmlfs.
Could you share with us the
config.mak
or you've used that which i wrote at extra/alt/cgnutools_7a-netbsd-curses?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; }
Nice, i was doing all
.
May i edit that later.
from cmlfs.
I'm not sure, but i think i figured out what actually happened.
I didn't unset'd LDFLAGS
after 5-GCC-final, so may this is the cause to ncurses being mislinked.
from cmlfs.
Well, in fact, i think i've discovered the real problem here.
When i was compiling LLVM (and ncurses), i was trying to ld
it to the host and not to the /cgnutools
toolchain.
That was solved (at least i think, i'm compiling LLVM now with @owl4ce's last patch to remove ncurses dependency) using LDFLAGS="-Wl,-rpath,/cgnutools/lib"
, which was referenced before at the 25th line in 5-GCC-final.
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 LDFLAGS
.
If you guys have any objection to this, just say. I'm closing this issue.
from cmlfs.
How could i do this? monocle_face
Only maintainer can do that, otherwise you can start a new discussion.
Well, may @dslm4515 could do this for us. π
from cmlfs.
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
from cmlfs.
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.
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.
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 think it's better to just clean the toolchain and recompile it with the correct settings.
For now, i will just be building an experimental toolchain for my hobby-distro, so i'm really not worried about using GNU ncurses instead of netbsd-curses.
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
Don't worry about that for now. :^)
May some people can solve this problem with netbsd-curses, so let's keep this issue open.
from cmlfs.
Hmm, mine is fine using netbsd-curses .. π€
from cmlfs.
Hmm, mine is fine using netbsd-curses .. thinking
Could you share with us the config.mak
or you've used that which i wrote at extra/alt/cgnutools_7a-netbsd-curses?
What are your CFLAGS
too? I don't remember exactly what i was using but it wasn't not that could harm the process in fact, i think.
from cmlfs.
BTW, removed netbsd-curses and built GNU ncurses on its place; trying to compile clang right now.
from cmlfs.
Could you share with us the
config.mak
or you've used that which i wrote at extra/alt/cgnutools_7a-netbsd-curses?
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; }
from cmlfs.
BTW, removed netbsd-curses and built GNU ncurses on its place; trying to compile clang right now.
And got the same error when linking to libterminfo.so
.
May i will need to rebuild all my toolchain? π€·π½ββοΈ π
from cmlfs.
Well, may the problem is just mine.
I will try to rebuild the entire toolchain, if i got any progress i will update this issue.
PS: May it was because ncurses was being compiled with the host GCC and not the toolchain one.
Why? I don't know, i've setted CC=${CMLFS_TARGET}-gcc
, it shouldn't being using host's GCC.
PSΒ²: Besides that, i also figured out that i may have messed up with musl libc when fixing that link.
from cmlfs.
When i was compiling LLVM (and ncurses), i was trying to
ld
it to the host and not to the/cgnutools
toolchain.
So strange, the GCC in the cgnutools
should invoke the linker to links againts /cgnutools/lib/ld-musl-x86_64.so.1
.
Lines 53 to 70 in 1b8e2d7
Also .. in my builds, I don't use these stuffs. The last, I only use make
command.
Line 25 in 1b8e2d7
Lines 47 to 48 in 1b8e2d7
from cmlfs.
When i was compiling LLVM (and ncurses), i was trying to
ld
it to the host and not to the/cgnutools
toolchain.So strange, the GCC in the
cgnutools
should invoke the linker to links againts/cgnutools/lib/ld-musl-x86_64.so.1
.Lines 53 to 70 in 1b8e2d7
Also .. in my builds, I don't use these stuffs. The last, I only use
make
command.Line 25 in 1b8e2d7
Lines 47 to 48 in 1b8e2d7
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.
That's weird, really weird-- for some reason, compiling things on Arch always leads to weird and interesting errors.
Well, let's see if LLVM will work anyway.
from cmlfs.
Btw, i'll reopen as this can be a really interesting discussion.
from cmlfs.
Btw, i'll reopen as this can be a really interesting discussion.
Should migrate to discussion tab. π
from cmlfs.
Btw, i'll reopen as this can be a really interesting discussion.
Should migrate to discussion tab. smile
How could i do this? π§
Although using GitHub since 2019, i still don't know how to use some features.
from cmlfs.
How could i do this? π§
Only maintainer can do that, otherwise you can start a new discussion.
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.