Rockbox Development > Starting Development and Compiling
Problems When Compliling
joetermini:
I've tried making a clean build, still the same problem. I got a simulator to work without patching at all, and so i tried doing it again and patching. All the patches i used worked fine; no errors at all. However, i get more problems when i use the "make" command. Here it what I get when I enter make after patching and configuring:
$ make
make: Warning: File `Makefile' has modification time 1.3 s in the future
make[1]: `rdf2binary' is up to date.
make[1]: `convbdf' is up to date.
make[1]: `scramble' is up to date.
make[1]: `ipod_fw' is up to date.
make[1]: `bmp2rb' is up to date.
make[1]: `codepages' is up to date.
make[1]: Warning: File `/cygdrive/c/cygwin/home/terminikids/rockbox-devel/sim/si
m/dep-sim' has modification time 1 s in the future
CC button.c
CC kernel.c
CC lcd-bitmap.c
CC lcd-sdl.c
CC sound.c
CC thread-sdl.c
CC uisdl.c
UI
AR+RANLIB libsim.a
make[1]: warning: Clock skew detected. Your build may be incomplete.
make[1]: Warning: File `/cygdrive/c/cygwin/home/terminikids/rockbox-devel/sim/co
msim/dep-commonsim' has modification time 0.99 s in the future
CC fmradio.c
CC io.c
CC lcd-common.c
CC mpegplay.c
CC sim_icons.c
CC stubs.c
AR+RANLIB libcomsim.a
make[1]: warning: Clock skew detected. Your build may be incomplete.
make[1]: Warning: File `/cygdrive/c/cygwin/home/terminikids/rockbox-devel/sim/fi
rmware/dep-firmware' has modification time 1.4 s in the future
CC ata_idle_notify.c
CC backlight.c
CC buffer.c
CC id3.c
CC powermgmt.c
CC system.c
CC usb.c
CC panic.c
CC debug.c
CC common/atoi.c
CC common/crc32.c
CC common/ctype.c
CC common/dircache.c
CC common/disk.c
CC common/errno.c
CC common/memcmp.c
CC common/memchr.c
CC common/qsort.c
CC common/random.c
CC common/sprintf.c
CC common/strcasecmp.c
CC common/strcasestr.c
CC common/strcat.c
CC common/strchr.c
CC common/strcmp.c
CC common/strcpy.c
CC common/strncmp.c
CC common/strncpy.c
CC common/strrchr.c
CC common/strtok.c
CC common/timefuncs.c
CC common/unicode.c
CC arabjoin.c
CC bidi.c
CC font_cache.c
CC font.c
CC hangul.c
CC lru.c
CC drivers/lcd-16bit.c
CC drivers/led.c
CC mp3_playback.c
CC mp3data.c
CC sound.c
CC general.c
CC pcm_sampr.c
CC replaygain.c
CC common/memcpy.c
CC common/memmove.c
CC common/memset.c
CC common/memset16.c
CC common/strlen.c
CONVBDF
CC sysfont.c
Header parsed
AR+RANLIB librockbox.a
make[1]: warning: Clock skew detected. Your build may be incomplete.
MAKE in bitmaps/mono
AR+RANLIB libbitmapsmono.a
MAKE in bitmaps/native
make[2]: Warning: File `/cygdrive/c/cygwin/home/terminikids/rockbox-devel/sim/ap
ps/bitmaps/native/dep-bitmaps-native' has modification time 1 s in the future
BMP2RB rockboxlogo.320x98x16.bmp
CC rockboxlogo.320x98x16.c
BMP2RB usblogo.100x32x1.bmp
CC usblogo.100x32x1.c
AR+RANLIB libbitmapsnative.a
make[2]: warning: Clock skew detected. Your build may be incomplete.
make[1]: Warning: File `/cygdrive/c/cygwin/home/terminikids/rockbox-devel/sim/ap
ps/dep-apps' has modification time 0.97 s in the future
MAKE in bitmaps/mono
make[2]: Nothing to be done for `all'.
MAKE in bitmaps/native
make[2]: Nothing to be done for `all'.
GENLANG
CC lang.c
CC action.c
CC alarm_menu.c
CC abrepeat.c
CC bookmark.c
CC debug_menu.c
CC filetypes.c
CC language.c
CC main.c
CC main_menu.c
CC menu.c
CC misc.c
CC onplay.c
CC playlist.c
CC playlist_catalog.c
CC playlist_menu.c
CC playlist_viewer.c
CC plugin.c
CC screens.c
CC settings.c
CC settings_menu.c
CC sound_menu.c
CC status.c
CC talk.c
CC tree.c
CC tagtree.c
CC filetree.c
CC scrobbler.c
CC screen_access.c
CC gui/buttonbar.c
CC gui/gwps.c
CC gui/gwps-common.c
gui/gwps-common.c: In function `format_display':
gui/gwps-common.c:1802: warning: implicit declaration of function `hex_to_rgb'
gui/gwps-common.c: In function `gui_wps_refresh':
gui/gwps-common.c:2391: error: `FONT_USER1' undeclared (first use in this functi
on)
gui/gwps-common.c:2391: error: (Each undeclared identifier is reported only once
gui/gwps-common.c:2391: error: for each function it appears in.)
gui/gwps-common.c:2394: error: `FONT_USER2' undeclared (first use in this functi
on)
gui/gwps-common.c:2397: error: `FONT_USER3' undeclared (first use in this functi
on)
gui/gwps-common.c:2400: error: `FONT_USER4' undeclared (first use in this functi
on)
gui/gwps-common.c:2403: error: `FONT_USER5' undeclared (first use in this functi
on)
gui/gwps-common.c:2406: error: `FONT_USER6' undeclared (first use in this functi
on)
gui/gwps-common.c:2409: error: `FONT_USER7' undeclared (first use in this functi
on)
make[1]: *** [/cygdrive/c/cygwin/home/terminikids/rockbox-devel/sim/apps/gui/gwp
s-common.o] Error 1
make: *** [all] Error 2
bluebrother:
there is definitely a problem with one of your patches (or some patches are conflicting). Ask the patch author -- seems at least one patch is outdated. Also it looks a bit like the patch is broken.
joetermini:
yeah, here's everything from the patches up to "make install"
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < 01-custom_display_width-20060928.patch
patching file firmware/drivers/lcd-16bit.c
Hunk #2 succeeded at 129 (offset 1 line).
Hunk #3 succeeded at 736 (offset 1 line).
Hunk #4 succeeded at 749 (offset 1 line).
Hunk #5 succeeded at 807 (offset 1 line).
Hunk #6 succeeded at 884 (offset 1 line).
Hunk #7 succeeded at 897 (offset 1 line).
Hunk #8 succeeded at 910 (offset 1 line).
Hunk #9 succeeded at 962 (offset 1 line).
Hunk #10 succeeded at 980 (offset 1 line).
patching file apps/screen_access.c
Hunk #1 succeeded at 120 (offset 3 lines).
patching file apps/screen_access.h
patching file firmware/export/lcd.h
Hunk #1 succeeded at 298 (offset 30 lines).
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < 02-custom_list_position-20060930.patch
patching file apps/settings.h
Hunk #1 succeeded at 482 with fuzz 2 (offset -9 lines).
patching file apps/settings.c
Hunk #1 succeeded at 332 (offset 9 lines).
Hunk #2 succeeded at 1781 (offset 102 lines).
Hunk #3 succeeded at 1651 (offset 108 lines).
Hunk #4 succeeded at 1841 (offset 108 lines).
patching file apps/gui/list.c
patching file apps/gui/statusbar.c
Hunk #1 succeeded at 135 (offset 21 lines).
Hunk #2 succeeded at 343 (offset 33 lines).
patching file apps/gui/quickscreen.c
Hunk #4 succeeded at 103 with fuzz 2.
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < 05-customline-20060930.patch
patching file apps/gui/gwps-common.c
Hunk #1 succeeded at 1332 (offset 38 lines).
Hunk #2 succeeded at 2357 with fuzz 1 (offset 28 lines).
Hunk #3 succeeded at 2512 (offset 21 lines).
Hunk #4 succeeded at 2584 (offset 17 lines).
Hunk #5 succeeded at 2650 (offset 17 lines).
Hunk #6 succeeded at 2213 (offset 14 lines).
patching file apps/gui/gwps.h
Hunk #1 succeeded at 369 (offset -21 lines).
patching file apps/screen_access.h
Hunk #1 succeeded at 123 (offset 5 lines).
patching file apps/screen_access.c
Hunk #1 succeeded at 184 (offset 8 lines).
patching file firmware/export/lcd.h
Hunk #2 succeeded at 392 (offset 38 lines).
patching file firmware/drivers/lcd-16bit.c
Hunk #1 succeeded at 863 (offset 13 lines).
Hunk #2 succeeded at 1014 (offset 13 lines).
Hunk #3 succeeded at 1030 (offset 13 lines).
Hunk #4 succeeded at 1045 (offset 13 lines).
Hunk #5 succeeded at 1059 (offset -8 lines).
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < 07-full_screen_logo.patch
patching file apps/misc.c
Hunk #1 succeeded at 769 (offset 160 lines).
Hunk #2 succeeded at 780 (offset 160 lines).
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < album_art_v5.2_20061114.patch
patching file apps/metadata.c
patching file apps/metadata.h
patching file apps/playback.c
Hunk #1 succeeded at 2690 (offset 91 lines).
Hunk #2 succeeded at 2813 (offset 91 lines).
patching file apps/tagcache.c
patching file apps/gui/gwps-common.c
Hunk #5 succeeded at 1532 (offset 27 lines).
Hunk #6 succeeded at 1837 (offset 63 lines).
Hunk #7 succeeded at 3163 (offset 193 lines).
patching file apps/gui/gwps.c
patching file apps/gui/gwps.h
Hunk #4 succeeded at 478 (offset 3 lines).
patching file firmware/export/id3.h
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < bmp_resize_v0.99.6-MM.20061102.patch
patching file apps/plugin.h
Hunk #1 succeeded at 542 (offset 3 lines).
patching file apps/gui/gwps-common.c
Hunk #1 succeeded at 592 (offset 384 lines).
Hunk #2 succeeded at 708 (offset 384 lines).
patching file apps/gui/gwps.h
Hunk #1 succeeded at 339 (offset -6 lines).
patching file apps/plugins/rockpaint.c
patching file apps/plugins/lib/bmp.h
patching file apps/recorder/backdrop.c
Hunk #1 succeeded at 44 (offset 10 lines).
patching file apps/recorder/bmp.c
Hunk #1 succeeded at 131 (offset 1 line).
Hunk #2 succeeded at 361 (offset 1 line).
Hunk #3 succeeded at 373 (offset 1 line).
Hunk #4 succeeded at 460 (offset 1 line).
Hunk #5 succeeded at 499 (offset 1 line).
Hunk #6 succeeded at 519 (offset 1 line).
patching file apps/recorder/bmp.h
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < chopper_with_menu_api.diff
(Stripping trailing CRs from patch.)
patching file apps/plugins/SOURCES
Hunk #1 succeeded at 92 with fuzz 1 (offset 8 lines).
(Stripping trailing CRs from patch.)
patching file apps/plugins/chopper.c
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < doom_scroll3_sync20061010.patch
patching file apps/plugins/doom/d_event.h
patching file apps/plugins/doom/g_game.c
patching file apps/plugins/doom/i_video.c
Hunk #1 succeeded at 146 (offset 3 lines).
Hunk #2 succeeded at 233 with fuzz 2 (offset 54 lines).
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < ipod_brightness_4.patch
patching file firmware/backlight.c
patching file firmware/export/config-ipodvideo.h
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < piezo.patch
patching file apps/main.c
patching file apps/settings.c
Hunk #2 succeeded at 701 (offset 6 lines).
Hunk #3 succeeded at 1322 (offset 8 lines).
patching file apps/settings.h
Hunk #1 succeeded at 538 (offset 5 lines).
patching file apps/settings_menu.c
Hunk #2 succeeded at 976 (offset 2 lines).
Hunk #3 succeeded at 1999 with fuzz 2 (offset 5 lines).
patching file apps/lang/english.lang
Hunk #1 succeeded at 10266 (offset 42 lines).
patching file firmware/SOURCES
Hunk #1 succeeded at 437 (offset 6 lines).
Hunk #2 succeeded at 452 (offset 6 lines).
Hunk #3 succeeded at 467 (offset 6 lines).
Hunk #4 succeeded at 482 (offset 6 lines).
Hunk #5 succeeded at 511 (offset 6 lines).
Hunk #6 succeeded at 526 (offset 6 lines).
patching file firmware/drivers/button.c
patching file firmware/export/config-ipod4g.h
patching file firmware/export/config-ipodcolor.h
patching file firmware/export/config-ipodmini.h
patching file firmware/export/config-ipodmini2g.h
patching file firmware/export/config-ipodnano.h
patching file firmware/export/config-ipodvideo.h
Hunk #1 succeeded at 128 (offset 7 lines).
patching file firmware/target/arm/ipod/button-clickwheel.c
patching file firmware/target/arm/ipod/piezo.c
patching file firmware/target/arm/ipod/piezo.h
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < pong_20061108.patch
patching file apps/plugins/pong.c
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < progressbar_ycoord_extension2.1.patch
(Stripping trailing CRs from patch.)
patching file apps/gui/gwps-common.c
Hunk #1 succeeded at 1028 (offset 413 lines).
Hunk #2 succeeded at 1043 (offset 413 lines).
Hunk #3 succeeded at 2142 (offset 706 lines).
Hunk #4 succeeded at 2335 with fuzz 1 (offset 711 lines).
Hunk #5 succeeded at 2705 (offset 818 lines).
(Stripping trailing CRs from patch.)
patching file apps/gui/gwps.h
Hunk #1 succeeded at 399 with fuzz 1 (offset 55 lines).
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p0 < spacerocksjazz.patch
patching file apps/plugins/spacerocks.c
Hunk #1 succeeded at 134 (offset 13 lines).
Hunk #2 succeeded at 148 (offset 13 lines).
Hunk #3 succeeded at 183 (offset 13 lines).
Hunk #4 succeeded at 203 (offset 13 lines).
Hunk #5 succeeded at 253 (offset 13 lines).
Hunk #6 succeeded at 366 (offset 13 lines).
Hunk #7 succeeded at 402 (offset 13 lines).
Hunk #8 succeeded at 420 (offset 13 lines).
Hunk #9 succeeded at 438 (offset 13 lines).
Hunk #10 succeeded at 473 (offset 13 lines).
Hunk #11 succeeded at 550 (offset 13 lines).
Hunk #12 succeeded at 765 (offset 13 lines).
Hunk #13 succeeded at 838 (offset 13 lines).
Hunk #14 succeeded at 861 (offset 13 lines).
Hunk #15 succeeded at 873 (offset 13 lines).
Hunk #16 succeeded at 951 (offset 13 lines).
Hunk #17 succeeded at 968 (offset 13 lines).
Hunk #18 succeeded at 983 (offset 13 lines).
Hunk #19 succeeded at 1033 (offset 13 lines).
Hunk #20 succeeded at 1070 (offset 13 lines).
Hunk #21 succeeded at 1116 (offset 13 lines).
Hunk #22 succeeded at 1132 (offset 13 lines).
Hunk #23 succeeded at 1143 (offset 13 lines).
Hunk #24 succeeded at 1157 (offset 13 lines).
Hunk #25 succeeded at 1192 (offset 13 lines).
Hunk #26 succeeded at 1335 (offset 13 lines).
Hunk #27 succeeded at 1366 (offset 13 lines).
Hunk #28 succeeded at 1400 (offset 13 lines).
Hunk #29 succeeded at 1451 (offset 13 lines).
Hunk #30 succeeded at 1496 (offset 13 lines).
Hunk #31 succeeded at 1528 (offset 13 lines).
Hunk #32 succeeded at 1606 (offset 13 lines).
Hunk #33 succeeded at 1627 (offset 13 lines).
Hunk #34 succeeded at 1639 (offset 13 lines).
Hunk #35 succeeded at 1661 (offset 13 lines).
Hunk #36 succeeded at 1692 (offset 13 lines).
Hunk #37 succeeded at 1753 (offset 13 lines).
Hunk #38 succeeded at 1794 (offset 13 lines).
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ patch --binary -p1 < wps_context_order.patch
(Stripping trailing CRs from patch.)
patching file apps/onplay.c
Hunk #1 succeeded at 847 (offset 4 lines).
Hunk #2 succeeded at 861 (offset 4 lines).
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ cvs co uisimulator
cvs checkout: Updating uisimulator
cvs checkout: Updating uisimulator/common
cvs checkout: Updating uisimulator/common/libmad
cvs checkout: Updating uisimulator/common/player_icons
cvs checkout: Updating uisimulator/sdl
cvs checkout: Updating uisimulator/win32
cvs checkout: Updating uisimulator/win32/Release
cvs checkout: Updating uisimulator/x11
cvs checkout: Updating uisimulator/x11/archos
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ mkdir sim
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel
$ cd sim
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel/s
im
$ ../tools/configure
Enter target platform:
==Archos== ==iriver== ==Apple iPod==
0) Player/Studio 10) H120/H140 20) Color/Photo
1) Recorder 11) H320/H340 21) Nano
2) FM Recorder 12) iHP-100/110/115 22) Video
3) Recorder v2 13) iFP-790 23) 3G
4) Ondio SP 14) H10 20Gb 24) 4G Grayscale
5) Ondio FM 15) H10 5/6Gb 25) Mini 1G
26) Mini 2G
==iAudio== ==Toshiba== ==SanDisk==
30) X5/X5V/X5L 40) Gigabeat F 50) Sansa e200
==Tatung==
60) Elio TPJ-1022
22
Platform set to ipodvideo
Build (N)ormal, (D)evel, (S)imulator, (B)ootloader, (M)anual, (V)oice? (N)
s
Simulator build selected
Build (S)DL version? (S)
s
Selected sdl simulator
Using source code root directory: /cygdrive/c/cygwin/home/terminikids/rockbox-de
vel
Cygwin host detected
Enabled PCM sound playback in simulator
Simulator environment deemed little endian
created an archos subdirectory for simulating the hard disk
Using gcc 3.4.4 (304)
Created Makefile
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel/s
im
$ make
make: Warning: File `Makefile' has modification time 0.19 s in the future
gcc -g rdf2binary.c -o rdf2binary
gcc -g convbdf.c -o convbdf
gcc -O -ansi -g -c -o scramble.o scramble.c
gcc -O -ansi -g -c -o iriver.o iriver.c
gcc -O -ansi -g -c -o mi4.o mi4.c
gcc -O -ansi -g -c -o gigabeat.o gigabeat.c
gcc -g scramble.o iriver.o mi4.o gigabeat.o -o scramble
gcc -g ipod_fw.c -o ipod_fw
gcc -DAPPLICATION_NAME=\"bmp2rb\" -g bmp2rb.c -o bmp2rb
gcc -g codepages.c codepage_tables.c -o codepages
make[1]: Warning: File `/cygdrive/c/cygwin/home/terminikids/rockbox-devel/sim/si
m/dep-sim' has modification time 1.4 s in the future
CC button.c
CC kernel.c
CC lcd-bitmap.c
CC lcd-sdl.c
CC sound.c
CC thread-sdl.c
CC uisdl.c
UI
AR+RANLIB libsim.a
make[1]: warning: Clock skew detected. Your build may be incomplete.
make[1]: Warning: File `/cygdrive/c/cygwin/home/terminikids/rockbox-devel/sim/co
msim/dep-commonsim' has modification time 1 s in the future
CC fmradio.c
CC io.c
CC lcd-common.c
CC mpegplay.c
CC sim_icons.c
CC stubs.c
AR+RANLIB libcomsim.a
make[1]: warning: Clock skew detected. Your build may be incomplete.
make[1]: Warning: File `/cygdrive/c/cygwin/home/terminikids/rockbox-devel/sim/fi
rmware/dep-firmware' has modification time 0.46 s in the future
CC ata_idle_notify.c
CC backlight.c
backlight.c: In function `backlight_set_brightness':
backlight.c:798: error: `bl_brightness' undeclared (first use in this function)
backlight.c:798: error: (Each undeclared identifier is reported only once
backlight.c:798: error: for each function it appears in.)
backlight.c:798: error: `bl_brightness_map' undeclared (first use in this functi
on)
make[1]: *** [/cygdrive/c/cygwin/home/terminikids/rockbox-devel/sim/firmware/bac
klight.o] Error 1
make: *** [all] Error 2
Termini Kids@lou-zn0rbj7rftl /cygdrive/c/cygwin/home/terminikids/rockbox-devel/s
im
$ make install
installing a full setup in your archos dir
find: apps: No such file or directory
joetermini:
I also have another question. I'm not sure if its a problem, but i often get this when i patch; sometimes the hunk fails as well, sometimes it doesn't
lowlight:
--- Quote from: bluebrother on November 17, 2006, 08:18:09 AM ---there is definitely a problem with one of your patches (or some patches are conflicting). Ask the patch author -- seems at least one patch is outdated. Also it looks a bit like the patch is broken.
--- End quote ---
With emphasis this time!
It's clear that you are adding a patch that doesn't work with the sim.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version