Summary: | devel/libtool: Baked in compile time CC/LD paths (/nxb-bin/ on armv6/armv7) with poudriere | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Val Packett <val> | ||||
Component: | Individual Port(s) | Assignee: | Tijl Coosemans <tijl> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | bdrewery, emaste, fuz, val | ||||
Priority: | --- | Flags: | tijl:
maintainer-feedback+
koobs: maintainer-feedback? (bdrewery) |
||||
Version: | Latest | ||||||
Hardware: | arm | ||||||
OS: | Any | ||||||
See Also: |
https://github.com/freebsd/poudriere/issues/929 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257622 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219658 |
||||||
Attachments: |
|
Description
Val Packett
2018-07-24 16:48:34 UTC
Is this still a problem? I would build packages without setting systemroot and put whatever is in /nxb-bin/usr/bin/ in /usr/bin. Yes the issue is still present. poudriere still creates a make.nxb.conf [1] instead of creating hardlinks for the toolchain (like it's done for some utilities [2]). [1] https://github.com/freebsd/poudriere/blob/master/src/share/poudriere/common.sh#L2214 [2] https://github.com/freebsd/poudriere/blob/master/src/share/poudriere/common.sh#L2233 (In reply to mikael.urankar from comment #2) Ok, then please discuss this issue with the poudriere devs. I cannot address this in devel/libtool. The libtool script is generated during build for the compiler used during build. It cannot reliably use another compiler. Had the same issue right now. Seems like the assumption that the C compiler is the same at libtool build time and libtool use time is shaky. Maybe it's an inherent defect of libtool. As a fix, can't you change the libtool port Makefile to always use CC=/usr/bin/cc, direspecting how CC is set? Maybe guard this behind an option in case the user truly wants a non standard CC. I've gone ahead and filed an issue with Poudriere. However I believe this can and should be fixed in devel/libtool, too. https://github.com/freebsd/poudriere/issues/929 Created attachment 233069 [details]
patch
Can someone try this patch?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5325ea5ae199c461c0dce63075d2d90c095b80fd commit 5325ea5ae199c461c0dce63075d2d90c095b80fd Author: Tijl Coosemans <tijl@FreeBSD.org> AuthorDate: 2022-04-08 14:31:53 +0000 Commit: Tijl Coosemans <tijl@FreeBSD.org> CommitDate: 2022-12-25 22:12:15 +0000 devel/libtool: Fix cross compiled packages The libtool script is generated for a given compiler so Poudriere cannot use a cross compiler. lang/python* ports have a similar problem. PR: 230018 devel/libtool/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) |