Skip to content

Issue compiling with AOCC 3.1 & gcc 11 #3

@alvaroafernandez

Description

@alvaroafernandez

Good day,

I'm trying to compile sava with the latest compilers from AMD and also from gcc.

In the case of AOCC 3.1, which uses clang (LLVM 12), I have no issue compiling utilities like snapmerge.

But I do get the following error when I attempt to compile e.g. sava_ISO or other targets:

[ec2-user@ip-172-31-19-32 src]$ make sava_ISO
clang++ -I/fsx/scripts/spack/opt/spack/linux-amzn2-zen/gcc-7.3.1/openmpi-4.1.2-uwkdrktfb5nm6usew2y7fjzjz2bjt3fe/incde -pthread -fuse-ld=lld -Wl,-allow-multiple-definition -march=znver3 -mavx2 -O3 -w -fno-stack-protector -D_FORTIFYOURCE=0 -fPIE -c ISO/FD_ISO.c -I./../include
ISO/FD_ISO.c:543:1: error: use of undeclared identifier 'forward_ISO'
forward_ISO(&wave,&pmls,&mat,&geom,&mpi,&seis,&acq,&times,ns);
^
1 error generated.

When I look at the line in question, I see it's a function.

* *************************************************************************
*  Calculate 3D Forward Wavefield for all shots
****************************************************************************/
forward_ISO(&wave,&pmls,&mat,&geom,&mpi,&seis,&acq,&times,ns);

The function is defined in one of the includes in this source file, so the syntax error confuses me. Any ideas on what I'm doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions