[announce] optware/syno-x07 native toolchain

All discussions/development regarding the Marvell mv5281 Chip can be placed here.
Forum rules
Please note the disclaimer before modifying your Synology Product.

[announce] optware/syno-x07 native toolchain

Postby bzhou » Mon Jun 30, 2008 6:23 am

Is available for testing.

You'll need to install optware ipkg first, see viewtopic.php?f=40&t=9031

Once ipkg is installed, simply do:
Code: Select all
ipkg update
ipkg install gcc


It will install binutils and libc-dev as dependencies.

This toolchain basically is gcc/g++ 3.4.6 + binutils 2.17 + glibc 2.3.2.

I tested with hello.c, hello2.cpp, some luarocks compilation installation, and ocaml unison.

Enjoy!
bzhou
Knowledgeable
Knowledgeable
 
Posts: 344
Joined: Sat Jan 12, 2008 1:57 am

Re: [announce] optware/syno-x07 native toolchain

Postby lin » Tue Jul 01, 2008 8:31 pm

Hello,

I tryed it and it works, but some apps need cc1plus and that doesnt seem to be included.

c++: installation problem, cannot exec `cc1plus': No such file or directory

any hint ?

thanks
lin
I'm New!
I'm New!
 
Posts: 4
Joined: Tue Jul 01, 2008 8:25 pm

Re: [announce] optware/syno-x07 native toolchain

Postby bzhou » Tue Jul 01, 2008 9:20 pm

Can you post the "g++ -v name.cpp" output that is causing problem?

cc1plus should be installed at /opt/libexec/gcc/arm-marvell-linux-gnu/3.4.6/cc1plus
bzhou
Knowledgeable
Knowledgeable
 
Posts: 344
Joined: Sat Jan 12, 2008 1:57 am

Re: [announce] optware/syno-x07 native toolchain

Postby lin » Tue Jul 01, 2008 9:25 pm

cd /opt/libexec/gcc/arm-marvell-linux-gnu/3.4.6/
datacube> ls
cc1

datacube> ./cc1
Segmentation fault (core dumped)


===========

datacube> g++ -v Buffer.cpp
Reading specs from /opt/lib/gcc/arm-marvell-linux-gnu/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --build=i386-pc-linux-gnu --host=arm-marvell-linux-gnu --target=arm-marvell-linux-gnu --prefix=/opt --disable-nls --disable-static --with-as=/home/slug/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/arm-marvell-linux-gnu-as --with-ld=/home/slug/optware/syno-x07/toolchain/gcc-3.4.3-glibc-2.3.2/bin/arm-marvell-linux-gnu-ld --enable-languages=c,c++
Thread model: posix
gcc driver version 3.4.6 executing gcc version 3.4.3
cc1plus -quiet -v -D_GNU_SOURCE Buffer.cpp -quiet -dumpbase Buffer.cpp -auxbase Buffer -version -o /tmp/ccqWSqvd.s
g++: installation problem, cannot exec `cc1plus': No such file or directory
lin
I'm New!
I'm New!
 
Posts: 4
Joined: Tue Jul 01, 2008 8:25 pm

Re: [announce] optware/syno-x07 native toolchain

Postby bzhou » Tue Jul 01, 2008 9:41 pm

This is strange, on the official build machine,

Code: Select all
slug@builder:~/optware/syno-x07$ find builds/gcc-3.4.6-ipk/opt/libexec/gcc/arm-marvell-linux-gnu/3.4.6/ -ls
11056631    0 drwxr-xr-x   3 slug     slug           32 Jun 30 05:03 builds/gcc-3.4.6-ipk/opt/libexec/gcc/arm-marvell-linux-gnu/3.4.6/
11056639 7168 -rwxr-xr-x   1 slug     slug      7337916 Jun 30 05:03 builds/gcc-3.4.6-ipk/opt/libexec/gcc/arm-marvell-linux-gnu/3.4.6/cc1
11056651 8464 -rwxr-xr-x   1 slug     slug      8663113 Jun 30 05:03 builds/gcc-3.4.6-ipk/opt/libexec/gcc/arm-marvell-linux-gnu/3.4.6/cc1plus
11056652  196 -rwxr-xr-x   1 slug     slug       198138 Jun 30 05:03 builds/gcc-3.4.6-ipk/opt/libexec/gcc/arm-marvell-linux-gnu/3.4.6/collect2
22827072    0 drwxr-xr-x   2 slug     slug            8 Jun 30 05:03 builds/gcc-3.4.6-ipk/opt/libexec/gcc/arm-marvell-linux-gnu/3.4.6/install-tools
22827073    4 -rwxr-xr-x   1 slug     slug         3386 Jun 30 05:03 builds/gcc-3.4.6-ipk/opt/libexec/gcc/arm-marvell-linux-gnu/3.4.6/install-tools/mkheaders


There are these files with the installation on my ds-207+. Can you try "ipkg update; ipkg -force-reinstall install gcc"?
bzhou
Knowledgeable
Knowledgeable
 
Posts: 344
Joined: Sat Jan 12, 2008 1:57 am

Re: [announce] optware/syno-x07 native toolchain

Postby lin » Tue Jul 01, 2008 9:46 pm

ok, working on that right now.

..looks better.

Code: Select all
datacube> ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/Packages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/cross
Successfully terminated.
datacube>

datacube> ipkg install gcc -force_reinstall
Reinstalling gcc (3.4.6-3) on root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/gcc_3.4.6-3_arm.ipk
Configuring gcc
Successfully terminated.
datacube>

datacube> ls /opt/libexec/gcc/arm-marvell-linux-gnu/3.4.6/
cc1            cc1plus        collect2       install-tools
datacube>
lin
I'm New!
I'm New!
 
Posts: 4
Joined: Tue Jul 01, 2008 8:25 pm

Re: [announce] optware/syno-x07 native toolchain

Postby SirX » Thu Jul 10, 2008 7:53 am

I have a problem that I don't understand. I sucessfully installed gcc, but since the install, there seems to be an wget problem. Every action that should download something, occurs in waiting only and nothing happens, until a time out occurs.
For example: ipkg update doesn't do anything anymore (maybe it handles time out problems quit?)

If I try the wget command itself, something like this happens:
Code: Select all
DEBUG output created by Wget 1.10.2 on linux-gnu.

--08:16:25--  http://www.hitmanpro.nl/30/hitmanpro3.exe
           => `hitmanpro3.exe'
Resolving www.hitmanpro.nl... 213.189.21.97
Caching www.hitmanpro.nl => 213.189.21.97
Connecting to www.hitmanpro.nl|213.189.21.97|:80... Closed fd 3
failed: Connection timed out.
Releasing 0x00048a60 (new refcount 1).
Retrying.


It always worked fine, until I installed gcc. Any Idea how to solve this?
SirX
Beginner
Beginner
 
Posts: 23
Joined: Fri Jan 04, 2008 11:36 pm

Re: [announce] optware/syno-x07 native toolchain

Postby bzhou » Thu Jul 10, 2008 3:47 pm

If you suspect gcc is causing the problem, you should try "ipkg remove gcc binutils libc-dev" and see if the problem goes away. Hope at least "ipkg remove" is working.

I cannot replicate this problem on a ds207+. From your output, looks like the wget you're using is /usr/syno/bin/wget (1.10.2, mine is 1.10.1), while /opt/bin/wget is at 1.11.4.
bzhou
Knowledgeable
Knowledgeable
 
Posts: 344
Joined: Sat Jan 12, 2008 1:57 am


Return to Marvell mv5281 Development Room

Who is online

Users browsing this forum: No registered users and 0 guests