LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-03-2017, 02:14 PM   #1
Vido
Member
 
Registered: Mar 2014
Posts: 38

Rep: Reputation: Disabled
How to use rtl8672-toolchain to cross compile gdb


Hi all,
Here is long story short,
I have ZTE ZXV10 H201L V2 router and I woild like to cross compile gdbserver and run it on that devive, I cant use standard mips coross copilation tools because the device (ZTE) using mips variant processor coled LEXRA and I need to use that toolchain I downloaded. Inside bin I have

Code:
:~/rtl819x-toolchain/toolchain/rsdk-1.5.5-5281-EB-2.6.30-0.9.30.3-110714/bin$ ls
C                             mips-linux-nm         rsdk-linux-c++filt
catimg                        mips-linux-objcopy    rsdk-linux-config
img2bin                       mips-linux-objdump    rsdk-linux-cpp
imgpad                        mips-linux-opcutil    rsdk-linux-g++
lxobjHex                      mips-linux-ranlib     rsdk-linux-gcc
lxobjHex-cygnus               mips-linux-readelf    rsdk-linux-gccbug
lxobjHexElf                   mips-linux-run        rsdk-linux-gcov
mips-linux-addr2line          mips-linux-size       rsdk-linux-gdb
mips-linux-ar                 mips-linux-strings    rsdk-linux-ld
mips-linux-as                 mips-linux-strip      rsdk-linux-lstrip
mips-linux-c++                mips-linux-xc++       rsdk-linux-nm
mips-linux-c++filt            mips-linux-xg++       rsdk-linux-objcopy
mips-linux-cpp                mips-linux-xgcc       rsdk-linux-objdump
mips-linux-g++                mips-linux-xld        rsdk-linux-opcutil
mips-linux-gcc                offset.tmp            rsdk-linux-ranlib
mips-linux-gcc-4.4.5-1.5.5p4  rlxisa.bin            rsdk-linux-readelf
mips-linux-gccbug             rlxisa-jupiter.bin    rsdk-linux-relink
mips-linux-gcov               rlxisa-mars.bin       rsdk-linux-size
mips-linux-gdb                rlxisa-rlx.bin        rsdk-linux-sstrip
mips-linux-gdbtui             rlxisa-venus.bin      rsdk-linux-strings
mips-linux-genopc             rsdk-linux-addr2line  rsdk-linux-strip
mips-linux-gprof              rsdk-linux-ar         rsdk-linux-wrapper
mips-linux-insight            rsdk-linux-as         tclsh8.4
mips-linux-ld                 rsdk-linux-c++        wish8.4
when I run make menuconfig I get and error

Code:
$ make menuconfig 
find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

.config:52:warning: trying to assign nonexistent symbol MODEL
.config:53:warning: trying to assign nonexistent symbol ROUTER
Error opening terminal: xterm-256color.
Makefile:106: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 1
So does anyone know how could I croos compile gdbserver using this toolschain ? What prefix should I use in configure to tell it where my mips-linux-gcc is or whats is used to copmile gdbserver ?

Last edited by Vido; 03-03-2017 at 03:01 PM.
 
Old 03-03-2017, 04:34 PM   #2
Vido
Member
 
Registered: Mar 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
I did tried to copile it with
Code:
../configure CC=/home/slobodan/rtl819x-toolcha in/toolchain/rsdk-1.5.5-5281-EB-2.6.30-0.9.30.3-110714/bin/mips-linux-gcc
but I get an error

Code:
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... /home/slobodan/rtl819x-toolchain/toolchain/rsdk-1.5.5-5281-EB-2.6.30-0.9.30.3-110714/bin/mips-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in `/home/slobodan/rtl819x-toolchain/toolchain/rsdk-1.5.5-5281-EB-2.6.30-0.9.30.3-110714/bin/C/gdbserver/BUILD':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
 
Old 03-04-2017, 07:36 AM   #3
Vido
Member
 
Registered: Mar 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
When I type make menuconfig i get an error

Code:
$ make menuconfig 
find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

.config:53:warning: trying to assign nonexistent symbol MODEL
.config:54:warning: trying to assign nonexistent symbol ROUTER
Error opening terminal: xterm-256color.
Makefile:106: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 1
 
Old 03-05-2017, 12:14 PM   #4
Vido
Member
 
Registered: Mar 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
i was able to compile gdb but firs thing to was

Code:
export PATH=/home/slobodan/rtl819x-toolchain/toolchain/rsdk-1.5.5-5281-EB-2.6.30-0.9.30.3-110714/bin:$PATH
then
Code:
./configure  --host=mips-linux --target=mips-linux-uclibc
but gdb server did not compiled so I went to cd gdb/gdbserver/ and then

Code:
./configure  --host=mips-linux --target=mips-linux-uclibc
but I got and error
Code:
Makefile:263: recipe for target 'linux-mips-low.o' failed
make: *** [linux-mips-low.o] Error 1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help installing a Cross compiler toolchain kazzarian Ubuntu 2 08-25-2015 01:34 AM
trouble installing cross-compile toolchain on raspberry pi DutchGeek Linux - Embedded & Single-board computer 6 12-05-2014 05:47 AM
Cross compile GDB issue kotao_78 Programming 3 05-19-2013 09:35 PM
unable to cross compile GDB rohit83.ken Linux - Software 1 04-22-2008 11:47 AM
Building cross-compiling toolchain radhapriya Linux - Software 1 06-25-2004 12:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration