Build error in cross compiling cpufrequtils-005

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm trying to cross compile cpufrequtils-005 for ARM based CPU. I'm
getting the build/link errors (attached), but the library
(libcpufreq.a/libcpufreq.la) has been created.

Anybody please give some points how to build these tools correctly.

Regards,
Sreekanth
[root@localhost cpufrequtils-005]# make
Building ccdv
Compiling cpufreq.c:                                                  [OK]     
Compiling proc.c:                                                     [OK]     
Compiling sysfs.c:                                                    [OK]     
Linking libcpufreq.la:                                                [OK]     
Compiling info.c:                                                     [OK]     
#@/home/srikanth/cpufrequtils-005/build/ccdv /usr/local/arm/4.3.1-eabi-armv6/usr/bin/arm-linux-gcc -DVERSION=\"005\"  -DPACKAGE=\"cpufrequtils\" -DPACKAGE_BUGREPORT=\"cpufreq@xxxxxxxxxxxxxxx\" -D_GNU_SOURCE -pipe -DINTERFACE_PROC -DINTERFACE_SYSFS -Os -fomit-frame-pointer  -Wall -Wchar-subscripts -Wpointer-arith -Wsign-compare -Wno-pointer-sign -Wdeclaration-after-statement -Wshadow  -g -I./lib/ -L. -L./lib/ -lcpufreq -o cpufreq-info utils/cpufreq-info.o
Linking cpufreq-info:                                                 [ERROR]  
  /usr/local/arm/4.3.1-eabi-armv6/usr/bin/arm-linux-gcc -DVERSION="005" -DPACKA
  GE="cpufrequtils" -DPACKAGE_BUGREPORT="cpufreq@xxxxxxxxxxxxxxx" -D_GNU_SOURCE
   -pipe -DINTERFACE_PROC -DINTERFACE_SYSFS -Os -fomit-frame-pointer -Wall -Wch
  ar-subscripts -Wpointer-arith -Wsign-compare -Wno-pointer-sign -Wdeclaration-
  after-statement -Wshadow -g -I./lib/ -L. -L./lib/ -L./lib/libcpufreq.a -L./cp
  ufreq.o -L./cpufreq.lo -o cpufreq-info utils/cpufreq-info.o
  utils/cpufreq-info.o: In function `debug_output_one':
  /home/srikanth/cpufrequtils-005/utils/info.c:127: undefined reference to `cpu
  freq_cpu_exists'
  /home/srikanth/cpufrequtils-005/utils/info.c:134: undefined reference to `cpu
  freq_get_freq_kernel'
  /home/srikanth/cpufrequtils-005/utils/info.c:135: undefined reference to `cpu
  freq_get_freq_hardware'
  /home/srikanth/cpufrequtils-005/utils/info.c:137: undefined reference to `cpu
  freq_get_driver'
  /home/srikanth/cpufrequtils-005/utils/info.c:142: undefined reference to `cpu
  freq_put_driver'
  /home/srikanth/cpufrequtils-005/utils/info.c:145: undefined reference to `cpu
  freq_get_affected_cpus'
  /home/srikanth/cpufrequtils-005/utils/info.c:153: undefined reference to `cpu
  freq_put_affected_cpus'
  /home/srikanth/cpufrequtils-005/utils/info.c:156: undefined reference to `cpu
  freq_get_hardware_limits'
  /home/srikanth/cpufrequtils-005/utils/info.c:164: undefined reference to `cpu
  freq_get_available_frequencies'
  /home/srikanth/cpufrequtils-005/utils/info.c:174: undefined reference to `cpu
  freq_put_available_frequencies'
  /home/srikanth/cpufrequtils-005/utils/info.c:177: undefined reference to `cpu
  freq_get_available_governors'
  /home/srikanth/cpufrequtils-005/utils/info.c:185: undefined reference to `cpu
  freq_put_available_governors'
  /home/srikanth/cpufrequtils-005/utils/info.c:188: undefined reference to `cpu
  freq_get_policy'
  /home/srikanth/cpufrequtils-005/utils/info.c:199: undefined reference to `cpu
  freq_put_policy'
  /home/srikanth/cpufrequtils-005/utils/info.c:212: undefined reference to `cpu
  freq_get_stats'
  /home/srikanth/cpufrequtils-005/utils/info.c:222: undefined reference to `cpu
  freq_put_stats'
  /home/srikanth/cpufrequtils-005/utils/info.c:223: undefined reference to `cpu
  freq_get_transitions'
  utils/cpufreq-info.o: In function `proc_cpufreq_output':
  /home/srikanth/cpufrequtils-005/utils/info.c:71: undefined reference to `cpuf
  req_get_policy'
  /home/srikanth/cpufrequtils-005/utils/info.c:75: undefined reference to `cpuf
  req_get_hardware_limits'
  /home/srikanth/cpufrequtils-005/utils/info.c:84: undefined reference to `cpuf
  req_put_policy'
  utils/cpufreq-info.o: In function `debug_output':
  /home/srikanth/cpufrequtils-005/utils/info.c:235: undefined reference to `cpu
  freq_cpu_exists'
  utils/cpufreq-info.o: In function `get_affected_cpus':
  /home/srikanth/cpufrequtils-005/utils/info.c:325: undefined reference to `cpu
  freq_get_affected_cpus'
  /home/srikanth/cpufrequtils-005/utils/info.c:334: undefined reference to `cpu
  freq_put_affected_cpus'
  utils/cpufreq-info.o: In function `get_available_governors':
  /home/srikanth/cpufrequtils-005/utils/info.c:308: undefined reference to `cpu
  freq_get_available_governors'
  /home/srikanth/cpufrequtils-005/utils/info.c:317: undefined reference to `cpu
  freq_put_available_governors'
  utils/cpufreq-info.o: In function `get_policy':
  /home/srikanth/cpufrequtils-005/utils/info.c:297: undefined reference to `cpu
  freq_get_policy'
  /home/srikanth/cpufrequtils-005/utils/info.c:301: undefined reference to `cpu
  freq_put_policy'
  utils/cpufreq-info.o: In function `get_driver':
  /home/srikanth/cpufrequtils-005/utils/info.c:286: undefined reference to `cpu
  freq_get_driver'
  /home/srikanth/cpufrequtils-005/utils/info.c:290: undefined reference to `cpu
  freq_put_driver'
  utils/cpufreq-info.o: In function `get_hardware_limits':
  /home/srikanth/cpufrequtils-005/utils/info.c:277: undefined reference to `cpu
  freq_get_hardware_limits'
  utils/cpufreq-info.o: In function `get_freq_hardware':
  /home/srikanth/cpufrequtils-005/utils/info.c:262: undefined reference to `cpu
  freq_get_freq_hardware'
  utils/cpufreq-info.o: In function `get_freq_kernel':
  /home/srikanth/cpufrequtils-005/utils/info.c:247: undefined reference to `cpu
  freq_get_freq_kernel'
  utils/cpufreq-info.o: In function `get_freq_stats':
  /home/srikanth/cpufrequtils-005/utils/info.c:341: undefined reference to `cpu
  freq_get_transitions'
  /home/srikanth/cpufrequtils-005/utils/info.c:343: undefined reference to `cpu
  freq_get_stats'
  /home/srikanth/cpufrequtils-005/utils/info.c:355: undefined reference to `cpu
  freq_put_stats'
  collect2: ld returned 1 exit status
make: *** [cpufreq-info] Error 1
[root@localhost cpufrequtils-005]# 



[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux