Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiler error in language.c
« previous next »
  • Print
Pages: [1] 2

Author Topic: Compiler error in language.c  (Read 7196 times)

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Compiler error in language.c
« on: August 31, 2010, 12:38:05 PM »
Since yesterday that I can't compile Rockbox from SVN using my Ubuntu development environment set up as described in the wiki.
I do a "svn update", then I change to the build directory and run the following commands by this order:
../tools/configure
(then select target 28 - ipodnano2 - and Normal build)
make clean
make

"make" is where it goes wrong. What I get on the console is on an attached file (with Linux temrinations!).

Any suggestions to fix this? I already compiler Rockbox from source other times, but now it's just not working. I'd really like to compile Rockbox from source, because I like the iPod piezo patch I have applied (is the patch the problem?).

Thanks
Gabriel

PS: as obvious, I didn't modify language.c, that's why this error is so strange for me... :(
* Rockbox build error.txt (7.79 kB - downloaded 170 times.)
« Last Edit: August 31, 2010, 12:42:10 PM by gbl08ma »
Logged
http://gbl08ma.com | http://i.tny.im

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Compiler error in language.c
« Reply #1 on: August 31, 2010, 12:45:49 PM »
Try cleaning the build directory completely before re-running configure.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: Compiler error in language.c
« Reply #2 on: August 31, 2010, 01:48:39 PM »
I completely deleted all the contents of the /rockbox/build directory, did ../tools/configure, make, and it still returns the same error.
Any more suggestions?
Thanks for your help so far.

EDIT: did you notice the "Please use at least one of -p, -u, -o, -b and -s" line after each GENLANG on the console dump? That line didn't show before, when I managed to compile Rockbox.
« Last Edit: August 31, 2010, 01:50:26 PM by gbl08ma »
Logged
http://gbl08ma.com | http://i.tny.im

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Compiler error in language.c
« Reply #3 on: August 31, 2010, 05:01:00 PM »
Just as reference, you can see here: http://build.rockbox.org/dev.cgi whether Rockbox currently builds or not.  This lets you check if the error is in SVN or at your end.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: Compiler error in language.c
« Reply #4 on: August 31, 2010, 05:35:00 PM »
Yes, and I usually check that. And that page says it builds.

EDIT: I just updated my SVN trunk copy, deleted all files in the build directory, did "../tools/configure", then "make clean" (just in case) and then "make". It still returns exactly the same error.
I think the problem has to do with that line I get after each GENLANG:

GENLANG apps/lang/anylangfile.lang
Please use at least one of -p, -u, -o, -b and -s
« Last Edit: August 31, 2010, 05:52:20 PM by gbl08ma »
Logged
http://gbl08ma.com | http://i.tny.im

Offline ew

  • Member
  • *
  • Posts: 52
Re: Compiler error in language.c
« Reply #5 on: August 31, 2010, 06:05:04 PM »
I am getting a an error compiling a simulator build.  At the same spot, but a different error (an undefined error).

If somebody knows how to either save a print screen, or do a cut and paste from VMWare, I could share the error that I am getting.
Logged

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: Compiler error in language.c
« Reply #6 on: August 31, 2010, 07:46:33 PM »
If you run with
Code: [Select]
make V=1
the log should be more verbose
Logged
a wise man said: "a wise man said"

Offline ew

  • Member
  • *
  • Posts: 52
Re: Compiler error in language.c
« Reply #7 on: August 31, 2010, 08:38:09 PM »
I figured out how to cut and paste.

The error I am getting is...

Quote
.
.
.
GENLANG apps/lang/tagalog.lang
GENLANG apps/lang/turkce.lang
GENLANG apps/lang/ukrainian.lang
GENLANG apps/lang/wallisertitsch.lang
GENLANG apps/lang/walon.lang
GENLANG apps/lang/arabic.lang
GENLANG apps/lang/chinese-simp.lang
GENLANG apps/lang/chinese-trad.lang
GENLANG apps/lang/hindi.lang
GENLANG apps/lang/japanese.lang
GENLANG apps/lang/korean.lang
GENLANG apps/lang/thai.lang
GEN lang/max_language_size.h
CC apps/language.c
/home/user/rockbox/apps/language.c: In function `lang_load':
/home/user/rockbox/apps/language.c:77: error: `SEEK_CUR' undeclared (first use in this function)
/home/user/rockbox/apps/language.c:77: error: (Each undeclared identifier is reported only once
/home/user/rockbox/apps/language.c:77: error: for each function it appears in.)
/home/user/rockbox/apps/language.c:86: error: `SEEK_SET' undeclared (first use in this function)
make: *** [/home/user/rockbox/build-sim/apps/language.o] Error 1
user@debian:~/rockbox/build-sim$

Just to make sure, I deleted my rockbox source directory and re-downloaded the source (using " svn co svn://svn.rockbox.org/rockbox/trunk rockbox").  I still get the same error.  I was able to compile a few weeks ago.
Logged

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: Compiler error in language.c
« Reply #8 on: September 01, 2010, 05:40:20 AM »
I compiled using "make V=1" to have more output, the console log is attached (including everything since the moment I did "svn update" through all the configuration process, and then make)

Perhaps this issue only applies to ipodnano2...?

Thanks for all the help so far :)
It's really boring to have a copy of the source of a so powerful application, and not be able to compile it...  :(
* Rockbox Build Error with Verbose.txt (90.19 kB - downloaded 208 times.)
Logged
http://gbl08ma.com | http://i.tny.im

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Compiler error in language.c
« Reply #9 on: September 01, 2010, 08:08:39 AM »
I'd guess your shell is failing to expand the cat command, try pasting
Code: [Select]
`cat /home/gabriel/rockbox/build/apps/genlang-features`
into a terminal (including apostrophes).
Logged

Offline ew

  • Member
  • *
  • Posts: 52
Re: Compiler error in language.c
« Reply #10 on: September 01, 2010, 10:13:09 AM »
I don't mean to hijack this thread, I realize that the suggestion made by nls was intended for gbl08ma, but I tried a similar command which I thought may work in my configuration.

The following is my result:
Quote
user@debian:~/rockbox/build-sim$ 'cat ~f/rockbox/build-sim genlang-features'
-bash: cat ~f/rockbox/build-sim genlang-features: No such file or directory
user@debian:~/rockbox/build-sim$

Then I though I may not be specifying the correct sub-directory so I tried this:
Quote
user@debian:~/rockbox/build-sim$ 'cat ~f/rockbox/build-sim/apps genlang-features'
-bash: cat ~f/rockbox/build-sim/apps genlang-features: No such file or directory
user@debian:~/rockbox/build-sim$


(I realize I may still not have the proper syntaxt)

For what it is worth, I am using VMWare using a debian environment and trying to compile a simulator build for a Sansa e200 (v1).

Thanks,
Logged

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: Compiler error in language.c
« Reply #11 on: September 01, 2010, 10:35:49 AM »
Quote from: nls on September 01, 2010, 08:08:39 AM
I'd guess your shell is failing to expand the cat command, try pasting
Code: [Select]
`cat /home/gabriel/rockbox/build/apps/genlang-features`
into a terminal (including apostrophes).

I did... here's the output:

gabriel@GabrielUbuntuDesk:~/rockbox/build$ `cat /home/gabriel/rockbox/build/apps/genlang-features`
bash: accessory_supply:backlight_brightness:crossfade:dircache:flash_storage:headphone_detection:hold_button:hotkey:lcd_bitmap:lcd_non-mono:lcd_color:morse_input:pitchscreen:quickscreen:rtc:swcodec:tagcache:tc_ramcache:charging:usb_charging_enable:wheel_acceleration:large_plugin_buffer:albumart:scrollwheel:usb_power:usbstack:<<<<<<<: command not found
gabriel@GabrielUbuntuDesk:~/rockbox/build$


I start to think that this is a problem of my development environment...
Logged
http://gbl08ma.com | http://i.tny.im

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Compiler error in language.c
« Reply #12 on: September 01, 2010, 11:11:14 AM »
Quote from: ew on September 01, 2010, 10:13:09 AM
user@debian:~/rockbox/build-sim$ 'cat ~f/rockbox/build-sim genlang-features'
-bash: cat ~f/rockbox/build-sim genlang-features: No such file or directory
user@debian:~/rockbox/build-sim$

This cannot work. You need to use backticks, not apostrophes. There is a vital difference between those on the shell.

Quote from: gbl08ma on September 01, 2010, 10:35:49 AM

gabriel@GabrielUbuntuDesk:~/rockbox/build$ `cat /home/gabriel/rockbox/build/apps/genlang-features`
bash: accessory_supply:backlight_brightness:crossfade:dircache:flash_storage:headphone_detection:hold_button:hotkey:lcd_bitmap:lcd_non-mono:lcd_color:morse_input:pitchscreen:quickscreen:rtc:swcodec:tagcache:tc_ramcache:charging:usb_charging_enable:wheel_acceleration:large_plugin_buffer:albumart:scrollwheel:usb_power:usbstack:<<<<<<<: command not found
gabriel@GabrielUbuntuDesk:~/rockbox/build$


I start to think that this is a problem of my development environment...

No, that result is actually correct. The used syntax means: execute the part in the backticks, then substitute it with its result and pass that back (in this case to the command line, in a script it would usually be assigning it to a variable).
« Last Edit: September 01, 2010, 11:13:40 AM by bluebrother »
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline funman

  • Developer
  • Member
  • *
  • Posts: 645
Re: Compiler error in language.c
« Reply #13 on: September 01, 2010, 11:18:45 AM »
Quote
GENLANG apps/lang/thai.lang
mkdir -p /home/gabriel/rockbox/build/apps/lang/
/home/gabriel/rockbox/tools/genlang -e=/home/gabriel/rockbox/apps/lang/english.lang -t=ipodnano2g:`cat /home/gabriel/rockbox/build/apps/genlang-features` -i=62 -b=/home/gabriel/rockbox/build/apps/lang/thai.lng /home/gabriel/rockbox/apps/lang/thai.lang

Copy the last line:
Quote
/home/gabriel/rockbox/tools/genlang -e=/home/gabriel/rockbox/apps/lang/english.lang -t=ipodnano2g:`cat /home/gabriel/rockbox/build/apps/genlang-features` -i=62 -b=/home/gabriel/rockbox/build/apps/lang/thai.lng /home/gabriel/rockbox/apps/lang/thai.lang

Paste it in the shell, and just add
Code: [Select]
echo 
in front of it (at the beginning), then press enter and give the output
Logged
a wise man said: "a wise man said"

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: Compiler error in language.c
« Reply #14 on: September 01, 2010, 12:55:12 PM »
Here it is:

gabriel@GabrielUbuntuDesk:~/rockbox/build$ echo /home/gabriel/rockbox/tools/genlang -e=/home/gabriel/rockbox/apps/lang/english.lang -t=ipodnano2g:`cat /home/gabriel/rockbox/build/apps/genlang-features` -i=62 -b=/home/gabriel/rockbox/build/apps/lang/thai.lng /home/gabriel/rockbox/apps/lang/thai.lang
/home/gabriel/rockbox/tools/genlang -e=/home/gabriel/rockbox/apps/lang/english.lang -t=ipodnano2g:accessory_supply:backlight_brightness:crossfade:dircache:flash_storage:headphone_detection:hold_button:hotkey:lcd_bitmap:lcd_non-mono:lcd_color:morse_input:pitchscreen:quickscreen:rtc:swcodec:tagcache:tc_ramcache:charging:usb_charging_enable:wheel_acceleration:large_plugin_buffer:albumart:scrollwheel:usb_power:usbstack:<<<<<<< .mine:hardware_click:=======:>>>>>>> .r27944: -i=62 -b=/home/gabriel/rockbox/build/apps/lang/thai.lng /home/gabriel/rockbox/apps/lang/thai.lang
gabriel@GabrielUbuntuDesk:~/rockbox/build$
Logged
http://gbl08ma.com | http://i.tny.im

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiler error in language.c
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.105 seconds with 15 queries.