DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-02-10 20:02:19

plord
Member
Registered: 2010-02-02
Posts: 17

Updated gcc version

I've been seeing the odd problem when building on my DNS-323, so I thought I would try and build a later gcc ...

Turns out to be harder than I first thought!  I've been trying gcc 4.4.3 (with the openwrt patches applied) but I get various build failures.  I'll try 4.4.2 next ..

But has anyone else tried to build a later gcc ?

Thanks,

Pete

Offline

 

#2 2010-02-10 20:51:15

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Updated gcc version

sure, but what's the 'odd problem'?

Offline

 

#3 2010-02-10 21:15:56

plord
Member
Registered: 2010-02-02
Posts: 17

Re: Updated gcc version

I hit a couple of issues which I couldn't find a solution for.

When trying to build a c program with gcc I see :-

/ffp/lib/libgcc_s.so: undefined reference to `__eqdf2'
/ffp/lib/libgcc_s.so: undefined reference to `__divsf3'
/ffp/lib/libgcc_s.so: undefined reference to `__ltdf2'
/ffp/lib/libgcc_s.so: undefined reference to `__fixunsdfsi'
/ffp/lib/libgcc_s.so: undefined reference to `__nesf2'
/ffp/lib/libgcc_s.so: undefined reference to `__eqsf2'
/ffp/lib/libgcc_s.so: undefined reference to `__divdf3'
/ffp/lib/libgcc_s.so: undefined reference to `__muldf3'
/ffp/lib/libgcc_s.so: undefined reference to `__ltsf2'
/ffp/lib/libgcc_s.so: undefined reference to `__mulsf3'
/ffp/lib/libgcc_s.so: undefined reference to `__nedf2'


Secondly, configure fails on libstdc++-v3 ... but unfortunately I don't have the error message to hand any more :-(

Offline

 

#4 2010-02-10 21:19:27

plord
Member
Registered: 2010-02-02
Posts: 17

Re: Updated gcc version

Oh, also the main issue I'm seeing with 4.1.3 is an occasional "internal compiler error"., especially with building larger (more complex?) programs.

For example, I need to improve the performance of my spamassasin - I thought I would try compiling the spam rules, this calls gcc and usually fails.

Offline

 

#5 2010-02-10 21:33:00

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Updated gcc version

a different compiler version wont help you

the undefined symbols are due to incompatible compiler config (ffp uses soft-floats)

the internal compiler errors are most likely a kernel problem. in my experience, more recent compiler fail more often than 4.1. the only reliable solution is to compile in qemu,

ps: if you really want to try a new gcc, you may want to try these packages: http://www.inreto.de/testing/ffp/0.6/ar … kages/All/
note that they are not compatible with ffp 0.5

Offline

 

#6 2010-02-10 21:57:42

plord
Member
Registered: 2010-02-02
Posts: 17

Re: Updated gcc version

fonz wrote:

a different compiler version wont help you

the undefined symbols are due to incompatible compiler config (ffp uses soft-floats)

I've been building with --with-float=soft configure option and CFLAGS_FOR_TARGET including -msoft-float on the make line ... I thought that would be okay, but obviously not.

the internal compiler errors are most likely a kernel problem. in my experience, more recent compiler fail more often than 4.1. the only reliable solution is to compile in qemu,

Hmmm, okay. 

ps: if you really want to try a new gcc, you may want to try these packages: http://www.inreto.de/testing/ffp/0.6/ar … kages/All/
note that they are not compatible with ffp 0.5

Great, thanks.

Offline

 

#7 2010-02-11 18:57:53

plord
Member
Registered: 2010-02-02
Posts: 17

Re: Updated gcc version

plord wrote:

Secondly, configure fails on libstdc++-v3 ... but unfortunately I don't have the error message to hand any more :-(

Trying to build gcc 4.4.2 I see :-

checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.

which is the same error I saw with 4.4.3

Maybe I need to go down a different path here.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB