Fedora :: Eclipse Auto-Created Makefile Crashes Make

Dec 11, 2009

I'm just learning to use Eclipse (have previously been a vim+make developer). I created the standard Hello World project following the tutorial. The program compiles fine, but if I build it again without cleaning the project, make aborts with a glibc double free message (pasted below). The same thing happens if I run make in the Debug directory outside eclipse. I don't know make well enough to figure out what the problem is, and to my mind Eclipse shouldn't be generating a buggy makefile anyway.

I've attached a tarfile of the project directory. Download the file and the following sequence of commands should show you the problem:
tar xvzf HelloWorld.tar.gz && cd HelloWorld/Debug && make && make
Also, if you think it would be worthwhile submitting a bugreport to the Fedora Eclipse dev team, let me know where I can do that and I'll be happy to.

Error messages:
11:07:34 [michael@tablet Debug]$ make
*** glibc detected *** make: double free or corruption (fasttop): 0x0000000001fd5780 ***
= Backtrace: =
/lib64/libc.so.6[0x3b03e75a96]
make[0x411f46]
make[0x411fb2]
make[0x411feb]
make[0x40771e]
make[0x411177]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3b03e1ea2d]
make[0x402429]
= Memory map: =
00400000-00428000 r-xp 00000000 fd:04 1517952 /usr/bin/make
00628000-0062a000 rw-p 00028000 fd:04 1517952 /usr/bin/make
01fc0000-01fe1000 rw-p 00000000 00:00 0 [heap]
3b03a00000-3b03a1f000 r-xp 00000000 fd:00 81929 /lib64/ld-2.10.1.so
3b03c1e000-3b03c1f000 r--p 0001e000 fd:00 81929 /lib64/ld-2.10.1.so
3b03c1f000-3b03c20000 rw-p 0001f000 fd:00 81929 /lib64/ld-2.10.1.so
3b03e00000-3b03f64000 r-xp 00000000 fd:00 81933 /lib64/libc-2.10.1.so
3b03f64000-3b04164000 ---p 00164000 fd:00 81933 /lib64/libc-2.10.1.so
3b04164000-3b04168000 r--p 00164000 fd:00 81933 /lib64/libc-2.10.1.so
3b04168000-3b04169000 rw-p 00168000 fd:00 81933 /lib64/libc-2.10.1.so
3b04169000-3b0416e000 rw-p 00000000 00:00 0
3b08e00000-3b08e19000 r-xp 00000000 fd:00 81991 /lib64/libgcc_s-4.4.1-20090729.so.1
3b08e19000-3b09019000 ---p 00019000 fd:00 81991 /lib64/libgcc_s-4.4.1-20090729.so.1
3b09019000-3b0901a000 rw-p 00019000 fd:00 81991 /lib64/libgcc_s-4.4.1-20090729.so.1
7f6032b9d000-7f6037c70000 r--p 00000000 fd:04 1155417 /usr/lib32/locale/locale-archive
7f6037c70000-7f6037c74000 rw-p 00000000 00:00 0
7fffa6c19000-7fffa6c2e000 rw-p 00000000 00:00 0 [stack]
7fffa6c44000-7fffa6c45000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted

View 1 Replies


ADVERTISEMENT

General :: Make Install Error With Created Makefile

Jun 3, 2011

I am new to Linux and I am trying to install a C program from source using Makefile. So I 've created a "hello world" program and then a Makefile to install it. Then I logged in as root and used
make install

The following error occurs:
make: execvp: /usr/bin: Permission denied
make: *** [install] Error 127

Here is the Makefile:
CC=gcc
CFLAGS=-c -Wall
PROGS = hello
INSTDIR = $(prefix)/usr/bin/
INSTMODE = 0755
INSTOWNER = root
INSTGROUP = root

all: $(PROGS)
$(PROGS): main.o
$(CC) main.o
main.o: main.c
$(CC) $(CFLAGS) main.c
install:$(PROGS)
$(INSTALL) $(INSTDIR)
$(INSTALL) $(INSTMODE) $(INSTOWNER) -o $(INSTGROUP) $(PROGS) $(INSTDIR)
clean:
rm -rf $(PROGS) *o $(PROGS)
So, where are the errors

View 3 Replies View Related

Programming :: Makefile Error Shown Only By Eclipse?

Apr 26, 2010

I created a quick makefile with the following lines:

Code:

$(BINARY):
echo "----- Linking $(BINARY)----"
gcc -m32 -g src/* -Iinclude -I$(HOME)/include -I$(HOME)/include2 -D_LINUX -DSYSV -DPOSIX -L$(HOME)/shared/lib32 -lidlib -lid2lib -o bin/sampleapp
echo "---- done ----"

It builds fine when I build from the command line ( make -f sample.mk).

However, it does not build when building from eclipse (which essentially calling the same makefile). The make output shows exactly the same as what I got from the command line build, except the last line showing

Code:

collect2: cannot find 'ld'
make: *** [sampleapp] Error 1

I am not sure why it tries to call "ld" when building from eclipse.

View 6 Replies View Related

Fedora :: Undefined Reference To `pthread_create' When Install Bochs And Make The Makefile

Oct 26, 2009

when i install bochs and make the makefile why undefined reference to `pthread_create'

View 1 Replies View Related

Programming :: Makefile - Error When Run The Make Run - No Rule To Make Target - Shell.h

Sep 15, 2010

I want to gave much details as possible. working directory (~/a1/shell) in the shell directory i have Makefile. also in the shell directory i have subdirectory's (obj, src, include)

My current Makefile

Quote:

#What needs to be built to make all files and dependencies

clean:

# End of Makefile

I wanted it so: all .o files are created in the obj subdirectory, and my application, sshell, is created in the shell directory.

I am getting this error when i run the make run: No rule to make target 'shell.h', needed by 'shutil.o'. stop

View 1 Replies View Related

OpenSUSE :: Eclipse Crashes After Update (On 11.3)

Sep 4, 2010

My Eclipse crashes after some updates on 11.3

I got an error :
./eclipse
The program 'Eclipse' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 163951 error_code 11 request_code 53 minor_code 0)
Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)

I googled and found some solutions by downgrading xulrunner, but no dice.

View 4 Replies View Related

OpenSUSE :: Eclipse Cdt Helios Crashes?

Apr 28, 2011

I've just installed openSUSE 11.4 64bit Gnome and after that I downloaded eclipse-cpp-helios-SR2-linux-gtk-x86_64.tar.gz (CDT version for eclipse). I downloaded the linuxtools and tried to write some lines and I got a crash. I have the Oracle Java installed on the system. I restarted eclipse but seems that I cannot get rid of this crash. Did you experince something like this?

This is the output from cli:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f48a3a2a89b, pid=16354, tid=139949755737856
#
# JRE version: 6.0_24-b07

[Code]...

View 6 Replies View Related

General :: Eclipse Crashes While Running / Solve This?

Jun 17, 2010

I'm having a problem with eclipse, it keeps crashing while I'm working working with it, running from the terminal i found this:

# A fatal error has been detected by the Java Runtime Environment code...

i have googled and i found a ubuntu forum where a guy had the same problem, his solution was disabling the php browser, so i try to do it and go to window>preferences>General>Web browser... as soon as i click "web browser" it just crashes with the same error above, so i guess the "browser" is the problem, i didn't find the "php browser" option so that's why i click on "web browser"

if anybody has a solution for this please help me, i would be awesome to solve this.

View 11 Replies View Related

Slackware :: Eclipse 3.6 Crashes When Autocomplete Activated

Nov 3, 2010

I use Slackware 13.1 and eclipse 3.6 (Helios). When I do some programming the eclipse is always crashing. E.g.: class c, c.gwtC(); when I write the "." and the autocomplete is activated the eclipse crashes.

View 3 Replies View Related

Fedora :: Emacs - Error "make: *** No Targets Specified And No Makefile Found. Stop"

Aug 5, 2010

I recently switched over to Fedora 13 but I'm having a bit of trouble. I've tried writing simple programs in Emacs and Eclipse but neither will compile. It always gives the error, "make: *** No targets specified and no makefile found. Stop."

I've looked around at a couple of forums, but people with the same issue can't install software, but I can. I got Fedora from the Fedora website so I know its complete, but I have the sneaking suspicion that I'm just missing a file or something.

View 2 Replies View Related

Ubuntu Installation :: Eclipse Crashes - Keeps Closing Unexpectedly

Apr 9, 2010

I am facing a problem with Eclipse after I installed it today. It keeps closing [unexpectedly] after I click a choice like closing one of the pop-up windows that shows after I choose an option from the menus in the top. With no errors returned or shows up! As an example, when I choose to create new project, and fill in the project information [Name, type, path] and when I click FINISH all Eclipse closes, and I need to re-open it again [I find the project that I created there].

View 4 Replies View Related

Software :: Eclipse Crashes But Leaves No Clue / Remedy This?

Mar 29, 2011

I'm a heavy user of Eclipse. It's my workhorse. Today, the thing started crashing on me. So, I started the thing from the console to see what the last message is before crashing, but...nothing. It crashes whenever I hover over something that is supposed to give a pop-up (you know, the yellow-ish popup with a help text).

Any clues to what I can do to remedy this? As I noted, there are no return messages, so, that's all I have here...

View 3 Replies View Related

General :: Make Nano Support Auto-complete And Auto-bracket Closing?

Feb 20, 2010

Does anyone know if there's a way to make nano support auto-complete and auto-bracket closing?

View 1 Replies View Related

Ubuntu :: Created LiveCD With ISO - How To Auto Deploy

Apr 26, 2011

I've created a live cd with wubuntu.iso on it and am having trouble getting it to deploy on another laptop. Is there another file in the remastersys folder that needs to be added so it will auto deploy? This is part of remastersys creation for cloning your system to deploy on another laptop/pc.

View 4 Replies View Related

General :: Use Make And Makefile To Compile And Link Some .cpp/.h

Sep 20, 2009

I've been trying to figure out how to use make and makefile to compile and link some .cpp/.h. All i seem to find on google says to read the README for the software. But this is my own created c++ project. Im just looking for a simple makefile for my own .cpp/.h files( about 20 total).

I have tried using 2 different makefile "examples" as a template, but neither worked. I am getting error saying "file1.cpp: no newline character at end of file". or something to that degree.

View 5 Replies View Related

General :: Make Rules In A Makefile - Debug

Nov 17, 2009

Does anyone know if it is possible to make rules in a Makefile that would work like this:

> make debug module
or
> make module debug

where module can be any module that has a specific rule in the Makefile.

The thing I have is a Makefile with different rules that I compile like this:

> make module

What I would like is to add an option so I can compile whichever module with debug-information just by adding a debug to the make command. The debug-information I know how to do, the problem is how to make the Makefile work...

View 2 Replies View Related

Server :: Make: *** No Targets Specified And No Makefile Found?

Aug 4, 2011

im trying to install Squid clamav with squid(fedora11, 386MB, 2.6kernel)..i configured clamd and is working fine,(squid wrking fine) then i tried to install squidclamav via (yum -y install curl-devel).then i downloaded squidclamav-4.0.tar.gz and extracted.. then i run ./configure and then make.but make install command wont work; it shows an error.

View 4 Replies View Related

Software :: Makefile - Passing Argument To Make?

Mar 6, 2010

I have a number of projects, say test1, test2, test3,. I want to make and install all of them in exactly the same way; so I would like to say
make test2
make install test2
with the same Makefile.

In other words, I would like to pass the argument test2 (or just 2) to the Makefile, so this is taken as the target for make or make install. This must be a common wish; but I don't see any appropriate option with "man make" on my Fedora-12 system.

View 1 Replies View Related

Programming :: Make Recursive Makefile Work?

Jun 8, 2011

I'm trying to make recursive makefile work but it's giving me two problems. I have a top folder with the main Makefile and one Makefile for each sub folder 'one' and 'two'. Makefile in subfolder 'one' and 'two' are identical. The top Makefile (still a bit messy) looking like this:

Code:
# Directories
CC = gcc
CFLAGS = -Wall -Wextra
TARGET_DIR = bin
MAIN_FILE = one.c

[Code]...

View 4 Replies View Related

Fedora :: GNU Auto Series Will Not Generate Make Script?

Aug 11, 2010

I was tried to compile the brl-cad for my IA32 machine. I install all the GNU auto series (autoconf, automake, libtool). Then I run sh autogen.sh asnstructed by the installation guide. But after the preparation finish, I check my directory. The make script does not exist. And everything broke down here. When I tried to run "make", I got this feed back: make: *** No targets specified and no makefile found. Stop.(of course, there is no make file)I had run every step by using root account. Hence, there should not be any restriction on operation.

View 4 Replies View Related

Debian Configuration :: Make MenuConfig Cannot Find Makefile

May 23, 2011

Trying to build a driver for a TV tuner card. When I enter 'make menuconfig', I get this error:

make[2]: Entering directory `/usr/src/linux-headers-2.6.32-5-amd64'
/lib/modules/2.6.32-5-amd64/source/scripts/Makefile.build:44: /lib/modules/2.6.32-5-amd64/source/scripts/basic/Makefile: No such file or directory
make[3]: *** No rule to make target `/lib/modules/2.6.32-5-amd64/source/scripts/basic/Makefile'.  Stop.
make[2]: *** [scripts_basic] Error 2

Suspect I need another package in addition to linux-headers.
Running Squeeze, amd64, KDE.

View 7 Replies View Related

Fedora :: Backup Drive Listed Twice (Make Auto Set Permissions)

Dec 14, 2009

I have an issue that my BACKUP drive is listed twice. (internal FAT) I am running F12 32b. I have it listed in FSTAB so it will automount & set the permissions. I did this in the earlier versions I upgraded from. I would like to either get rid of the other entry or, if easier, make it auto & set permissions but I don't know where it is.

View 11 Replies View Related

Programming :: Makefile Error - No Rule To Make Target Modules

Mar 30, 2010

Code:
anisha@linux-p0mg:~> uname -r && cat /etc/*release
2.6.25.5-1.1-pae
openSUSE 11.0 (i586)
VERSION = 11.0
My small Makefile:

Code:
obj-m += serialPortISR.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
Errors I receive:

Code:
anisha@linux-p0mg:~/Desktop/serialPortISR_31_10_09> make
make -C /lib/modules/2.6.25.5-1.1-pae/build M=/home/anisha/Desktop/serialPortISR_31_10_09 modules
make[1]: Entering directory '/usr/src/linux-2.6.25.5-1.1-obj/i386/pae'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory '/usr/src/linux-2.6.25.5-1.1-obj/i386/pae'
make: *** [all] Error 2

View 12 Replies View Related

Ubuntu Installation :: Cannot 'make' Jahshaka - No Targets Specified And No Makefile Found - Stop

Dec 5, 2010

I needed an open source alternative to after effects so i went for jahshaka but after following the instructions, i type in 'make' and hit return and it says "make: *** No targets specified and no makefile found. Stop." am i missing something obvious? i have looked around the web, but no-one has this problem that i can find i am using ubuntu 10.04.

View 2 Replies View Related

Networking :: Error - Man/Makefile.am:11: `%'-style Pattern Rules Are A GNU Make Extension

Jun 24, 2011

I am facing an error when I run the following command.

Command: autoreconf -i
Error: man/Makefile.am:11: `%'-style pattern rules are a GNU make extension

[code]....

I'm using Fedora Core 11 on Dell Machine Precision 360

View 3 Replies View Related

Slackware :: Makefile:535: /usr/src/linux-2.6.33.4/arch/i486/Makefile: No Such File Or Directory

May 31, 2010

I just downloaded slackware 13.1(x86) and i'm trying to compile ndiswrapper-1.56 using the slackbuild from slackbuils.org and i'm getting this error:

Code:

Makefile:535: /usr/src/linux-2.6.33.4/arch/i486/Makefile: No such file or directory
make[2]: *** No rule to make target `/usr/src/linux-2.6.33.4/arch/i486/Makefile'. Stop.
make[1]: *** [modules] Error 2
make: *** [all] Error 2

looks like the folder i486 doesn't exist

View 2 Replies View Related

Ubuntu :: Mousetrap Doesnot Work \ Error:make: *** No Targets Specified And No Makefile Found?

Dec 17, 2010

i have installed mouse trap by the Ubuntu "easy peasy" software center ,but for some reason it didn't work so i uninstalled it and start to install the mouse trap from herehttp://live.gnome.org/MouseTrap/Installationbut when did the "make" step it gave me that error:make: *** No targets specified and no makefile found. Stop.so how i fix thatand another problem that i have is when i go to a live radio on the net to listen it dose not work how do i change it to work like i changed to the "vlc player" to be the first program that opens

View 2 Replies View Related

Fedora :: Download / Installing Eclipse Returning "no Package Eclipse Available"

May 13, 2011

I am new to Fedora (I have always used ubuntu in the past), and I am trying to download eclipse. Unfortunately, "sudo yum install eclipse" is returning "no package eclipse available". I think this means that I am missing the correct repo, but I'm not sure which is the right one and don't know how to add it to my repo list for this version. My version of fedora is centos5 based, and my current repo list is the following:

[Code]...

View 4 Replies View Related

Ubuntu :: How To Make OPT Android Writable By Eclipse

Jan 16, 2011

I've installed eclipse and android manually at /opt. How do I make /opt/android writable by eclipse ? I don't want to chmod it to 777. Specifically I need to know the group eclipse belongs to.

View 3 Replies View Related

Programming :: Make Objects Created With New Garbage-collected

Apr 30, 2011

I read this guide: [URL].. but I still don't understand how to make objects created with new garbage-collected. Could someone explain how or find a link to an explanation?

View 13 Replies View Related







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