User(s) browsing this thread: 1 Guest(s)
|
[200/300] Build your own Cross Compile toolchain - Shortcut
|
|
03-02-2010, 05:42 PM
|
|||
|
|||
|
RE: Build your own Cross Compile toolchain - Shortcut
mpfr and gmp compiled successfuly.
gcc is almost done. I have a little problem at make. Code: checking whether -lc should be explicitly linked in... noConfigure parameters are: Code: ./configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=mips-linux-gnu --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --with-arch=mips32r2 --with-float=hard --enable-mips-nonpic --enable-extra-sgxxlite-multilibs --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit '--with-pkgversion=Sourcery G++ Lite 4.3-154' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery/ --with-sysroot=/usr/local/mips-4.3/mips-linux-gnu/libc --with-build-sysroot=/usr/local/mips-4.3/mips-linux-gnu/libc --with-gmp=/usr/local/ --with-mpfr=/usr/local/ --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/usr/local/mips-4.3/mips-linux-gnu/binmaybe one of the parameters are incorrect. any suggestions? |
|||
|
03-03-2010, 06:21 PM
|
|||
|
|||
|
RE: Build your own Cross Compile toolchain - Shortcut
Finally i have compiled gcc crosscompiler also on x86 PC OS: Ubuntu 9.10. I will create a small howto for that also.
|
|||
1 user says Thank You to xray for this post |
|
03-03-2010, 11:33 PM
(This post was last modified: 03-03-2010 11:34 PM by xray.)
|
|||
|
|||
|
RE: Build your own Cross Compile toolchain - Shortcut
my first test failed.
I tried to cross compile hello world. Code: #include <stdio.h>but if i execute the binary compiled file Code: sh-3.00# ./hcompile command is simply: mips-linux-gnu-gcc hello.c -o hello vaidyasr do you know what can be the problem? |
|||
|
03-04-2010, 07:36 AM
(This post was last modified: 03-04-2010 07:37 AM by vaidyasr.)
|
|||
|
|||
RE: Build your own Cross Compile toolchain - Shortcut
(03-03-2010 11:33 PM)xray Wrote: my first test failed. You need to compile any .c files with the options as below mips-linux-gnu-gcc -EL -march=74kc -fPIC hello.c -o hello Sriram C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730 |
|||
1 user says Thank You to vaidyasr for this post |
|
03-04-2010, 10:56 AM
(This post was last modified: 03-04-2010 10:57 AM by xray.)
|
|||
|
|||
|
RE: Build your own Cross Compile toolchain - Shortcut
finally i've crosscompiled my first app: latest version of rsync. (3.0.7)
![]() Thank you vaidyasr for your help. |
|||
|
03-04-2010, 11:14 AM
|
|||
|
|||
RE: Build your own Cross Compile toolchain - Shortcut
(03-04-2010 10:56 AM)xray Wrote: finally i've crosscompiled my first app: latest version of rsync. (3.0.7) So, the v3.0.7 is working without any errors? Sriram C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730 |
|||
|
03-04-2010, 11:27 AM
|
|||
|
|||
| RE: Build your own Cross Compile toolchain - Shortcut | |||
|
03-04-2010, 11:59 AM
(This post was last modified: 03-04-2010 12:02 PM by xray.)
|
|||
|
|||
RE: Build your own Cross Compile toolchain - Shortcut
(03-04-2010 11:14 AM)vaidyasr Wrote: So, the v3.0.7 is working without any errors? Yes it is. (03-04-2010 11:27 AM)cyberic Wrote: Hello I will post it soon. My system is a little bit messed up... there are gigs of source code files i need to clean up and summarize the compile commands. |
|||
|
03-12-2010, 02:04 PM
(This post was last modified: 03-12-2010 02:31 PM by Freebyter.)
|
|||
|
|||
|
RE: Build your own Cross Compile toolchain - Shortcut
Hi,
I am also compiling under Ubuntu 9.10 but at the moment I am stucked. AS I could not compile the gcc (got the same errors as xray on page 1) I tried to compile a) gmp error => checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons). b) fmpr error => configure: error: gmp.h can't be found, or is unusable. I tried to compile with without parameter as stated by vaidyasr. Any Idea someone ? Ok, the gmp problem is solved by installing m4 ! Now I have still a problem with mpfr: configure:25189: error: libgmp not found or uses a different ABI. Or is it the wrong way to compile without parameters ? |
|||
|
03-13-2010, 05:49 AM
|
|||
|
|||
RE: Build your own Cross Compile toolchain - Shortcut
(03-12-2010 02:04 PM)Freebyter Wrote: configure:25189: error: libgmp not found or uses a different ABI. Did you installed mpfr & gmp in native OS as I mentioned in page 1? Sriram C200/A400/RPi - Onkyo HT-S3400 - LG 47LV3730 |
|||
|
03-15-2010, 09:39 AM
|
|||
|
|||
|
RE: Build your own Cross Compile toolchain - Shortcut
Yes, I tried it for this two onyl with ./configure.
|
|||
|
03-16-2010, 10:59 PM
(This post was last modified: 03-16-2010 11:00 PM by xray.)
|
|||
|
|||
| RE: Build your own Cross Compile toolchain - Shortcut | |||
|
03-17-2010, 02:07 PM
(This post was last modified: 03-17-2010 02:10 PM by Freebyter.)
|
|||
|
|||
|
RE: Build your own Cross Compile toolchain - Shortcut
it seems that it's long ago that I compiled some stuff......
The gmp and mpfr seemed to be ok now, but now the binutils part throws the following Code: config.status: executing default commandsused command line: Code: ./configure --build=i686-pc-linux-gnu --target=mips-linux-gnu --prefix=/opt/codesourcery --host=i686-pc-linux-gnu '--with-pkgversion=Sourcery G++ Lite 4.3-154' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --with-sysroot=/opt/codesourcery/mips-linux-gnu/libc --enable-poison-system-directories |
|||
|
04-28-2010, 05:02 PM
(This post was last modified: 04-28-2010 05:03 PM by yellow.)
|
|||
|
|||
|
RE: Build your own Cross Compile toolchain - Shortcut
Guys,
do you think we could focus our effort on getting openwrt http://www.openwrt.org support for SMP8643 ? It would be wonderful to have a full cross compiling environment with lots and lots of applications available. Popcorn Hour A200 repaired once NMT Firmware: 02-03-100918-21-POP-411-000 NMT Apps: 02-03-100427-21-POP-411 Kernel Version: 21-POP Internal Harddrive: Samsung HD203WI 2TB |
|||
|
04-29-2010, 10:01 AM
|
|||
|
|||
|
RE: Build your own Cross Compile toolchain - Shortcut
Hi Yellow,
Sounds like a very good idea! I'm currently working (professionally) with openwrt and will have a look to see if this is difficult to do.. Openwrt generates a complete flash or disk image containing a bootable linux kernel and file system. This flash image is normally programmed into the target hardware. It is a problem for the PCH devices, because it does not allow us to reprogram the flash . The only advantage would be to have a well defined cross compile environment and ability to build additional software easily. The cross compiled software needs to be copied manually to the PCH, but that should not keep you from not using openwrt.Just my 2cents... SoloHan. (04-28-2010 05:02 PM)yellow Wrote: Guys, |
|||
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]






![[+]](images/collapse_collapsed.gif)








. The only advantage would be to have a well defined cross compile environment and ability to build additional software easily. The cross compiled software needs to be copied manually to the PCH, but that should not keep you from not using openwrt.