SRI-CSL / whole-program-llvm

A toolkit for building whole-program LLVM bitcode files
MIT License
72 stars 11 forks source link

known unknown freebsd flags #4

Closed ianamason closed 5 years ago

ianamason commented 9 years ago

"-m32" "-march=i686" "-B/home/iam/world/usr/src/lib32/usr/lib32" "-mpreferred-stack-boundary=2" "-mno-align-long-strings" "-mrtd" "-mregparm=3" "-mstack-alignment=8" "-mllvm" "-inline-threshold=3" "-enable-load-pre=false" "-mllvm" "-simplifycfg-dup-ret" "-march=i386" "cat.lo" .... "-Ttext" "0x600" "-m" "elf_i386_fbsd"

ianamason commented 8 years ago

Compiling libvirt-1.2.0: "--param=ssp-buffer-size=4"

ianamason commented 8 years ago

Marko Dimjašević adds:

-target -i686-linux-android -nostdlibinc -m32 -no-canonical-prefixes -mstackrealign -UDEBUG -m64

ianamason commented 8 years ago

--gcc-toolchain=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/ --param=ssp-buffer-size=4 --sysroot=prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8//sysroot -Bdynamic -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8//lib/gcc/x86_64-linux/4.8 -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8//lib/gcc/x86_64-linux/4.8/32 -Bprebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8//x86_64-linux/bin -Bprebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/x86_64-linux-android/bin -UANDROID -UDEBUG -UHAVE_DECL_IO_CMD_PWRITE -UHAVE_DECL_IO_CMD_PWRITEV -UHAVE_DECL_LO_FLAGS_AUTOCLEAR -UHAVE_DECL_LO_FLAGS_PARTSCAN -UHAVE_STAT64 -UHAVE_STRUCT_STAT_ST_ACLCNT -UHAVE_STRUCT_STAT_ST_FLAGS -UHAVE_STRUCT_STAT_ST_FSTYPE -UHAVE_STRUCT_STAT_ST_GEN -UHAVE_STRUCT_STAT_ST_LEVEL -UHP_PL -UNDEBUG -U_FORTIFY_SOURCE -UAPPLE -ggdb3 -m32 -m64 -march=prescott -msse4.2 -mstackrealign -no-canonical-prefixes -nostdlibinc -pedantic -pie -target i686-linux-android i686-linux-gnu x86_64-linux-gnu

You might be interested in the context. For that, check out the full compile log.

At the end of the log you can find "out of context experience" warnings, which might reveal what went wrong in the compilation process. Of course, using plain Clang without WLLVM/bitcode results in a successful compilation of Android to native code.

If you need any further info, let me know.

Regards, Marko http://dimjasevic.net/marko