错误127 - 目标失败的配方 - 从Pepper 19编译Google NaCl示例时?

问题描述 投票:2回答:1

当我在我的Cygwin终端中运行make批处理文件时,我得到以下输出:

mparadis@A-082-MPARADI-0 ~/pepper_19/examples$ make  
make -C dlopen  
make[1]: Entering directory `/cygdrive/c/nacl_sdk/pepper_19/examples/dlopen' /cygdrive/c/nacl_sdk/pepper_19/toolchain/win_x86_glibc/bin/i686-nacl-g++ -o dlopen_x86_32.o -c
dlopen.cc -m32 -g -O0 -pthread -std=gnu++98 -Wno-long-long -Wall  
Makefile:92: recipe for target `dlopen_x86_32.o' failed  
make[1]: *** [dlopen_x86_32.o] Error 127  
make[1]: Leaving directory `/cygdrive/c/nacl_sdk/pepper_19/examples/dlopen'  
Makefile:33: recipe for target `dlopen_TARGET' failed  
make: *** [dlopen_TARGET] Error 2

花了一些时间才能正确设置Python,因为我需要语言解释器包,并且不知道我没有它。我的Python的env变量被正确设置为C:\python27。编译我的同事代码时,我得到了相同的结果,我可以在Mac或Linux机器上编译。不幸的是,我需要在我的Cygwin环境中使用它。

任何有使用谷歌本地客户端的经验或知道为什么会发生这种情况的人请告知。我已经这么久了,我盯着电脑屏幕盯着他看。

更新:

如果我将--version标志插入到makefile中的引用命令中,我会收到与上面相同的错误。但是,如果我按照与make文件相同的工作目录键入命令,则会得到以下内容:

mparadis @ A-082-MPARADI-0~ / pepper_19 / examples / dlopen> $ /cygdrive/c/nacl_sdk/pepper_19/toolchain/win_x86_glibc/bin/i686-nacl-g++.exe -o dlopn_x86_32.o -c dlopen.cc -m32 -g -O0 -pthread -std = gnu ++ 98 --version

mparadis @ A-082-MPARADI-0~ / pepper_19 / examples / dlopen $

换句话说,它只是想一瞬间,然后返回提示。

makefile google-nativeclient
1个回答
0
投票

tl;dr:您的cygwin可能有错误,并将此返回代码提供给所有批处理文件。我这样做。我的cygwin版本:

$ uname -srv
CYGWIN_NT-6.1-WOW64 1.7.17(0.262/5/3) 2012-10-19 14:39

从你的评论中,我看到一个名为“make.bat”的东西:

mparadis@A-082-MPARADI-0 ~/pepper_19/examples/dlopen
$ ls dlopen.cc dlopen.html eightball.cc eightball.h make.bat Makefile

您也可以使用这个小bash脚本测试您的cygwin。

#!/bin/bash
echo echo foo %errorlevel% bar >temp.bat
./temp.bat
if [ $? -eq 127 ]; then echo "bug"; fi

如果你的目标制作配方使用make.bat,并且你有这个bug,那么这个cygwin错误导致错误127

© www.soinside.com 2019 - 2024. All rights reserved.