Summary: | sys-fs/aufs3-3_p20120813: LDFLAGS passed to linker while building kernel module | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | [OLD] Core system | Assignee: | Justin Lecher (RETIRED) <jlec> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | tommy |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 432392 | ||
Attachments: |
set raw LDFLAGS
build.log build.log (MAKEOPTS='V=1') |
Description
Dennis Schridde
2012-08-23 09:58:19 UTC
Created attachment 322010 [details, diff]
set raw LDFLAGS
i never had problems with that. Waht is wrong here? Created attachment 322082 [details]
build.log
It appears that the kernel buildsystem calls ld directly, instead of via GCC: /usr/src/linux-3.5.2-gentoo/Makefile: LD = $(CROSS_COMPILE)ld Here it doesn't call ld directly. Please attach the build.log with MAKEOPTS="V=1" Created attachment 322350 [details]
build.log (MAKEOPTS='V=1')
(In reply to comment #5) > Here it doesn't call ld directly. Please attach the build.log with > MAKEOPTS="V=1" Could you please grep ^LD /usr/src/linux/Makefile? I'd be interested what it calls on your side. # grep ^LD /usr/src/linux/Makefile LD = $(CROSS_COMPILE)ld LDFLAGS_MODULE = LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID) LDFLAGS_vmlinux += $(call ld-option, -X,) Oh I was wrong. ld gets called but without LDFLAGS. Were you able to reproduce this? Not yet. I will fix all the current bugs with the next bump for linux-3.5. I will have no real time for this until 2. week of october. + 07 Oct 2012; Justin Lecher <jlec@gentoo.org> aufs3-3_p20120813.ebuild: + Pass raw ldflags if ld is called directly, #432398; use KV_OUT_DIR instead of + KV_DIR, #432346 thanks Dennis Schride for the patches + (In reply to comment #12) > + 07 Oct 2012; Justin Lecher <jlec@gentoo.org> aufs3-3_p20120813.ebuild: > + Pass raw ldflags if ld is called directly, #432398; use KV_OUT_DIR > instead of > + KV_DIR, #432346 thanks Dennis Schride for the patches > + Was this dropped again? It seems LDFLAGS was dropped from the emake commandline again, and flag-o-matic is no longer inherited. (In reply to comment #13) > (In reply to comment #12) > > + 07 Oct 2012; Justin Lecher <jlec@gentoo.org> aufs3-3_p20120813.ebuild: > > + Pass raw ldflags if ld is called directly, #432398; use KV_OUT_DIR > > instead of > > + KV_DIR, #432346 thanks Dennis Schride for the patches > > + > Was this dropped again? It seems LDFLAGS was dropped from the emake > commandline again, and flag-o-matic is no longer inherited. aufs3-3_p20121015 abd aufs3-3_p20120813-r1 are affected. + 18 Oct 2012; Justin Lecher <jlec@gentoo.org> aufs3-3_p20120813-r1.ebuild, + aufs3-3_p20121015.ebuild: + Merge changes related bugs 432346 432392 432398 into newest version + |