Missing sys/mman.h while compiling linux kernel for beaglebone black

1,200 views
Skip to first unread message

Mike

unread,
Apr 30, 2015, 10:56:29 AM4/30/15
to beagl...@googlegroups.com, michael...@vector.com
Hi Community,

I am student and new to linux and gcc. I have the job to find a toolchain for compiling Linux for beaglebone black from Windows x64 host. Cygwin is excluded from my options. Therefore I installed the linaro gcc toolchain for Windows (gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_win32) from http://releases.linaro.org/14.04/components/toolchain/binaries/
and MinGW64. So far some compilation of helloWorld Code works.

Now I am trying to compile Linux kernel 3.14.39-ti-r61 for BBB from https://github.com/beagleboard/linux an fail because sys/mman.h included from scripts/basic/fixdep.c is missing:

C:\work\linux-3.14.39-ti-r61>mingw32-make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bb.org_defconfig
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:108:22: fatal error: sys/mman.h: No such file or directory
 #include <sys/mman.h>
                      ^
compilation terminated.
scripts/Makefile.host:118: recipe for target 'scripts/basic/fixdep' failed
mingw32-make[1]: *** [scripts/basic/fixdep] Error 1
Makefile:449: recipe for target 'scripts_basic' failed
mingw32-make: *** [scripts_basic] Error 2

I expected the files where ready to compile. Does someone know where to get this file?
Or is there something wrong with my toolchain?

Best regards
Mike

Robert Nelson

unread,
Apr 30, 2015, 10:59:26 AM4/30/15
to Beagle Board, michael...@vector.com
sys/mman.h is part of: libc6-dev

Just setup a linux vm if your going to build the linux kernel...

Regards,

--
Robert Nelson
https://rcn-ee.com/
Reply all
Reply to author
Forward
0 new messages