Open boksach222 opened 6 years ago
I've tried building it on a number of distros in VM including Ubuntu 16.04.5 (guide uses 16.10 which is past EOL). This seems to be the furthest point of failure (happens around 100 lines before the end)
/home/user/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -c -I.. -I../.. -I../../../bochs/iodev/usb/.. -I../../../bochs/iodev/usb/../.. -I../../instrument/stubs -I../../../bochs/iodev/usb/../../instrument/stubs -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -O2 -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=300 -DANDROID -Wall -Wno-unused -Wa,--noexecstack -Wformat -Werror=format-security -isystem/home/user/Android/Sdk/ndk-bundle/sysroot/usr/include -isystem/home/user/Android/Sdk/ndk-bundle/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=14 -isystem/home/user/Android/Sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include -isystem/home/user/Android/Sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/include -isystem/home/user/Android/Sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/include/backward -isystem/home/user/androidsdl/project/jni/application/../sdl-1.2/include -isystem/home/user/androidsdl/project/jni/application/../sdl-1.2/include -isystem/home/user/androidsdl/project/jni/application/../sdl_main/include -isystem/home/user/androidsdl/project/jni/application/../sdl_native_helpers/include -isystem/home/user/androidsdl/project/jni/application/../jpeg/include -isystem/home/user/androidsdl/project/jni/application/../png/include -isystem/home/user/androidsdl/project/jni/application/../ogg/include -isystem/home/user/androidsdl/project/jni/application/../flac/include -isystem/home/user/androidsdl/project/jni/application/../vorbis/include -isystem/home/user/androidsdl/project/jni/application/../freetype/include -isystem/home/user/androidsdl/project/jni/application/../application/include -Ofast -frtti -fexceptions -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/home/user/androidsdl/project/jni/application/../sdl-1.2/include -D_GNU_SOURCE=1 -D_REENTRANT ../../../bochs/iodev/usb/usb_ohci.cc -o usb_ohci.o
../../../bochs/iodev/hdimage/hdimage.cc: In member function 'int sparse_image_t::read_header()':
../../../bochs/iodev/hdimage/hdimage.cc:880:90: error: call to 'mmap' declared with attribute error: mmap is not available with _FILE_OFFSET_BITS=64 when using GCC until android-21. Either raise your minSdkVersion, disable _FILE_OFFSET_BITS=64, or switch to Clang.
void *mmap_header = mmap(NULL, preamble_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
^
Makefile:86: recipe for target 'hdimage.o' failed
make[2]: *** [hdimage.o] Error 1
make[2]: Leaving directory '/home/user/bochs/build/android/bochs/bin-armeabi-v7a/iodev/hdimage'
Makefile:310: recipe for target 'iodev/hdimage/libhdimage.a' failed
make[1]: *** [iodev/hdimage/libhdimage.a] Error 2
make[1]: *** Waiting for unfinished jobs....
Hello
I followed the instructions in How_to_Build.txt but I keep getting this error
At this point it hangs and I have to kill it with ctrl+c. I followed the instructions exactly except I'm on Debian 9. I've tried with the newest Android API 28 as well and I still get this error.
I've attached the rest of the build-all.sh output:
compilelog3.txt