Cross-compilier STL libraries mismatch?

A nice, warm, and cozy place for all third-party developers to congregate.

Moderator: chirpa

Similar topics


Cross-compilier STL libraries mismatch?

Postby dnt » Thu Oct 23, 2008 1:31 pm

I'm running a ReadyNas Duo with 4.1.4 firmware and having hard to track down problems (bus error) when cross-compiling code with shared libraries. When I compile code directly on the NAS, I don't have any problems. What I've noticed is that the gcc/g++ libraries on the NAS have different sizes than the libraries included in the 3.3.5 cross-compiler. Is there an updated cross-compilier that uses the latest gcc/g++ libraries or is there a way I can install the older libraries and headers without copying them manually (the directory structure is different and I'm likely to make a mistake)?

edit: replaced "STL" with "gcc/g++"
Last edited by dnt on Thu Oct 23, 2008 4:17 pm, edited 1 time in total.
dnt
ReadyNAS Newbie
 
Posts: 4
Joined: Fri Oct 03, 2008 12:13 pm

Re: Cross-compilier STL libraries mismatch?

Postby Skywalker » Thu Oct 23, 2008 1:50 pm

Are you talking about the libstdc++ library? What happens if you do a static link?
User avatar
Skywalker
Jedi Council
 
Posts: 2763
Joined: Fri Nov 19, 2004 10:47 am
Location: Fremont, CA
ReadyNAS: NV

Re: Cross-compilier STL libraries mismatch?

Postby dnt » Thu Oct 23, 2008 3:39 pm

Thanks for repsonding. Static linking seems to work fine.

I didn't meant to imply that this only affects STL libraries; I just noticed that I had weird problems when compling code with a call to STL. I think this affects all of the gcc/g++ libraries. I also don't understand the inconsistency in library sizes (for example, I know that libm-2.3.2.so is 530xxx bytes in the cross-compiler package and 527xxx bytes on the NAS).
dnt
ReadyNAS Newbie
 
Posts: 4
Joined: Fri Oct 03, 2008 12:13 pm

Re: Cross-compilier STL libraries mismatch?

Postby Skywalker » Thu Oct 23, 2008 5:57 pm

We actually do all our compiling natively, so we don't use the cross compiler. It is supplied for convenience, but it was built with stock libraries and they haven't been updated. However, I am have compiled some dynamically-linked C++ programs before with that compiler, and they worked fine.
User avatar
Skywalker
Jedi Council
 
Posts: 2763
Joined: Fri Nov 19, 2004 10:47 am
Location: Fremont, CA
ReadyNAS: NV

Re: Cross-compilier STL libraries mismatch?

Postby dnt » Fri Oct 24, 2008 7:23 am

Skywalker,

This is good to know!

I had some success running cross-compiled simple programs with shared libraries too; but unfortunately this is not always work, especially with more complex programs (e.g. ffmpeg and apache modules).

Is getting an updated cross-compiler out of the question? :)

Thanks,
dnt
dnt
ReadyNAS Newbie
 
Posts: 4
Joined: Fri Oct 03, 2008 12:13 pm

Re: Cross-compilier STL libraries mismatch?

Postby JimmyB » Fri Oct 24, 2008 5:52 pm

An updated (and more comprehensive) cross compiler toolchain would very much be appreciated. I have been able to cross compile and run some basic programs but have been unable to do much more advanced (e.g. anything that needs a shared lib like ssl, see viewtopic.php?f=35&t=22192)
JimmyB
ReadyNAS User
 
Posts: 51
Joined: Sun Mar 30, 2008 8:58 pm

Re: Cross-compilier STL libraries mismatch?

Postby Skywalker » Fri Oct 24, 2008 6:40 pm

It would probably be a while from now. But, all the source code is widely available in case somebody wants to take up the project. :wink:
User avatar
Skywalker
Jedi Council
 
Posts: 2763
Joined: Fri Nov 19, 2004 10:47 am
Location: Fremont, CA
ReadyNAS: NV

Re: Cross-compilier STL libraries mismatch?

Postby neXus » Sun Oct 26, 2008 4:17 am

Code: Select all
You are not authorised to read this forum.


How to get access ?
neXus
ReadyNAS Newbie
 
Posts: 36
Joined: Sat Oct 11, 2008 1:10 am

Re: Cross-compilier STL libraries mismatch?

Postby beisser » Sun Oct 26, 2008 8:00 am

neXus wrote:
Code: Select all
You are not authorised to read this forum.


How to get access ?


you cant :)

he would have to move the referenced post into a public forum or link the stuff directly here.

or i just do that.

here is what he wanted to show you:

chirpa wrote:Until it gets posted on the NETGEAR.com GPL page, you can grab it from here:

RNDP6xxx_4.2.1_WW_src.zip (x86 platform; Pro)
RNR4_RND4_RND2_4.1.4_WW_src.zip (Sparc platform; Duo,NV+,1100)
User avatar
beisser
ReadyNAS Padawan
 
Posts: 1862
Joined: Mon Dec 10, 2007 3:12 am
Location: Near Munich, Germany
ReadyNAS: Pro

Re: Cross-compilier STL libraries mismatch?

Postby hno » Tue Oct 28, 2008 3:36 pm

Exellent. Been wondering for some time when there would be updated GPL sources posted at the Netgear site..
User avatar
hno
Advanced ReadyNAS User
 
Posts: 109
Joined: Tue Sep 02, 2008 2:17 am
Location: Sweden
ReadyNAS: Duo

Re: Cross-compilier STL libraries mismatch?

Postby hno » Mon Nov 03, 2008 9:34 am

The 4.1.4 sources have found their way to the official netgear site since a couple of days.
User avatar
hno
Advanced ReadyNAS User
 
Posts: 109
Joined: Tue Sep 02, 2008 2:17 am
Location: Sweden
ReadyNAS: Duo


Return to ReadyNAS Developers Network

Similar topics


Who is online

Users browsing this forum: No registered users and 1 guest