This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

“ld: crt1.o: No such file: No such file or directory” Error while using powerpc-85xx-wrs-linux-gnu

0

Hi,

I am using the powerpc-85xx-wrs-linux-gnu cross compiler to build the wireshark binary.

The Configuration flags that I used are,

./configure CC="powerpc-85xx-wrs-linux-gnu-gcc --sysroot=/auto/andpkg/rep_cache//wr-85xx/3.0.1/sysroot" CFLAGS="-pipe -g -O2 -fno-strict-aliasing -D__ppc__ -D__BIG_ENDIAN__ -DB_ENDIAN -DP8572 -te500v2 -std=gnu99 -fgnu89-inline -Wno-pointer-sign --sysroot=/auto/andpkg/rep_cache//wr-85xx/3.0.1/sysroot" CC_FOR_BUILD=$CC BUILD_CC=$CC  LD="powerpc-85xx-wrs-linux-gnu-ld  --sysroot=/auto/andpkg/rep_cache//wr-85xx/3.0.1/sysroot" LDFLAGS="-L/auto/andpkg/rep_cache//wr-85xx/3.0.1/sysroot/te500v2/usr/lib -te500v2" AR="powerpc-85xx-wrs-linux-gnu-ar" RANLIB="powerpc-85xx-wrs-linux-gnu-ranlib" --prefix=/isan --target=powerpc --disable-tests --host=powerpc-wrs-linux-gnu  --prefix=/isan --enable-ipv6=yes --enable-usr-local=no --disable-wireshark --disable-editcap --disable-reordercap --enable-dumpcap --disable-rawshark --disable-capinfos --disable-mergecap --disable-text2pcap --disable-dftest --disable-randpkt --disable-gtktest --disable-glibtest --with-pcap=/ws/aparnaga-sjc/libpcap/isan --with-pcap-remote --with-adns=no --with-plugins --with-libsmi=no --with-portaudio=no --with-krb5=no --with-lua=no --with-gcrypt=no

The configuration is going through. When I run "make" I get the following error,

LANG=C /auto/andatcd/perl/5.6.1/bin/perl ./make-version.pl .
Version configuration file version.conf not found.  Using defaults.
This is not a SVN build.
svnversion.h is up-to-date.
make  all-recursive
make[1]: Entering directory `/ws/aparnaga-sjc/REL_6_2_9_FM_0_37/third-party/src/tshark/wireshark-1.2.9'
Making all in tools
make[2]: Entering directory `/ws/aparnaga-sjc/REL_6_2_9_FM_0_37/third-party/src/tshark/wireshark-1.2.9/tools'
Making all in lemon
make[3]: Entering directory `/ws/aparnaga-sjc/REL_6_2_9_FM_0_37/third-party/src/tshark/wireshark-1.2.9/tools/lemon'
powerpc-85xx-wrs-linux-gnu-gcc --sysroot=/auto/andpkg/rep_cache//wr-85xx/3.0.1/sysroot -D_U_=""   -o lemon lemon.c
/auto/andpkg/rep_cache/wr-85xx/3.0.1/toolchain/bin/../lib/gcc/powerpc-wrs-linux-gnu/4.3.2/../../../../powerpc-wrs-linux-gnu/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
make[3]: *** [lemon] Error 1
make[3]: Leaving directory `/ws/aparnaga-sjc/REL_6_2_9_FM_0_37/third-party/src/tshark/wireshark-1.2.9/tools/lemon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/ws/aparnaga-sjc/REL_6_2_9_FM_0_37/third-party/src/tshark/wireshark-1.2.9/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/ws/aparnaga-sjc/REL_6_2_9_FM_0_37/third-party/src/tshark/wireshark-1.2.9'
make: *** [all] Error 2

I have tried to set the LD_LIBRARY_PATH and LIBRARY_PATH variable but, it does not seem to help. Can you please help me out as to what mistake I am doing?

Thanks, Aparna N.

asked 10 Apr '14, 03:16

Aparna's gravatar image

Aparna
6558
accept rate: 0%

edited 10 Apr '14, 10:38

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196

What happens if you create a small hello.c file in /tmp:

#include <stdio.h>

int main(void) { printf("Hello, world!\n"); return 0; }

and then run

cd /tmp
powerpc-85xx-wrs-linux-gnu-gcc –sysroot=/auto/andpkg/rep_cache//wr-85xx/3.0.1/sysroot -o hello hello.c
(10 Apr ‘14, 10:40) Guy Harris ♦♦

It gives the same error,

[email protected]:/tmp$ powerpc-85xx-wrs-linux-gnu-gcc –sysroot=/auto/andpkg/rep_cache//wr-85xx/3.0.1/sysroot -o hello helloworld.c

/auto/andpkg/rep_cache/wr-85xx/3.0.1/toolchain/bin/../lib/gcc/powerpc-wrs-linux-gnu/4.3.2/../../../../powerpc-wrs-linux-gnu/bin/ld: crt1.o: No such file: No such file or directory collect2: ld returned 1 exit status

(14 Apr ‘14, 23:03) Aparna


One Answer:

2

Your cross-development environment doesn't work. You need to get that fixed (which is the responsibility of whoever supplied the cross-development environment, not the resposibility of the Wireshark developers).

answered 15 Apr '14, 00:41

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%

Thank you Guy Harris. I will contact the concerned :)

(15 Apr '14, 00:49) Aparna