Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 May 2021 20:48:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 255935] lang/ecl: Make libatomic_ops a LIB_DEPENDS
Message-ID:  <bug-255935-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255935

            Bug ID: 255935
           Summary: lang/ecl: Make libatomic_ops a LIB_DEPENDS
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: olgeni@FreeBSD.org
          Reporter: kevinz5000@gmail.com
          Assignee: olgeni@FreeBSD.org
             Flags: maintainer-feedback?(olgeni@FreeBSD.org)

Created attachment 225008
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D225008&action=
=3Dedit
Proposed patch

In lang/ecl, libatomic_ops is currently a BUILD_DEPENDS and not a LIB_DEPEN=
DS.
However, libatomic_ops is required at run time for COMPILE-FILE to work. For
example:

;;;; hello.lisp
(format t "Hello, world!")

;;;; ecl
> (compile-file "hello.lisp")
;;; Loading #P"/usr/local/lib/ecl-20.4.24/cmp.fas"
;;;
;;; Compiling hello.lisp.
;;; OPTIMIZE levels: Safety=3D2, Space=3D0, Speed=3D3, Debug=3D0
;;;
;;; End of Pass 1.
;;; Internal error:
;;;   ** Error code 1 when executing
;;; (EXT:RUN-PROGRAM "cc" ("-I." "-I/usr/local/include/" "-isystem"
"/usr/local/include" "-I/usr/local/include" "-O2" "-pipe"
"-fstack-protector-strong" "-isystem" "/usr/local/include"
"-fno-strict-aliasing" "-std=3Dc99" "-fPIC" "-Dfreebsd" "-O2" "-c" "hello.c=
" "-o"
"hello.o")):
;;; In file included from hello.c:5:
;;; In file included from /usr/local/include/ecl/ecl-cmp.h:33:
;;; In file included from /usr/local/include/ecl/ecl.h:89:
;;; In file included from /usr/local/include/ecl/stacks.h:23:
;;; /usr/local/include/ecl/ecl_atomics.h:23:12: fatal error: 'atomic_ops.h'
file not found
;;; #  include <atomic_ops.h>
;;;            ^~~~~~~~~~~~~~
;;; 1 error generated.

The proposed patch (attached) makes libatomic_ops a LIB_DEPENDS.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255935-7788>