Skip to content

make check error #239

@allenwang2333

Description

@allenwang2333

This is my configuration

ROSE 0.11.143.0 (configured Wednesday October 11 14:49:54 2023)
  --- logic assertions:           enabled
  --- full optimization:          disabled
  --- boost library:              1.72.0 (/home/allenwang/boost_versions/boost_1_72_0)
  --- readline library:           unused
  --- library build path:         /home/allenwang/rose/build_with_boost_1_72_0
  --- original installation path: /home/allenwang/rose/install_1_72_0
  --- C/C++ analysis:             enabled
  ---   C/C++ front-end:          edg-5.0
  ---   C back-end:               11.3 (gcc)
  ---   C++ back-end:             11.3 (g++)
  --- Fortran analysis:           disabled
  --- binary analysis:            disabled
  --- Ada analysis:               disabled
  --- C# analysis:                disabled
  --- CUDA analysis:              disabled
  --- Java analysis:              disabled
  --- Jovial analysis:            disabled
  --- Matlab analysis:            disabled
  --- OpenCL analysis:            disabled
  --- PHP analysis:               disabled
  --- Python analysis:            disabled

when ruuning make check
the error is as follows

  TEST     ROSE C compiler [rose-cc]
"/usr/include/stdio.h", line 189: error: attribute "__malloc__" does not take
          arguments
    __attribute_malloc__ __attr_dealloc_fclose __wur;
                         ^

"/usr/include/stdio.h", line 223: error: attribute "__malloc__" does not take
          arguments
     __THROW __attribute_malloc__ __wur __attr_dealloc_free;
                                        ^

"/usr/include/stdio.h", line 260: error: attribute "__malloc__" does not take
          arguments
    __attribute_malloc__ __attr_dealloc_fclose __wur;
                         ^

"/usr/include/stdio.h", line 294: error: attribute "__malloc__" does not take
          arguments
    __attribute_malloc__ __attr_dealloc_fclose __wur;
                         ^

"/usr/include/stdio.h", line 309: error: attribute "__malloc__" does not take
          arguments
    __THROW __attribute_malloc__ __attr_dealloc_fclose __wur;
                                 ^

"/usr/include/stdio.h", line 315: error: attribute "__malloc__" does not take
          arguments
    __attribute_malloc__ __attr_dealloc_fclose __wur;
                         ^

"/usr/include/stdio.h", line 830: error: attribute "__malloc__" does not take
          arguments
    __attribute_malloc__ __attr_dealloc (pclose, 1) __wur;
                         ^

Errors in Processing Input File: throwing an instance of "frontend_failed" exception due to syntax errors detected in the input code 
make[5]: *** [Makefile:3022: check-hello-c] Error 1
make[5]: Leaving directory '/home/allenwang/rose/build_with_boost_1_72_0/src'
make[4]: *** [Makefile:3048: check-local] Error 2
make[4]: Leaving directory '/home/allenwang/rose/build_with_boost_1_72_0/src'
make[3]: *** [Makefile:2793: check-am] Error 2
make[3]: Leaving directory '/home/allenwang/rose/build_with_boost_1_72_0/src'
make[2]: *** [Makefile:2643: check-recursive] Error 1
make[2]: Leaving directory '/home/allenwang/rose/build_with_boost_1_72_0/src'
make[1]: *** [Makefile:2290: check-core] Error 2
make[1]: Leaving directory '/home/allenwang/rose/build_with_boost_1_72_0'
make: *** [Makefile:2309: check] Error 2

After some research, I suspect this is the error with g++11, which supports arguments in malloc
Any ideas on how to solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions