LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   my binary is not created without giving error (https://www.linuxquestions.org/questions/linux-newbie-8/my-binary-is-not-created-without-giving-error-891425/)

kajagupt 07-13-2011 01:19 AM

my binary is not created without giving error
 
Hi All,

I am very new in linux , and executing my package on red hat version 2.6.18-164.el5
and displaying no error but my binary is not created what could be problem ??

make[1]: Leaving directory `/root/kartik/POC_SSI_1/iub_dogw/ipr/common/cspl'
gcc -print-file-name=libgcc.a -g -Wall -Werror -D_GNU_SOURCE -r -o /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/bcpapp -lgcc -lc /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/libsched.a /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/libprocm.a /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/libnodebm.a /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/libsm.a /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/libstackm.a /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/libcommon.a /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/libnbap.a /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/librrc.a /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/libcspl.a /root/kartik/POC_SSI_1/iub_dogw/bcpapp/../bin/x86_64-redhat-linux/bcpapp/libasn1code.a -lpthread -lrt
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/libgcc.a

smallpond 07-14-2011 10:46 PM

You should not be running make as root or building in the /root directory.

If you read the documentation for the gcc option that you are using it says:
Quote:

`-print-file-name=LIBRARY'
Print the full absolute name of the library file LIBRARY that
would be used when linking--and don't do anything else. With this
option, GCC does not compile or link anything; it just prints the
file name.
and then it printed what you asked it to:
Quote:

/usr/lib/gcc/x86_64-redhat-linux/4.1.2/libgcc.a

kajagupt 07-15-2011 01:28 PM

Thanks a lot ,
 
now i got it.


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