Bug 193943 - [dns/bind99] Does not compile if using LDFLAGS (when compiling using gcc49)
Summary: [dns/bind99] Does not compile if using LDFLAGS (when compiling using gcc49)
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 12:24 UTC by Olivier - interfaSys sàrl
Modified: 2015-10-08 12:10 UTC (History)
0 users

See Also:
software-freebsd: maintainer-feedback? (mat)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier - interfaSys sàrl 2014-09-26 12:24:25 UTC
Bind 9.9.6 does not compile
ld gets arch=native, but expects elf_x86_64_fbsd elf_i386_fbsd.
I'm not sure if it's a port or app problem.

End of the log
gcc49 -pthread  -I/usr/ports/dns/bind99/work/bind-9.9.6 -I/usr/ports/dns/bind99/work/bind-9.9.6/lib/dns/include  -I../../../../lib/dns/include -I/usr/ports/dns/bind99/work/bind-9.9.6/lib/isc/include  -I../../../../lib/isc  -I../../../../lib/isc/include  -I../../../../lib/isc/unix/include  -I../../../../lib/isc/pthreads/include  -I../../../../lib/isc/x86_32/include -I/usr/local/include  -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -D_THREAD_SAFE -O2 -pipe -fdiagnostics-color=auto -Wl,-z,relro,-z,now -D_FORTIFY_SOURCE=2 -ftracer -floop-interchange -floop-strip-mine -floop-block -fuse-linker-plugin -flto=6 -ffat-lto-objects -march=native -DLIBICONV_PLUG -fstack-protector-strong --param ssp-buffer-size=4 -fno-strict-aliasing -I/usr/local/include/libxml2 -I/usr/include -fPIC   -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -fno-strict-aliasing -fno-delete-null-pointer-checks  -c driver.c
ld -O2 -pipe -fdiagnostics-color=auto -Wl,-z,relro,-z,now -D_FORTIFY_SOURCE=2 -ftracer -floop-interchange -floop-strip-mine -floop-block -fuse-linker-plugin -flto=6 -ffat-lto-objects -march=native -DLIBICONV_PLUG -fstack-protector-strong --param ssp-buffer-size=4 -fno-strict-aliasing -Wl,-rpath=/usr/local/lib/gcc49 -rpath /usr/local/lib -fstack-protector -Bshareable -x -o driver.so driver.o
ld: unrecognised emulation mode: arch=native
Supported emulations: elf_x86_64_fbsd elf_i386_fbsd
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-09-26 12:24:25 UTC
Auto-assigned to maintainer mat@FreeBSD.org
Comment 2 Olivier - interfaSys sàrl 2014-10-16 13:24:59 UTC
It's got nothing to do with '-march=native'. The port simply does not understand any flags passed via LDFLAGS.
Comment 3 Mathieu Arnold freebsd_committer freebsd_triage 2015-02-17 13:27:50 UTC
Is this still a problem ?
Comment 4 Olivier - interfaSys sàrl 2015-02-17 19:01:53 UTC
Yes, as soon as LDFLAGS are added, compilation will fail.
Comment 5 Mathieu Arnold freebsd_committer freebsd_triage 2015-09-01 09:47:02 UTC
(In reply to Olivier - interfaSys sàrl from comment #4)
> Yes, as soon as LDFLAGS are added, compilation will fail.

Can you provide a way for me to test this ?