Bug 279615 - devel/binutils: libtool: link: cannot determine absolute directory name of `lib'
Summary: devel/binutils: libtool: link: cannot determine absolute directory name of `lib'
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-09 21:53 UTC by me
Modified: 2024-06-10 13:48 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (cy)


Attachments
complete build log (6.67 KB, text/plain)
2024-06-09 21:53 UTC, me
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description me 2024-06-09 21:53:42 UTC
Created attachment 251331 [details]
complete build log

Encountered on CURRENT 15.0:

gmake[4]: Entering directory '/usr/ports/devel/binutils/work-native/binutils-2.40/binutils'
/bin/sh ./libtool  --tag=CC   --mode=link cc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow  -I/usr/local/include -O2 -pipe  -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing       -Wl,--undefined-version -fstack-protector-strong  -o readelf readelf.o version.o unwind-ia64.o dwarf.o demanguse.o elfcomm.o ../libctf/libctf-nobfd.la /usr/local/lib/libintl.so -Wl,-rpath -Wl,/usr/local/lib ../libiberty/libiberty.a -lz -L/usr/local/lib -lzstd  -Llib -lmsgpack-c ../libsframe/libsframe.la -L/usr/local/lib
cd: lib: No such file or directory
libtool: link: cannot determine absolute directory name of `lib'
gmake[4]: *** [Makefile:1055: readelf] Error 1
Comment 1 Marcin Cieślak 2024-06-09 23:52:54 UTC
I believe it might be a problem with devel/msgpack-c -- which binutils can use as an optional dependency. Uninstalling msg-pack-c might let you build binutils.


This is how the pkg-config file for msg-pack-c appears after I have installed 6.0.1 via pkg on FreeBSD-15:

/usr/local/libdata/pkgconfig/msgpack-c.pc       
prefix=/usr/local
exec_prefix=/usr/local
libdir=lib
includedir=include

I believe "libdir" and "include" should be set relatively to ${prefix}...
Comment 2 Cy Schubert freebsd_committer freebsd_triage 2024-06-10 03:05:16 UTC
(In reply to Marcin Cieślak from comment #1)

Correct. I'm running 15-CURRENT here and have no problems whatsoever with binutils.

I can either close this or you can reassign this to the devel/msgpack-c maintainer.
Comment 3 Marcin Cieślak 2024-06-10 13:48:37 UTC
https://github.com/msgpack/msgpack-c/pull/1124/files I have submitted this to fix this upstream