[Bug 220937] security/libgcrypt: (1.8.0): warning: unknown pragma ignored => Compiler error

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 23 09:09:39 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220937

            Bug ID: 220937
           Summary: security/libgcrypt: (1.8.0): warning: unknown pragma
                    ignored => Compiler error
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: cpm at freebsd.org
          Reporter: ohartmann at walstatt.org
             Flags: maintainer-feedback?(cpm at freebsd.org)
          Assignee: cpm at freebsd.org

The recent update of port security/libgcrypt to version 1.8.0 reveals an error
on 12-CURRENT using LLVM 4.0.0 and LLVM 5.0.0 (no LLVM LLD used!):


[...]
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../src -I../src
-I/usr/local/include -O0 -pipe -O3 -fstack-protector -fno-strict-aliasing
-std=gnu89 -fvisibility=hidden -Wall -c ./rndjent.c  -fPIC -DPIC -o
.libs/rndjent.o
In file included from ./rndjent.c:86:
./jitterentropy-base.c:53:13: warning: unknown pragma ignored
[-Wunknown-pragmas]
#pragma GCC optimize ("O0")
            ^
./jitterentropy-base.c:60:4: error: "The CPU Jitter random number generator
must not be compiled with optimizations. See documentation. Use the compiler
switch -O0 for compiling jitterentropy-base.c."
  #error "The CPU Jitter random number generator must not be compiled with
optimizations. See documentation. Use the compiler switch -O0 for compiling
jitterentropy-base.c."
   ^
1 warning and 1 error generated.
*** [rndjent.lo] Error code 1

make[4]: stopped in /usr/ports/security/libgcrypt/work/libgcrypt-1.8.0/random
--- random-system.lo ---

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list