Problems encountered by openwrt compiling sdk

My first time using this community, I had some issues with ubuntu18.04 building the sdk and was looking for help.
CMake Error at cmake/StdFilesystem.cmake:22 (message):
Toolchain doesn't support std::filesystem with nor without -lstdc++fs
Call Stack (most recent call first):
cmake/StandardSettings.cmake:57 (include)
CMakeLists.txt:70 (include)

-- Configuring incomplete, errors occurred!
Makefile:27: recipe for target '/home/mxw/openwrt/openwrt-masterild_dir/host/ccache-4.8/.configured' failed
make[3]: *** [/home/mxw/openwrt/openwrt-masterild_dir/host/ccache-4.8/.configured] Error 1
make[3]: Leaving directory '/home/mxw/openwrt/openwrt-master/tools/ccache'
time: tools/ccache/compile#0.03#0.01#0.04
ERROR: tools/ccache failed to build.
tools/Makefile:221: recipe for target 'tools/ccache/compile' failed
make[2]: *** [tools/ccache/compile] Error 1
make[2]: Leaving directory '/home/mxw/openwrt/openwrt-master'
tools/Makefile:219: recipe for target '/home/mxw/openwrt/openwrt-masteraging_dir/hostamp/.tools_compile_nyyyyyyynnyyyynynyyyyyyynyynnynyynyynyyyyyyyyyyyyyyyyyynynnyyyyyyy' failed
make[1]: *** [/home/mxw/openwrt/openwrt-masteraging_dir/hostamp/.tools_compile_nyyyyyyynnyyyynynyyyyyyynyynnynyynyynyyyyyyyyyyyyyyyyyynynnyyyyyyy] Error 2
make[1]: Leaving directory '/home/mxw/openwrt/openwrt-master'
/home/mxw/openwrt/openwrt-master/include/ recipe for target 'world' failed
make: *** [world] Error 2

Here are some of my configures
MediaTek Ralink MIPS
MT76x8 based boards

What version of OpenWrt SDK?

I was goint to suggest trying a version of Ubuntu closer to the SDK release.

the sdk is generated using openwrt .I used the up to date openwrt.

Which specific version?

1 Like

To know the specific version, just provide the link you used to download from

okay ! My time here is 11 p.m·
I'll send it to you tomorrow

1 Like

Just to be clear why we're asking...
"up to date" is vague. You could be running 22.03.5 release (the latest official stable release), or one back (21.02.7) which is still currently supported and maintained. You could also be using the release candidate of the next major release (23.05-RC1), or snapshot for any of these releases or even the snapshot from the main branch, and still be considered up-to-date. You could even be using the latest revision of an old and now EOL'd release if you considered that up-to-date. So, we need specifics or we cannot provide any useful guidance.

1 Like

I use the package linked above
When I switch to ubuntu20.04 to compile the sdk, I can successfully compile the SDK

This is not openwrt latest version

1 Like

In case you encounter further problems, you can contact SDK provider first

Good luck

1 Like

For the record, two things:

  • you are working with source code that is not from the official Openwrt project. It is a fork. All questions that arise while you are working with that code should be directed to the maintainers of that code (not here)

  • that code cannot be even remotely considered “up to date” because it is based on a version of OpenWrt (LEDE) that is 6 years old and 4 (almost 5) major revisions behind the current release.


Thank you. I'm sorry if I made some low-level mistakes since this is my first contact with openwrt

You are free to ask :slightly_smiling_face:
Others are free to respond :wink:

Good luck :+1:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.