This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#8913 - compilation error due to GNU core utils BLOCK_SIZE value (and suggested fix)
Attached to Project:
Rockbox
Opened by Peter D. (PeterD) - Sunday, 20 April 2008, 08:43 GMT+2
Last edited by Steve Bavin (pondlife) - Thursday, 08 May 2008, 09:17 GMT+2
Opened by Peter D. (PeterD) - Sunday, 20 April 2008, 08:43 GMT+2
Last edited by Steve Bavin (pondlife) - Thursday, 08 May 2008, 09:17 GMT+2
|
DetailsHi,
There is a compilation problem when the environment variable BLOCK_SIZE is set. It gave me errors about a comma. This can be set or cleared systematically or on a command by command basis. Suggestion one; unset BLOCK_SIZE and its relatives high in the build chain, but be prepared for POSIX to bite with 512 byte blocks. Suggestion two; set LS_BLOCK_SIZE=1 high in the build chain. (And DF_BLOCK_SIZE=1024 and DU_BLOCK_SIZE=1024 ?) Suggestion three; edit apps/lang/Makefile so that $(SILENT)echo "#define MAX_LANGUAGE_SIZE `ls -ln $(OBJDIR)/* | awk '{print $$5}' | sort -n | tail -1`" > $(HEADER) becomes $(SILENT)echo "#define MAX_LANGUAGE_SIZE `ls -ln --block-size=1 $(OBJDIR)/* | awk '{print $$5}' | sort -n | tail -1`" > $(HEADER) or $(SILENT)echo "#define MAX_LANGUAGE_SIZE `LS_BLOCK_SIZE=1 ls -ln $(OBJDIR)/* | awk '{print $$5}' | sort -n | tail -1`" > $(HEADER) Suggestion four; just tell people that they are not allowed to have commas in their core utilities output (and be prepared to be bitten badly if the default block size ever changes). BTW I *like* having thousands separators on my command line, so I have export BLOCK_SIZE=\'1 export DF_BLOCK_SIZE=\'M in my /etc/bashrc file. |
This task depends upon