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 2007-11-22 15:20:11

kallehak
Member
Registered: 2007-11-22
Posts: 15

crosscompile issues

Hi, just bought the DNS-323 and wanted to exploit it powers so I installed a cross compile environment using the instructions: http://dns323.kood.org/howto:crosscompile and it worked. Well, at least after bzip2 was installed.
I want to use twonkyvision with flac support so I started to compile it and it kind of worked. I got the following error message:

../libFLAC/.libs/libFLAC.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [libFLAC++.la] Error 1

I also want a podcast downloader installed on the dns-323 so I tought BashPodder or some variant of it would be nice to add to the cronjobs. The problem is that bashpodder is using bash. So I downloaded bash and started cofigure it. That didn't go well, in fact I get the same error if I try to configure flac or anything else now.

I run configure as:

export GCC=arm-linux-gcc

./configure CC=arm-linux-uclibc-gcc \
CFLAGS="-Os -pipe " \
CXXFLAGS="-Os -pipe" \
--target="arm-uclibc-linux-gnu" \
--host="i686-linux-gnu" \
--build="arm-uclibc-linux-gnu"

Then I get:
"checking for C compiler default output file name... configure: error: C compiler cannot create executables"
checking the config.log show:
"conftest.c:36: internal compiler error: in hash_rtx, at cselib.c:678"

? I then try without flags:

./configure CC=arm-linux-uclibc-gcc \
--target="arm-uclibc-linux-gnu" \
--host="i686-linux-gnu" \
--build="arm-uclibc-linux-gnu"

Which works better but then stops at:

checking whether byte ordering is bigendian... unknown
configure: error: unknown endianness
presetting ac_cv_c_bigendian=no (or yes) will help

What has happened ?

Last edited by kallehak (2007-11-22 15:21:37)

Offline

 

#2 2007-11-23 19:35:48

petasis
Member
Registered: 2007-06-23
Posts: 39

Re: crosscompile issues

You have to specify whether the machine is bigendian or not by hand, i.e.:

Code:

./configure CC=arm-linux-uclibc-gcc \
--target="arm-uclibc-linux-gnu" \
--host="i686-linux-gnu" \
--build="arm-uclibc-linux-gnu" \
ac_cv_c_bigendian=no

You may have to tweak the value of ac_cv_c_bigendian (I don't remember if it should be yes or no).

George

Offline

 

#3 2007-11-25 17:50:03

kallehak
Member
Registered: 2007-11-22
Posts: 15

Re: crosscompile issues

Well, the problem was simply. I've missed the PATH when restarting so arm-linux-uclibc...etc coulnd't found *doh* . After fixing that I've successfully compiled; flac, libogg, bash, libxslt, curl, wget and some other packages smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB