hi guys
i have been compiling a kernel and had a few sucessful builds but today i went to compile a new one because i deleted my zimage by misstake but now im facing these errors and for the life of me cant figure it out
here the error the compile spits out
Code:
CC drivers/cpufreq/cpufreq_smartass2.o
drivers/cpufreq/cpufreq_smartass2.c:122: error: static declaration of 'cpufreq_gov_smartass2' follows non-static declaration
include/linux/cpufreq.h:364: note: previous declaration of 'cpufreq_gov_smartass2' was here
make[2]: *** [drivers/cpufreq/cpufreq_smartass2.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
so any idea on how to fix this?
Solved by going though cpufreq_smartass2.c and changing everything that said smartass to smartass2
Thanks in advanced
Eoghan
eoghan2t7 said:
hi guys
i have been compiling a kernel and had a few sucessful builds but today i went to compile a new one because i deleted my zimage by misstake but now im facing these errors and for the life of me cant figure it out
here the error the compile spits out
Code:
CC drivers/cpufreq/cpufreq_smartass2.o
drivers/cpufreq/cpufreq_smartass2.c:122: error: static declaration of 'cpufreq_gov_smartass2' follows non-static declaration
include/linux/cpufreq.h:364: note: previous declaration of 'cpufreq_gov_smartass2' was here
make[2]: *** [drivers/cpufreq/cpufreq_smartass2.o] Error 1
make[1]: *** [drivers/cpufreq] Error 2
make: *** [drivers] Error 2
so any idea on how to fix this?
Solved by going though cpufreq_smartass2.c and changing everything that said smartass to smartass2
Thanks in advanced
Eoghan
Click to expand...
Click to collapse
I had this error with a custom governor, turns out I missed a capitalization spot. Problem solved.
Related
Hello. When i try compile my kernel i got some errors
i'm on ubuntu 10.04, 10.10, 11.04, 11.10.
I'm using theese commands:
Code:
make ARCH=arm iconiaa500_defconfig
with no problems it says 'configuration written to .config' then i cant find that file.
whet i try to compile it with this command
Code:
make ARCH=arm CROSS_COMPILE=/home/myhomedir./A500-kernel/toolchains/arm-2009q3/bin/arm-none-eabi- -j3
then at the end i get something like:
Code:
drivers/usb/host/ehci-hub.c:130: warning: 'ehci_adjust_port_wakeup_flags' defined but not used
drivers/usb/host/ehci-lpm.c:20: warning: 'ehci_lpm_set_da' defined but not used
drivers/usb/host/ehci-lpm.c:40: warning: 'ehci_lpm_check' defined but not used
net/mac80211/tx.c: In function 'ieee80211_subif_start_xmit':
net/mac80211/tx.c:1753: warning: unused variable 'mppath'
arch/arm/boot/compressed/piggy.lzo.S: Assembler messages:
arch/arm/boot/compressed/piggy.lzo.S:4: Error: file not found: arch/arm/boot/compressed/piggy.lzo
make[2]: *** [arch/arm/boot/compressed/piggy.lzo.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
make: *** Waiting for unfinished jobs....
anyone knows whats problem? thanks for spending some time. Sorry for bad english.
I was try many guides include nethams and sp3dev's
HTML:
http://forum.xda-developers.com/showthread.php?t=1158260&page=24
HTML:
http://forum.xda-developers.com/showthread.php?t=1158260&page=9
I'm using astarasikov-iconia-gnu-kernel source.
Sorry for bad English.
I get random errors here and there at times when compiling CyanogenMod 11, like
external/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp: In member function 'void llvm::SDep::setLatency(unsigned int)':
external/llvm/lib/CodeGen/ScheduleDAGInstrs.cpp:276:49: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://source.android.com/source/report-bugs.html> for instructions.
make: *** [/home/suyash/cm11/out/target/product/m7ul/obj/STATIC_LIBRARIES/libLLVMCodeGen_intermediates/ScheduleDAGInstrs.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
/home/suyash/cm11/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/include/c++/4.6.x-google/bits/locale_facets.tcc:324:1: error: '$' was not declared in this scope
/home/suyash/cm11/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/include/c++/4.6.x-google/bits/locale_facets.tcc:324:9: error: expected ';' before '{' token
make: *** [/home/suyash/cm11/out/host/linux-x86/obj/STATIC_LIBRARIES/libclangCodeGen_intermediates/CGCleanup.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
This is acceptable
then I get this error:
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.
make[2]: *** [modules] Error 1
make[1]: *** [sub-make] Error 2
Click to expand...
Click to collapse
I can't find a way to fix this.
Ubuntu 13.10 x64
Building for HTC One m7ul
CyanogenMod 11
OpenJDK 1.6
I fetched all the required repos btw. Can anyone help in fixing the issues?
Hello everyone,
I´m trying compile form PA4+ repos. I follow the step in this guide (http://forum.xda-developers.com/moto-g/development/4-4-4-nightlies-paranoid-4-4-motorola-t2792041)
But no matter what I do always get the following error:
Code:
host Executable: clang (/home/levis/paranoid/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang)
CC drivers/cpufreq/cpufreq_interactive.o
CC drivers/cpufreq/freq_table.o
../../../../../../kernel/motorola/msm8226/drivers/cpufreq/cpufreq_interactive.c: In function 'show_target_loads':
../../../../../../kernel/motorola/msm8226/drivers/cpufreq/cpufreq_interactive.c:813:6: warning: operation on 'ret' may be undefined [-Wsequence-point]
error, forbidden warning: cpufreq_interactive.c:813
make[4]: *** [drivers/cpufreq/cpufreq_interactive.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [drivers/cpufreq] Error 2
make[2]: *** [drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/levis/paranoid/kernel/motorola/msm8226'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
Total time elapsed: 32 minutes (1937.343507123 seconds)
file does not exist or wrong directory located
Please Could you point me in the right direction.
- Solution 1
Delete the all folder (Yeah .. that's a shame ..) and resync again.
- Solution 2
Check if all the depency software is correctly installed.
- Solution 3
Use a prebuilt kernel
Code:
cd /yourpathtothesources/kernel/motorola/msm8226
make -j4 O=out
cp -R /yourpathtothesources/kernel/motorola/msm8226/out/* /yourpathtothesources/out/target/product/falcon/obj/KERNEL_OBJ
cp /yourpathtothesources/kernel/motorola/msm8226/out/arch/arm/boot/zImage /yourpathtothesources/out/target/product/falcon/kernel
Hope that's help.
Try first solution first !
thank you very much for your quick response. I will prove what you said and will post the results
Thanks +h2o64 , Whith the Solution 1, was perfect. Now I have installed and working my own compiled version.
levis_ap said:
Thanks +h2o64 , Whith the Solution 1, was perfect. Now I have installed and working my own compiled version.
Click to expand...
Click to collapse
Congrats! There is a new Linaro build toolchain! Personally I clean my entire build directory today
Sent from my Moto G using XDA Free mobile app
Hey XDA folk, pretty sure this is the correct forum to post this in, but if it isn't, then please enlighten me.
For those that aren't following my work, I've patched up the G2 CAF kernel from the lg-devs repo to my old kernel, along with GCC 5+ fixes. I am building with the GCC 6.0 UBERTC kernel toolchain. The kernel can be found here.
The exact kernel error I am getting is:
Code:
LD .tmp_vmlinux1
arch/arm/kernel/built-in.o:(___ksymtab_gpl+return_address+0x0): undefined reference to `return_address'
kernel/built-in.o: In function `get_parent_ip':
hw_breakpoint.c:(.text+0x39b10): undefined reference to `return_address'
hw_breakpoint.c:(.text+0x39b3c): undefined reference to `return_address'
/home/tsunami/android/kernel/lge/msm8974-caf/Makefile:919: recipe for target '.tmp_vmlinux1' failed
make[2]: *** [.tmp_vmlinux1] Error 1
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/tsunami/android/kernel/lge/msm8974-caf'
build/core/tasks/kernel.mk:229: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
My error probably resides within this commit, but reverting it leads to a different error as well (Not the unwind warning). I am not sure as to whether I am missing a separate commit or not.
Just gonna give this a small bump.
Another bump. Do code-related issues even go here?
Closed at OP's request.
I'm building a CM13 appeared the following error when the kernel..
CC mm/vmscan.o
mm/vmscan.c: In function 'putback_inactive_pages':
mm/vmscan.c:1336:5: error: implicit declaration of function 'SetPageWasActive' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
scripts/Makefile.build:307: recipe for target 'mm/vmscan.o' failed
make[1]: *** [mm/vmscan.o] Error 1
Makefile:952: recipe for target 'mm' failed
make: *** [mm] Error 2
I got the same issue while building the CM13 kernel for the S5 (klte).
Did you manage to fix it?
newjanson said:
I got the same issue while building the CM13 kernel for the S5 (klte).
Did you manage to fix it?
Click to expand...
Click to collapse
did you manage to fix it ?
im trying to get cm14 kernel for klte working
Enable zcache