Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 May 2020 07:19:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 246322] ld.bfd error on releng/11.4 confuses many autoconf scripts
Message-ID:  <bug-246322-29464@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 246322
           Summary: ld.bfd error on releng/11.4 confuses many autoconf
                    scripts
           Product: Base System
           Version: 11.4-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Keywords: regression
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: toolchain@FreeBSD.org
          Reporter: jbeich@FreeBSD.org

Some configure scripts check compiler output when testing flags. Often this
disables POSIX threading support.

$ cc --version
FreeBSD clang version 10.0.0 (git@github.com:llvm/llvm-project.git
llvmorg-10.0.0-0-gd32170dbd5b)
Target: i386-unknown-freebsd11.4
Thread model: posix
InstalledDir: /usr/bin
$ cc -Wl,--version
GNU ld 2.17.50 [FreeBSD] 2007-07-03
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

$ echo 'int main() {}' >a.c

$ cc a.c
/usr/bin/ld: error in /usr/lib/crt1.o(.eh_frame); no .eh_frame_hdr table wi=
ll
be created.
$ echo $?
0

$ cc -fuse-ld=3Dlld a.c
$ echo $?
0

>From devel/nspr:
checking for pthread_create in -lpthreads... no
checking whether cc accepts -pthread... no
[...]
/usr/bin/ld: cannot find -lc_r
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[4]: *** [../../config/rules.mk:308: libnspr4.so] Error 1

>From graphics/cairo:
checking for cairo's pthread feature...=20
checking whether cairo's pthread feature could be enabled... no (can't link
with -lpthread or -pthread)
[...]
./cairo-mutex-impl-private.h:262:3: error: "XXX: No mutex implementation fo=
und.
 Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to
acknowledge and accept this limitation and compile cairo without thread-saf=
ety
support."
# error "XXX: No mutex implementation found.  Cairo will not work with mult=
iple
threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitat=
ion
and compile cairo without thread-safety support."
  ^
./cairo-mutex-impl-private.h:271:11: error: unknown type name
'cairo_mutex_impl_t'
  typedef cairo_mutex_impl_t cairo_recursive_mutex_impl_t;
          ^

--=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-246322-29464>