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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  New compilation errors
« previous next »
  • Print
Pages: [1]

Author Topic: New compilation errors  (Read 3757 times)

Offline Job Van Dam

  • Member
  • *
  • Posts: 167
New compilation errors
« on: October 27, 2007, 01:17:46 PM »
Lately I've been getting many, many compilation errors similar to the ones below:
Code: [Select]
In file included from vbr.c:36:
config-speex.h:116:1: warning: this is the location of the previous definition
In file included from ../codec.h:22,
                 from config-speex.h:1,
                 from misc.h:38,
                 from vbr.h:40,
                 from vbr.c:39:
./config.h:116:1: warning: "SPEEX_VERSION" redefined
In file included from vbr.c:36:
config-speex.h:122:1: warning: this is the location of the previous definition
In file included from misc.h:38,
                 from vbr.h:40,
                 from vbr.c:39:
config-speex.h:110:1: warning: "SPEEX_EXTRA_VERSION" redefined
In file included from ../codec.h:22,
                 from config-speex.h:1,
                 from misc.h:38,
                 from vbr.h:40,
                 from vbr.c:39:
./config.h:104:1: warning: this is the location of the previous definition
In file included from misc.h:38,
                 from vbr.h:40,
                 from vbr.c:39:
config-speex.h:116:1: warning: "SPEEX_MICRO_VERSION" redefined
In file included from ../codec.h:22,
                 from config-speex.h:1,
                 from misc.h:38,
                 from vbr.h:40,
                 from vbr.c:39:
./config.h:110:1: warning: this is the location of the previous definition
In file included from misc.h:38,
                 from vbr.h:40,
                 from vbr.c:39:
In the begining I just figured someone made a mistake and was correcting it but it's been like this for awhile. Am I the crazy one here? Anyone else getting wacky compilation errors with the latest source?
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: New compilation errors
« Reply #1 on: October 27, 2007, 01:26:29 PM »
Considering SVN builds are going fine, it pretty much means there's something wrong in your personal situation. Try reverting your sources and reconfiguring.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: New compilation errors
« Reply #2 on: October 27, 2007, 03:42:40 PM »
Try deleting the folder you were building in and rerunning configure.
Logged

Offline robin0800

  • Member
  • *
  • Posts: 291
  • Freeman
Re: New compilation errors
« Reply #3 on: October 27, 2007, 08:07:04 PM »
cd out of build
cd out of rockbox
run svn revert -R rockbox
run svn clean up rockbox

if this doesn't work you will have to do the above post sugestion.
Logged

Offline Job Van Dam

  • Member
  • *
  • Posts: 167
Re: New compilation errors
« Reply #4 on: October 27, 2007, 09:44:36 PM »
A good ole Cygwin reinstall fixed everything, thank guys.

Can anyone suggest a good online C website? I'm trying to put together my own simple, small plugin. I know programming logic but Rockbox code is... heavy stuff to digest.

Thanks again.
« Last Edit: October 27, 2007, 09:47:16 PM by Job Van Dam »
Logged

Offline Job Van Dam

  • Member
  • *
  • Posts: 167
Re: New compilation errors
« Reply #5 on: November 18, 2007, 06:45:34 AM »
I'm having troubles again...

Code: [Select]
CC powermgmt.c
In file included from powermgmt.c:45:
export/font.h:30:21: error: sysfont.h: No such file or directory
make[1]: *** [/home/griz/rockbox-devel/build/firmware/powermgmt.o] Error 1
make: *** [build] Error 2
font.c is in the firmware folder. font.h is in firmware/export folder.
I can compile the simulator fine for some weird reason. I've reinstalled Cygwin and even tried fresh, new, unpatched source.
If I manually add the sysfont.h to the Build folder it eventually craps out again with another file.
I've tried what saratoga and robin suggested.

Anyone else got any suggestions? I just wanna update cause for the Gigabeat every Saturday the time gets wiped and it's recently been fixed.
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: New compilation errors
« Reply #6 on: November 18, 2007, 05:13:04 PM »
sysfont.h is generated by the convbdf tool that is built in the tools/ dir, so if you don't get a sysfont.h in your build dir something very basic failed!
Logged

Offline Job Van Dam

  • Member
  • *
  • Posts: 167
Re: New compilation errors
« Reply #7 on: November 19, 2007, 08:25:54 AM »
This whole thing is really frustrating.

Awhile back it didn't work (above posts) so I just re-installed everything and it worked. Now I run into this. For the longest time I had zero problems then all of a sudden one day it doesn't work because "something basic failed".
Was something recently changed with Cygwin, compilation, SVN or something that I possibly missed? I mean anything, I'll try anything at this point.
Logged

Offline pondlife

  • Developer
  • Member
  • *
  • Posts: 248
Re: New compilation errors
« Reply #8 on: November 19, 2007, 08:39:59 AM »
Hmm, you shouldn't need to do anything more than:

- cd (whatever you called it)
- svn up
- cd (whatever you called it)
- ../tools/configure (select your build)
- make clean
- make

Sounds like your svn up might have failed in some way.

pondlife
Logged

Offline Job Van Dam

  • Member
  • *
  • Posts: 167
Re: New compilation errors
« Reply #9 on: November 20, 2007, 08:18:53 AM »
What does 'svn up' do? I looked it up and it updates but what does it update? I've never used it before in the past.
I update my source manually by downloading the lastest Source Archive from build.rockbox.org then overwriting the older source.

I found the (N) at the end of the last line weird, is it normal?
Code: [Select]
Platform set to gigabeatf

Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (M)anual (N)
n

I follow these steps to compile my own build everytime:
Code: [Select]
export PATH=/opt/sh/bin:/opt/m68k/bin:/opt/arm/bin:/bin:$PATH

cd d:/cygwin/home/griz/rockbox-devel/
patch --binary -p0 < progressbar_slider.patch
patch --binary -p1 < hold-poweroff.diff
patch --binary -p1 < more-hold-poweroff.diff

cd build [for actual Gigabeat] OR cd sim [for UI Simulator]
../tools/configure, 40, n [for actual Gigabeat] OR s [for UI Simulator]
make
make zip [for actual Gigabeat] OR make install [for UI Simulator]
(check folder for zip file)

| make clean | -- when in build or sim folder will clear it out

EDIT: As I was typing this reply out I was trying different things. I tried properly uninstalling Cygwin, and then compiling again with the latest source. It worked.
Before I was using the source from Nov 11 because that's the last point which a patch I require worked. I just didn't think the source had much to do with compiling. Thanks for the help guys. I'm just gonna hold out until the patch I need gets synced.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: New compilation errors
« Reply #10 on: November 20, 2007, 10:15:08 AM »
svn up updates the source code you have previously checked out using svn, attempting to merge any local changes you have made (e.g. patches).  It saves having to download the entire source every time and reapply patches (unless there was a big enough change in svn that they won't apply, in which case it tells you).
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline speedebikes

  • Member
  • *
  • Posts: 11
Re: New compilation errors
« Reply #11 on: November 20, 2007, 11:22:50 AM »
Job,

I'm brand new here to rockbox and the open source development community, but as a long time developer having used Microsoft's mediocre Source Safe tool and later the very good Perforce revision system I can tell you that SVN is a revision control system and you definitely want to take the time to learn about it and use it.

When dealing with a big collaborative software effort a revision control system keeps track of all of the changes going into the project, it keeps track of what revision you currently have on your client and let's you do minimal updates where only the files that have changed will need to be copied down.  Normally you'll want to sync to the latest revision, but sometiimes when things go wrong it enables you to sync to older revisions which is a powerful way to determine when/what something got screwed up.

If you ever want to contribute code to a project you have to learn and use the revision system.  It enables the developers to keep track of who is changing what.  When multiple people are making changes to the same file simultaneously the check in procedure aids in getting the changes from each merged together.  For files that are difficult or impossible to merge (often binaries) files can be locked by one individual while making changes so that no one else will simultaneously attempt to make changes.

So even if you are only pulling code and not trying to write and push code back it is worthwhile to learn and use SVN.  It will likely prevent your version getting in the funky state you have it now.  And if you do have troubles it will make them easier to resolve.

There's lots more that revision control systems can do but one other important one is the management of branches.  Sometimes developers work on a feature that is only of interest to a subset of the community or may take some time to become fully proven and ready for inclusion in the main releases.  So a branch is created to contain this set of changes.  If there is code of interest to you in a branch you will likely only have access to it through using SVN.

Finally, there's a Wikipedia page on SVN http://en.wikipedia.org/wiki/Subversion_%28software%29 which is a good place to get a general introduction to it.

Todd Allen
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: New compilation errors
« Reply #12 on: November 20, 2007, 03:49:47 PM »
Quote from: Job Van Dam on November 20, 2007, 08:18:53 AM

I found the (N) at the end of the last line weird, is it normal?
Code: [Select]
Platform set to gigabeatf

Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (M)anual (N)
n

That indicates the default option if you don't pick anything...
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Job Van Dam

  • Member
  • *
  • Posts: 167
Re: New compilation errors
« Reply #13 on: November 20, 2007, 04:22:55 PM »
Speedbikes.... holy crap you are intelligent. You have to have a job in IT. If you don't, why not?
I'm looking for a job in IT, entry level of course, so I'm going strongly consider what you said and use this SVN. Thanks for the advice.
Logged

Offline speedebikes

  • Member
  • *
  • Posts: 11
Re: New compilation errors
« Reply #14 on: November 23, 2007, 08:44:08 PM »
Job, I'm a retired video game programmer.  Not intelligence, just experience.  I'm used to being totally baffled and finding instructions that tell exactly what to do, but now why to do it.  And without knowing the why its often tough to adapt exact instructions to ones circumstances.  I guessed you were just starting out and a bit more of an explanation would be useful.

Anyway, you have one big advantage over me.  When I started out there was no Google or Wikipedia or any of the other fantastic internet resources that you can use to get more info fast on so many technical topics.  When you get instructions, but don't get the 'why' behind them be sure to do some searching.

Good luck job hunting.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  New compilation errors
 

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

Page created in 0.123 seconds with 14 queries.