make:*** []错误1错误 [英] make: *** [ ] Error 1 error

查看:321
本文介绍了make:*** []错误1错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  make:**我试图在gcc上编译一个Pro * C文件,并且遇到这个错误: * [MedLib_x.o]错误1 

这是make打印的命令:

  / usr / bin / gcc -g -fPIC -m64 -DSS_64BIT_SERVER -I / home / med / src / common  -  
I / u01 / app / oradb11r2 / product / 11.2.0 / dbhome_3 / rdbms / demo
-I / u01 / app / oradb11r2 / product / 11.2.0 / dbhome_3 / rdbms / public
-I / u01 / app / oradb11r2 / product / 11.2.0 / dbhome_3 / precomp / public
-I / u01 / app / oradb11r2 / product / 11.2.0 / dbhome_3 / xdk / include INCLUDE = / u01 / app / oradb11r2 / product / 11.2.0 / dbhome_3 / precomp / public -lnapi -ltabs -c MedLib_x.c

请帮助我为什么这会让错误来临?虽然也创建了对象文件。

解决方案

从GNU Make错误附录中可以看出,这不是一个Make错误,而是一个错误来自gcc。


'[foo]错误NN'
'[foo]信号描述'
这些错误根本不是真的犯错误。它们意味着一个作为配方一部分被调用的程序返回了一个非0错误代码('错误NN'),它将解释视为失败,或者以某种其他异常方式(使用某种类型的信号)退出。请参阅食谱中的错误。
如果没有***被附加到消息中,那么子进程失败,但makefile中的规则前缀为 - 特殊字符,因此忽略该错误。

所以为了解决这个问题,需要gcc的错误信息。直接将Makefile中的命令粘贴到命令行并查看gcc所说的内容。 有关制作错误的更多详情,请点击此处


I am trying to compile a Pro*C file on gcc and I am getting this error :

make: *** [MedLib_x.o] Error 1

This is the command printed by make:

   /usr/bin/gcc -g -fPIC -m64 -DSS_64BIT_SERVER  -I/home/med/src/common -
I/u01/app/oradb11r2/product/11.2.0/dbhome_3/rdbms/demo 
-I/u01/app/oradb11r2/product/11.2.0/dbhome_3/rdbms/public 
-I/u01/app/oradb11r2/product/11.2.0/dbhome_3/precomp/public 
-I/u01/app/oradb11r2/product/11.2.0/dbhome_3/xdk/include INCLUDE=/u01/app/oradb11r2/product/11.2.0/dbhome_3/precomp/public -lnapi -ltabs -c MedLib_x.c

Please help me why this make error is coming? Although object file is also created.

解决方案

From GNU Make error appendix, as you see this is not a Make error but an error coming from gcc.

‘[foo] Error NN’ ‘[foo] signal description’ These errors are not really make errors at all. They mean that a program that make invoked as part of a recipe returned a non-0 error code (‘Error NN’), which make interprets as failure, or it exited in some other abnormal fashion (with a signal of some type). See Errors in Recipes. If no *** is attached to the message, then the subprocess failed but the rule in the makefile was prefixed with the - special character, so make ignored the error.

So in order to attack the problem, the error message from gcc is required. Paste the command in the Makefile directly to the command line and see what gcc says. For more details on Make errors click here.

这篇关于make:*** []错误1错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