[Openvas-devel] Error While Compiling openvas-libraries on ArchLinux

Michael Wiegand michael.wiegand at greenbone.net
Thu Apr 7 07:49:31 CEST 2011

* Thomas  Misilo [ 6. Apr 2011]:
> Finally got it compiled (again).
> I changed: 
> to
> Removing the Build Type allowed it to compile correctly.
> Any ideas why this would cause it?

Thank you for the update!

Setting the build type to Release causes cmake to set a number of flags
to optimize the compiled code. While this is generally useful, the
compiler sometimes has difficulties optimizing, especially in the more
complex parts of the code.

Optimization also means that the code the compiler sees when it is doing
the ultimate compiling is not necessary the same you see in the source
-- making debugging difficult, as you have seen.

Leaving the build type out means there are no optimizations applied.
This is a good workaround for now.

Could you please file a bug report at http://bugs.openvas.org/ and
remember to include the following information:

- Your gcc version
- Your cmake version
- If possible, the default cmake flags for the release build type; they
  can usually be found in the line containing
/usr/share/cmake-2.6/Modules/Platform/gcc.cmake (location on your system
may vary).

Thank you!



Michael Wiegand |  Greenbone Networks GmbH  |  http://www.greenbone.net/
Neuer Graben 17, 49074 Osnabrück, Germany | AG Osnabrück, HR B 202460
Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner

More information about the Openvas-devel mailing list