[okl4-developer] New to OKL4

Gavin Chow gwchow at gmail.com
Thu Dec 11 20:40:59 EST 2008


Hi All,

Thanks for all your help!

I've tried to get the toolchains installed, but I encountered the following
error when setting up and patching crosstools:


gavin at okl4machine://home/gavin/Desktop/OKL4-3.0/crosstool-0.43$sh
demo-arm-softfloat.sh
<long output>
.
.
Prepare kernel headers
+ cd //home/gavin/Desktop/OKL4-3.0/crosstool-0.43/src/linux-2.6.16
+ mkdir -p
//home/gavin/Desktop/OKL4-3.0/result_top/gcc-4.2.4-glibc-2.7/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/include
+ test -z
+ test -f //home/gavin/Desktop/OKL4-3.0/crosstool-0.43/arm.config
+ cp //home/gavin/Desktop/OKL4-3.0/crosstool-0.43/arm.config .config
+ test -f .config
+ yes
+ make ARCH=arm oldconfig
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:105:23: sys/types.h: No such file or directory
scripts/basic/fixdep.c:106:22: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:107:22: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:108:20: unistd.h: No such file or directory
scripts/basic/fixdep.c:109:19: fcntl.h: No such file or directory
scripts/basic/fixdep.c:110:20: string.h: No such file or directory
scripts/basic/fixdep.c:111:20: stdlib.h: No such file or directory
scripts/basic/fixdep.c:112:19: stdio.h: No such file or directory
In file included from
/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/syslimits.h:7,
                 from
/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/limits.h:11,
                 from scripts/basic/fixdep.c:113:
/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/include/limits.h:122:75: limits.h: No
such file or directory
scripts/basic/fixdep.c:114:19: ctype.h: No such file or directory
scripts/basic/fixdep.c:115:23: arpa/inet.h: No such file or directory
scripts/basic/fixdep.c: In function `usage':
scripts/basic/fixdep.c:129: warning: implicit declaration of function
`fprintf'
scripts/basic/fixdep.c:129: error: `stderr' undeclared (first use in this
function)
scripts/basic/fixdep.c:129: error: (Each undeclared identifier is reported
only once
scripts/basic/fixdep.c:129: error: for each function it appears in.)
scripts/basic/fixdep.c:130: warning: implicit declaration of function `exit'
scripts/basic/fixdep.c: In function `print_cmdline':
scripts/basic/fixdep.c:142: warning: implicit declaration of function
`printf'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:151: error: `NULL' undeclared here (not in a
function)
scripts/basic/fixdep.c: In function `grow_config':
scripts/basic/fixdep.c:164: warning: implicit declaration of function
`realloc'
scripts/basic/fixdep.c:164: warning: assignment makes pointer from integer
without a cast
scripts/basic/fixdep.c:165: error: `NULL' undeclared (first use in this
function)
scripts/basic/fixdep.c:166: warning: implicit declaration of function
`perror'
scripts/basic/fixdep.c: In function `is_defined_config':
scripts/basic/fixdep.c:182: warning: implicit declaration of function
`memcmp'
scripts/basic/fixdep.c: In function `define_config':
scripts/basic/fixdep.c:195: warning: implicit declaration of function
`memcpy'
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:214: error: `PATH_MAX' undeclared (first use in this
function)
scripts/basic/fixdep.c:228: warning: implicit declaration of function
`tolower'
scripts/basic/fixdep.c:214: warning: unused variable `s'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:233: error: syntax error before "size_t"
scripts/basic/fixdep.c:234: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:235: error: `map' undeclared (first use in this
function)
scripts/basic/fixdep.c:235: error: `len' undeclared (first use in this
function)
scripts/basic/fixdep.c:241: warning: implicit declaration of function
`ntohl'
scripts/basic/fixdep.c:252: warning: implicit declaration of function
`isalnum'
scripts/basic/fixdep.c: In function `strrcmp':
scripts/basic/fixdep.c:265: warning: implicit declaration of function
`strlen'
scripts/basic/fixdep.c: In function `do_config_file':
scripts/basic/fixdep.c:276: error: storage size of `st' isn't known
scripts/basic/fixdep.c:280: warning: implicit declaration of function `open'
scripts/basic/fixdep.c:280: error: `O_RDONLY' undeclared (first use in this
function)
scripts/basic/fixdep.c:282: error: `stderr' undeclared (first use in this
function)
scripts/basic/fixdep.c:286: warning: implicit declaration of function
`fstat'
scripts/basic/fixdep.c:288: warning: implicit declaration of function
`close'
scripts/basic/fixdep.c:291: warning: implicit declaration of function `mmap'
scripts/basic/fixdep.c:291: error: `NULL' undeclared (first use in this
function)
scripts/basic/fixdep.c:291: error: `PROT_READ' undeclared (first use in this
function)
scripts/basic/fixdep.c:291: error: `MAP_PRIVATE' undeclared (first use in
this function)
scripts/basic/fixdep.c:291: warning: assignment makes pointer from integer
without a cast
scripts/basic/fixdep.c:300: warning: implicit declaration of function
`munmap'
scripts/basic/fixdep.c:276: warning: unused variable `st'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:305: error: syntax error before "size_t"
scripts/basic/fixdep.c:306: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:307: error: `map' undeclared (first use in this
function)
scripts/basic/fixdep.c:308: error: `len' undeclared (first use in this
function)
scripts/basic/fixdep.c:310: error: `PATH_MAX' undeclared (first use in this
function)
scripts/basic/fixdep.c:312: warning: implicit declaration of function
`strchr'
scripts/basic/fixdep.c:314: error: `stderr' undeclared (first use in this
function)
scripts/basic/fixdep.c:310: warning: unused variable `s'
scripts/basic/fixdep.c: In function `print_deps':
scripts/basic/fixdep.c:347: error: storage size of `st' isn't known
scripts/basic/fixdep.c:351: error: `O_RDONLY' undeclared (first use in this
function)
scripts/basic/fixdep.c:353: error: `stderr' undeclared (first use in this
function)
scripts/basic/fixdep.c:363: error: `NULL' undeclared (first use in this
function)
scripts/basic/fixdep.c:363: error: `PROT_READ' undeclared (first use in this
function)
scripts/basic/fixdep.c:363: error: `MAP_PRIVATE' undeclared (first use in
this function)
scripts/basic/fixdep.c:363: warning: assignment makes pointer from integer
without a cast
scripts/basic/fixdep.c:347: warning: unused variable `st'
scripts/basic/fixdep.c: In function `traps':
scripts/basic/fixdep.c:382: error: `stderr' undeclared (first use in this
function)
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
gavin at okl4machine://home/gavin/Desktop/OKL4-3.0/crosstool-0.43$

Am I missing something?

Please advise.

Thanks in advance!

Regards,
Gavin

On Thu, Dec 4, 2008 at 3:34 PM, Geoffrey Lee <glee at ok-labs.com> wrote:

> On Thu, Dec 04, 2008 at 02:49:30PM +0800, Gavin Chow wrote:
> > Hi Yeonju,
> >
>
>
> Hi - in addition to what Yeonju has said, please note that
> if you use ./tools/build.py as the command line then it must be
> invoked from the okl4_3.0 directory, following standard
> command line path conventions.  In addition, the latest
> IA-32 port of OKL4 is 2.1.
>
>        -gl
>
>
> > Thanks for the quick reply!
> >
> > You're right, I don't have Python 2.4 and that's causing the error. I've
> > installed Python 2.4 and symlinked /usr/bin/python from Python 2.5 to
> Python
> > 2.4.
> >
> > After that, I tried the build script and encountered the following:
> >
> > gavin at okl4machine:~/Desktop/OKL4/okl4_3.0$ ./tools/build.py
> > machine=ia32_pc99 project=l4test
> > scons: Reading SConscript files ...
> > /home/gavin/Desktop/OKL4/okl4_3.0/tools/scons.py:330  l4test is not a
> valid
> > project
> > gavin at okl4machine:~/Desktop/OKL4/okl4_3.0$ ls
> > arch  cells  ctest  cust  drivers  examples  iguana  kbench  ktest  libs
> > nanokernel  nanotest  pistachio  platform  projects  sdk  soc-sdk  tools
> > gavin at okl4machine:~/Desktop/OKL4/okl4_3.0$ cd projects
> > gavin at okl4machine:~/Desktop/OKL4/okl4_3.0/projects$ ls
> > ctest  examples  iguana  kbench  ktest  linux  ntest  sdk  soc-sdk
> > gavin at okl4machine:~/Desktop/OKL4/okl4_3.0/projects$ ./tools/build.py
> > machine=ia32_pc99 project=iguana
> > bash: ./tools/build.py: No such file or directory
> > gavin at okl4machine:~/Desktop/OKL4/okl4_3.0/projects$ cd ..
> > gavin at okl4machine:~/Desktop/OKL4/okl4_3.0$ ./tools/build.py
> > machine=ia32_pc99 project=iguana
> > scons: Reading SConscript files ...
> > /home/gavin/Desktop/OKL4/okl4_3.0/tools/kenge.py:141  'ia32_pc99' is not
> a
> > valid machine. Must be one of: ['gta01', 'gta01_xip', 'gumstix',
> > 'ipaq_h3800', 'kzm_arm11', 'pleb', 'versatile', 'versatile_uboot']
> > gavin at okl4machine:~/Desktop/OKL4/okl4_3.0$ ./tools/build.py
> machine=gumstix
> > project=iguana
> > scons: Reading SConscript files ...
> > test_device
> > skip
> > pxa250_timer
> > uart_8250
> > pxa250_dma
> > pxa250_rtc
> > pxa250_gpio
> > pxa250_cs
> > kirq_device
> > skip
> > Unable to find package: drivers/pxa250_dma
> > Unable to find package: libs/vdma
> > Unable to find package: drivers/pxa250_gpio
> > Unable to find package: libs/vgpio
> > Unable to find package: drivers/pxa250_cs
> > Unable to find package: libs/vcs
> > SERIAL_DRIVER is  uart_8250
> > Unable to find package: iguana/vdma
> > Unable to find package: iguana/vgpio
> > Unable to find package: iguana/vcs
> > scons: done reading SConscript files.
> > scons: Building targets ...
> > [INST] build/pistachio/include/kernel/macros.h
> > Copy("build/pistachio/object/pistachio/include/arch/pgent.h",
> > "arch/arm/pistachio/include/pgent.h")
> > Copy("build/pistachio/object/pistachio/include/arch/space.h",
> > "arch/arm/pistachio/include/space.h")
> > Copy("build/pistachio/object/pistachio/include/arch/ktcb.h",
> > "arch/arm/pistachio/include/ktcb.h")
> > Copy("build/pistachio/object/pistachio/include/arch/tcb.h",
> > "arch/arm/pistachio/include/tcb.h")
> > [INST] build/pistachio/include/atomic_ops/atomic_ops.h
> > Copy("build/pistachio/object/pistachio/include/arch/config.h",
> > "arch/arm/pistachio/include/config.h")
> > [INST] build/pistachio/include/kernel/config.h
> > [INST] build/pistachio/include/kernel/types.h
> > Copy("build/pistachio/object/pistachio/include/arch/globals.h",
> > "arch/arm/pistachio/include/globals.h")
> > [INST] build/pistachio/include/l4/config.h
> > Copy("build/pistachio/object/pistachio/include/arch/debug.h",
> > "arch/arm/pistachio/include/debug.h")
> > [INST] build/pistachio/include/kernel/debug.h
> > [INST] build/pistachio/include/l4/map_types.h
> > Copy("build/pistachio/object/pistachio/include/arch/phys_segment.h",
> > "arch/arm/pistachio/include/phys_segment.h")
> > Copy("build/pistachio/object/pistachio/include/arch/profile.h",
> > "arch/arm/pistachio/include/profile.h")
> > Copy("build/pistachio/object/pistachio/include/arch/resources.h",
> > "arch/arm/pistachio/include/resources.h")
> > [INST] build/pistachio/include/kernel/bitmap.h
> > [INST] build/pistachio/include/kernel/generic/lib.h
> > [INST] build/pistachio/include/l4/arch/vregs.h
> > Copy("build/pistachio/object/pistachio/include/arch/cache.h",
> > "arch/arm/pistachio/include/cache.h")
> > [INST] build/pistachio/include/kernel/cache.h
> > [INST] build/pistachio/include/compat/c.h
> > [INST] build/pistachio/include/l4/macros.h
> > Copy("build/pistachio/object/pistachio/include/arch/hwspace.h",
> > "arch/arm/pistachio/include/hwspace.h")
> > Copy("build/pistachio/object/pistachio/include/arch/ver/pgent.h",
> > "arch/arm/pistachio/v5/include/pgent.h")
> > Copy("build/pistachio/object/pistachio/include/arch/ver/space.h",
> > "arch/arm/pistachio/v5/include/space.h")
> > Copy("build/pistachio/object/pistachio/include/arch/exception.h",
> > "arch/arm/pistachio/include/exception.h")
> > Copy("build/pistachio/object/pistachio/include/arch/thread.h",
> > "arch/arm/pistachio/include/thread.h")
> > Copy("build/pistachio/object/pistachio/include/arch/asm_prototypes.h",
> > "arch/arm/pistachio/include/asm_prototypes.h")
> >
> Copy("build/pistachio/object/pistachio/include/arch/resource_functions.h",
> > "arch/arm/pistachio/include/resource_functions.h")
> > Copy("build/pistachio/object/pistachio/include/arch/ver/tcb.h",
> > "arch/arm/pistachio/v5/include/tcb.h")
> > Copy("build/pistachio/object/pistachio/include/cpu/cache.h",
> > "arch/arm/pistachio/cpu/xscale/include/cache.h")
> > Copy("build/pistachio/object/pistachio/include/cpu/syscon.h",
> > "arch/arm/pistachio/cpu/xscale/include/syscon.h")
> > [INST] build/pistachio/include/kernel/arch/asm.h
> > [INST] build/pistachio/include/kernel/arch/continuation.h
> > [INST] build/pistachio/include/atomic_ops/arch/atomic_ops.h
> > [INST] build/pistachio/include/l4/types.h
> > Copy("build/pistachio/object/pistachio/include/arch/page.h",
> > "arch/arm/pistachio/include/page.h")
> > Copy("build/pistachio/object/pistachio/include/arch/ver/config.h",
> > "arch/arm/pistachio/v5/include/config.h")
> > [INST] build/pistachio/include/kernel/arch/config.h
> > [INST] build/pistachio/include/l4/arch/config.h
> > [INST] build/pistachio/include/kernel/arch/types.h
> > Copy("build/pistachio/object/pistachio/include/kdb/macro_set.h",
> > "pistachio/kdb/include/macro_set.h")
> > Copy("build/pistachio/object/pistachio/include/arch/ver/phys_segment.h",
> > "arch/arm/pistachio/v5/include/phys_segment.h")
> > Copy("build/pistachio/object/pistachio/include/arch/syscalls.h",
> > "arch/arm/pistachio/include/syscalls.h")
> > [INST] build/pistachio/include/kernel/errors.h
> > [INST] build/pistachio/include/soc/soc.h
> > [INST] build/pistachio/include/kernel/arch/special.h
> > [INST] build/pistachio/include/l4/cust/utcb.h
> > [INST] build/pistachio/include/l4/cust/vregs.h
> > [INST] build/pistachio/include/soc/arch/soc.h
> > [INST] build/pistachio/include/compat/toolchain/ads_c.h
> > [INST] build/pistachio/include/compat/toolchain/flint_c.h
> > [INST] build/pistachio/include/compat/toolchain/gnu_c.h
> > [INST] build/pistachio/include/compat/toolchain/rvct_c.h
> > [INST] build/pistachio/include/compat/toolchain/rvct_gnu_c.h
> > Copy("build/pistachio/object/pistachio/include/arch/fass.h",
> > "arch/arm/pistachio/include/fass.h")
> > Copy("build/pistachio/object/pistachio/include/arch/ver/ptab.h",
> > "arch/arm/pistachio/v5/include/ptab.h")
> > [INST] build/pistachio/include/l4/arch/ver/space_resources.h
> > Copy("build/pistachio/object/pistachio/include/arch/fass_inline.h",
> > "arch/arm/pistachio/include/fass_inline.h")
> > [INST] build/pistachio/include/kernel/arch/asm_gnu.h
> > [INST] build/pistachio/include/kernel/arch/asm_rvct.h
> > [INST] build/pistachio/include/atomic_ops/unsafe_generic.h
> > [INST] build/pistachio/include/l4/arch/specials.h
> > [INST] build/pistachio/include/l4/arch/types.h
> > [INST] build/pistachio/include/l4/arch/ver/page.h
> > Copy("build/pistachio/object/pistachio/include/cpu/phys_segment.h",
> > "arch/arm/pistachio/cpu/xscale/include/phys_segment.h")
> > Copy("build/pistachio/object/pistachio/include/arch/ver/utcb.h",
> > "arch/arm/pistachio/v5/include/utcb.h")
> > [INST] build/pistachio/include/l4/arch/syscalls_asm.h
> > [INST] build/pistachio/include/kernel/kdb/console.h
> > [INST] build/pistachio/include/soc/soc_types.h
> > [INST] build/pistachio/include/l4/arch/cache_attribs.h
> > [INST] build/pistachio/include/l4/arch/ver/cache_attribs.h
> > [INST] build/pistachio/include/l4/cpu/cache_attribs.h
> > [CXX ] build/pistachio/l4kernel/object/src/asid.o
> > sh: arm-linux-g++: not found
> > scons: *** [build/pistachio/l4kernel/object/src/asid.o] Error 127
> > scons: building terminated because of errors.
> > Is installing OKL4 as straightforward as just running the build script?
> >
> > Please advise.
> >
> > Thanks in advance!
> >
> > Cheers!
> > Gavin
> >
> > On Thu, Dec 4, 2008 at 1:56 PM, Yeonju <xelis at hufs.ac.kr> wrote:
> >
> > >
> > > Hi~
> > >
> > > I think...this message(blew) means python2.4 is not installed.
> > >
> > > $./tools/build.py machine=ia32_pc99 project=l4test
> > > /usr/bin/env: python2.4: No such file or directory
> > >
> > > Please check it using "python -V" command in your Ubuntu terminal.
> > > If python is not installed, you must install python 2.4, not 2.5 or
> 2.6.
> > > (In okl4 2.1, it needs python 2.4. But I'm not sure okl4 3 also needs
> same
> > > python version.)
> > >
> > > Regards,
> > >
> > >
> > >
> > > Gavin Chow wrote:
> > > >
> > > > Hi All,
> > > >
> > > > Good day!
> > > >
> > > > I became a fan of OKL4 after reading about its microkernel approach
> and
> > > > how
> > > > it is built with security in mind.
> > > >
> > > > I've downloaded the latest release from
> > > > http://wiki.ok-labs.com/Release/3.0 and
> > > > want to try it out in my environment.
> > > >
> > > > Correct me if I'm wrong, but from what I understand, OKL4 is like a
> > > > virtual
> > > > machine host, and OK Linux is the virtual machine guest. If that is
> the
> > > > case, do I setup OKL4 directly on a PC? Or should I install Linux on
> the
> > > > PC
> > > > first, and then install OKL4 followed by OK Linux on top? I've tried
> the
> > > > second approach using Ubuntu 8.04 but I could not install OKL4 after
> > > > following these steps:
> > > >
> > > > 1. Install Ubuntu 8.04 and updated with latest patches
> > > > 2. Downloaded
> > > > http://wiki.ok-labs.com/downloads/release-3.0/okl4_3.0.tar.gz and
> > > > followed instructions from
> http://wiki.ok-labs.com/BuildingAndSimulating
> > > > by
> > > > running:
> > > >
> > > > $./tools/build.py machine=ia32_pc99 project=l4test
> > > > /usr/bin/env: python2.4: No such file or directory
> > > >
> > > > And this is where I got stuck. I feel that I may have missed out on a
> > > > whole
> > > > lot of stuff before I can actually run build.py. I'm new to embedded
> > > > development and I would like to learn more in this area.
> > > >
> > > > I'd greatly appreciate anyone's feedback.
> > > >
> > > > Thanks in advance!
> > > >
> > > > Cheers!
> > > > Gavin
> > > >
> > > > _______________________________________________
> > > > Developer mailing list
> > > > Developer at okl4.org
> > > > https://lists.okl4.org/mailman/listinfo/developer
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> > > http://n2.nabble.com/New-to-OKL4-tp1612308p1612358.html
> > > Sent from the OKL4 Community Forum mailing list archive at Nabble.com.
> > >
> > >
> > > _______________________________________________
> > > Developer mailing list
> > > Developer at okl4.org
> > > https://lists.okl4.org/mailman/listinfo/developer
> > >
>
> > _______________________________________________
> > Developer mailing list
> > Developer at okl4.org
> > https://lists.okl4.org/mailman/listinfo/developer
>
>
> --
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.okl4.org/pipermail/developer/attachments/20081211/1a656580/attachment-0001.htm 


More information about the Developer mailing list