Page 2 of 2 FirstFirst 12
Results 16 to 28 of 28

Thread: making toolchain fails

  1. #16
    Join Date
    Nov 2006
    Location
    Russia, Moscow
    Posts
    3,640
    Quote Originally Posted by !gm View Post
    nope
    Strange, I implement nearly same solution that you confirmed working... The single difference in arguments order!

    Can you try:
    Code:
    echo 'int main(int argc, char **argv) { initscr(); return 0; }' > ./ncurses_test.c
    gcc -include ncurses.h -x c -o /tmp/a.out -lncurses ./ncurses_test.c
    ?
    it should fail for you.

  2. #17
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767

  3. #18
    Quote Originally Posted by lly View Post
    Strange, I implement nearly same solution that you confirmed working... The single difference in arguments order!

    Can you try:
    Code:
    echo 'int main(int argc, char **argv) { initscr(); return 0; }' > ./ncurses_test.c
    gcc -include ncurses.h -x c -o /tmp/a.out -lncurses ./ncurses_test.c
    ?
    it should fail for you.
    yes

    Code:
    undefined reference to `initscr'
    RT-N66U TomatoUSB 1.28.0000 MIPSR2-135 K26AC USB AIO-64K running Entware-NG
    pyload 0.4.9
    minidlna 1.1.2
    samba 3.6.5
    openvpn 2.3.10
    ̶W̶L̶5̶0̶0̶g̶P̶ ̶1̶.̶9̶.̶2̶.̶7̶-̶r̶t̶n̶-̶r̶4̶7̶5̶0 retired

  4. #19
    Join Date
    Nov 2006
    Location
    Russia, Moscow
    Posts
    3,640
    Ok, next approach - please try r4029

  5. #20
    ok, the zlib and ncurses issue seems to be resolved...

    but, whats this?
    the kernel??
    Code:
    make: *** /home/gm/openwrt/toolchain-1.9.2.7-rtn-r4029/src/build_dir/toolchain-mipsel_gcc4.5.3/linux-2.6.22.19: No such file or directory.  Stop.
    make[5]: *** [/home/gm/openwrt/toolchain-1.9.2.7-rtn-r4029/src/build_dir/toolchain-mipsel_gcc4.5.3/linux-2.6.22.19/.prepared3067c836db47c9f5293c09032749151d] Error 2
    make[5]: Leaving directory `/home/gm/openwrt/toolchain-1.9.2.7-rtn-r4029/src/toolchain/kernel-headers'
    make[4]: *** [toolchain/kernel-headers/prepare] Error 2
    make[4]: Leaving directory `/home/gm/openwrt/toolchain-1.9.2.7-rtn-r4029/src'
    make[3]: *** [/home/gm/openwrt/toolchain-1.9.2.7-rtn-r4029/src/staging_dir/mipsel/stamp/.toolchain_install] Error 2
    make[3]: Leaving directory `/home/gm/openwrt/toolchain-1.9.2.7-rtn-r4029/src'
    make[2]: *** [world] Error 2
    make[2]: Leaving directory `/home/gm/openwrt/toolchain-1.9.2.7-rtn-r4029/src'
    make[1]: *** [.toolchain_compiled] Error 2
    make[1]: Leaving directory `/home/gm/openwrt/rtn/toolchain'
    make: *** [.toolchain_installed] Error 2
    RT-N66U TomatoUSB 1.28.0000 MIPSR2-135 K26AC USB AIO-64K running Entware-NG
    pyload 0.4.9
    minidlna 1.1.2
    samba 3.6.5
    openvpn 2.3.10
    ̶W̶L̶5̶0̶0̶g̶P̶ ̶1̶.̶9̶.̶2̶.̶7̶-̶r̶t̶n̶-̶r̶4̶7̶5̶0 retired

  6. #21
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Quote Originally Posted by !gm View Post
    ok, the zlib and ncurses issue seems to be resolved...

    but, whats this?
    the kernel??
    Try with
    Code:
    make V=99
    for more debug info

  7. #22
    Quote Originally Posted by wpte View Post
    Try with
    Code:
    make V=99
    hmmmm, I've done this... but

    Code:
    gm@ubuntu:/$ sudo find -name build.log
    [sudo] password for gm:
    gm@ubuntu:/$
    RT-N66U TomatoUSB 1.28.0000 MIPSR2-135 K26AC USB AIO-64K running Entware-NG
    pyload 0.4.9
    minidlna 1.1.2
    samba 3.6.5
    openvpn 2.3.10
    ̶W̶L̶5̶0̶0̶g̶P̶ ̶1̶.̶9̶.̶2̶.̶7̶-̶r̶t̶n̶-̶r̶4̶7̶5̶0 retired

  8. #23
    Join Date
    Nov 2006
    Location
    Russia, Moscow
    Posts
    3,640
    !gm
    Not all scripts, imported from OpenWRT, produces detailed log. Seems that you have invalid path to kernel source(patched) - check CONFIG_EXTERNAL_KERNEL_TREE in toolchain .config

  9. #24

    Post swftools do not compile (yet)

    Hi, I'm back

    hmmm

    after a general make - the toolchain and the buildroot seems to be correctly installed

    (it stopped at a package, because of a missing perl dependency on my system...)

    i now just do a
    Code:
    make package/swftools/compile V=99
    in openwrt/trunk to compile the package from my custom-feed

    the dependencies compile well, but...

    Code:
    make[2]: Entering directory `/home/gm/custom-feed/swftools'
    mkdir -p /home/gm/openwrt/trunk/dl
    /home/gm/openwrt/trunk/scripts/download.pl "/home/gm/openwrt/trunk/dl" "swftools-0.9.1.tar.gz" "72dc4a7bf5cdf98c28f9cf9b1d8f5d7a" "http://swftools.org/"
    --2012-04-02 20:41:07--  http://swftools.org/swftools-0.9.1.tar.gz
    Resolving swftools.org... 78.46.32.74
    Connecting to swftools.org|78.46.32.74|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2649789 (2.5M) [application/octet-stream]
    Saving to: `STDOUT'
    
    100%[==============================================================================================================================>] 2,649,789   1.05M/s   in 2.4s
    
    2012-04-02 20:41:09 (1.05 MB/s) - written to stdout [2649789/2649789]
    
    . /home/gm/openwrt/trunk/include/shell.sh; gzip -dc /home/gm/openwrt/trunk/dl/swftools-0.9.1.tar.gz | /bin/tar -C /home/gm/openwrt/trunk/build_dir/target-mipsel-linux-gnu/swftools-0.9.1/.. -xf -
    touch /home/gm/openwrt/trunk/build_dir/target-mipsel-linux-gnu/swftools-0.9.1/.prepared_95eda5cdc0bd0dda6b82f72e555bfbb6
    (cd /home/gm/openwrt/trunk/build_dir/target-mipsel-linux-gnu/swftools-0.9.1/./; if [ -x ./configure ]; then /usr/bin/find /home/gm/openwrt/trunk/build_dir/target-mipsel-linux-gnu/swftools-0.9.1/ -name config.guess | xargs -r chmod u+w; /usr/bin/find /home/gm/openwrt/trunk/build_dir/target-mipsel-linux-gnu/swftools-0.9.1/ -name config.guess | xargs -r -n1 cp /home/gm/openwrt/trunk/scripts/config.guess; /usr/bin/find /home/gm/openwrt/trunk/build_dir/target-mipsel-linux-gnu/swftools-0.9.1/ -name config.sub | xargs -r chmod u+w; /usr/bin/find /home/gm/openwrt/trunk/build_dir/target-mipsel-linux-gnu/swftools-0.9.1/ -name config.sub | xargs -r -n1 cp /home/gm/openwrt/trunk/scripts/config.sub; AR=mipsel-uclibc-ar AS="mipsel-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32" LD=mipsel-uclibc-ld NM=mipsel-uclibc-nm CC="mipsel-uclibc-gcc" GCC="mipsel-uclibc-gcc" CXX="mipsel-uclibc-g++" RANLIB=mipsel-uclibc-ranlib STRIP=mipsel-uclibc-strip OBJCOPY=mipsel-uclibc-objcopy OBJDUMP=mipsel-uclibc-objdump SIZE=mipsel-uclibc-size CFLAGS="-Os -pipe -mips32 -mtune=mips32 " CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 " CPPFLAGS="-I/home/gm/openwrt/trunk/staging_dir/target-mipsel-linux-gnu/opt/include -I/home/gm/openwrt/trunk/staging_dir/target-mipsel-linux-gnu/include -I/opt/brcm/hndtools-mipsel-uclibc/include " LDFLAGS="-L/home/gm/openwrt/trunk/staging_dir/target-mipsel-linux-gnu/opt/lib -L/home/gm/openwrt/trunk/staging_dir/target-mipsel-linux-gnu/lib -Wl,--dynamic-linker=/opt/lib/ld-uClibc.so.0 -Wl,-rpath,/opt/lib -L/opt/brcm/hndtools-mipsel-uclibc/lib "   ./configure --target=mipsel-linux-gnu --host=mipsel-linux-gnu --build=i686-linux-gnu --program-prefix="" --program-suffix="" --prefix=/opt --exec-prefix=/opt --bindir=/opt/bin --sbindir=/opt/sbin --libexecdir=/opt/lib --sysconfdir=/opt/etc --datadir=/opt/share --localstatedir=/opt/var --mandir=/opt/man --infodir=/opt/info --disable-nls   --prefix=/opt ; fi; )
    configure: WARNING: unrecognized options: --disable-nls
    configure: loading site script /home/gm/openwrt/trunk/include/site/mipsel-linux-gnu
    checking build system type... i686-pc-linux-gnu
    checking host system type... mipsel-unknown-linux-gnu
    checking for mipsel-linux-gnu-gcc... mipsel-uclibc-gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... yes
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether mipsel-uclibc-gcc accepts -g... yes
    checking for mipsel-uclibc-gcc option to accept ISO C89... none needed
    checking whether we are using the GNU C++ compiler... yes
    checking whether mipsel-uclibc-g++ accepts -g... yes
    checking whether gcc supports lazy variable declaration... yes
    checking how to run the C preprocessor... mipsel-uclibc-gcc -E
    checking for mipsel-linux-gnu-ranlib... mipsel-uclibc-ranlib
    checking whether make sets $(MAKE)... yes
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether ln -s works... yes
    checking for gzip... gzip
    checking host system type... (cached) mipsel-unknown-linux-gnu
    checking for target system...
    checking for sin in -lm... yes
    checking for deflate in -lz... yes
    checking for PDF_open_file in -lpdf... no
    checking for jpeg_write_raw_data in -ljpeg... yes
    checking for DGifOpen in -lungif... no
    checking for DGifOpen in -lgif... no
    checking for zzip_file_open in -lzzip... no
    checking for byte order... we are cross compiling- trying to guess from system type
    checking target system type... mipsel-unknown-linux-gnu
    checking for byte order, try 2... unknown
    Byte order could not determined.
    make[2]: *** [/home/gm/openwrt/trunk/build_dir/target-mipsel-linux-gnu/swftools-0.9.1/.configured_] Error 1
    make[2]: Leaving directory `/home/gm/custom-feed/swftools'
    make[1]: *** [package/feeds/rtncustom/swftools/compile] Error 2
    make[1]: Leaving directory `/home/gm/openwrt/trunk'
    make: *** [package/swftools/compile] Error 2
    anyone an idea, how to overcome the byte order detection?

    I've attached the provisional Makefile.
    Attached Files Attached Files
    RT-N66U TomatoUSB 1.28.0000 MIPSR2-135 K26AC USB AIO-64K running Entware-NG
    pyload 0.4.9
    minidlna 1.1.2
    samba 3.6.5
    openvpn 2.3.10
    ̶W̶L̶5̶0̶0̶g̶P̶ ̶1̶.̶9̶.̶2̶.̶7̶-̶r̶t̶n̶-̶r̶4̶7̶5̶0 retired

  10. #25
    ok, I added our target-architecture to the byte order-check in the configure script. (I know we are citizens of Lilliput )

    but compiling stops later... its a loong long way
    RT-N66U TomatoUSB 1.28.0000 MIPSR2-135 K26AC USB AIO-64K running Entware-NG
    pyload 0.4.9
    minidlna 1.1.2
    samba 3.6.5
    openvpn 2.3.10
    ̶W̶L̶5̶0̶0̶g̶P̶ ̶1̶.̶9̶.̶2̶.̶7̶-̶r̶t̶n̶-̶r̶4̶7̶5̶0 retired

  11. #26
    Join Date
    Feb 2008
    Location
    Smolensk, Russia
    Posts
    2,552
    Blog Entries
    8
    Quote Originally Posted by !gm View Post
    ok, I added our target-architecture to the byte order-check in the configure script. (I know we are citizens of Lilliput )
    Too complicated. Just give a hint to ./configure script:
    Code:
    ...
    CONFIGURE_VARS += \
            LITTLEENDIAN=1
    ...

  12. #27
    yeah, read the mailinglist, but wasn't sure, where to put that
    than i got deeper
    RT-N66U TomatoUSB 1.28.0000 MIPSR2-135 K26AC USB AIO-64K running Entware-NG
    pyload 0.4.9
    minidlna 1.1.2
    samba 3.6.5
    openvpn 2.3.10
    ̶W̶L̶5̶0̶0̶g̶P̶ ̶1̶.̶9̶.̶2̶.̶7̶-̶r̶t̶n̶-̶r̶4̶7̶5̶0 retired

  13. #28
    Join Date
    Feb 2008
    Location
    Smolensk, Russia
    Posts
    2,552
    Blog Entries
    8

    Thank you!

    Quote Originally Posted by lly View Post
    Quote Originally Posted by wpte View Post
    Quote Originally Posted by lly View Post
    Strange, I implement nearly same solution that you confirmed working...
    yeah same error
    Ok, next approach - please try r4029
    Tried r4086, everything is fine. A toolchain compilations on Ubuntu 11.10 is working.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Подскажите, что этот лог значит? (syslog)
    By VadimVB in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 479
    Last Post: 23-05-2013, 07:47
  2. Strange problem compiling toolchain
    By QMax in forum WL-500gP Q&A
    Replies: 1
    Last Post: 27-09-2009, 16:54
  3. Replies: 1
    Last Post: 09-01-2008, 11:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •