[Bug 246322] ld.bfd error on releng/11.4 confuses many autoconf scripts
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat May 9 07:19:54 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246322
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 at FreeBSD.org
Reporter: jbeich at 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 at 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 will
be created.
$ echo $?
0
$ cc -fuse-ld=lld 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...
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 found.
Cairo will not work with multiple threads. Define CAIRO_NO_MUTEX to 1 to
acknowledge and accept this limitation and compile cairo without thread-safety
support."
# error "XXX: No mutex implementation found. Cairo will not work with multiple
threads. Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation
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;
^
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-toolchain
mailing list