• Status Closed
  • Percent Complete
  • Task Type Bugs
  • Category Infrastructure → Build environment
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version Daily build (which?)
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by undo - 2008-02-20
Last edited by bluebrother - 2008-02-21

FS#8622 - Build failure on FreeBSD

SVN commit 16343 breaks the build on FreeBSD. In it, apps/lang/Makefile was added with code to automatically calculate the size of the largest language file:


  $(call PRINTS,Make $(HEADER))
  echo "#define MAX_LANGUAGE_SIZE `du -b $(OBJDIR)/* |sort -n |tail -n 1 |cut -f 1`" > $(HEADER)

However, the -b argument passed to du is a GNU extension that is not available on other *NIX systems. The du command therefore silently fails, leaving MAX_LANGUAGE_SIZE undefined.

A more portable method to determine the largest file size will have to be found here, as du on FreeBSD has *no* parameter that would output the number of bytes.

Closed by  bluebrother
2008-02-21 21:08
Reason for closing:  Fixed
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

Thanks for verifying. Should've noticed that gawk is GNU awk in the first place myself ;-)

Would using ls work? I.e. using something like
`ls -lr | gawk '{print $5}' | sort -n | tail -n 1`

(I don't have access to a BSD machine, so I have no idea if that also uses GNU extensions …)

undo commented on 2008-02-20 19:34

gawk stands for "GNU awk", so that command in itself is a GNU extension :). But I just tested that it works if you use plain awk (FreeBSD 6-STABLE):

ls -lr | awk '{print $5}' | sort -n | tail -n 1


Available keyboard shortcuts


Task Details

Task Editing