gevagiorgio@PC-Ufficio:~/AggBP$ make -j1 V=s
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
[...]
Try running feeds update and install again. The at least enter and exit make menuconfig to get your .config consistent.
Try make clean download world
Try a "vanilla" build to make sure that there isn't something completely borked
make distclean
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
make
Same errors
make clean download world
Same errors
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
/home/gevagiorgio/AggBP/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 1
If you can't successfully build a "vanilla" config, then your build chain is somehow messed up.
As a "last resort" (and one I've occasionally needed to employ), after backing up your build directory, try removing all the output and intermediate directories, such as by make distclean -- which, as a warning will also remove .config*, feeds, and packages.
I think both your config and directories are messed up. I tried building and it stops because both CONFIG_PACKAGE_ppp and CONFIG_PACKAGE_ppp-multilink are selected. I'd start from scratch in a new directory, follow https://openwrt.org/docs/guide-developer/quickstart-build-images exactly, and make a new config. Which platform are you using to build?
Network ---->
Web Server ---->
apache
Iperf
Iperf3
Luci ---->
Collection ---->
Luci
Application ---->
Luci-app-samb
Luci-app-samb4
Themes ---->
Material
make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
/home/gevagiorgio/AggBP/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 1
make -j1 V=s
Collected errors:
* check_data_file_clashes: Package samba4-server wants to install file /home/gevagiorgio/AggBP/build_dir/target-mipsel_24kc_musl/root-ramips/usr/sbin/smbd
But that file is already provided by package * samba36-server
* opkg_install_cmd: Cannot install package luci-app-samba4.
* check_data_file_clashes: Package samba4-server wants to install file /home/gevagiorgio/AggBP/build_dir/target-mipsel_24kc_musl/root-ramips/usr/sbin/smbd
But that file is already provided by package * samba36-server
* opkg_install_cmd: Cannot install package samba4-server.
package/Makefile:65: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 255
make[2]: Leaving directory '/home/gevagiorgio/AggBP'
package/Makefile:104: recipe for target '/home/gevagiorgio/AggBP/staging_dir/target-mipsel_24kc_musl/stamp/.package_install' failed
make[1]: *** [/home/gevagiorgio/AggBP/staging_dir/target-mipsel_24kc_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/gevagiorgio/AggBP'
/home/gevagiorgio/AggBP/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
Search for samba4-server and notice the location. Other packages you no longer need may have been added as well, so if you want to save some space it's easier to erase .config and start over.
What do you mean by editing and adding files? Do you mean your routers configuration files? You can check that box on top of update button in your luci web interface which will save configuration, or you can include your configuration as defaults in your image. Read this https://wiki.openwrt.org/doc/howto/build#custom_files
[ 1.379970] jffs2: Flash size not aligned to erasesize, reducing to 2520KiB
[ 1.395260] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x7368 instead
[ 1.414308] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0x0632 instead
[ 1.433263] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x4f5b instead
[ 1.452216] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x000e instead
[ 1.471168] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x0004 instead
The change i have made to the files, for increase 4MB to 8MB are: (This compilation in July worked)
/target/linux/ramips/image/rt305x.mk