I have got the source files from insight-weekly-CVS-7.0.50-20091130. I have got the following errors. Thanks for your help.
config.status: executing bfd_stdint.h commands ./config.status: line 2602: cmp: command not found
config.status: executing default commands
mingw32-make[3]: Nothing to be done for 'info'.
mingw32-make[3]: Leaving directory 'C:/insight-weekly-CVS-7.0.50-20091130/src/bfd/po'
mingw32-make[3]: Entering directory 'C:/insight-weekly-CVS-7.0.50-20091130/src/bfd'
mingw32-make[3]: Nothing to be done for 'info-am'.
mingw32-make[3]: Leaving directory 'C:/insight-weekly-CVS-7.0.50-20091130/src/bfd'
mingw32-make[2]: *** [Makefile:1546: info-recursive] Error 1
mingw32-make[2]: Leaving directory 'C:/insight-weekly-CVS-7.0.50-20091130/src/bfd'## Heading ##
mingw32-make[1]: *** [Makefile:3333: all-bfd] Error 2
mingw32-make[1]: Leaving directory 'C:/insight-weekly-//CVS-7.0.50-20091130/src'
mingw32-make: *** [Makefile:854: all] Error 2
Related
i am installing asterisk server on my laptop with ubuntu16.04. during installation 'make dep' gives following error:
for dir in pjlib/build pjlib-util/build pjnath/build third_party/build pjmedia/build pjsip/build pjsip-apps/build ; do \
if make -C $dir dep; then \
true; \
else \
exit 1; \
fi; \
done
make[1]: Entering directory '/usr/src/asterisk-13.16.0/pjproject/pjlib/build'
make -f /usr/src/asterisk-13.16.0/pjproject/build/rules.mak APP=PJLIB app=pjlib depend
make[2]: Entering directory '/usr/src/asterisk-13.16.0/pjproject/pjlib/build'
.pjlib-x86_64-unknown-linux-gnu.depend:1: *** missing separator. Stop.
make[2]: Leaving directory '/usr/src/asterisk-13.16.0/pjproject/pjlib/build'
Makefile:88: recipe for target 'depend' failed
make[1]: *** [depend] Error 2
make[1]: Leaving directory '/usr/src/asterisk-13.16.0/pjproject/pjlib/build'
Makefile:14: recipe for target 'dep' failed
make: *** [dep] Error 1
where makefile line 88 and line 14 are(respectively):
$(MAKE) -f $(RULES_MAK) APP=PJLIB app=pjlib depend
export PJLIB_SONAME := libpj.$(SHLIB_SUFFIX)
what could be the reason???
Make wants to have hard tabs in its makefiles. This seems to be a bug in the asterix sources. Maybe you habe to fill a bugticket. This makefile seems to reside in
/usr/src/asterisk-13.16.0/pjproject/pjlib/build.
It is named "makefile". You can check this for yourself. The problem is at line 88 of that file.
But building from source usually means only a
make configure --prefix=<dir to install>
make
I doubt this has been overseen. Maybe just a "make configure; make" is sufficent for your needs
I'am trying to undrestand the build process of openwrt. basically i'am adding traces using $(warning), commenting some instructions and so on.
At some point i run make world and face an error. My problem is that i forget in which files exactly i made changes.
This is make error output after the command make -d world :
Reading makefile `tp-link.mk' (search path) (no ~ expansion)...
Reading makefile `ubnt.mk' (search path) (no ~ expansion)...
Reading makefile `generic.mk' (search path) (no ~ expansion)...
Reading makefile `legacy.mk' (search path) (no ~ expansion)...
Makefile:102: *** commands commence before first target. Stop.
Reaping losing child 0x008a0f20 PID 3213
make[5]: *** [image-prereq] Error 2
Removing child 0x008a0f20 PID 3213 from chain.
Reaping losing child 0x0257c930 PID 3210
make[4]: *** [prereq] Error 2
Removing child 0x0257c930 PID 3210 from chain.
Reaping losing child 0x01196730 PID 3207
make[3]: *** [target/linux/prereq] Error 2
Removing child 0x01196730 PID 3207 from chain.
Reaping losing child 0x01432210 PID 3194
make[2]: *** [/home/user/Bureau/Workspace/arduino/openwrt-yun_2/openwrt/staging_dir/target-mips_34kc_musl-1.1.15/stamp/.target_prereq] Error 2
Removing child 0x01432210 PID 3194 from chain.
Reaping losing child 0x01cb58c0 PID 3189
make[1]: *** [prereq] Error 2
Removing child 0x01cb58c0 PID 3189 from chain.
Récupération du statut de sortie du processus fils 0x0167e4a0 PID 3074
make: *** [world] Erreur 2
Suppression du processus fils 0x0167e4a0 PID 3074 de la chaîne.
what i undrestand from this output is that make is complaining about an error on line 102 when trying to read legacy.mk. I'am sure that i didn't make any change on this file.
My question:
How can we use make debug option to know from which Makefile the problem come ?
Problem resolved: by mistake i have replaced a 2 space by a tab in the file image.mk line 605. The make error message was really not helpful.
How i find the mistake: The most obvious solution git checkout ,then meld the modified files.
When I run :make in vim, and if I have an error in my one and only cpp file (main.cpp) vim shows me the errors and when I press enter it opens a file named
^[[H^[[Jmain.cpp
instead of
main.cpp
And I have to manually reopen my file. Any idea how to tell vim to open the right file?
I'm running
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 20 2016 11:17:28)
MacOS X (unix) version
Included patches: 1-1655 Compiled by Homebrew
Error output:
main.cpp:40:2: error: unknown type name 'obvious'
obvious error
^
main.cpp:40:15: error: expected ';' at end of declaration
obvious error
^
;
2 errors generated.
rm: main: No such file or directory
make: *** [all] Error 1
Press ENTER or type command to continue
vim errorformat (as reported by :echo &errorformat)
%*[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-G%f:%l: (Each undeclared identifier is reported only once,%-G%f:%l: for each function it appears in.),%-GIn file included from %f:%l:%c:,%-GIn file included from %f:%l:%c\,,%-GIn file included from %f:%l:%c,%-GIn file included from %f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\,,%-G%*[ ]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,"%f"\, line %l%*\D%c%*[^ ] %m,%D%*\a[%*\d]:Entering directory %*[`']%f',
%X%*\a[%*\d]: Leaving directory %*[`']%f',%D%*\a: Entering directory %*[`']%f',%X%*\a: Leaving directory %*[`']%f',%DMaking %*\a in %f,%f|%l| %m
Makefile looked something like this:
all:
clear && g++ main.cpp -o main
And the clear seems to be throwing it off. Workaround is to remove the clear or add an echo after
all:
g++ main.cpp -o main
all2:
clear && echo "" && g++ main.cpp -o main
I have a python script that process files in a directory on Linux Mint. Part of the code is like the following:
path_to_dir = "/home/user/Im a folder with libs to install/"
if os.path.isdir(path_to_dir):
print "it can locate the directory"
os.chdir(path_to_dir) # everything ok here :D
subprocess.call(['./configure'], shell = True)
subprocess.call(['make'], shell = True)
subprocess.call(['make install'], shell = True) # problem happens here
When executing subprocess.call(['make install'], shell = True) it throws this error:
/bin/bash: /home/user/Im: No such file or directory
make[3]: *** [install-libLTLIBRARIES] Error 127
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
How can I deal with spaces in paths when executing subprocess.call(['make install'], shell = True)? (I'm using Python 2.7)
Edit: I found out the source of the errors: the Makefile of the libraries I'm using (downloaded from somewhere on Internet) don't support spaces in the path.
I tested the answer given here using this code in the terminal located in the path "/home/user/Im a folder with libs to install/" and using a root account:
./configure
make
make install /home/user/Im\ a\ folder\ with\ libs\ to\ install/Makefile
It gives me the same error:
/bin/bash: /home/user/Im: No such file or directory
[install-libLTLIBRARIES] Error 127
make[3]: se sale del directorio «/home/user/Im a folder with libs to install/»
make[2]: *** [install-am] Error 2
make[2]: se sale del directorio «/home/user/Im a folder with libs to install/»
make[1]: *** [install-recursive] Error 1
make[1]: se sale del directorio «/home/user/Im a folder with libs to install/»
make: *** [install-recursive] Error 1
It can locate the folder, but it seems that, internally, it passes the path to Linux bash with no scape characters.
I'm accepting nafas as the answer because he helped me to locate the source of the problem.
You should be able to replace spaces with their escaped versions.
Try:
path_to_dir = path_to_dir.replace(" ", "\\ ")
Also, think about replacing all special characters like '&', '<', '>', '|', '*', '?', etc. in the string which are not permitted in filename and must be escaped
path_to_dir = path_to_dir.replace(" ", "\\ ").replace("?", "\\?").replace("&", "\\&").replace("(", "\\(").replace(")", "\\)").replace("*", "\\*").replace("<", "\\<").replace(">", "\\>")
skip the spaces using \
e.g. :
Im\ a\ folder\ with\ libs\ to\ install
I have clone the latest linux source from git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
And compile this kernel using (make O=/usr/local/kernel).
But when i install the kernel the following error getting,
# make O=/usr/local/kernel modules_install install
make[1]: Entering directory `/usr/local/kernel'
rm: invalid option -- '0'
Try 'rm --help' for more information.
make[1]: *** [_modinst_] Error 1
make: *** [sub-make] Error 2
I faced the same issue today (24/1/20) and after a bit of searching, I decided to remove the # in front of each line in modinst target in Makefile. The problem was immediately visible to me. If you add space in extra version, the space will appear in your folder name. So, if you write extra version as
EXTRAVERSION= -test[un-noticed-space-here]
Your module folder name will also have that space. To avoid it, I tried the following
Made sure that there are no spaces at the end of version lines in Makefile
Did "make kernelversion" and made sure that it is devoid of any space character
Did a
echo -n `make kernelversion`| wc
and reconfirmed above point by comparing wc output and the count of characters from previous step