Skip to content

build error in linux: memory.c:1348, memory.c:1406 #875

@hainanwang

Description

@hainanwang

Dear friends,

I am building openblas in linux. I got the following error due to function defined in memory.c. Is this a bug or some other issue? Thanks!
gcc -O2 -DMAX_STACK_ALLOC=2048 -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=32 -DASMNAME=memory -DASMFNAME=memory_ -DNAME=memory_ -DCNAME=memory -DCHAR_NAME="memory_" -DCHAR_CNAME="memory" -DNO_AFFINITY -I../.. -c memory.c -o memory.o
memory.c:1348: error: wrong number of arguments specified for 'constructor' attribute
memory.c:1406: error: wrong number of arguments specified for 'destructor' attribute
make[1]: *** [memory.o] Error 1

line 1348: void CONSTRUCTOR gotoblas_init(void)
line 1406: void DESTRUCTOR gotoblas_quit(void)

Regards,

Hainan

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