[arch-general] Makefile possibly removed libc?
So I am trying to learn about c programming and I was editing a simple c program I got off the web. I was modifing the makefile to understand what it does and after building it from inside sublimetext 2 I noticed that my root directory had zero free space. I rebooted and had 2 gigs free again, but now when I try to launch sublime text I get a segfault. Dmesg reports an error 4 in libc-2.21.so I have not had any internet connection on this machine for 2 months so I know it wasn't update related. My key suspect is the last few line of the make file which I thought I had commented out but actually missed and read: Clean: rm -f *.so rm -f coil rm -f tables When I built it from the terminal in its directory it may have been fine, but when I built it thru sublime I suspect the path was different in some way and it deleted files it shouldn't have. Can anyone help me out here? Sublime is what this pc is for and I am kind of hosed! Can I just rebuild some library? Is my suspicion misplaced and you need more info? Is there a way to see what files have been deleted in the last 24 hours dispite a reboot?/ Thanks!
Hi Vattan, You can use pacman to check what files each package is supposed to have. A quick google search nets me a bash script [1] to do that. After that, you can just reinstall all the packages which have files missing. If pacman does not work (or anything else that might be required for installing packages) you can always do it from the live CD [2]. Best, Chris [1] - https://bbs.archlinux.org/viewtopic.php?id=34281 [2] - https://wiki.archlinux.org/index.php/Change_root#Using_arch-chroot On Thu, Sep 10, 2015 at 8:15 AM, vattan <vatan.uml@gmail.com> wrote:
So I am trying to learn about c programming and I was editing a simple c program I got off the web. I was modifing the makefile to understand what it does and after building it from inside sublimetext 2 I noticed that my root directory had zero free space. I rebooted and had 2 gigs free again, but now when I try to launch sublime text I get a segfault. Dmesg reports an error 4 in libc-2.21.so
I have not had any internet connection on this machine for 2 months so I know it wasn't update related. My key suspect is the last few line of the make file which I thought I had commented out but actually missed and read:
Clean: rm -f *.so rm -f coil rm -f tables
When I built it from the terminal in its directory it may have been fine, but when I built it thru sublime I suspect the path was different in some way and it deleted files it shouldn't have. Can anyone help me out here? Sublime is what this pc is for and I am kind of hosed!
Can I just rebuild some library? Is my suspicion misplaced and you need more info? Is there a way to see what files have been deleted in the last 24 hours dispite a reboot?/
Thanks!
Thu, 10 Sep 2015 09:13:22 +0200 Chris Sakalis <chrissakalis@gmail.com>:
Hi Vattan,
You can use pacman to check what files each package is supposed to have. A quick google search nets me a bash script [1] to do that. [...] [1] - https://bbs.archlinux.org/viewtopic.php?id=34281
Yes, you can use pacman to check what files each package is supposed to have: with pacman -Q(q)k(k), see the manpage. --byte
Thanks guys, but pacman -qk sublime-text and glibc both listed a pile of files and said nothing was missing. Normally when I screw up this bad id uninstall/reinstall but I will not have net access on this machine for another two weeks so its sneaker net for me. any other ideas?
Hi Vattan, unless you ran sublime as root it could have not damaged anything system relevant. Usually if I run out of disc space, I made the observation, that either my home or the /tmp directory is screwed up. Try to delete/rename the .sublime folder in your home. Also, if your /tmp directory is not in RAM, clean it. If neither helps, try starting sublime as a different user (with clean home directory). Good luck!
On Thu, Sep 10, 2015 at 2:15 AM, vattan <vatan.uml@gmail.com> wrote:
When I built it from the terminal in its directory it may have been fine, but when I built it thru sublime I suspect the path was different in some way and it deleted files it shouldn't have. Can anyone help me out here?
If you did happen to run this as root and removed something you would rather not remove, you can reinstall any packages you want by running pacman -Syu <package>. Aaron
participants (5)
-
Aaron Laws
-
Chris Sakalis
-
Jens Adam
-
Jürgen Werner
-
vattan