-2 is supposed to be a valid input value for the routine.
What jumps out is that your link line is also including a goto library and fftw3. This could possibly cause name collisions, but I guess if the link is completing without errors then this is not a problem. The order you include these libraries should use ACML functions before the others.
The other item I notice is -lacml will try to do a shared object link, but you are mentioning where acml.lib resides. The flags you have will use libacml.so.
Use the ldd command on your executable and make sure you know which ACML library you actually getting when you run the program. You may need to set LD_LIBRARY_PATH to point at the correct ACML directory. If necessary, you could download and install ACML in ~. The install simply creates a directory and untars files into it. It doesn't change any system variables or files, so it can be done without needing administrator priveleges.