I am using a saved .config

Ciao!

How are you?
I am using saved .config file and some other file dir-860l-b1/source/target/linux/ramips/mt7621/config-4.4, but I get these errors even though I touch .config and other files, but still I get the error, persistent:
WARNING: your configuration is out of sync. Please run make menuconfig, oldconfig or defconfig!

Do you have and idea what it could be to fix it?
Thanks,
Patrik

Any reason why you don't try what it tells you how to resolve the problem?

Please run make menuconfig, oldconfig or defconfig

hey!
hi are you? :slight_smile:
because i created an automated build, and it works but shows this warning and i don't know how to get rid of it. It is totally automated I don't use make menuconfig. :frowning:

./scripts/diffconfig.sh > configdiff
cp configdiff .config
make defconfig;make oldconfig

Put aside the generated configdiff if you want to save changes along the way.

ciao!
how are you? :slight_smile:
ok, i will check it out, thanks so much! :slight_smile:

yeah i just make menuconfig, i save it, and then use that, because my feeds were updated. Thanks so much!

is it the same as make menuconfig and just exit and save? Because then it would be automated....

Yes. This is what I use in my build scripts. And by setting aside generated configdiff file you can make changes to image package contents and roll back if wanted.

ok, thanks so much!

what is weird is that in the terminal

    ./scripts/diffconfig.sh > configdiff
    cp configdiff .config
    make defconfig;make oldconfig

works

but in my function:

function setup-config-and-build() {
    cp -avr /build/router/$1/source/. /build/source
    ./scripts/diffconfig.sh > configdiff
    cp configdiff .config
    make defconfig;make oldconfig
    cp $DIR/.config /build/router/${ROUTER_PROFILE}/source/.config

    if [ -z "$2" ] || [ "$2" = "nosign" ]
    then
        CDN_REPO="http://cdn.corifeus.com/lede/${LEDE_VERSION_TOTAL}"
    else
        CDN_REPO=$2
    fi

    sed -i.bak "s#http://downloads.lede-project.org/releases/${LEDE_VERSION_TOTAL}#$CDN_REPO#g" package/base-files/image-config.in
    sed -i.bak 's#default "/usr/sbin#default "/opt/router-scripts-lede:/usr/sbin#g' package/base-files/image-config.in
    cat package/base-files/image-config.in | grep default

    fix-paths $CDN_REPO

    make -j1 V=s
}

I get en error:

./scripts/diffconfig.sh: 11: ./scripts/diffconfig.sh: ./scripts/config/conf: not found
can't open file 'tmp/.diffconfig.stage1' at ./scripts/kconfig.pl line 32.
./scripts/diffconfig.sh: 13: ./scripts/diffconfig.sh: ./scripts/config/conf: not found
can't open file 'tmp/.diffconfig.stage2' at ./scripts/kconfig.pl line 32.

Why is this?
I even removed $DIR, I am in the current pwd, so weird!

ahh, i had a typo in it, it was not working with $DIR/scripts/diffconfig.sh but I used as you wrote and now works.
thanks again!

nah, same error again, i don't understand, before it was working, i guess i did it in the terminal before, but in the script it is showing the error before.

why?

when i run the build script again, then it works, i just have to do it twice or what?

ok, i did a make defconfig first, then, what you wrote, it works, it is working now, thanks so much!

uhh i did this:

    ./scripts/diffconfig.sh > configdiff
    cp configdiff .config
    make defconfig
    make oldconfig

i got questions, but then i put it back like this:

    ./scripts/diffconfig.sh > configdiff
    cp configdiff .config
    make defconfig;make oldconfig

what is the difference?

now it is working and is good.

Going to guess it is related to shell in use at command prompt versus in script?

make defconfig && make oldconfig

wow, it is weird

it says:

If previous command failed with ; the second one will run.

But with && the second one will not run.

This is a "lazy" logical "AND" operand between operations.

So I guess ; is important for the build, that is why it works! never knew.

Hi all I am building LEDE-17.01.04

I got the below errors while building anyone please suggest.

Configuring ppp-mod-pppoe.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-ipt6:
 *     kmod-nf-conntrack * 
 * opkg_install_cmd: Cannot install package kmod-nf-ipt6.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-nf-nat:
 *     kmod-nf-conntrack * 
 * opkg_install_cmd: Cannot install package kmod-nf-nat.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-conntrack:
 *     kmod-nf-conntrack * 
 * opkg_install_cmd: Cannot install package kmod-ipt-conntrack.
package/Makefile:60: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 255
make[2]: Leaving directory '/home/osi-team/openwrt/lede-17.01'
package/Makefile:102: recipe for target '/home/osi-team/openwrt/lede-17.01/staging_dir/target-arm_cortex-a5+neon_glibc-2.24_eabi/stamp/.package_install' failed
make[1]: *** [/home/osi-team/openwrt/lede-17.01/staging_dir/target-arm_cortex-a5+neon_glibc-2.24_eabi/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/osi-team/openwrt/lede-17.01'
/home/osi-team/openwrt/lede-17.01/include/toplevel.mk:205: recipe for target 'world' failed
make: *** [world] Error 2

Looks like some packages are not selected.

I checked the configuration, all the packages and dependencies are selected but the errors were related to configuration only, is there any solution to debug these type of errors