Open baerbock opened 5 years ago
We'll take a look at this, but in the meantime, can you try adding "-W-no-cast-function-type" to this line in the SConscript file, and see if that allows you to compile using gcc 9?
https://github.com/GPUOpen-Tools/common-src-AMDTActivityLogger/blob/master/SConscript#L19
@chesik-amd Hi Chris, the common-src-AMDTActivityLogger code alone doesn't compile with scons.
So I've tried to fix it by
env = CXL_env.Clone()
fails because there is no CXL_env; so I've got this from https://github.com/GPUOpen-Tools/RCP/blob/master/Build/Linux/SConstruct
CXL_vars = Variables(None)
initCXLVars(CXL_vars)
CXL_env = Environment( variables = CXL_vars, ENV = {'PATH':os.environ['PATH']})
- changed filename from SConscript to SConstruct
Now only `env['CXL_lib_dir']` is undefined!
AMDTActivityLogger isn't configured to build by itself. It is built as part of the RCP build process. If you make the change I suggested in the clone the that is brought down as a result of running RCP's UpdateCommon script, and then try rebuilding RCP, does it help?
I had the same problem while compiling RCP, adding "-Wno-cast-function-type" to SConscript file, lets GCC 9.1 build this successfully.
I'm building with gcc 9.1.0 at Ubuntu. All ROCm present. The paths were shortened. This is from RCP_Build.log: