Metafont dependency scanning uses advanced GNU Make scripting. By
putting the logic in a Python script, we have a better chance of
moving away from GNU make as a build system.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2020-03-14
Description has changed:
Diff:
Needs: -->
Patch: new --> review
Type: -->
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2020-03-14
Fails make.
..out/lexer.cc:6476:21:warning:conversionto'int'from'std::streamsize {aka long int}'mayalteritsvalue[-Wconversion]returnyyin.gcount();~~~~~~~~~~~^~./out/parser.cc:Infunction'int yyparse(Lily_parser*, scm_unused_struct**)':./out/parser.cc:2917:12:warning:conversionto'yytype_int16 {aka short int}'from'int'mayalteritsvalue[-Wconversion]*yyssp=yystate;^~~~~~~Makinglily/out/lilypondMakinglily/out/lilypond.1Makingmf/out/mf2pt1.mem<mpMakingmf/out/emmentaler-11.genpeMakingmf/out/emmentaler-13.genpeMakingmf/out/emmentaler-14.genpeMakingmf/out/emmentaler-16.genpeMakingmf/out/emmentaler-18.genpeMakingmf/out/feta18.pfb<mfMakingmf/out/feta-noteheads18.pfb<mfMakingmf/out/feta-flags18.pfb<mfMakingmf/out/feta-alphabet18.pfb<mfMakingmf/out/parmesan18.pfb<mfTraceback(mostrecentcalllast):File"/home/james/lilypond-git/mf/scan-mf-deps.py",line49,in<module>print("%s: %s"%(target,' '.join(scan_mf(args[0]))))File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line39,inscan_mfinput_re.sub(lambdam:deps.append(m.group(1)),f.read())File"/usr/lib/python3.6/encodings/ascii.py",line26,indecodeTraceback(mostrecentcalllast):File"/home/james/lilypond-git/mf/scan-mf-deps.py",line49,in<module>print("%s: %s"%(target,' '.join(scan_mf(args[0]))))File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line39,inscan_mfinput_re.sub(lambdam:deps.append(m.group(1)),f.read())File"/usr/lib/python3.6/encodings/ascii.py",line26,indecodereturncodecs.ascii_decode(input,self.errors)[0]returncodecs.ascii_decode(input,self.errors)[0]UnicodeDecodeError:'ascii'codeccan't decode byte 0xc2 in position 3337: ordinal not in range(128)UnicodeDecodeError: 'ascii' codec can'tdecodebyte0xc2inposition3337:ordinalnotinrange(128)Traceback(mostrecentcalllast):File"/home/james/lilypond-git/mf/scan-mf-deps.py",line49,in<module>print("%s: %s"%(target,' '.join(scan_mf(args[0]))))File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line39,inscan_mfinput_re.sub(lambdam:deps.append(m.group(1)),f.read())File"/usr/lib/python3.6/encodings/ascii.py",line26,indecodereturncodecs.ascii_decode(input,self.errors)[0]UnicodeDecodeError:'ascii'codeccan't decode byte 0xc2 in position 3337: ordinal not in range(128)/home/james/lilypond-git/build/.././mf/GNUmakefile:36: recipe for target 'out/feta-noteheads18.pfb' failedmake[1]: *** [out/feta-noteheads18.pfb] Error 1make[1]: *** Waiting for unfinished jobs..../home/james/lilypond-git/build/.././mf/GNUmakefile:36: recipe for target 'out/feta-alphabet18.pfb' failedmake[1]: *** [out/feta-alphabet18.pfb] Error 1Traceback (most recent call last): File "/home/james/lilypond-git/mf/scan-mf-deps.py", line 49, in <module> print("%s: %s" % (target, ''.join(scan_mf(args[0])))) File "/home/james/lilypond-git/mf/scan-mf-deps.py", line 45, in scan_mf total += scan_mf(full_path) File "/home/james/lilypond-git/mf/scan-mf-deps.py", line 45, in scan_mf total += scan_mf(full_path) File "/home/james/lilypond-git/mf/scan-mf-deps.py", line 45, in scan_mf total += scan_mf(full_path) File "/home/james/lilypond-git/mf/scan-mf-deps.py", line 39, in scan_mf input_re.sub(lambda m: deps.append(m.group(1)), f.read()) File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0]UnicodeDecodeError: 'ascii' codec can'tdecodebyte0xc2inposition3337:ordinalnotinrange(128)/home/james/lilypond-git/build/.././mf/GNUmakefile:36:recipefortarget'out/parmesan18.pfb'failedmake[1]:***[out/parmesan18.pfb]Error1Traceback(mostrecentcalllast):File"/home/james/lilypond-git/mf/scan-mf-deps.py",line49,in<module>print("%s: %s"%(target,' '.join(scan_mf(args[0]))))File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line39,inscan_mfinput_re.sub(lambdam:deps.append(m.group(1)),f.read())File"/usr/lib/python3.6/encodings/ascii.py",line26,indecodereturncodecs.ascii_decode(input,self.errors)[0]UnicodeDecodeError:'ascii'codeccan't decode byte 0xc2 in position 3337: ordinal not in range(128)/home/james/lilypond-git/build/.././mf/GNUmakefile:36: recipe for target 'out/feta18.pfb' failedmake[1]: *** [out/feta18.pfb] Error 1/home/james/lilypond-git/build/.././mf/GNUmakefile:36: recipe for target 'out/feta-flags18.pfb' failedmake[1]: *** [out/feta-flags18.pfb] Error 1/home/james/lilypond-git/build/../stepmake/stepmake/generic-targets.make:6: recipe for target 'all'failedmake:***[all]Error2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2020-03-14
Patch: review --> needs_work
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2020-03-14
Fails make.
..out/lexer.cc:6476:21:warning:conversionto'int'from'std::streamsize {aka long int}'mayalteritsvalue[-Wconversion]returnyyin.gcount();~~~~~~~~~~~^~./out/parser.cc:Infunction'int yyparse(Lily_parser*, scm_unused_struct**)':./out/parser.cc:2917:12:warning:conversionto'yytype_int16 {aka short int}'from'int'mayalteritsvalue[-Wconversion]*yyssp=yystate;^~~~~~~Makinglily/out/lilypondMakinglily/out/lilypond.1Makingmf/out/mf2pt1.mem<mpMakingmf/out/emmentaler-11.genpeMakingmf/out/emmentaler-13.genpeMakingmf/out/emmentaler-14.genpeMakingmf/out/emmentaler-16.genpeMakingmf/out/emmentaler-18.genpeMakingmf/out/feta18.pfb<mfMakingmf/out/feta-noteheads18.pfb<mfMakingmf/out/feta-flags18.pfb<mfMakingmf/out/feta-alphabet18.pfb<mfMakingmf/out/parmesan18.pfb<mfTraceback(mostrecentcalllast):File"/home/james/lilypond-git/mf/scan-mf-deps.py",line49,in<module>print("%s: %s"%(target,' '.join(scan_mf(args[0]))))File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line39,inscan_mfinput_re.sub(lambdam:deps.append(m.group(1)),f.read())File"/usr/lib/python3.6/encodings/ascii.py",line26,indecodeTraceback(mostrecentcalllast):File"/home/james/lilypond-git/mf/scan-mf-deps.py",line49,in<module>print("%s: %s"%(target,' '.join(scan_mf(args[0]))))File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line39,inscan_mfinput_re.sub(lambdam:deps.append(m.group(1)),f.read())File"/usr/lib/python3.6/encodings/ascii.py",line26,indecodereturncodecs.ascii_decode(input,self.errors)[0]returncodecs.ascii_decode(input,self.errors)[0]UnicodeDecodeError:'ascii'codeccan't decode byte 0xc2 in position 3337: ordinal not in range(128)UnicodeDecodeError: 'ascii' codec can'tdecodebyte0xc2inposition3337:ordinalnotinrange(128)Traceback(mostrecentcalllast):File"/home/james/lilypond-git/mf/scan-mf-deps.py",line49,in<module>print("%s: %s"%(target,' '.join(scan_mf(args[0]))))File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line39,inscan_mfinput_re.sub(lambdam:deps.append(m.group(1)),f.read())File"/usr/lib/python3.6/encodings/ascii.py",line26,indecodereturncodecs.ascii_decode(input,self.errors)[0]UnicodeDecodeError:'ascii'codeccan't decode byte 0xc2 in position 3337: ordinal not in range(128)/home/james/lilypond-git/build/.././mf/GNUmakefile:36: recipe for target 'out/feta-noteheads18.pfb' failedmake[1]: *** [out/feta-noteheads18.pfb] Error 1make[1]: *** Waiting for unfinished jobs..../home/james/lilypond-git/build/.././mf/GNUmakefile:36: recipe for target 'out/feta-alphabet18.pfb' failedmake[1]: *** [out/feta-alphabet18.pfb] Error 1Traceback (most recent call last): File "/home/james/lilypond-git/mf/scan-mf-deps.py", line 49, in <module> print("%s: %s" % (target, ''.join(scan_mf(args[0])))) File "/home/james/lilypond-git/mf/scan-mf-deps.py", line 45, in scan_mf total += scan_mf(full_path) File "/home/james/lilypond-git/mf/scan-mf-deps.py", line 45, in scan_mf total += scan_mf(full_path) File "/home/james/lilypond-git/mf/scan-mf-deps.py", line 45, in scan_mf total += scan_mf(full_path) File "/home/james/lilypond-git/mf/scan-mf-deps.py", line 39, in scan_mf input_re.sub(lambda m: deps.append(m.group(1)), f.read()) File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0]UnicodeDecodeError: 'ascii' codec can'tdecodebyte0xc2inposition3337:ordinalnotinrange(128)/home/james/lilypond-git/build/.././mf/GNUmakefile:36:recipefortarget'out/parmesan18.pfb'failedmake[1]:***[out/parmesan18.pfb]Error1Traceback(mostrecentcalllast):File"/home/james/lilypond-git/mf/scan-mf-deps.py",line49,in<module>print("%s: %s"%(target,' '.join(scan_mf(args[0]))))File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line45,inscan_mftotal+=scan_mf(full_path)File"/home/james/lilypond-git/mf/scan-mf-deps.py",line39,inscan_mfinput_re.sub(lambdam:deps.append(m.group(1)),f.read())File"/usr/lib/python3.6/encodings/ascii.py",line26,indecodereturncodecs.ascii_decode(input,self.errors)[0]UnicodeDecodeError:'ascii'codeccan't decode byte 0xc2 in position 3337: ordinal not in range(128)/home/james/lilypond-git/build/.././mf/GNUmakefile:36: recipe for target 'out/feta18.pfb' failedmake[1]: *** [out/feta18.pfb] Error 1/home/james/lilypond-git/build/.././mf/GNUmakefile:36: recipe for target 'out/feta-flags18.pfb' failedmake[1]: *** [out/feta-flags18.pfb] Error 1/home/james/lilypond-git/build/../stepmake/stepmake/generic-targets.make:6: recipe for target 'all'failedmake:***[all]Error2
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
more cleanup
https://codereview.appspot.com/553700043
Diff:
Fails make.
Fails make.
/bin/dash
https://codereview.appspot.com/553700043
Passes make, make check and a full make doc
analyze log file
https://codereview.appspot.com/553700043
realpath
https://codereview.appspot.com/553700043
realpath 2
https://codereview.appspot.com/553700043
/bin/sh
https://codereview.appspot.com/553700043
Fails make check
oops - restored overly zealous deletions
https://codereview.appspot.com/553700043
local-clean
https://codereview.appspot.com/553700043
Fails make
-recorder
https://codereview.appspot.com/553700043
Still fails make (?)
rename.
https://codereview.appspot.com/553700043
rename (2nd try)
https://codereview.appspot.com/553700043
touch multiple files
https://codereview.appspot.com/553700043