Created attachment 1363 [details] Build log GEN symb08.pcf.gz GEN symb10.pcf.gz GEN symb12.pcf.gz GEN symb14.pcf.gz GEN symb18.pcf.gz GEN symb24.pcf.gz GEN courB08-ISO8859-1.bdf /bin/sh: courB08.bdf: command not found make[1]: *** [courB08-ISO8859-1.bdf] Error 127 make[1]: *** Waiting for unfinished jobs.... GEN courB10-ISO8859-1.bdf GEN courB12-ISO8859-1.bdf /bin/sh: courB10.bdf: command not found /bin/sh: courB12.bdf: command not found make[1]: *** [courB10-ISO8859-1.bdf] Error 127 make[1]: *** [courB12-ISO8859-1.bdf] Error 127 make[1]: Leaving directory `/media/stuff/kisssroot/output/build/xfont_font-adobe-100dpi-1.0.1' make: *** [/media/stuff/kisssroot/output/build/xfont_font-adobe-100dpi-1.0.1/.stamp_built] Error 2
Same problem occurs with xfont_font-adobe-75dpi-1.0.1 GEN timR24.pcf.gz GEN symb12.pcf.gz GEN symb10.pcf.gz GEN symb14.pcf.gz GEN symb18.pcf.gz GEN symb24.pcf.gz GEN courB08-ISO8859-1.bdf /bin/sh: courB08.bdf: command not found make[1]: *** [courB08-ISO8859-1.bdf] Error 127 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/media/stuff/kisssroot/output/build/xfont_font-adobe-75dpi-1.0.1' make: *** [/media/stuff/kisssroot/output/build/xfont_font-adobe-75dpi-1.0.1/.stamp_built] Error 2
Very strange... does any other font build OK? I suspect that it may be some utility missing on the host.
There was one other font I tried that had the same trouble (Can't remember it's name right now). The build system is running Gentoo and it compiles the Gentoo-equivalent packages fine, so I'm at a loss to understand what's happening.
(In reply to comment #2) > Very strange... does any other font build OK? > I suspect that it may be some utility missing on the host. I have checked Makefile and I think it may be bdftopcf missing on your host.
Then, we should build bdftopcf for the host, and install it in $(HOST_DIR).
I just tried to manually build the package without any cross compiling make distclean ./configure and this is the output I get: checking for fc-cache... /usr/bin/fc-cache checking for mkfontdir... /usr/bin/mkfontdir checking for bdftopcf... /usr/bin/bdftopcf checking font compression method... gzip checking for gzip... /bin/gzip checking for ucs2any... no checking for MAPS... configure: error: Package requirements (fontutil) were not met: No package 'fontutil' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables MAPS_CFLAGS and MAPS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. I am sure I tried installing font-utils on the host which I remember didn't work so I uninstalled it. I just reinstalled fontutils and now this builds ok so I assume this package isn't finding the buildroot fontutils. I checked for bdftopcf on the host and it is there even without fontutils installed.
(In reply to comment #6) > I checked for bdftopcf on the host and it is there even without fontutils > installed. > How you checked for it? It should output usage documentation if you just type "bdftopcf -" in terminal. And if it really is present on your host I have no idea why buildroot fails to compile fonts...
Anyway, Buildroot should *not* rely on xfont-utils to be installed on the host distribution, but should rather build it for the host.
(In reply to comment #7) > It should output usage documentation if you just type "bdftopcf -" in terminal. That's exactly what I did.
We recently committed things in the Git repo to fix issues with xfonts. Can you test again and see if your problem is fixed ? At least here, I can't reproduce.
No, still happening with latest git.
Created attachment 1705 [details] The output from make -n
I think I've found the problem - the configure script is cached with the wrong values - see below: checking for mkfontdir... (cached) /usr/bin/mkfontdir checking for bdftopcf... (cached) /usr/bin/bdftopcf checking font compression method... gzip checking for gzip... (cached) /bin/gzip checking for ucs2any... (cached) The ucs2any program is inserted into the makefile as a blank string therefore the shell tries to execute the arguments rather than the program, which obviously won't work.
Paul, can you attach a sample .config file that exhibits the problem ?
I can't seem to reproduce any more. I only had the problem on Gentoo systems but not on Ubuntu. Hopefully the problem is gone so marking as closed.
> GEN courB08-ISO8859-1.bdf > /bin/sh: courB08.bdf: command not found > make[1]: *** [courB08-ISO8859-1.bdf] Error 127 > make[1]: *** Waiting for unfinished jobs.... > GEN courB10-ISO8859-1.bdf > GEN courB12-ISO8859-1.bdf > /bin/sh: courB10.bdf: command not found > /bin/sh: courB12.bdf: command not found > make[1]: *** [courB10-ISO8859-1.bdf] Error 127 > make[1]: *** [courB12-ISO8859-1.bdf] Error 127 I know I'm coming late to the party here, but it seems to me from the make listing that the problem isn't that bdftopcf can't be found, but rather that the command is missing the name of the command altogether, therefore the shell is treating the name of the .bdf file as the command to run. Paul Jones, if the problem occurs again, can you add V=1 to the make line when you kick off the compile? That should show us the line being executed, rather than just "GEN". Alternatively, please look in output/build/xfont_font-adobe-100dpi-1.0.1 (or similar, as I don't have it in front of me) for the Makefile. In the Makefile, what is the value of the BDFTOPCF variable?