Error while library installation using arm-none-linux-gnueabi-gcc

Asked by Ashok Kumar on 2015-04-28

Hi Didier,
                 I ran in to following error while I am trying to install ROHC library using arm-none-linux-gnueabi-gcc. The error ehile giving install command is shown below:

/bin/mkdir -p '/usr/include'
 /usr/bin/install -c -m 644 compat_headers/rohc.h compat_headers/rohc_packets.h compat_headers/rohc_traces.h '/usr/include'
 /bin/mkdir -p '/usr/include/rohc'
 /usr/bin/install -c -m 644 rohc.h rohc_packets.h rohc_traces.h rohc_time.h rohc_buf.h '/usr/include/rohc'
make[4]: Leaving directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/common'
make[3]: Leaving directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/common'
make[2]: Leaving directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/common'
Making install in comp
make[2]: Entering directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp'
Making install in schemes
make[3]: Entering directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp/schemes'
Making install in .
make[4]: Entering directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp/schemes'
make[5]: Entering directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp/schemes'
make[5]: Nothing to be done for `install-exec-am'.
make[5]: Nothing to be done for `install-data-am'.
make[5]: Leaving directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp/schemes'
make[4]: Leaving directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp/schemes'
make[3]: Leaving directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp/schemes'
Making install in .
make[3]: Entering directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp'
make[4]: Entering directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp'
 /bin/mkdir -p '/usr/lib'
 /bin/sh ../../libtool --mode=install /usr/bin/install -c librohc_comp.la '/usr/lib'
libtool: install: warning: relinking `librohc_comp.la'
libtool: install: (cd /home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp; /bin/sh /home/bcg/.local/share/Trash/files/rohc-1.6.7.0/libtool --silent --tag CC --mode=relink arm-none-linux-gnueabi-gcc -std=gnu99 -g -Wall -Wstrict-prototypes -Wextra -Wunreachable-code -Wunused-function -Wunused-variable -Wshadow -DROHC_ENABLE_DEPRECATED_API=1 -g -O2 -export-symbols ./librohc_comp.symbols -no-undefined -version-info 2:0:2 -L../../src/common/.libs -o librohc_comp.la -rpath /usr/lib librohc_comp_la-rohc_comp.lo librohc_comp_la-c_uncompressed.lo librohc_comp_la-c_generic.lo librohc_comp_la-c_ip.lo librohc_comp_la-c_udp.lo librohc_comp_la-c_udp_lite.lo librohc_comp_la-c_esp.lo librohc_comp_la-c_rtp.lo librohc_comp_la-c_tcp.lo -lrohc_common ./schemes/librohc_comp_schemes.la )
/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/libtool: line 8965: arm-none-linux-gnueabi-gcc: command not found
libtool: install: error: relink `librohc_comp.la' with the above command before installing it
make[4]: *** [install-libLTLIBRARIES] Error 1
make[4]: Leaving directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src/comp'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/bcg/.local/share/Trash/files/rohc-1.6.7.0/src'
make: *** [install-recursive] Error 1

Question information

Language:
English Edit question
Status:
Solved
For:
rohc Edit question
Assignee:
No assignee Edit question
Solved by:
Ashok Kumar
Solved:
2015-05-06
Last query:
2015-05-06
Last reply:
2015-04-28

Hello,

> arm-none-linux-gnueabi-gcc: command not found

If your compiler is not in one of the default paths for executables, you need to run the command as follow:
  # PATH=$PATH:/path/to/the/directory/that/contains/your/compiler/ make install

Are you cross-compiling from x86 to ARM or do your perform native compiling on ARM for ARM?

Regards,
Didier

Ashok Kumar (ashokkm-9) said : #2

Hi Didier,
                        Yep I am trying to cross compile as u said and your guidance helped me to make it work.. Thanks Didier