Software :: How To Monitor Filesystem During Compilation

Jun 14, 2011

I am working for a quite big embedded software product whose dependencies are not very well known. Especially, all public headers are collected to one flat folder and it is very hard to tell who is using what. get some information on the dependencies by monitoring the filesystem during a build. This is basically the same idea than in the commercial Electric Insight tool. I just thought it could be done for free but it seems to be not totally straightforward. The build is based on recursive makeing of the subsystems. What I would like to do would be to monitor the entire source tree (or at least the folder for public headers) and record the files accessed during compilation of each sybsystem (sybsystem "A" uses these, etc...).

I noticed it is easy to implement the monitoring using inotify or pyinotify as I did in my try. This allowed me to find there are lots of files which are not used at all. My problem really is how to convey the subsystem information to an inotify event. Now, I just get to knew which files are accessed but do not know which subsystem needs them. The easy way would be to revert to sequential make but I would like to get ideas how to solve the problem with make -j (parallel jobs). I would like to integrate the dependency data generation to the normal build process.

View 3 Replies


ADVERTISEMENT

Red Hat / Fedora :: Filesystem Check After Power Outage - WARNING: "Running E2fsck On A Mounted Filesystem May Cause SEVERE Filesystem Damage"

May 18, 2011

I am very new to linux, and I have a question regarding the filesystem check (fsck). The power recently went out and when I tried to restart linux the following error appears:

*/dev/sda1 contains file system w/errors, check forced it then goes on to say..

*An error occured during the file system check. Dropping you to a shell; the system will reboot when you leave the shell. Give root password for maintenance (or type Control-D to continue) I wasn't sure what to do, but checked some other online forums and they suggested running fsck manually - so I typed in the root password - and used the command, "fsck -A -V ; echo == $? ==" it then gave the following message

*WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage
*Would you like to continue (y/n)

Again, I wasn't sure what to do so i just checked no. I then manually turned off the computer and was prompted at the beginning to press Alt-3. I was brought to another screen and it informed me one of the drives was degraded and suggested rebuilding the array. I tried doing this, but it still brings me back to the original error of, "/dev/sda1 contains file system w/errors, check forced," and the process continues.

Also, when I tried to rebuild the array, I didn't backup any of the data on our home directory before doing this (which was probably a big mistake). After being prompted to type the root password, I was able to give the ls command and look at all the directories...the home directory where our data was stored was empty and I am afraid I may have lost some information. Is there a possibility that data was lost when I was trying to rebuild using the old drives?

View 2 Replies View Related

OpenSUSE Install :: Unknown Filesystem Type 'reiserfs' Could Not Mount Root Filesystem - Exiting To /bin/sh

Mar 27, 2010

When I try to boot to OpenSUSE I get the following error during boot-up: unknown filesystem type 'reiserfs' could not mount root filesystem - exiting to /bin/sh$

This only started happening quite recently - before this I could boot to Linux quite happily.

View 6 Replies View Related

General :: Detect Filesystem Type (can't Mount Filesystem Image .img)

Mar 11, 2011

I am trying to mount a file image, like this

mount -o loop /tmp/apps.img /media/apps

But I get the following:

mount: you must specify the filesystem type

I try ext3:

mount -o loop /tmp/apps.img /media/apps -t ext3

dmesg says:

error: can't find ext3 filesystem on dev loop6.

I've also tried ext2, vfat etc. How can I detect the filesystem type of apps.img?

View 2 Replies View Related

Ubuntu :: Finding Filesystem Type/repair Broken Filesystem?

Jul 9, 2010

I have a following problem: Recently my drive with Ubuntu 9.4 has mysteriously stopped working, i.e. when I switch the computer on it informs me that GRUB didn't find the filesystem. Well, I suppose it happens.

First, I though it was due to the drive dying, but I popped it in an external enclosure and HDTune told me the drive was fine. Wanting to recover the files on the drive before reinstalling I first tried to mount it in said external enclosure under Windows (I have Win Ext2 driver installed which used to work just fine). This time, however, drive gets assigned a letter but upon opening it Windows popped up an error saying that the drive was not formatted and whether I would like to format it then.

Unfazed by this streak of failures I tried to mount it under Linux but, alas, to no avail. I might have tried every single -t operator under mount command but it still won't budge and let me mount.

View 5 Replies View Related

General :: External Drive Read Only - WARNING! Running E2fsck On A Mounted Filesystem May Cause SEVERE Filesystem Damage

Mar 24, 2010

I've had a look at some similar threads but as I'm very new to linux they're already a bit technical for me. Sorry, this calls for someone with patience. I gather from other threads that disconnecting an external drive without unmounting is a no-no, and this seems to be the likely cause. Now the disk is read only and I'm unable to change any settings through the usual control panel on ubuntu. I'm just not familiar with the terminal instructions. I tried to cut and past a few command lines from other threads but I got some warnings that proceding could damage data. Like this one: WARNING! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage.

View 5 Replies View Related

General :: Yum Vs Self-Compilation / Difference Between These?

Mar 19, 2011

Can anybody please explain me how source code compilation gives more performance than yum?

View 3 Replies View Related

Ubuntu :: Kernel Compilation For 64 Bit?

Mar 31, 2011

Just I compiled Kernel xxx.3.6 in ubuntu in Virtual Machine for 32 bit. However, I wanted to do it for 64 bit, I dont know what parameter is necessary for 64 bit.

View 9 Replies View Related

Programming :: Compilation Errors In C?

Sep 7, 2010

When compiling a C program i get the following errors.How do i modify the code to remove these warning messages?

1) "test.c", line 614: warning #4212-D: mismatch between character pointer
types "unsigned char *" and "char *"
p_data = m_lines[p_text_idx];

[code]....

View 2 Replies View Related

Debian :: Posix Related During Compilation?

Sep 4, 2011

I am trying to compile splasutis in my debian wheezy. ./configure run well, but during make I get the following error

make --silent all-recursive
Making all in libs
CONF    libjpeg.a

[code]....

View 7 Replies View Related

Fedora :: Compilation Of Vlc Source Code?

Dec 13, 2009

how vlc source code can be compiled?

View 2 Replies View Related

Fedora :: Berkeley Db-4.8.26 Compilation Failed?

Sep 9, 2011

I have downloaded "db-4.8.26" and trying to compile it for MIPS. I am using the following configuration options

dist/configure --host=mips CC=/opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc LD=/opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-ld CFLAGS="-g -O2 -lpthread -D_REENTRANT" LDFLAGS=-Bshareable
but compilation is giving lot of errors for mutex.
./libtool --mode=compile /opt/montavista/pro/devkit/mips/fp_be/bin/mips_fp_be-gcc -c -I. -I../dist/.. -g -O2 -lpthread -D_REENTRANT ../dist/../mutex/mut_pthread.c

[Code]...

View 1 Replies View Related

Ubuntu Installation :: Run Executables After Compilation ?

Jun 12, 2010

I'm wondering why in order to run executables after compilation i have to type >"./executableName" I want it to type it just like >"executableName" (with no "./")

I don't know if this matters but I'm using tcsh for my shell...

View 2 Replies View Related

Ubuntu :: Compilation Tcl Error / Link With Tcl?

Jun 17, 2010

I am compiling a package which use Tcl and got results as follow:

/usr/bin/ld: cannont find -ltcl8.4
collect2: ld returned 1 exit status

how to link with tcl? which file to link? it is a file like libtcl.a ?

View 1 Replies View Related

SUSE :: Target Change And Re-compilation??

Jan 27, 2010

We have a 32-bit SLES build server and we compile our 32-bit application on top of it. Our target is 32-bit SLES.Now want to change our target to 64-bit SLSE and keep the application 32-bit, do we need change the build server to 64-bit and recompile the application with some flags? OR can we use the 32-bit binaries compiled on 32-bit SLES build server?We use g++ compiler. It would be great if any Linux Guru can give me the steps to be followed.

View 1 Replies View Related

General :: Compilation Of Firestarter-1.0.3.src.rpm For Powrepc?

May 13, 2011

I am working on ubuntu right now and it is quiet easy to install firestarter firewall on ubuntu thru GUI interafce but my requiremnet is to install firewall on target (powerpc 8560 ),so i have to compile firestarter source for target powerpc (montavista linux) and installed it on target. I have downloaded firestarter-1.0.3.tar & .src.rpm file both but not able to compile it for my target which is powerpc (8560).

