Wavpack fails with CCACHE with a bunch of errors like that (in the port 10.3-RELEASE-p17). --- pack_x64.lo --- <instantiation>:34:1: error: unknown token in expression sar eax, 10 ^ pack_x64.S:1382:9: note: while in macro instantiation exeterm 18, 96 ^ <instantiation>:36:15: error: unknown token in expression jmp 2f ^ pack_x64.S:1382:9: note: while in macro instantiation exeterm 18, 96 ^ <instantiation>:43:9: error: unknown token in expression 2: je 3f ^ pack_x64.S:1382:9: note: while in macro instantiation exeterm 18, 96 ^ <instantiation>:45:14: error: unknown token in expression je 3f ^ pack_x64.S:1382:9: note: while in macro instantiation exeterm 18, 96 ^ <instantiation>:34:1: error: unknown token in expression sar eax, 10 ^ pack_x64.S:1383:9: note: while in macro instantiation exeterm 17, -96 ^ <instantiation>:36:15: error: unknown token in expression jmp 2f ^ pack_x64.S:1383:9: note: while in macro instantiation exeterm 17, -96 ^ <instantiation>:43:9: error: unknown token in expression 2: je 3f ^ pack_x64.S:1383:9: note: while in macro instantiation exeterm 17, -96 ^ <instantiation>:45:14: error: unknown token in expression je 3f ^ pack_x64.S:1383:9: note: while in macro instantiation exeterm 17, -96 ^ <instantiation>:34:1: error: unknown token in expression sar eax, 10 ^ pack_x64.S:1403:9: note: while in macro instantiation exeterm 18, 96 ^ <instantiation>:36:15: error: unknown token in expression jmp 2f .... is it possible to add something like: .if defined(WITH_CCACHE_BUILD) && ${PORT_OPTIONS:MASM} CFLAGS+= -no-integrated-as .endif to the Makefile, will solve this.
Is this maybe due to a local issue with ccache? I am building this with ccache all the time and have observed this problem only when using clang before 3.9.
No compiles with no clang version with CCACHE (10.3amd64).
Now it works. I added export CCACHE_CPP2="YES" to the enviroment. But I don't teally believe this was the problem.