LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gcc exit status 1 (https://www.linuxquestions.org/questions/linux-software-2/gcc-exit-status-1-a-108251/)

Daddio 10-25-2003 01:44 AM

gcc exit status 1
 
I'm trying to install an application. In the readme file it states to run

./configure
./make

then

python setup.py build
python setup.py install


I get stuck at build with the following error:

error: command 'gcc' failed with exit status 1

I've looked at the man & info pages for gcc, and after having scanned through over 9,000 lines in each, I found no reference to exit status codes.

I do have the python-devel package installed for my distro.

Why the hang-up???

Bernd

Kurt M. Weber 10-25-2003 10:13 AM

What does it say BEFORE that? Does it have any problems compiling any of the source files?

DurantDL 10-25-2003 02:18 PM

Re: gcc exit status 1
 
Unless you saw warnings from running "configure" or "make",
there is something wrong within the "setup.py" python script.

FYI, exit status codes indicate whether programs ran successfully.
Normal exit status == 0, so "1" may indicate a warning or failure.
Shell scripts (for "/bin/bash") check the "$?" exit status variable.

Daddio 10-25-2003 03:38 PM

Here's the part of the output that shows problems:

/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../../i486-suse-linux/bin/ld: cannot find -lImaging
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

I didn't see this yesterday. It looks like 'ld' is returning the error?!? I've not used ld before, so I'm not sure what to look for.

I extracted the tar, configured, and am executing python from a temp directory, and as root. There are no instructions in the readme or install files that state that I should install from a certain directory, other that the extracted ones.

Thanks,

Bernd

DurantDL 10-25-2003 05:37 PM

"gcc" is a compiler, and "ld" is the linkage loader;
The executable being built needs a library called "Imaging".
Perhaps you can find "libImaging.a" or "libImaging.so".
You may be missing some prerequisite library module.

Btw, "ld" gets control to dynamically locate shared libraries,
especially the system (kernel) libraries, from most executables.


All times are GMT -5. The time now is 04:58 AM.