[gentoo-user] Re: How do you manage manually compiled software?
On 04/28/2017 04:33 AM, Danny YUE wrote: Hi guys, I am compiling RISC-V tools...I am just curious how do you manage your manually compiled software? I make ebuilds for them and put them in /usr/local/portage.
[gentoo-user] Re: How do you manage manually compiled software?
On 2017-04-28 09:33, Danny YUE wrote: > I am compiling RISC-V tools...I am just curious how do you manage your > manually compiled software? Michael already posted the "correct answer", and that's what I'm slowly migrating towards, myself. But the best way I've found before that was install it in a specific subtree of my ~ (that way I don't need root at any time), and manage PATH semi-automatically, as follows: 1. make a symlink in ~/bin to each subdirectory containing programs. For example, if I install foopkg in ~/foopkg/ and the foo program is ~/foopkg/bin/foo , I symlink ~/bin/foopkg -> ../foopkg/bin . 2. this snippet very early in my .bashrc adds each such subdirectory to the PATH: case $PATH in (*/rc-scripts*) : ;; (*) PATH=$PATH:$( find ~/bin -type l -xtype d | paste -sd: ) ;; esac The first case is there to prevent recursion, as I know that rc-scripts will always be one of the symlinks. hth, -- Please *no* private Cc: on mailing lists and newsgroups Personal signed mail: please _encrypt_ and sign Don't clear-text sign: http://primate.net/~itz/blog/the-problem-with-gpg-signatures.html
Re: [gentoo-user] How do you manage manually compiled software?
On 04/27/2017 09:33 PM, Danny YUE wrote: > Hi guys, > > I am compiling RISC-V tools...I am just curious how do you manage your > manually compiled software? Don't, write an ebuild for it.
Re: [gentoo-user] System borked after emerge -e world
On Fr, 28 Apr 01:27:23 +0200 wabewrote: Floyd Anderson wrote: On Do, 27 Apr 16:56:00 -0500 Dale wrote: >One thing about alt sysreq, once you get to a certain point, you >have >to go "all the way" with it. I've found that just the R and E >generally >gets things back to a point it is accessible and I don't >have to go >through it all. I think once you get to the I or S, it's >all or nothing at that point. Even after the E, you may have to >start/restart some init processes. FYI, I'm pretty sure the S is >what syncs the file systems and the U unmounts everything. Of >course, the B reboots. I can't recall what the others do exactly. With access to the kernel sources, you doesn’t have to remember what the others do, see ‘/usr/src/linux/Documentation/admin-guide/sysrq.rst’. This file doesn't exist on my system (not even the directory "admin-guide"). I can find it under: /usr/src/linux/Documentation/sysrq.txt That’s interesting, I doesn’t expect that. Maybe we are using different kernel sources. Mine is ‘sys-kernel/gentoo-sources-4.10.12::gentoo’ but wait, I’ve found it also under ‘Documentation/sysrq.txt’ with version 4.9.16 and it’s slightly a little bit different (in form not in content as far as I can see). But in my case I even had no access to any file, because no command was working anymore. So I think it is better to have these information on a good old sheet of paper. ;-) Ha, yes of course, a paper backup beats them all (under typical circumstances). ;-) -- Regards, floyd
[gentoo-user] How do you manage manually compiled software?
Hi guys, I am compiling RISC-V tools...I am just curious how do you manage your manually compiled software? Here are some options: 1) Just "make install" everything into /usr/local. But if the Makefile does not have removing option, how do you remove it then? 2) Put compiled software into /usr/local/some-dir, then create symbolic links to /usr/local/some-path. But this does not work if the software relies on some environment variables (well, you can set it in .bashrc but it then loses flexibility). 3) Just install it anywhere and change PATH. To be honest, I don't really like this way because changing the PATH requires extra actions, e.g. open another terminal. Any idea? Danny
[gentoo-user] printer recommendation
I need to replace one of my Brother printers and am looking for a replacement. I have had luck in recent years with Brother printers: - HL-5250DN (needs to be replaced) - HL-5370 - working OK I only need a B/W printer with an Ethernet interface. Toner usage is important. Average pages per day will range from 20-50. Brother recently improved with their Linux drivers; installing one under Gentoo from RPM (with minor adjustments) was ok. Looking at Brother web-page, they have: - HL-L5200DW - 8000 pages per $177.49 toner seems OK It has "Advanced security features to help protect sensitive documents" I don't know what that is, have to ask Brother. However, http://www.openprinting.org/printers/manufacturer/Brother does not mention this model, so I have no reference as to how well it works with Linux. HL-L2360DW - Seems OK but it only makes 2,600-pages per $100/toner; this is NOT OK. I used to have HP but I don't like their toners with chip technology, so NO HP, unless they have changed. Any other recommendations? -- Thelma
Re: [gentoo-user] System borked after emerge -e world
wabe wrote: > Neil Bothwickwrote: > >> On Thu, 27 Apr 2017 16:56:00 -0500, Dale wrote: >> >>> One thing about alt sysreq, once you get to a certain point, you >>> have to go "all the way" with it. I've found that just the R and E >>> generally gets things back to a point it is accessible and I don't >>> have to go through it all. I think once you get to the I or S, >>> it's all or nothing at that point. Even after the E, you may have >>> to start/restart some init processes. FYI, I'm pretty sure the S >>> is what syncs the file systems and the U unmounts everything. Of >>> course, the B reboots. I can't recall what the others do exactly. >> R resets the keyboard. E sends a SIGTERM to all processes except PID1, >> which is why you need to restart services after pressing it. I sends a >> SIGKILL similarly. As you say S syncs ass filesystems, U unmounts >> filesystems and remounts them readonly and B reboots. >> >> Once you have got to E, you need to restart stuff. You may get away >> with switching runlevels to bring up all your services, or you may >> decide that once the system has got itself into a state that has you >> reaching for SysRq, a reboot is in order. > Most of the keys are documented here: > > https://wiki.ubuntuusers.de/Magic_SysRQ/ > > And even more in the kernel directory at Documentation/sysrq.txt. > > I will pin these synopsis onto the backside of my monitor. :-) > > -- > Regards > wabe I have it on a small post-it-note stuck on the side of my monitor. I'm not sure, may have been Neil or Alan, that posted it this way. Reboot Even If System Utterly Broken. That sort of stuck with me. Still, I look at the sticky note to be sure. I found it on linuxhowtos.org which ironically, was translated from a site in your language I think. lol Anyway, it's handy to have around, just in case, and a little safety is needed when it seems the Sun just went dark. I wish I had that when I did the hal thing. Let's not go to far into that tho. Dale :-) :-)
Re: [gentoo-user] System borked after emerge -e world
Floyd Andersonwrote: > On Do, 27 Apr 16:56:00 -0500 > Dale wrote: > >One thing about alt sysreq, once you get to a certain point, you > >have >to go "all the way" with it. I've found that just the R and E > >generally >gets things back to a point it is accessible and I don't > >have to go >through it all. I think once you get to the I or S, it's > >all or nothing at that point. Even after the E, you may have to > >start/restart some init processes. FYI, I'm pretty sure the S is > >what syncs the file systems and the U unmounts everything. Of > >course, the B reboots. I can't recall what the others do exactly. > With access to the kernel sources, you doesn’t have to remember what > the others do, see > ‘/usr/src/linux/Documentation/admin-guide/sysrq.rst’. This file doesn't exist on my system (not even the directory "admin-guide"). I can find it under: /usr/src/linux/Documentation/sysrq.txt But in my case I even had no access to any file, because no command was working anymore. So I think it is better to have these information on a good old sheet of paper. ;-) -- Regards wabe
Re: [gentoo-user] System borked after emerge -e world
On Do, 27 Apr 16:56:00 -0500 Dalewrote: One thing about alt sysreq, once you get to a certain point, you have to go "all the way" with it. I've found that just the R and E generally gets things back to a point it is accessible and I don't have to go through it all. I think once you get to the I or S, it's all or nothing at that point. Even after the E, you may have to start/restart some init processes. FYI, I'm pretty sure the S is what syncs the file systems and the U unmounts everything. Of course, the B reboots. I can't recall what the others do exactly. With access to the kernel sources, you doesn’t have to remember what the others do, see ‘/usr/src/linux/Documentation/admin-guide/sysrq.rst’. -- Regards, floyd
Re: [gentoo-user] System borked after emerge -e world
Neil Bothwickwrote: > On Thu, 27 Apr 2017 16:56:00 -0500, Dale wrote: > > > One thing about alt sysreq, once you get to a certain point, you > > have to go "all the way" with it. I've found that just the R and E > > generally gets things back to a point it is accessible and I don't > > have to go through it all. I think once you get to the I or S, > > it's all or nothing at that point. Even after the E, you may have > > to start/restart some init processes. FYI, I'm pretty sure the S > > is what syncs the file systems and the U unmounts everything. Of > > course, the B reboots. I can't recall what the others do exactly. > > R resets the keyboard. E sends a SIGTERM to all processes except PID1, > which is why you need to restart services after pressing it. I sends a > SIGKILL similarly. As you say S syncs ass filesystems, U unmounts > filesystems and remounts them readonly and B reboots. > > Once you have got to E, you need to restart stuff. You may get away > with switching runlevels to bring up all your services, or you may > decide that once the system has got itself into a state that has you > reaching for SysRq, a reboot is in order. Most of the keys are documented here: https://wiki.ubuntuusers.de/Magic_SysRQ/ And even more in the kernel directory at Documentation/sysrq.txt. I will pin these synopsis onto the backside of my monitor. :-) -- Regards wabe pgpiR79ue9efn.pgp Description: Digitale Signatur von OpenPGP
Re: [gentoo-user] System borked after emerge -e world
On Thu, 27 Apr 2017 16:56:00 -0500, Dale wrote: > One thing about alt sysreq, once you get to a certain point, you have to > go "all the way" with it. I've found that just the R and E generally > gets things back to a point it is accessible and I don't have to go > through it all. I think once you get to the I or S, it's all or nothing > at that point. Even after the E, you may have to start/restart some > init processes. FYI, I'm pretty sure the S is what syncs the file > systems and the U unmounts everything. Of course, the B reboots. I > can't recall what the others do exactly. R resets the keyboard. E sends a SIGTERM to all processes except PID1, which is why you need to restart services after pressing it. I sends a SIGKILL similarly. As you say S syncs ass filesystems, U unmounts filesystems and remounts them readonly and B reboots. Once you have got to E, you need to restart stuff. You may get away with switching runlevels to bring up all your services, or you may decide that once the system has got itself into a state that has you reaching for SysRq, a reboot is in order. -- Neil Bothwick Top Oxymorons Number 44: Advanced BASIC pgpQs3XTs9zxg.pgp Description: OpenPGP digital signature
Re: [gentoo-user] System borked after emerge -e world
wabe wrote: > Dalewrote: > >> wabe wrote: >>> Hi folks, >>> >>> it seems that my system is broken after recompiling everything with >>> the new gcc5. >>> >>> I even cannot execute any command or start new programs. It is also >>> not possible to open a terminal or to login on console. >>> >>> When I type something in an already opened Xterm it says >>> "Ungültiger Maschinenbefehl" (in English probably something like >>> "invalid machine command"). >>> >>> On tty12 I can see messages like this: >>> >>> traps: ls[4055] trap invalid opcode ip:3cd3d91e024 sp:3d6a804abb0 >>> error:0 in libc-2.23.so[3cd3d865000+19d000] grsec: Illegal >>> instruction occured at 03cd3d91e026 in /bin/ls[ls:4055] >>> uid/euid:0/0 gid/egid:0/0, parent... >>> >>> kernel is 4.8.17-hardened-r2 >>> >>> (uname -a is still working). >>> >>> I don't dare to reboot my system because I'm not sure that it will >>> boot. >>> >>> I don't even know if this email will reach the list, because claws >>> mail also dropped some errors about "bogofilter doesn't work". >>> >>> Any help would really appreciated. >>> >>> -- >>> Regards >>> wabe >>> >>> . >>> >> I wonder if this is related. When I did my switch, I hit a point >> where I had to start the alt sysreq key sequence. I only had to do >> the R and E part to get my console back tho. At the time, I thought >> it may just be some weird occurrence but now I wonder if it was >> related to some update. Once I got my console and login screen, I >> was able to login and carry on, after getting all the services back >> running that got killed off. I got the login screen back after >> hitting the E part. >> >> I wonder, will others run into this sort of problem? If so, what is >> the best way to get back to normal? For you, rebooting helped. For >> me, just starting the alt sysreq did the trick. It makes one wonder. > Hi Dale, > > thanks for this hint. Although I know about this "magic stuff", I don't > even have it enabled in my kernel. At the moment I'm happy that my > system is working again so that I can do some other urgent tasks. But > I will look closely at these function within the next time. Even when > it is not possible to "repair" the system in the case of a crash, it is > helpful to be able to write the cache to disk and reboot the system. > > -- > Regards > wabe > > It's rare that I have to go "all the way" with this but at least it does flush things through the system and properly unmounts file systems first. That alone is some comfort. I switched to ext4 which is supposed to handle those things pretty well BUT why risk it if you can unmount them properly, even if it is brute force. One thing about alt sysreq, once you get to a certain point, you have to go "all the way" with it. I've found that just the R and E generally gets things back to a point it is accessible and I don't have to go through it all. I think once you get to the I or S, it's all or nothing at that point. Even after the E, you may have to start/restart some init processes. FYI, I'm pretty sure the S is what syncs the file systems and the U unmounts everything. Of course, the B reboots. I can't recall what the others do exactly. I wonder if some guru that is familiar with this could shine some light and share some wisdom. Dale :-) :-)
Re: [gentoo-user] System borked after emerge -e world
Dalewrote: > wabe wrote: > > Hi folks, > > > > it seems that my system is broken after recompiling everything with > > the new gcc5. > > > > I even cannot execute any command or start new programs. It is also > > not possible to open a terminal or to login on console. > > > > When I type something in an already opened Xterm it says > > "Ungültiger Maschinenbefehl" (in English probably something like > > "invalid machine command"). > > > > On tty12 I can see messages like this: > > > > traps: ls[4055] trap invalid opcode ip:3cd3d91e024 sp:3d6a804abb0 > > error:0 in libc-2.23.so[3cd3d865000+19d000] grsec: Illegal > > instruction occured at 03cd3d91e026 in /bin/ls[ls:4055] > > uid/euid:0/0 gid/egid:0/0, parent... > > > > kernel is 4.8.17-hardened-r2 > > > > (uname -a is still working). > > > > I don't dare to reboot my system because I'm not sure that it will > > boot. > > > > I don't even know if this email will reach the list, because claws > > mail also dropped some errors about "bogofilter doesn't work". > > > > Any help would really appreciated. > > > > -- > > Regards > > wabe > > > > . > > > > I wonder if this is related. When I did my switch, I hit a point > where I had to start the alt sysreq key sequence. I only had to do > the R and E part to get my console back tho. At the time, I thought > it may just be some weird occurrence but now I wonder if it was > related to some update. Once I got my console and login screen, I > was able to login and carry on, after getting all the services back > running that got killed off. I got the login screen back after > hitting the E part. > > I wonder, will others run into this sort of problem? If so, what is > the best way to get back to normal? For you, rebooting helped. For > me, just starting the alt sysreq did the trick. It makes one wonder. Hi Dale, thanks for this hint. Although I know about this "magic stuff", I don't even have it enabled in my kernel. At the moment I'm happy that my system is working again so that I can do some other urgent tasks. But I will look closely at these function within the next time. Even when it is not possible to "repair" the system in the case of a crash, it is helpful to be able to write the cache to disk and reboot the system. -- Regards wabe
Re: [gentoo-user] System borked after emerge -e world
wabe wrote: > Hi folks, > > it seems that my system is broken after recompiling everything with > the new gcc5. > > I even cannot execute any command or start new programs. It is also > not possible to open a terminal or to login on console. > > When I type something in an already opened Xterm it says "Ungültiger > Maschinenbefehl" (in English probably something like "invalid machine > command"). > > On tty12 I can see messages like this: > > traps: ls[4055] trap invalid opcode ip:3cd3d91e024 sp:3d6a804abb0 error:0 in > libc-2.23.so[3cd3d865000+19d000] > grsec: Illegal instruction occured at 03cd3d91e026 in /bin/ls[ls:4055] > uid/euid:0/0 gid/egid:0/0, parent... > > kernel is 4.8.17-hardened-r2 > > (uname -a is still working). > > I don't dare to reboot my system because I'm not sure that it will boot. > > I don't even know if this email will reach the list, because claws mail > also dropped some errors about "bogofilter doesn't work". > > Any help would really appreciated. > > -- > Regards > wabe > > . > I wonder if this is related. When I did my switch, I hit a point where I had to start the alt sysreq key sequence. I only had to do the R and E part to get my console back tho. At the time, I thought it may just be some weird occurrence but now I wonder if it was related to some update. Once I got my console and login screen, I was able to login and carry on, after getting all the services back running that got killed off. I got the login screen back after hitting the E part. I wonder, will others run into this sort of problem? If so, what is the best way to get back to normal? For you, rebooting helped. For me, just starting the alt sysreq did the trick. It makes one wonder. Dale :-) :-)
Re: [gentoo-user] System borked after emerge -e world (SOLVED)
Rasmus Thomsenwrote: > Hi, > "Invalid Machine command" (forgot the exact error message) usually > happened to me when I passed the wrong -march to GCC (e.g. > -march=haswell on sandybridge cpus) I'm using -march native since many years. After restarting my machine everything works fine again. -- Regards wabe > Regards, > Rasmus > > > On 27 Apr 2017 7:43 pm, wabe wrote: > > "J. Roeleveld" wrote: > > > On April 27, 2017 7:20:29 PM GMT+02:00, wabe > > wrote: > > >Hi folks, > > > > > >it seems that my system is broken after recompiling everything with > > >the new gcc5. > > > > > >I even cannot execute any command or start new programs. It is also > > >not possible to open a terminal or to login on console. > > > > > >When I type something in an already opened Xterm it says > > >"Ungültiger Maschinenbefehl" (in English probably something like > > >"invalid machine command"). > > > > > >On tty12 I can see messages like this: > > > > > >traps: ls[4055] trap invalid opcode ip:3cd3d91e024 sp:3d6a804abb0 > > >error:0 in libc-2.23.so[3cd3d865000+19d000] > > >grsec: Illegal instruction occured at 03cd3d91e026 in > > >/bin/ls[ls:4055] uid/euid:0/0 gid/egid:0/0, parent... > > > > > >kernel is 4.8.17-hardened-r2 > > > > > >(uname -a is still working). > > > > > >I don't dare to reboot my system because I'm not sure that it will > > >boot. > > > > > >I don't even know if this email will reach the list, because claws > > >mail > > > > > >also dropped some errors about "bogofilter doesn't work". > > > > > >Any help would really appreciated. > > > > > >-- > > >Regards > > >wabe > > > > Did you run the revdep-rebuild command? > > Keep running that until it completes succesfully. > > Can't execute it. "Invalid command". > > There is one terminal (gnome-terminal) still open. This is the one > that I used to recompile everything. I'm logged in there as root. > But I cannot open another terminal. I don't even see what I'm typing > (no echo). I can only see the output. > > > Do NOT use binaries to speed things up. That didn't work for me. > > AFAIK I don't have any binaries installed on my system. > > -- > Regards > wabe > >
Re: [gentoo-user] System borked after emerge -e world
Hi, "Invalid Machine command" (forgot the exact error message) usually happened to me when I passed the wrong -march to GCC (e.g. -march=haswell on sandybridge cpus) Regards, Rasmus On 27 Apr 2017 7:43 pm, wabewrote: "J. Roeleveld" wrote: > On April 27, 2017 7:20:29 PM GMT+02:00, wabe > wrote: > >Hi folks, > > > >it seems that my system is broken after recompiling everything with > >the new gcc5. > > > >I even cannot execute any command or start new programs. It is also > >not possible to open a terminal or to login on console. > > > >When I type something in an already opened Xterm it says "Ungültiger > >Maschinenbefehl" (in English probably something like "invalid > >machine command"). > > > >On tty12 I can see messages like this: > > > >traps: ls[4055] trap invalid opcode ip:3cd3d91e024 sp:3d6a804abb0 > >error:0 in libc-2.23.so[3cd3d865000+19d000] > >grsec: Illegal instruction occured at 03cd3d91e026 in > >/bin/ls[ls:4055] uid/euid:0/0 gid/egid:0/0, parent... > > > >kernel is 4.8.17-hardened-r2 > > > >(uname -a is still working). > > > >I don't dare to reboot my system because I'm not sure that it will > >boot. > > > >I don't even know if this email will reach the list, because claws > >mail > > > >also dropped some errors about "bogofilter doesn't work". > > > >Any help would really appreciated. > > > >-- > >Regards > >wabe > > Did you run the revdep-rebuild command? > Keep running that until it completes succesfully. Can't execute it. "Invalid command". There is one terminal (gnome-terminal) still open. This is the one that I used to recompile everything. I'm logged in there as root. But I cannot open another terminal. I don't even see what I'm typing (no echo). I can only see the output. > Do NOT use binaries to speed things up. That didn't work for me. AFAIK I don't have any binaries installed on my system. -- Regards wabe
Re: [gentoo-user] System borked after emerge -e world (SOLVED)
I tried to reboot the system. But even this did not work. So I toggled the power. The system booted without problems and it seems that everything works well again. I wonder what caused the trouble. The last package that was compiled successfully was media-plugins/frei0r-plugins-1.5.0. The next package, which failed, was media-libs/libmypaint-1.3.0. After that, the system was broken. Now I resume the emerge process. 15 Packages are left. Right now media-libs/libmypaint-1.3.0 was successful compiled. Waiting for the rest. Thanks for all answers. -- Regards wabe Floyd Andersonwrote: > On Do, 27 Apr 19:43:46 +0200 > wabe wrote: > >"J. Roeleveld" wrote: > > > >> On April 27, 2017 7:20:29 PM GMT+02:00, wabe > >> wrote: > >On tty12 I can see messages […] > Try to switch to an other virtual terminal (with Ctrl+Alt+2) and > start from there. Couldn't login to any terminal. > >But I cannot open another terminal. I don't even see what I'm typing > >(no echo). I can only see the output. > Try to reset the terminal by invoking `reset`. Did not work.
Re: [gentoo-user] System borked after emerge -e world
On Do, 27 Apr 19:43:46 +0200 wabewrote: "J. Roeleveld" wrote: On April 27, 2017 7:20:29 PM GMT+02:00, wabe wrote: On tty12 I can see messages […] Try to switch to an other virtual terminal (with Ctrl+Alt+2) and start from there. But I cannot open another terminal. I don't even see what I'm typing (no echo). I can only see the output. Try to reset the terminal by invoking `reset`. -- Regards, floyd
Re: [gentoo-user] System borked after emerge -e world
"J. Roeleveld"wrote: > On April 27, 2017 7:20:29 PM GMT+02:00, wabe > wrote: > >Hi folks, > > > >it seems that my system is broken after recompiling everything with > >the new gcc5. > > > >I even cannot execute any command or start new programs. It is also > >not possible to open a terminal or to login on console. > > > >When I type something in an already opened Xterm it says "Ungültiger > >Maschinenbefehl" (in English probably something like "invalid > >machine command"). > > > >On tty12 I can see messages like this: > > > >traps: ls[4055] trap invalid opcode ip:3cd3d91e024 sp:3d6a804abb0 > >error:0 in libc-2.23.so[3cd3d865000+19d000] > >grsec: Illegal instruction occured at 03cd3d91e026 in > >/bin/ls[ls:4055] uid/euid:0/0 gid/egid:0/0, parent... > > > >kernel is 4.8.17-hardened-r2 > > > >(uname -a is still working). > > > >I don't dare to reboot my system because I'm not sure that it will > >boot. > > > >I don't even know if this email will reach the list, because claws > >mail > > > >also dropped some errors about "bogofilter doesn't work". > > > >Any help would really appreciated. > > > >-- > >Regards > >wabe > > Did you run the revdep-rebuild command? > Keep running that until it completes succesfully. Can't execute it. "Invalid command". There is one terminal (gnome-terminal) still open. This is the one that I used to recompile everything. I'm logged in there as root. But I cannot open another terminal. I don't even see what I'm typing (no echo). I can only see the output. > Do NOT use binaries to speed things up. That didn't work for me. AFAIK I don't have any binaries installed on my system. -- Regards wabe
Re: [gentoo-user] System borked after emerge -e world
Ian Blosswrote: > Try rebooting, worst thing you'll have to do if it doesn't want to > reboot is boot a rescue image and mount it to repair it I don't know how to repair it because I don't know what exactly is broken. At the moment I can at least ask the M/L. I don't wanna lose also this possibility. I will wait for some time. Maybe someone else can give me a hint. If not, I will reboot the system. -- Regards wabe > On Thu, Apr 27, 2017, 10:22 AM wabe wrote: > > > Hi folks, > > > > it seems that my system is broken after recompiling everything with > > the new gcc5. > > > > I even cannot execute any command or start new programs. It is also > > not possible to open a terminal or to login on console. > > > > When I type something in an already opened Xterm it says "Ungültiger > > Maschinenbefehl" (in English probably something like "invalid > > machine command"). > > > > On tty12 I can see messages like this: > > > > traps: ls[4055] trap invalid opcode ip:3cd3d91e024 sp:3d6a804abb0 > > error:0 in libc-2.23.so[3cd3d865000+19d000] > > grsec: Illegal instruction occured at 03cd3d91e026 > > in /bin/ls[ls:4055] uid/euid:0/0 gid/egid:0/0, parent... > > > > kernel is 4.8.17-hardened-r2 > > > > (uname -a is still working). > > > > I don't dare to reboot my system because I'm not sure that it will > > boot. > > > > I don't even know if this email will reach the list, because claws > > mail also dropped some errors about "bogofilter doesn't work". > > > > Any help would really appreciated. > > > > -- > > Regards > > wabe > > > >
Re: [gentoo-user] System borked after emerge -e world
On April 27, 2017 7:20:29 PM GMT+02:00, wabewrote: >Hi folks, > >it seems that my system is broken after recompiling everything with >the new gcc5. > >I even cannot execute any command or start new programs. It is also >not possible to open a terminal or to login on console. > >When I type something in an already opened Xterm it says "Ungültiger >Maschinenbefehl" (in English probably something like "invalid machine >command"). > >On tty12 I can see messages like this: > >traps: ls[4055] trap invalid opcode ip:3cd3d91e024 sp:3d6a804abb0 >error:0 in libc-2.23.so[3cd3d865000+19d000] >grsec: Illegal instruction occured at 03cd3d91e026 in >/bin/ls[ls:4055] uid/euid:0/0 gid/egid:0/0, parent... > >kernel is 4.8.17-hardened-r2 > >(uname -a is still working). > >I don't dare to reboot my system because I'm not sure that it will >boot. > >I don't even know if this email will reach the list, because claws mail > >also dropped some errors about "bogofilter doesn't work". > >Any help would really appreciated. > >-- >Regards >wabe Did you run the revdep-rebuild command? Keep running that until it completes succesfully. Do NOT use binaries to speed things up. That didn't work for me. -- Joost -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Re: [gentoo-user] System borked after emerge -e world
Try rebooting, worst thing you'll have to do if it doesn't want to reboot is boot a rescue image and mount it to repair it On Thu, Apr 27, 2017, 10:22 AM wabewrote: > Hi folks, > > it seems that my system is broken after recompiling everything with > the new gcc5. > > I even cannot execute any command or start new programs. It is also > not possible to open a terminal or to login on console. > > When I type something in an already opened Xterm it says "Ungültiger > Maschinenbefehl" (in English probably something like "invalid machine > command"). > > On tty12 I can see messages like this: > > traps: ls[4055] trap invalid opcode ip:3cd3d91e024 sp:3d6a804abb0 error:0 > in libc-2.23.so[3cd3d865000+19d000] > grsec: Illegal instruction occured at 03cd3d91e026 in /bin/ls[ls:4055] > uid/euid:0/0 gid/egid:0/0, parent... > > kernel is 4.8.17-hardened-r2 > > (uname -a is still working). > > I don't dare to reboot my system because I'm not sure that it will boot. > > I don't even know if this email will reach the list, because claws mail > also dropped some errors about "bogofilter doesn't work". > > Any help would really appreciated. > > -- > Regards > wabe > >
[gentoo-user] System borked after emerge -e world
Hi folks, it seems that my system is broken after recompiling everything with the new gcc5. I even cannot execute any command or start new programs. It is also not possible to open a terminal or to login on console. When I type something in an already opened Xterm it says "Ungültiger Maschinenbefehl" (in English probably something like "invalid machine command"). On tty12 I can see messages like this: traps: ls[4055] trap invalid opcode ip:3cd3d91e024 sp:3d6a804abb0 error:0 in libc-2.23.so[3cd3d865000+19d000] grsec: Illegal instruction occured at 03cd3d91e026 in /bin/ls[ls:4055] uid/euid:0/0 gid/egid:0/0, parent... kernel is 4.8.17-hardened-r2 (uname -a is still working). I don't dare to reboot my system because I'm not sure that it will boot. I don't even know if this email will reach the list, because claws mail also dropped some errors about "bogofilter doesn't work". Any help would really appreciated. -- Regards wabe
Re: [gentoo-user] Re: In search of an truecolor-capable terminal emulator
On Tue, Apr 25, 2017 at 9:55 PM,wrote: > Hi R0b0t1, > > On 04/25 02:15, R0b0t1 wrote: >> On Tue, Apr 25, 2017 at 10:47 AM, wrote: >> > I googled qyite a bit to find 24color terminal >> > emulators and the one, which came closer to >> > what I want is sakure. >> > But comparing the speed of sakura with urxvt >> > (catting a long log file twice while measureing the time >> > of the second cat) it shows that sakura needs >> > six times more time than urxvt. >> > >> > Combining this with the compile sessions, which >> > are one of the core features of Gentoo ;)))... >> > >> >> I would suggest looking at: >> *) https://github.com/jwilm/alacritty >> *) https://github.com/kovidgoyal/kitty > > I tried alacritty before ... or better: I tried to solve > all dependencies and stopped at a certain point because > it got all too ... how should I call that fuzzy? > > Kitty needs python3 ... I am on python2. > Last time I got in conflict with these pythons I finally > had to decide to reinstall my Gentoo from ground up > (others things were also a reason, so not to blame > python alone). > So I stopped here also. > If your system doesn't support python 3 then that is arguably the larger problem and you should get it fixed before you are *forced* to get it fixed when support is dropped. >> >> Both of which are OpenGL accelerated. Unfortunately I'm not entirely >> sure why sakura is slow. Finding out might be worthwhile. Alacritty is >> the shiniest, but unfortunately the rust build and setup process looks >> very insecure, similar to Haskell. Take into account that those >> languages are experimental. > > I tried xfce4-terminal as suggested by Floyd...and got exactly the > reversed timings. He found xfce4-terminal six times faster than > urxvt and I got the reversed result. > If I could find the culprit on my box I would be happy with sakura > and/or xfve4-terminal. > Where can I start? > What may be the reasons? > I'm not exactly sure what timing something *inside* the terminal will accomplish, as it's very possible that all writes will be passed to buffered, memory mapped areas. In essence all that would be timed is the system calls and any time the programs spend processing their input, not anything that the terminal emulator has any control over, like rendering and scrolling speed. In any case try running the tests a few times to see if the files (including the executables) are cached and the operations complete more quickly. If terminal emulators differ in anything but their rendering speeds I would be extremely surprised, as that is really all they do. The suggestion to look for compositing is a good one. I suggest the useflags "egl gles gles2 opengl" (or some variation of that) to make sure acceleration is enabled for every program that can use it. As an aside, the above useflag changes and some others are on a list of things I think should really be added to the handbook - they're basically essential for a usable system on most hardware now. >> > What I want is the "fastest" possible (...) >> > terminal emulator supporting true color (24bit). >> > I dont need fancy configuring options (two exception: >> > TABS! and lightweighted) and I dont want KDE stuff (or >> > any other bloated thing with thousands of dependencies...) >> > I am simply using openbox. >> > >> >> Tabs are probably a stretch though I admit they are a useful feature. > > I dont like to insert just another layer of confusion ;) with > my terminal like screen of tmux. They are fine for in special cases > but for my daily tabbed terminal I would like to have native support > rigth in the terminal emulator. > >> I would recommend that if you find a Desktop Environment that has a >> program you like you simply use it though the look may clash with your >> other programs. It's hard enough to find programs that do what you >> want on Linux. > > I have no problems with the 'optical clash'. But I don want to > pull in dozenz of dependencies (KDE) just for a terminal emultor. > These will also increase the amount of stuff which needs to be > updated... > >> > What are your experiences? >> > >> >> Nothing really seems to do what I want, and that may translate into >> nothing really doing what you want. > > ...or in other words: I need to find the reason, why some terminal > emulators are slow on my box and not on others... > >> > Any hint is heartly welcome! Thanks ! >> > >> > Cheers >> > Meino >> > >> > PS: The terminal emulator dont need to be part >> > of Gentoo necessarily...if it is compilable >> > by a human being withoyt super powers... ;) >> > >> >> Check the list on that gist - may as well keep trying them until you >> find one that you like. > > To prevent exactly that was the reason for asking for experiences > others made with terminal emulators. > Blindly following the compile-install-test-desinstall cycle with > applications listed somewhere is not efficient. > If you can't come up a very
[gentoo-user] Re: In search of an truecolor-capable terminal emulator
On 2017-04-27, Guy-Laurent Subriwrote: > Here's the link to the website: http://st.suckless.org/ > And here's also a link if you want other terminals that support > truecolors : https://gist.github.com/XVilka/8346728 I'm curious what true-color support actually _does_ in an ANSI terminal emulator. The ANSI escape sequences only allow for 16 colors. -- Grant Edwards grant.b.edwardsYow! I'd like MY data-base at JULIENNED and stir-fried! gmail.com
[gentoo-user] Re: replacement for ftp?
On 2017-04-27, Danny YUEwrote: > I recently found that rsnapshot (based on rsync) is a good and solid > tool for backup...You may try it out ;-) I second the recommendation for rsnapshot. I've been using rsnampshot for several years to backup stuff to an external Firewire RAID array. The really convenient thing about it is that backup is simply a set of directory trees that you can peruse at any time to verify that backups are occuring or to look at old versions of files. -- Grant Edwards grant.b.edwardsYow! I'm having BEAUTIFUL at THOUGHTS about the INSIPID gmail.comWIVES of smug and wealthy CORPORATE LAWYERS ...
Re: [gentoo-user] Re: Argh, palemoon again ** 3 [Was: GCC 5.4.0]
On 04/26/2017 11:03 PM, Walter Dnes wrote: > On Wed, Apr 26, 2017 at 06:01:20AM +0800, Bill Kenworthy wrote > >> That flag isn't mentioned here. > > I checked the source code. It forces the old ABI, so it should work, > compiled with GCC 5.4.0, even on a Gcc 4.9.4 system... > > [CentOS65][pmbuilder][~/pmmaster] grep -r GLIBCXX_USE_CXX11_ABI pmsrc > pmsrc/configure: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_USE_CXX11_ABI=0" > pmsrc/configure: HOST_CXXFLAGS="$HOST_CXXFLAGS -D_GLIBCXX_USE_CXX11_ABI=0" > pmsrc/configure.in: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_USE_CXX11_ABI=0" > pmsrc/configure.in: HOST_CXXFLAGS="$HOST_CXXFLAGS > -D_GLIBCXX_USE_CXX11_ABI=0" > Walter, That flag "-D_GLIBCXX_USE_CXX11_ABI=0" is a CPPFLAG. It is only recognized by GCC 5.1.x and higher. And it only works on GCC built with dual ABI support. Gentoo doesn't support the dual ABI builds. Info links : https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_macros.html https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html#abi.versioning.__GLIBCXX__ https://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html On my system, I went ahead with the switch to GCC 5.4.0. The "-D_GLIBCXX_USE_CXX11_ABI=1" CPPFLAG forces GCC to check IF the new ABI should be applied FIRST. NO FORCING the ABI on software that doesn't use it. Putting CPPFLAGS="-D_GLIBCXX_USE_CXX11_ABI=1" in make.conf killed almost all the erorrs in the revdep-rebuild process. Putting that in as a CFLAGS or CXXFLAGS switch caused lots of errors in revdep-rebuild. Thought you might want to know. Corbin
Re: [gentoo-user] Kernel config checks
On Thursday 27 Apr 2017 12:03:41 Rasmus Thomsen wrote: > Yeah, but as your most recently emerged kernel usually is the one your > going to use (why would you emerge it otherwise), it should work (most of > the time) Yes, it is usually, but not always. For instance, if you emerge -e world you may get kernel versions emerged in the "wrong" order. This has happened here. [OT: "your" != "you're"] -- Regards Peter
Re: [gentoo-user] Kernel config checks
Yeah, but as your most recently emerged kernel usually is the one your going to use (why would you emerge it otherwise), it should work (most of the time)
Re: [gentoo-user] Kernel config checks
On Thursday 27 Apr 2017 09:57:21 Rasmus Thomsen wrote: > Hi, > > you could set the symlink IUSE for your kernel package, that way your > /usr/src/linux symlink would always link to your most recent kernel Almost. It will always point to the most recently emerged kernel sources. -- Regards Peter
Re: [gentoo-user] Kernel config checks
On Thu, Apr 27, 2017 at 11:45 AM, Manuel Schönlaubwrote: > Hi, > > i just have a question regarding packages using linux-info.eclass to check > for specific kernel config flags (e.g. app-emaulation/docker). > > Currently it seems like the flags are only checked against the config in > /usr/src/linux which is not necessariliy the running kernel. > > Furthermore there are some warnings printed, but after some time i find it > hard to remember what i will have to change in my kernel configs in order to > make the package work right. It is also just a snapshot of the situation at > the time emerge is building the package. > > Does there exists a tool helping in maintaining consistency between kernel > configuration and configs required by currently installed packages. > > If not, could emaint be be the right tool to extend with this functionality? > Or is this functionality not really needed? > > Regards, > > Manuel I too run custom rather than gentoo kernels on my system with /usr/src/linux being a symbolic link pointing to the location of the kernel sources I have in my $HOME directory for this very reason.
Re: [gentoo-user] Kernel config checks
Hi, you could set the symlink IUSE for your kernel package, that way your /usr/src/linux symlink would always link to your most recent kernel On 27 Apr 2017 10:45 am, Manuel Schönlaubwrote: Hi, i just have a question regarding packages using linux-info.eclass to check for specific kernel config flags (e.g. app-emaulation/docker). Currently it seems like the flags are only checked against the config in /usr/src/linux which is not necessariliy the running kernel. Furthermore there are some warnings printed, but after some time i find it hard to remember what i will have to change in my kernel configs in order to make the package work right. It is also just a snapshot of the situation at the time emerge is building the package. Does there exists a tool helping in maintaining consistency between kernel configuration and configs required by currently installed packages. If not, could emaint be be the right tool to extend with this functionality? Or is this functionality not really needed? Regards, Manuel
Re: [gentoo-user] Kernel config checks
Le 27/04/17 à 10:45, Manuel Schönlaub a tapoté : > Does there exists a tool helping in maintaining consistency between > kernel configuration and configs required by currently installed > packages. > > If not, could emaint be be the right tool to extend with this > functionality? Or is this functionality not really needed? You should look at bugs #532674 and #551430.
Re: [gentoo-user] eclean-dist complains about an overlay
On Thursday 27 Apr 2017 09:26:15 Neil Bothwick wrote: > On Thu, 27 Apr 2017 09:17:16 +0100, Mick wrote: > > I have been noticing these kind of errors on a couple of overlays > > > > lately: > > # /usr/bin/eclean-dist > > * Building file list for distfiles cleaning... > > * ERROR: dev-python/python-evas-::enlightenment failed (depend > > > > phase): > > * python.eclass could not be found by inherit() > > > > Should I ignore them, or do I need to do something about them? > > The ebuilds are using an obsolete eclass. You can ignore the messages if > you don't use any of these ebuilds, but it you do try to emerge one of > them the build will fail. Thanks Neil, I also took the opportunity to clean out some of these overlays where I no longer have a use for them. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Kernel config checks
On 04/27/2017 10:45 AM, Manuel Schönlaub wrote: Hi, i just have a question regarding packages using linux-info.eclass to check for specific kernel config flags (e.g. app-emaulation/docker). Currently it seems like the flags are only checked against the config in /usr/src/linux which is not necessariliy the running kernel. Furthermore there are some warnings printed, but after some time i find it hard to remember what i will have to change in my kernel configs in order to make the package work right. It is also just a snapshot of the situation at the time emerge is building the package. Does there exists a tool helping in maintaining consistency between kernel configuration and configs required by currently installed packages. If not, could emaint be be the right tool to extend with this functionality? Or is this functionality not really needed? Regards, Manuel It does not directly help with the consistency problem, but Elogv (https://wiki.gentoo.org/wiki/Elogv) at least helps to keep track of the messages portage prints out. You could, for example, decide to not remove the messages with kernel config changes that you have not done, yet.
[gentoo-user] Kernel config checks
Hi, i just have a question regarding packages using linux-info.eclass to check for specific kernel config flags (e.g. app-emaulation/docker). Currently it seems like the flags are only checked against the config in /usr/src/linux which is not necessariliy the running kernel. Furthermore there are some warnings printed, but after some time i find it hard to remember what i will have to change in my kernel configs in order to make the package work right. It is also just a snapshot of the situation at the time emerge is building the package. Does there exists a tool helping in maintaining consistency between kernel configuration and configs required by currently installed packages. If not, could emaint be be the right tool to extend with this functionality? Or is this functionality not really needed? Regards, Manuel
Re: [gentoo-user] eclean-dist complains about an overlay
On Thu, 27 Apr 2017 09:17:16 +0100, Mick wrote: > I have been noticing these kind of errors on a couple of overlays > lately: > > # /usr/bin/eclean-dist > * Building file list for distfiles cleaning... > * ERROR: dev-python/python-evas-::enlightenment failed (depend > phase): > * python.eclass could not be found by inherit() > Should I ignore them, or do I need to do something about them? The ebuilds are using an obsolete eclass. You can ignore the messages if you don't use any of these ebuilds, but it you do try to emerge one of them the build will fail. -- Neil Bothwick I just bought a microwave fireplace... You can spend an evening in front of it in only eight minutes... pgph2KgicWuNh.pgp Description: OpenPGP digital signature
[gentoo-user] eclean-dist complains about an overlay
I have been noticing these kind of errors on a couple of overlays lately: # /usr/bin/eclean-dist * Building file list for distfiles cleaning... * ERROR: dev-python/python-evas-::enlightenment failed (depend phase): * python.eclass could not be found by inherit() * * Call stack: * ebuild.sh, line 611: Called source '/var/lib/layman/enlightenment/dev-python/python-evas/python-evas-.ebuild' * python-evas-.ebuild, line 13: Called inherit 'enlightenment' * ebuild.sh, line 307: Called __qa_source '/usr/portage/eclass/enlightenment.eclass' * ebuild.sh, line 102: Called source '/usr/portage/eclass/enlightenment.eclass' * enlightenment.eclass, line 85: Called inherit 'python' * ebuild.sh, line 284: Called die * The specific snippet of code: * [[ -z ${location} ]] && die "${1}.eclass could not be found by inherit()" * * If you need support, post the output of `emerge --info '=dev-python/python- evas-::enlightenment'`, * the complete build log and the output of `emerge -pqv '=dev-python/python- evas-::enlightenment'`. * Working directory: '/usr/lib64/python3.4/site-packages' * S: '/var/tmp/portage/dev-python/python-evas-/work/python-evas-' * ERROR: x11-misc/shellementary-::enlightenment failed (depend phase): * python.eclass could not be found by inherit() * * Call stack: * ebuild.sh, line 611: Called source '/var/lib/layman/enlightenment/x11- misc/shellementary/shellementary-.ebuild' * shellementary-.ebuild, line 13: Called inherit 'enlightenment' * ebuild.sh, line 307: Called __qa_source '/usr/portage/eclass/enlightenment.eclass' * ebuild.sh, line 102: Called source '/usr/portage/eclass/enlightenment.eclass' *enlightenment.eclass, line 85: Called inherit 'python' * ebuild.sh, line 284: Called die * The specific snippet of code: * [[ -z ${location} ]] && die "${1}.eclass could not be found by inherit()" * * If you need support, post the output of `emerge --info '=x11- misc/shellementary-::enlightenment'`, * the complete build log and the output of `emerge -pqv '=x11- misc/shellementary-::enlightenment'`. * Working directory: '/usr/lib64/python3.4/site-packages' * S: '/var/tmp/portage/x11-misc/shellementary-/work/shellementary-' * ERROR: dev-python/python-elementary-::enlightenment failed (depend phase): * python.eclass could not be found by inherit() [snip...] * * Call stack: *ebuild.sh, line 611: Called source '/var/lib/layman/psix-overlay/games- arcade/fretsonfire/fretsonfire-1.3.110.ebuild' * fretsonfire-1.3.110.ebuild, line 9: Called inherit 'eutils' 'python' 'games' *ebuild.sh, line 284: Called die * The specific snippet of code: * [[ -z ${location} ]] && die "${1}.eclass could not be found by inherit()" * * If you need support, post the output of `emerge --info '=games- arcade/fretsonfire-1.3.110::psix-overlay'`, * the complete build log and the output of `emerge -pqv '=games- arcade/fretsonfire-1.3.110::psix-overlay'`. * Working directory: '/usr/lib64/python3.4/site-packages' * S: '/var/tmp/portage/games- arcade/fretsonfire-1.3.110/work/fretsonfire-1.3.110' * ERROR: dev-util/geneet-::enlightenment failed (depend phase): * distutils.eclass could not be found by inherit() Should I ignore them, or do I need to do something about them? -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Re: GCC 5.4.0 again
On Wednesday 26 Apr 2017 11:51:54 Ian Zimmerman wrote: > On 2017-04-26 10:53, Peter Humphrey wrote: > > # revdep-rebuild --library 'libstdc++.so.6' -- --exclude="gcc gentoo- > > sources" --jobs --load-average=48 > > > > ...only to find that gentoo-sources was indeed emerged, though gcc > > wasn't. What's gone wrong here? I've always found that style of > > specifying exclusions to work before. > > How does gentoo-sources depend on libstdc++ ?? > > My guess is that it doesn't, and that it wouldn't have been emerged had > you not mentioned it at all. I think revdep-rebuild does some dumb > string substitution when constructing the emerge command line, such that > gentoo-sources ends up being an atom name rather than exclusion. The reason I mentioned gentoo-sources on the command line is that I'd already tried revdep-rebuild without mentioning it, with the same result (gentoo-sources emerge started), and I was trying to prevent it and avoid the waste of resources. > Maybe > > --exclude gcc --exclude gentoo-sources > > would work? Nope. I tried that too. I just had to wait while all that pointless work was done again. -- Regards Peter
Re: [gentoo-user] In search of an truecolor-capable terminal emulator
Hi, I'm using 'simple terminal', better known as st. Here's the link to the website: http://st.suckless.org/ And here's also a link if you want other terminals that support truecolors : https://gist.github.com/XVilka/8346728 Have a nice day! -- glsubri