Hello Mark.

The failure was caused by set CC=/usr/bin. I've unset it and prepare some room to be able to finish building of the toolchain without errors.

No errors occured after this. :-)

I'd like to ask, if it is possible to prepare root file system with ptxdist? I basically need busybox, emacs clone editor and toolchain,which I've just built. I don't use modules, because I've compiled into kernel all things that my tiny embedded system needs.

I'd like to have my new toolchain available on rootfs for my target. My target's rootfs is NFS mounted from my Host PC machine.

I've changed toolchain default directory from '/opt' to '/home/lukma/sbox_lukma/tools'. I suppose, that I cannot simply copy it to my rootfs directory ('/home/lukma/sbox_lukma/rootfs') because of "sysroot" option with which the compiler was built. Now I have to build my binaries with LD_FLAG = -static on the host. It is not optimal solution, because of size of the binary.

I'd like to simply set up new, nice rootfs , which then would be exported to target via NFS.

Regards,
Lukasz

p.s. sorry for the previous "big" message (with logfile of size more than 20MB). I wanted to send it only to You, but unfortunately I haven't removed ptxdist mailing list address from e-mail.



Marc Kleine-Budde wrote:
Hi Lukasz,

I moved to the ptxdist mailinglist, cause it's getting off-topic on
rt-linux ;)

Feel free to subscribe[1].

Lukasz Majewski wrote:
I've tried to build toolchain using the following ptxconfig file:
./ptxconfigs/arm-v5te-linux-gnueabi-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized

you probably mean:
./ptxconfigs/arm-v5te-linux-gnueabi_gcc-4.3.2_glibc-2.8_binutils-2.18_kernel-2.6.27-sanitized.ptxconfig


[...]

I've also (as You advice) downloaded and used

OSELAS.Toolchain-1.99.3.1.tar.bz2

Then I've started building of my toolchain with

lu...@xxx:~/sbox_lukma/build-tools/OSELAS.Toolchain-1.99.3.1$
../bin/ptxdist go

I've encountered following error (I hope that it's long enough to track
it down.):

gawk -f ../scripts/gen-as-const.awk
../ports/sysdeps/arm/nptl/tcb-offsets.sym \

   | /usr/bin/gcc -S -o
       ^^^^^^^^^^^^

This looks fishy...the cross compiler should be used:

gawk -f ../scripts/gen-as-const.awk
../ports/sysdeps/arm/eabi/rtld-global-offsets.sym \
        | arm-v5te-linux-gnueabi-gcc -S -o

Have you some sort of funny environment variables, like CC or CXX, try
to unset them.

Please send me the output of "set", and do the following, please:

$ cd OSELAS.Toolchain-1.99.3.1
$ rm */logfile
$ ptxdist clean glibc-crt
$ ptxdist go -ji1

please send me the logfile, located in
"platform-arm-v5te-linux-gnueabi-gcc-4.3.2-glibc-2.8-binutils-2.18-kernel-2.6.27-sanitized/logfile"

cheers, Marc


[1] http://ptxdist.org/mailinglists/index_en.html



--
ptxdist mailing list
[email protected]

Reply via email to