1.How to compile source code for powerpc ( I have environment created for ppc compilation but do not know how to modify the configure file to change the compiler) because it is compiling firestarter source code with gcc compiler bydefault i. e for host. How can i change the compiler " CC "? 2.What will be the executable created to be installed on target after compilation ? 3.Is the cross compilation for target is possible?

View 3 Replies View Related

General :: Ubuntu 10.4 Freeze During Compilation?

Jul 10, 2010

I'm trying to compile a fortran code (not my own and I don't know fortran well) and have been having some trouble as the compilation starts and then fails as the computer completely freezes (as in press power button freeze). I added 1.5Gb swap memory as the computer only has 1GB and then tracked the memory use as the process happened and it seemed that the swap wasn't even used. The memory usage hit 90% of the 1.Gb and the machine froze again. The compiler is gfortran

View 1 Replies View Related

Software :: Mplayer Compilation Fails?

Sep 1, 2010

i'm trying to compile mplayer/mencoder (I need the "fribidi" flag on and my distro's package is shipped with it off.)I am using ubuntu 10.04 on x86_64.during the building process (make) it stops with the following error messages:

subreader.o: In function `sub_fribidi':
subreader.c.text+0x396): undefined reference to `fribidi_set_mirroring'
subreader.c.text+0x39d): undefined reference to `fribidi_set_reorder_nsm'

[code]....

View 2 Replies View Related

Software :: Target Change And Re-compilation?

Jan 27, 2010

We have a 32-bit SLES build server and we compile our 32-bit application on top of it. Our target is 32-bit SLES.

Now, if we want to change our target to 64-bit SLSE and keep the application 32-bit, do we need change the build server to 64-bit and recompile the application with some flags? OR can we use the 32-bit binaries compiled on 32-bit SLES build server?

We use g++ compiler. It would be great if any Linux Guru can give me the steps to be followed.

View 1 Replies View Related

Programming :: C++ Compilation And Attach In Tcl Interpreter?

Mar 25, 2011

i am working with ad hoc network but the problem is not getting any good documentation of how to compile c++ code then how to add the code into Tcl intrepreter and how to work with make file. i want to run my own algorithm using c++ and then want to incorporate it into tcl interpreter and then want to run.

View 2 Replies View Related

Slackware :: 64 - Static Compilation Broken?

Apr 23, 2010

I have a weird bug : segmentation fault appears when executing the 'retq' instruction of my sigalrm callback in static link...It seems it happens only on slackware...Here is a simple test case, compiled in shared -> no problem, static -> crash...Paste the following script in a file named "test-sigalrm-pack2.sh", and execute it: it will generate the C++ source and a simple build/test script.... Just launch the build script (tst-sigalrm-build).

Code:
#!/bin/sh
#test-sigalrm-pack2.sh

[code]....

View 14 Replies View Related

Slackware :: Current And Amarok Compilation?

Feb 27, 2010

tried to compile amarok in slackware current? I get compilation errors with versions 2.3 Beta and 2.2.2. It used to compile fine when my Slackware was in a custom state, (Slackware 13 + kde 4.3.4 + kde dependencies upgraded) but not anymore after syncing it to slackware-current. I also tried alien bob's KDE 4.4 packages but it did not make any difference at all.Any Hints? I get the feeling it has to do with the new development packages (gcc-4.4.4, etc) but I'm not sure.

View 5 Replies View Related

CentOS 5 :: Php Source File Compilation?

May 25, 2011

Can anybody share a link or steps for Php 5.3.3 and Apache 2.2.19 source file compilation

View 3 Replies View Related

CentOS 5 :: Compilation Of Gobject-introspection

Sep 21, 2011

I am trying to compile gobject-introspection-0.6.2in centOS 5.6 [Linux localhost.localdomain 2.6.39-4.el5.elrepo #1 SMP PREEMPT Thu Aug 4 19:58:19 EDT 2011 i686 i686 i386 GNU/Linux]. When i run ./configure it checks for all dependencies and run successfully but when i run i got a error <gio/gio.h> not found. but in fact i have set the GIO_UNIX_CFLAGS in the ./configure options. The configure command is ->

./configure GIO_UNIX_CFLAGS="-I/usr/local/glib/include/gio-unix-2.0
-I/gio/usr/local/glib/include/glib-2.0
-I/usr/local/glib/lib/glib-2.0/include"[code]....

By observing the make errors, its obvious that <gio/gio.h> is not found which is in the directory /usr/local/glib/include/glib-2.0/gio and set through GIO_UNIX_CFLAGS variable.

View 3 Replies View Related

Debian Configuration :: Kernel Compilation Duration

Apr 10, 2011

I have squeeze installed on an AMD machine. i compiled the kernel based on the config file in the /boot.
it was surprisingly much time:

This was the first time using AMD machine, i had experience with some P4 machine to have much shorter kernel compilation time.

The machine:

what do i do in the wrong way? or is it the "feature" of the this old AMD?

View 7 Replies View Related

Fedora Installation :: F11 - VirtualBox And Kernel Compilation

Sep 13, 2009

I'm trying to get a fedora guest running reliable smp under VirtualBox 3.0.6. The VirtualBox manual says "Some Linux distributions, for example Fedora, ship a Linux kernel configured for a timer frequency of 1000Hz. We recommend to recompile the guest kernel and to select a timer frequency of 100Hz." So I tried recompiling the kernel. Being a responsible lad, when it came to setting the kernel specs:

Code:
# Polite request for people who spin their own kernel rpms:
# please modify the "buildid" define in a way that identifies
# that the kernel isn't the stock distribution kernel, for example,
# by setting the define to ".local" or ".bz123456"
#
# % define buildid .local
%define buildid .rim_for_vbox
I've successfully built and installed kernel, headers and firmware:kernel-2.6.30.5-43.rim_for_vbox.fc11.x86_64.rpm
kernel-firmware-2.6.30.5-43.rim_for_vbox.fc11.x86_64.rpm
kernel-headers-2.6.30.5-43.rim_for_vbox.fc11.x86_64.rpm
The system is working fine (well, so far). But trying to install the VirtualBox Guest Additions kernel add-ons still gives me

Please install the build and header files for your current Linux kernel. The current kernel version is 2.6.30.5-43.rim_for_vbox.fc11.x86_64. I'm pretty sure this is because my kernel doesn't match the development packagekernel-devel-2.6.30.5-43.fc11 (x86_64). So the key question is, how on Earth do I create a development package to match the responsibly-renamed kernel?

View 4 Replies View Related

OpenSUSE :: Getting A Weird Compilation Error With Malloc.h?

Aug 3, 2010

I am getting a weird compilation error with malloc.h/usr/include/malloc.h:86: error: expected ')' before '__size'This is what the code looks like inside malloc.hextern void *(*__morecore) __MALLOC_PMT ((ptrdiff_t __size))When I did some googling, it was stating that ptrdiff_t was not defined; but, it is.#define __malloc_ptrdiff_t ptrdiff_t

View 4 Replies View Related

Ubuntu :: Unable To Complete Kernel Compilation

Feb 2, 2010

Here is what I am getting with any kernel I am attempting to compile these days: [URL]

I pasted as much as I could salvage from the terminal.

Details here: [URL]

View 9 Replies View Related

Ubuntu :: Shell Script For Opencv Compilation?

May 30, 2010

I installed Opencv in Lucid.But i dont know how to compile a program (.c/.cpp) by giving additional opencv flags. So i found another method, There is Buildall.sh (given Below) along with the samples in Opencv Source.I copied buildall.sh to my working directory and using it but there is a problem that each time it compile all the source files in the .

But what i need is a "build.sh" file such that it compile only the argument file given from terminal using opencv flags as in buildall.sh. like follows

Code:
sh ./build.sh prog.c
then it will compile prog.c
Code:
sh ./build.sh prog2.cpp
then it will compile prog2.cpp

its for my project .imy entire project using opensource tools and softs only. if possible somone pls explain the shell script in build all.sh

[Code]...

View 5 Replies View Related

Ubuntu :: TCSH - Running Executable After Compilation

Jun 12, 2010

I'm new with linux, and I'm wondering why in order to run executable after compilation I have to type
>"./executableName" I want it to type it just like
>"executableName" (with no "./")
I don't know if this matters but I'm using tcsh for my shell...

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved