Build using x32-generic (for non PAE platform) looking for stubs-64.h?

68 views
Skip to first unread message

D K

unread,
Aug 9, 2014, 11:18:35 AM8/9/14
to chromium...@chromium.org
Hello World

  I am still a newbie compiling ChromeOS. I have been spending days if not weeks reading up on the topic and having my computer doing most of the hard work. In short, I followed the "official" developer guide at chromium.org and makes a few successful builds for x64-generic (by following the instruction to the dot using Ubuntu 12.04 64-bit platform for the build)

  However my goal was to compile a non PAE version of Chrome OS. Which I have read up on many postings, suggestions (and too bad hexxeh is no longer making lime builds!). First I tried the simple things like setting CONFIG_X86_PAE=n in common.config or even common it out so it is not defined. Yes I did a clean build including --nousepkg option (and that's PAINFUL! Worst than watching paint dry...) Build went fine at the end, but upon booting it still complains it needs PAE

   Until I did more searching and digging deeper, reading one of the Linux Kernel thread, someone seems able to build a non PAE version of Linux kernel by using x32-generic. Which I have eyed when I first looked at the "board selection" in overlays directory... So I "rm -rf"ed the x86-generic directory and started from scratch... the computer was humming for over a day, until this morning... Some files in libwebp was referencing stubs-64.h and as expected it wasn't found and failed...

   A quick hack leads me to look at my backed up x86-generic directory, and to my surprise there isn't a stubs-64.h either!!

x86-generic/usr/include/gnu/stubs.h
x86-generic/usr/include/gnu/stubs-32.h

   So it leads me back to stubs.h

#if !defined __x86_64__
# include <gnu/stubs-32.h>
#endif
#if defined __x86_64__ && defined __LP64__
# include <gnu/stubs-64.h>
#endif
#if defined __x86_64__ && defined __ILP32__
# include <gnu/stubs-x32.h>
#endif

somehow the second condition was met and it tries to look for stubs-64.h... Now I need to find out who (or where) defined __LP64__

***Now question for the experts***
Am I on the right track at all? Or it is known to fail because since version XXX PAE is a must requirement? If so, what's the last version I can still compile without PAE and can someone share the build instruction?

   Yes I have read the last version by hexxeh was ChromeOS-Lime-2237.0.2012_07_08_1610, but I also understand the current linux kernel (seems) to support non PAE as well....

   Thanks in advance...

Mike Frysinger

unread,
Aug 9, 2014, 11:28:59 PM8/9/14
to chromium...@chromium.org
this is a topic for CrOS lists rather than Chromium.  which you've started now:
Reply all
Reply to author
Forward
0 new messages