ok so i'm trying to compile dropbox..
i have installed build essentials, gcc, and c++. when i run ./configure i get
"configure:3169: error: C compiler cannot create executables"
i've searched the web for the last hour and can't find a working solution. the best guess i have is that the motorola modified packages that i locked down with the webtop scripts are causing problems. here's a chunk of the config.log, i don't really know what this means
Code:
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2274: checking for a BSD-compatible install
configure:2342: result: /usr/bin/install -c
configure:2353: checking whether build environment is sane
configure:2403: result: yes
configure:2544: checking for a thread-safe mkdir -p
configure:2583: result: ./install-sh -c -d
configure:2596: checking for gawk
configure:2612: found /usr/bin/gawk
configure:2623: result: gawk
configure:2634: checking whether make sets $(MAKE)
configure:2656: result: yes
configure:2798: checking for gcc
configure:2814: found /usr/bin/gcc
configure:2825: result: gcc
configure:3054: checking for C compiler version
configure:3063: gcc --version >&5
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3074: $? = 0
configure:3063: gcc -v >&5
Using built-in specs.
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-libssp --disable-sjlj-exceptions --with-arch=armv5t --with-tune=cortex-a8 --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
configure:3074: $? = 0
configure:3063: gcc -V >&5
gcc: '-V' option must have argument
configure:3074: $? = 1
configure:3063: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3074: $? = 1
configure:3096: checking for C compiler default output file name
configure:3118: gcc conftest.c >&5
/osh/usr/bin/../lib/gcc/arm-linux-gnueabi/4.3.3/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
configure:3122: $? = 1
configure:3159: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "nautilus-dropbox"
| #define PACKAGE_TARNAME "nautilus-dropbox"
| #define PACKAGE_VERSION "0.7.1"
| #define PACKAGE_STRING "nautilus-dropbox 0.7.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "nautilus-dropbox"
| #define VERSION "0.7.1"
| /* end confdefs.h. */
| #include <stdio.h>
| int
| main ()
| {
| FILE *f = fopen ("conftest.out", "w");
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:3165: error: in `/data/home/adas/nautilus-dropbox-0.7.1':
configure:3169: error: C compiler cannot create executables
See `config.log' for more details.
bump?
nobody? i tried reinstalling build-essential, gcc, c++, g++ in synaptic and it errors before finishing.. i think its cause it can't update some of the pkgs the scripts locked. i'm going start over not locking the pkgs and see if i can set up a sane build environment. =) other wise.. i mean, wtf? webtop is useless
I would suppose your problem is described in the following line:
Code:
/osh/usr/bin/../lib/gcc/arm-linux-gnueabi/4.3.3/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
Searching for that file, or where it should be (/usr/lib) brings up nothing.
If you open Synaptic and search there are a couple of libmpfr packages, try upgrading/installing them. I don't want to because I don't care about compiling this and the last time I went around randomly upgrading packages it broke my webtop and I just got it where I want it.
Don't forget that in Ubuntu/Debian that you need to install the -dev packages for many libraries if you want to compile.
I was able to compile a simple hello-world.c program after installing libmpfr-dev, which then installed/upgraded other packages.
Related
Hello all,
I am newbie on android development. I have beaglebone(TI AM335x Cortex-A8 about 720MHz with NEON) and want build mplayer. I use TI SDK.
I have modified conf1.sh to this:
Code:
export NDKHOME=/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/linux-x86
. ./confn.sh
./configure --cc=$NDKHOME/arm-eabi-4.4.3/bin/arm-eabi-gcc --ar=$NDKHOME/arm-eabi-4.4.3/bin/arm-eabi-ar --as=$NDKHOME/arm-eabi-4.4.3/bin/arm-eabi-as --ranlib=$NDK_HOME/arm-eabi-4.4.3/bin/arm-eabi-ranlib --host-cc=gcc --target=arm-linux-eabi --disable-dvdnav --disable-dvdread --disable-dvdread-internal --disable-vcd --disable-real --disable-xanim --disable-mencoder --disable-mp3lib --disable-tremor-internal --disable-fbdev --disable-tga --disable-md5sum --disable-yuv4mpeg --disable-pnm --disable-dvb --disable-tv --disable-ftp --disable-select --disable-armv6t2 --enable-mpg123 --disable-gif --disable-jpeg --enable-faad --disable-libmpeg2-internal --disable-mencoder --datadir="/sdcard/mplayer" --confdir="/sdcard/mplayer" --libdir="/sdcard/mplayer" --disable-armvfp --disable-inet6
confn.sh:
Code:
NDK_PALTFORMS=/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/ndk/android-ndk-r4
export CFLAGS="-O9 -DANDROID -ffast-math -fomit-frame-pointer -nostdlib -lc -lm -L $NDK_PALTFORMS/platforms/android-8/arch-arm/usr/lib/ -I $NDK_PALTFORMS/platforms/android-8/arch-arm/usr/include/ -march=armv7-a -mtune=cortex-a8 -funroll-loops -Isdl -ldl"
And building has failed with the error below:
Code:
Current branch master is up to date.
Checking for gcc version ... 4.4.3
Checking for working compiler ...
Error: Compiler is not functioning correctly. Check your installation and custom CFLAGS -O9 -DANDROID -ffast-math -fomit-frame-pointer -nostdlib -lc -lm -L /PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/lib/ -I /PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/ -march=armv7-a -mtune=cortex-a8 -funroll-loops -Isdl -ldl .
Check "config.log" if you do not understand why it failed.
config.log is like below:
Code:
configuration: --cc=/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/linux-x86/arm-eabi-4.4.3/bin/arm-eabi-gcc --ar=/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/linux-x86/arm-eabi-4.4.3/bin/arm-eabi-ar --as=/PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/linux-x86/arm-eabi-4.4.3/bin/arm-eabi-as --ranlib=/arm-eabi-4.4.3/bin/arm-eabi-ranlib --host-cc=gcc --target=arm-linux-eabi --disable-dvdnav --disable-dvdread --disable-dvdread-internal --disable-vcd --disable-real --disable-xanim --disable-mencoder --disable-mp3lib --disable-tremor-internal --disable-fbdev --disable-tga --disable-md5sum --disable-yuv4mpeg --disable-pnm --disable-dvb --disable-tv --disable-ftp --disable-select --disable-armv6t2 --enable-mpg123 --disable-gif --disable-jpeg --enable-faad --disable-libmpeg2-internal --disable-mencoder --datadir=/sdcard/mplayer --confdir=/sdcard/mplayer --libdir=/sdcard/mplayer --disable-armvfp --disable-inet6
============ Checking for gcc version ============
Result is: 4.4.3
##########################################
============ Checking for working compiler ============
int main(void) { return 0; }
gcc -O9 -DANDROID -ffast-math -fomit-frame-pointer -nostdlib -lc -lm -L /PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/lib/ -I /PROJELER/AECMP_BBAndroid/TI_Android_GingerBread_2_3_4_AM335x_Sources/prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/ -march=armv7-a -mtune=cortex-a8 -funroll-loops -Isdl -ldl /tmp/mplayer-configure-30206-21317/tmp.c -I. -Iffmpeg -o /tmp/mplayer-configure-30206-21317/tmp
/tmp/mplayer-configure-30206-21317/tmp.c:1: error: bad value (armv7-a) for -march= switch
/tmp/mplayer-configure-30206-21317/tmp.c:1: error: bad value (cortex-a8) for -mtune= switch
What could be the problem ? Any help will be appreciated.
In fact I want to play udp video streams. Can you offer any open source player?
Thanks
Mehmet Kurnaz
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
I need help guys, I'm really new to this kernel compiling thing (I'm not really even a software engineer..) But anyway, so I have this mini wireless keyboard + mouse I'm trying to get to work on my MK802 II (Allwinner A10). From plugging the wireless dongle into my linux machine, I did an lsmod and determined the drivers to be hid-ortek.ko. And this driver happens to be absent on the MK802 II.
I set up my ubuntu with android sdk and ndk and all the other prereqs from thousands of other sites from googling.
Then I git cloned the Allwinner A10 kernel source from : https://github.com/amery/linux-allwinner and checked out the lichee 3.0.8+ to match the kernel version on my MK802 II.
So then I started off with:
Code:
make ARCH=arm sun4i_defconfig
make ARCH=arm menuconfig
And then I selected Ortek keyboard drivers from the UI and marked it as 'm'.
Because apparently Module.symver is only generated if you do a complete kernel build.. so I did
Code:
make ARCH=arm CROSS_COMPILE=~/Downloads/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- all
And Module.symver is created after this step.
But I looked in the ./drivers/hid folder to see if hid-ortek.ko was compiled and apparently not
so then I did:
Code:
make ARCH=arm CROSS_COMPILE=~/Downloads/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- M=./drivers/hid modules
And my "hid-ortek.ko" was still not created. The output from this was:
Code:
Building modules, stage 2.
MODPOST 0 modules
So I googled up tutorials and created a Makefile that looked like this:
Code:
VERSION = 3
PATCHLEVEL = 0
SUBLEVEL = 8
EXTRAVERSION =
obj-m += hid-ortek.o
KDIR=~/Documents/linux-allwinner
PWD := $(pwd)
default:
make -C $(KDIR) ARCH=arm CROSS_COMPILE=~/Downloads/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- SUBDIRS=$(PWD) modules
clean:
make -C $(KDIR) ARCH=arm CROSS_COMPILE=~/Downloads/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- SUBDIRS=$(PWD) clean
and did a make, that did the trick and hid-ortek.ko was created
So I did the adb push into my MK802 (into /system/vendor/modules folder) and tried insmod it.. but I kept getting
Code:
insmod: init_module 'hid-ortek.ko' failed (Exec format error)
and dmesg tells me that there is "no symbol version for module_layout". Which according to googling around means that Module.symver wasn't generated so I have to do a full build, but I did and I saw Module.symver generated in my kernel source directory. I did a modinfo on the compiled hid-ortek.ko and it shows
Code:
3.0.8+ preempt mod_unload modversions ARMv7
Which should be right. I did a modinfo on the other modules already loaded on the device and shows the exact same thing.
What am I doing wrong here? Please help.
Thanks!
chen_tso said:
I need help guys, I'm really new to this kernel compiling thing (I'm not really even a software engineer..) But anyway, so I have this mini wireless keyboard + mouse I'm trying to get to work on my MK802 II (Allwinner A10). From plugging the wireless dongle into my linux machine, I did an lsmod and determined the drivers to be hid-ortek.ko. And this driver happens to be absent on the MK802 II.
I set up my ubuntu with android sdk and ndk and all the other prereqs from thousands of other sites from googling.
Then I git cloned the Allwinner A10 kernel source from : https://github.com/amery/linux-allwinner and checked out the lichee 3.0.8+ to match the kernel version on my MK802 II.
So then I started off with:
Code:
make ARCH=arm sun4i_defconfig
make ARCH=arm menuconfig
And then I selected Ortek keyboard drivers from the UI and marked it as 'm'.
Because apparently Module.symver is only generated if you do a complete kernel build.. so I did
Code:
make ARCH=arm CROSS_COMPILE=~/Downloads/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- all
And Module.symver is created after this step.
But I looked in the ./drivers/hid folder to see if hid-ortek.ko was compiled and apparently not
so then I did:
Code:
make ARCH=arm CROSS_COMPILE=~/Downloads/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- M=./drivers/hid modules
And my "hid-ortek.ko" was still not created. The output from this was:
Code:
Building modules, stage 2.
MODPOST 0 modules
So I googled up tutorials and created a Makefile that looked like this:
Code:
VERSION = 3
PATCHLEVEL = 0
SUBLEVEL = 8
EXTRAVERSION =
obj-m += hid-ortek.o
KDIR=~/Documents/linux-allwinner
PWD := $(pwd)
default:
make -C $(KDIR) ARCH=arm CROSS_COMPILE=~/Downloads/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- SUBDIRS=$(PWD) modules
clean:
make -C $(KDIR) ARCH=arm CROSS_COMPILE=~/Downloads/android-ndk-r8b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- SUBDIRS=$(PWD) clean
and did a make, that did the trick and hid-ortek.ko was created
So I did the adb push into my MK802 (into /system/vendor/modules folder) and tried insmod it.. but I kept getting
Code:
insmod: init_module 'hid-ortek.ko' failed (Exec format error)
and dmesg tells me that there is "no symbol version for module_layout". Which according to googling around means that Module.symver wasn't generated so I have to do a full build, but I did and I saw Module.symver generated in my kernel source directory. I did a modinfo on the compiled hid-ortek.ko and it shows
Code:
3.0.8+ preempt mod_unload modversions ARMv7
Which should be right. I did a modinfo on the other modules already loaded on the device and shows the exact same thing.
What am I doing wrong here? Please help.
Thanks!
Click to expand...
Click to collapse
Did you change the kernel itself ?
'no symbol version for module_layout'
Hello, I have the exact same issue (but using kernel "2.6.36-android+")
did you find a solution?
Im also in the same boat guys...
mat23452345 said:
Hello, I have the exact same issue (but using kernel "2.6.36-android+")
did you find a solution?
Click to expand...
Click to collapse
Im buiding kernel for goodix touch drivers as im currently modding a LY-F1 JB ROM which uses a focaltouch touchscreen. but a full build is not enabling the modules and gives a exec error. Maybe it has something to do with ur extra version variable. change EXTRAVERSION = to "EXTRAVERSION =+" and do a build and tell me what happens. Im out so cant really test it.
cybermate123 said:
change EXTRAVERSION = to "EXTRAVERSION =+" and do a build and tell me what happens.
Click to expand...
Click to collapse
Thanks for the reply, but that tablet has crashed and gone now. I will bear that in mind for the future...
Hi,
I've wanted to use the app "limbo-android" ( https://code.google.com/p/limbo-android/ ) on my Intel Atom (x86) android tablet.
Unfortunatly, I have only found an apk for arm devices that crashes when I start a VM in the app. So, I have tried to build the app myself (I was following this https://code.google.com/p/limbo-android/source/browse/README ).
So far, I have downloaded the tools (SDK, NDK r8e, Eclipse + Eclipse Android plugin) and the source ( https://code.google.com/p/limbo-android/source/browse/ ) and unpacked all of it. After that, I have tried to follow the README file. So, i have competed steps 3, 4a, but I am stuck at point 4b. (I have also copied the NDK to /usr/local/bin because even when i have configured the right folders in step 3, it sayed something like ndk-build not found)
now with that done, if i type 'make' into the terminal, this is what i have got:
Code:
mkdir -p /home/sobotkama/limbo-android/jni/..//obj/local/x86/
rm -rf /home/sobotkama/limbo-android/jni/..//libs/armeabi ../libs/armeabi-v7a ../libs/x86 ../libs/mips \
mkdir -p /home/sobotkama/limbo-android/jni/..//libs/x86/
cd /home/sobotkama/limbo-android/jni/../ && ndk-build V=1 LIMBO_JNI_ROOT=/home/sobotkama/limbo-android/jni
make[1]: Entering directory `/home/sobotkama/limbo-android'
jni/Application.mk:10: ARCH_CFLAGS = -std=gnu99 -ffunction-sections -O3 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -DANDROID_X86
jni/Application.mk:11: LOCAL_ARM_MODE =
jni/Application.mk:12: LOCAL_ARM_NEON =
jni/Application.mk:13: NDK_DEBUG =
jni/Application.mk:14: APP_OPTIM =
jni/Application.mk:15: APP_ABI = x86
/usr/local/bin/build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: ''. Stop.
make[1]: Leaving directory `/home/sobotkama/limbo-android'
make: *** [sdl] Error 2
Running both Ubuntu and Windows 8.1 on my PC, doing this on Ubuntu.
Any help like what should I do or is there anyone that would build it for me, please?
Thanks, Sobotkama
Anyone?
Hi folks,
(New to the forums, tho I've been reading a bit...)
I'm trying to build the Copperhead OS version of Android (marshmallow, for a 2014 Nexus 5) and have run into an issue that I can't seem to get around. Everything seems fine until I get to this:
Code:
target Generated: libv8 <= out/host/linux-x86/bin/v8_mksnapshot.arm
/bin/bash: out/host/linux-x86/bin/v8_mksnapshot.arm: No such file or directory
make: *** [out/target/product/generic/gen/STATIC_LIBRARIES/libv8_intermediates/snapshot_arm.cc] Error 127
...which kills the build. I've been through the makefile in 'external/v8/Android.mksnapshot.mk', which seems to be controlling this part of the build, but as far as I can tell the name of the right src to compile is generated on the fly -- and I don't know enough about this to work past it in a reasonable amount of time. Any hints?
Thanks!
-j
Actually, it looks like the thing that's missing (v8_mksnapshot.arm) is what's used to compile generated source -- the compiler isn't complaining about the generated source itself:
Code:
# Generate snapshot.cc
ifeq ($(ENABLE_V8_SNAPSHOT),true)
SNAP_GEN := $(generated_sources)/snapshot_$(TARGET_ARCH).cc
MKSNAPSHOT := $(HOST_OUT_EXECUTABLES)/v8_mksnapshot.$(TARGET_ARCH)
$(SNAP_GEN): PRIVATE_CUSTOM_TOOL = $(HOST_OUT_EXECUTABLES)/v8_mksnapshot.$(TARGET_ARCH) --log-snapshot-positions --logfile $(dir [email protected])/v8-snapshot_$(TARGET_ARCH).log [email protected]
$(SNAP_GEN): $(MKSNAPSHOT)
$(transform-generated-source)
LOCAL_GENERATED_SOURCES_$(TARGET_ARCH) += $(SNAP_GEN)
...except that 'v8_mksnapshot.arm' is definitely in 'out/host/linux-x86/bin/'. When I try to run that executable:
Code:
[email protected]:/deploy/copperheados-marshmallow-release$ ./out/host/linux-x86/bin/v8_mksnapshot.arm
-bash: ./out/host/linux-x86/bin/v8_mksnapshot.arm: No such file or directory
[email protected]:/deploy/copperheados-marshmallow-release$ ls -l ./out/host/linux-x86/bin/v8_mksnapshot.arm
-rwxr-xr-x 1 admin admin 181048624 Sep 17 15:34 ./out/host/linux-x86/bin/v8_mksnapshot.arm
That usually means some library on which the executable depends is missing.
I'm trying to build an android kernel. On every build I get a few errors:
/usr/bin/as: unrecognized option '-EL' clang-16: error: assembler command failed with exit code 1 (use -v to see invocation)
warning: field 'cgrp' with variable sized type 'struct cgroup' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end] struct group cgrp;
warning: unused function 'dump_workqueue' [-Wunused-function] static void dump_workqueue(void) {}
I've already tried a lot. No more ideas and information on the Internet. Please help me how to solve this.
I use clang-r475365b, gcc android-11.0.0_r48 and linux mint for building.
My Kernel: https://github.com/OnePlusOSS/android_kernel_oneplus_sm8250/tree/oneplus/SM8250_R_11.0
I will add my build script (.sh) and full log to the files.
I took it from here, but the solution presented there did not help
Thanks for any help!