I got a lot of errors when try to build a small change I did for an app.
…/…/…/generated/build_packages/gcc_syslibs_devel-8.3.0_2019_05_24-13-x86_64/develop/headers/c++/cstdlib:132:11: error: ‘aligned_alloc’ has not been declared in ‘::’
132 | using ::aligned_alloc;
| ^~~~~~~~~~~~~
I wonder if its my configuration if no one else is having problem?
I updated both buldtools and haiku src to the latest. Built jam and installed it. Update: Could it be my GCC version?
gcc (2021_04_27) 11.1.0
Another Q: Why isnt zlib installed by default? I had to install it manually - its required to build Haiku with that lib.
This patch expects that the gcc_syslibs package is availble on the haiku build packages repository (it is not, yet), or that you put it in the generated/downloads/ directory manually.
At the moment, building Haiku with gcc11 is not working, so gcc 8.3 needs to be used. This should be the case if you follow these instructions: Compiling for x86_64 | Haiku Project
Please create a bugrport and attach a complete description of what you are doing (which hrev you are running, which hrev you are trying to compile, and which command you used) and a complete build log.
Even if you use beta3 you will still get the gcc 11 update, so that won’t change anything. However, building Haiku involves building a gcc8 compiler from the buildtools repository so this should not be a problem. If it’s not working, that’s a bug, and we need more information to see what’s happening and try to fix it.