Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2017 14:38:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 221766] arabic/libitl: build invokes linker with unintended commandline arguments
Message-ID:  <bug-221766-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 221766
           Summary: arabic/libitl: build invokes linker with unintended
                    commandline arguments
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: emaste@freebsd.org
            Blocks: 214864

From
http://package18.nyi.freebsd.org/data/headamd64PR214864-default/2017-08-22_=
08h39m11s/logs/errors/ar-libitl-0.7.0_1.log
when attempting to link with lld:

=3D=3D> Create symbolic links for library generation...
test -d ../../build/itl/  || mkdir -p ../../build/itl/  || exit 1;
ln -sf ../../prayertime/src/prayer.h ../../build/itl/prayer.h
ln -sf ../prayertime/src/prayer.o ../../build/prayer.o
ln -sf ../prayertime/src/astro.o ../../build/astro.o
ld build/*.o -fstack-protector -shared -lm -lc -soname=3Dlibitl.so.0 -o
build/libitl.so.0.0.7
ld: error: unknown argument: -fstack-protector
ld: error: unable to find library -lm
ld: error: unable to find library -lc
*** Error code 1

This package's build invokes ld with -fstack-protector, a flag intended to =
be
passed to the compiler. GNU linkers interpret -fstack-protector as a comman=
d to
create an auxiliary filter library for "stack-protector":

0x000000007ffffffd AUXILIARY            Auxiliary library: [stack-protector]

The link commandline should omit -fstack-protector, and could also pass in
-L/usr/lib for future compatibility with LLD


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214864
[Bug 214864] [exp-run] test build with lld as /usr/bin/ld
--=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-221766-13>