Package: gnat-4.6
Version: 4.6.4-1
Severity: normal

On armel armhf ia64 m68k mips mipsel powerpc s390 s390x sparc, the
following scenario complains about the "cos", "sin", etc symbols being
undefined. Adding "-lm" to library_options (used at the end of the
link command) fixes the problem, but gnat should not expect the end
user to know if these functions are built in gcc or provided by an
external library.

mkdir lib
cat > pack.ads <<EOF
with Ada.Numerics.Generic_Elementary_Functions;
package Pack is new Ada.Numerics.Generic_Elementary_Functions (Float);
EOF
cat > pack.gpr <<EOF
project Pack is
  for Library_Name use "pack";
  for Library_Version use "libpack.so.1";
  for Source_Dirs use (".");
  for Library_Dir use "lib";
  for Library_Kind use "dynamic";
  for Library_Options use ("-Wl,-z,defs"); -- Fail on undefined symbols.
end Pack;
EOF
gnatmake -v -Ppack.gpr


-- 
To UNSUBSCRIBE, email to debian-gcc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130716010006.17244.24645.reportbug@pegase

Reply via email to