Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: OpenSUSE 12.1 TumbleWeed Fail to buildroot

  1. #1

    Default OpenSUSE 12.1 TumbleWeed Fail to buildroot

    Hi, I am using OpenSUSE 12.1 and since installing it clean if fails to buildroot OpenWRT (mips cross compile).
    It was working fine on 11.4 and all the dependencies were properly installed.

    Code:
    make[5]: Leaving directory `/home/alphasparc/openwrt/backfire/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3-initial/mips-openwrt-linux-uclibc/libgcc'
    make[4]: Leaving directory `/home/alphasparc/openwrt/backfire/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3-initial'
    # XXX: glibc insists on linking against libgcc_eh
    ( cd /home/alphasparc/openwrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mips-openwrt-linux-uclibc/4.3.3 ; [ -e libgcc_eh.a ] || ln -sf libgcc.a libgcc_eh.a ; cp libgcc.a libgcc_initial.a; )
    cp: cannot stat `libgcc.a': No such file or directory
    make[3]: *** [/home/alphasparc/openwrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/stamp/.gcc-initial_installed] Error 1
    make[3]: Leaving directory `/home/alphasparc/openwrt/backfire/toolchain/gcc'
    make[2]: *** [toolchain/gcc/compile] Error 2
    make[2]: Leaving directory `/home/alphasparc/openwrt/backfire'
    make[1]: *** [/home/alphasparc/openwrt/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/stamp/.toolchain_install] Error 2
    make[1]: Leaving directory `/home/alphasparc/openwrt/backfire'
    make: *** [world] Error 2

  2. #2
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,044

    Default Re: OpenSUSE 12.1 TumbleWeed Fail to buildroot

    On Sat, 19 Nov 2011 21:16:03 +0000, alphasparc wrote:

    > Hi, I am using OpenSUSE 12.1 and since installing it clean if fails to
    > buildroot OpenWRT (mips cross compile).
    > It was working fine on 11.4 and all the dependencies were properly
    > installed.


    How are you building OpenWRT?

    What version have you checked out, and are you updating regularly, or just
    starting from a fresh build?

    How far into the build do you get this error?

    The reason I ask is that I regularly update my OpenWRT install myself,
    building on x86_64 on 11.4, and I ran into a somewhat similar issue with
    uClibc myself about 6-8 months ago. The issue turned out to be that the
    OpenWRT devs had updated uClibCc and my build method wasn't cleaning
    things up well enough to deal with the change.

    My build process now involves doing a make distclean before any build,
    so the entire toolchain is rebuilt each time I build.

    Takes a little longer, but it's worth it in terms of not having build
    headaches.

    I think the issue you're having isn't with tools you've installed for
    openSUSE, but with the cross-compiler toolchain that OpenWRT builds as
    part of its build.

    Here's how I build:

    --- snip ---

    #!/bin/bash
    pushd .
    cd /home/jhenderson/Downloads/openwrt
    make distclean
    cp config.txt .config
    svn update
    scripts/feeds update
    cat installed-packages.txt | awk '{print "scripts/feeds install " $1}' | sh
    cp config.txt .config
    make menuconfig
    make
    popd

    --- snip ---

    The file "installed-packages.txt" comes from:

    ssh router opkg list-installed >> installed-packages.txt

    That way if I use opkg to install a new package on my router (or to remove
    an existing one), that change gets incorporated into my new build.

    I'm running a build right now on my 12.1 system, but it usually takes a little
    bit to finish. I'll report back when it's done.

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  3. #3

    Default Re: OpenSUSE 12.1 TumbleWeed Fail to buildroot

    I always take the Stable Backfire branch.
    Well, it always worked on 11.4 but it failed during the toolchain compilation stage on 12.1.
    Btw I learn something new , incorporate new package automatically.

  4. #4
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,044

    Default Re: OpenSUSE 12.1 TumbleWeed Fail to buildroot

    On Sun, 20 Nov 2011 03:16:03 +0000, alphasparc wrote:

    > I always take the Stable Backfire branch.
    > Well, it always worked on 11.4 but it failed during the toolchain
    > compilation stage on 12.1.


    I wonder if doing a make distclean would help with this for you. My
    build is still running (had an unrelated issue lock the system up during
    the build on 12.1, and had to restart it - didn't realize that it wasn't
    going when I left for dinner and just got back).

    > Btw I learn something new , incorporate new package automatically.


    It's a pretty handy thing.

    I've run into a handful of issues over the last year or so of building
    openWRT, and the team that makes the software has agreed that some things
    during the build can get confusing. One of them suggested the 'make
    distclean' route between builds, but that wipes the config out, too
    (hence why I back it up to config.txt).

    What kind of router are you building for? Mine's a DIR-825 (D-link).
    Always good to talk with others using the same router stuff.

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  5. #5

    Default Re: OpenSUSE 12.1 TumbleWeed Fail to buildroot

    Building it for TP-Link WR1043ND.
    I delete the buildroot again and rebuilt it but got the same error.
    There is no error indicating the package error/download fail/dependency not installed but instead when I googled the error the Project Maintainers said that it was something wrong with the compiler/libraries.

  6. #6
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,044

    Default Re: OpenSUSE 12.1 TumbleWeed Fail to buildroot

    On Sun, 20 Nov 2011 09:26:02 +0000, alphasparc wrote:

    > Building it for TP-Link WR1043ND.


    OK, I can try flipping my configuration over to that once it's done
    building just to see if that is working with my D-Link's firmware (I need
    to know that builds).

    > I delete the buildroot again and rebuilt it but got the same error.


    How are you doing the deletion? From my experience, the only reliable
    way to do that is 'make distclean' and re-select the packages.

    > There is no error indicating the package error/download fail/dependency
    > not installed but instead when I googled the error the Project
    > Maintainers said that it was something wrong with the
    > compiler/libraries.


    Thing is, the cross-compiler/libraries are built during the build process
    - and aren't the ones you installed to build the system. (I may be
    explaining something you already know; if I am, I apologise.) That's why
    doing a 'make distclean' is recommended - the toolchain is completely
    rebuilt that way, so the missing library will be rebuilt. Deleting the
    build directory isn't sufficient because not everything that's compiled
    ends up in that directory (most especially the compiler and tools IIRC).

    Jim

    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  7. #7
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,044

    Default Re: OpenSUSE 12.1 TumbleWeed Fail to buildroot

    On Sun, 20 Nov 2011 09:26:02 +0000, alphasparc wrote:

    > Building it for TP-Link WR1043ND.
    > I delete the buildroot again and rebuilt it but got the same error.
    > There is no error indicating the package error/download fail/dependency
    > not installed but instead when I googled the error the Project
    > Maintainers said that it was something wrong with the
    > compiler/libraries.


    Also, if you do a make with out v=99, how far does the build go? Just
    trying to see if I'm getting past the point you are.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  8. #8
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: OpenSUSE 12.1 TumbleWeed Fail to buildroot

    On 2011-11-19 22:16, alphasparc wrote:
    > Hi, I am using OpenSUSE 12.1 and since installing it clean if fails to
    > buildroot OpenWRT (mips cross compile).


    Your subject says that you are using tumbleweed. Please move the question
    to the tumbleweed forum.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  9. #9
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,044

    Default Re: OpenSUSE 12.1 TumbleWeed Fail to buildroot

    On Sun, 20 Nov 2011 09:26:02 +0000, alphasparc wrote:

    > Building it for TP-Link WR1043ND.
    > I delete the buildroot again and rebuilt it but got the same error.
    > There is no error indicating the package error/download fail/dependency
    > not installed but instead when I googled the error the Project
    > Maintainers said that it was something wrong with the
    > compiler/libraries.


    I've just completed my build and it ran fine. Looks like the target for
    your router and mine is the same - the AR71xx target, so it should build
    OK for you if you save your .config, do a 'make distclean', and then copy
    your .config back.

    Jim

    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  10. #10
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,044

    Default Re: OpenSUSE 12.1 TumbleWeed Fail to buildroot

    On Sun, 20 Nov 2011 03:16:03 +0000, alphasparc wrote:

    > I always take the Stable Backfire branch.


    Can you let me know where you're grabbing the source or how you're
    grabbing it?

    Jim

    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Page 1 of 3 123 LastLast

Posting Permissions

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