Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting make error while compiling APK #8

Open
boksach222 opened this issue Aug 30, 2018 · 0 comments
Open

Getting make error while compiling APK #8

boksach222 opened this issue Aug 30, 2018 · 0 comments

Comments

@boksach222
Copy link

Hello

I followed the instructions in How_to_Build.txt but I keep getting this error

a - voodoo.o
a - vgacore.o
/home/user/Android/Sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-ranlib libdisplay.a
make[2]: Leaving directory '/home/user/bochs/build/android/bochs/bin-armeabi-v7a/iodev/display'
echo done
done
make[1]: Leaving directory '/home/user/bochs/build/android/bochs/bin-armeabi-v7a'
make: *** [jni/../jni/application/src/libapplication-armeabi-v7a.so] Error 2
make: *** Waiting for unfinished jobs....

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

@boksach222
Copy link
Author

boksach222 commented Sep 1, 2018

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....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant