PDA

View Full Version : Compilation of Kernel for Android fails


yippieh
28th February 2009, 11:02 AM
Hallo,

I want to pay a big compliment to all who try to bring android to the HTC devices and hope you can help me, to complie the Kernel on my on.
Following the instructions on http://wiki.xda-developers.com/index.php?pagename=BuildTheKaiserKernel I get an error when compiling. The output is:

<stdin>:1097:2: warning: #warning syscall fadvise64 not implemented
<stdin>:1265:2: warning: #warning syscall migrate_pages not implemented
<stdin>:1321:2: warning: #warning syscall pselect6 not implemented
<stdin>:1325:2: warning: #warning syscall ppoll not implemented
<stdin>:1365:2: warning: #warning syscall epoll_pwait not implemented
<stdin>:1377:2: warning: #warning syscall timerfd_create not implemented
<stdin>:1389:2: warning: #warning syscall timerfd_settime not implemented
<stdin>:1393:2: warning: #warning syscall timerfd_gettime not implemented
scripts/genksyms/lex.c: In Funktion »yylex1«:
scripts/genksyms/lex.l:95: Warnung: Der Rückgabewert von »fwrite«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
scripts/genksyms/lex.l: Auf höchster Ebene:
scripts/genksyms/lex.c:1487: Warnung: »input« definiert, aber nicht verwendet
scripts/mod/modpost.c: In Funktion »get_markers«:
scripts/mod/modpost.c:1527: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
scripts/mod/modpost.c: In Funktion »add_marker«:
scripts/mod/modpost.c:1935: Warnung: Der Rückgabewert von »asprintf«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
scripts/kallsyms.c: In Funktion »read_symbol«:
scripts/kallsyms.c:80: Warnung: Der Rückgabewert von »fgets«, der mit dem Attribut warn_unused_result deklariert wurde, wird ignoriert
init/calibrate.c: In function 'calibrate_delay':
init/calibrate.c:172: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://support.codesourcery.com/GNUToolchain/> for instructions.
make[1]: *** [init/calibrate.o] Fehler 1
make: *** [init] Fehler 2

My configuration is Kubuntu 8.10 running on a Pentium M.

excogitation
1st March 2009, 05:18 PM
No need to open a new thread.
Polaris Android Linux Kernel Development Project (http://forum.xda-developers.com/showthread.php?t=452108)

To answer your question:
I think the htc-vogue branch is broken at the moment - because we're running into the same error.

yippieh
1st March 2009, 07:11 PM
Thanks for the reply. I already found this answer http://forum.xda-developers.com/showpost.php?p=3331331&postcount=3290, however it didn't work for me. I already tried to compile one week ago and it didn't work. I can't imagine that the branch is broken such a long time. Anyway, I hope we can make it run :)

I opened a new thread, because "Polaris Android Linux Kernel Development Project" seems quite messed up as any information related to this project is posted there and I find difficult/impossible to read the whole thread. Maybe, an own category should be created, where all the "Project-" related issues can be posted in own threads...

excogitation
1st March 2009, 11:09 PM
Found the solution to this problem: Use arm-2008q3 (http://www.codesourcery.com/sgpp/lite/arm/portal/package3696/public/arm-none-linux-gnueabi/arm-2008q3-72-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2) instead of 2008q1.

Please post your changes to the other thread (http://forum.xda-developers.com/showthread.php?t=452108).

yippieh
4th March 2009, 08:44 AM
Worked well!! Thanks.

excogitation
5th March 2009, 01:13 AM
So what are you working on?

If I read the code right - I think wlan stuff is atm only available for Kaiser (progress being made but not fully functional) - it shouldn't be a huge problem to port it to Polaris (different gpio's?).

The bluetooth stuff should also be fairly easy (at least afair) - but thats only built-in for Nike atm (and also not working).

Wired Headset also "only" needs to be ported from Vogue.

Battery and Leds are also working on Kaiser but not Polaris.
Same goes for powering down the different screens and touchscreen improvements.

If you're interested in working on any of these issues - I can probably assist you in getting it done (best contact me throug PC or IM).