Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [buildroot 0002164]: DirectFB Fails with --enable-static option because of incorrect ld location
@ 2008-02-16  3:27 bugs at busybox.net
  2008-02-16 23:50 ` Hamish Moffatt
  0 siblings, 1 reply; 2+ messages in thread
From: bugs at busybox.net @ 2008-02-16  3:27 UTC (permalink / raw)
  To: buildroot


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=2164 
====================================================================== 
Reported By:                gururaj
Assigned To:                buildroot
====================================================================== 
Project:                    buildroot
Issue ID:                   2164
Category:                   Shared Library Support
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             02-15-2008 19:27 PST
Last Modified:              02-15-2008 19:27 PST
====================================================================== 
Summary:                    DirectFB Fails with --enable-static option because
of incorrect ld location
Description: 
Hi, 

Today i was trying to make arm926ejs toolchain with buildroot 4th feb
snapshot. I added --enable-static option in directfb.mk file. During build
i noticed that directfb is using root ld (/usr/bin/ld) instead of
arm-linux-ld build by buildroot toolchain. i renamed /usr/bin/ld to
/usr/bin/ld_orig and it failed with below error. 

Is there any way to make directfb makefile to consider buildroot toolchain
built ld instead of /usr/bin/ld 

<snip> 
<snip> 

Making install in fbdev 
make[3]: Entering directory
`/home/project/original/bldrt/buildroot/build_arm/DirectFB-1.0.1/systems/fbdev'

rm -f .libs/libdirectfb_fbdev.a.tmp/*.o 
if test -d .libs/libdirectfb_fbdev.a.tmp; then rmdir
.libs/libdirectfb_fbdev.a.tmp; fi 
mkdir .libs/libdirectfb_fbdev.a.tmp 
(cd .libs/libdirectfb_fbdev.a.tmp &&
/home/project/original/bldrt/buildroot/build_arm/staging_dir/usr/bin/arm-linux-uclibc-ar
x ../../.libs/libdirectfb_fbdev.a) 
ld -o libdirectfb_fbdev.o -r .libs/libdirectfb_fbdev.a.tmp/*.o 
/bin/sh: ld: command not found 
make[3]: *** [libdirectfb_fbdev.o] Error 127 
make[3]: Leaving directory
`/home/project/original/bldrt/buildroot/build_arm/DirectFB-1.0.1/systems/fbdev'

make[2]: *** [install-recursive] Error 1 
make[2]: Leaving directory
`/home/project/original/bldrt/buildroot/build_arm/DirectFB-1.0.1/systems'

make[1]: *** [install-recursive] Error 1 
make[1]: Leaving directory
`/home/project/original/bldrt/buildroot/build_arm/DirectFB-1.0.1' 
make: ***
[/home/project/original/bldrt/buildroot/build_arm/staging_dir/usr/lib/libdirectfb.so]
Error 2 

root at guru_vlinux:~/project/original/bldrt/buildroot# ls -la /usr/bin/ld* 
-rwxr-xr-x 1 root root 430804 Jan  4 11:17 /usr/bin/ld_orig 
-rwxr-xr-x 1 root root   5871 Jan 12 15:21 /usr/bin/ldd_orig 

Regards 
Gururaja 
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-15-08 19:27  gururaj        New Issue                                    
02-15-08 19:27  gururaj        Status                   new => assigned     
02-15-08 19:27  gururaj        Assigned To               => buildroot       
======================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] [buildroot 0002164]: DirectFB Fails with --enable-static option because of incorrect ld location
  2008-02-16  3:27 [Buildroot] [buildroot 0002164]: DirectFB Fails with --enable-static option because of incorrect ld location bugs at busybox.net
@ 2008-02-16 23:50 ` Hamish Moffatt
  0 siblings, 0 replies; 2+ messages in thread
From: Hamish Moffatt @ 2008-02-16 23:50 UTC (permalink / raw)
  To: buildroot

On Fri, Feb 15, 2008 at 07:27:40PM -0800, bugs at busybox.net wrote:
> Today i was trying to make arm926ejs toolchain with buildroot 4th feb
> snapshot. I added --enable-static option in directfb.mk file. During build
> i noticed that directfb is using root ld (/usr/bin/ld) instead of
> arm-linux-ld build by buildroot toolchain. i renamed /usr/bin/ld to
> /usr/bin/ld_orig and it failed with below error. 
> 
> Is there any way to make directfb makefile to consider buildroot toolchain
> built ld instead of /usr/bin/ld 

> Making install in fbdev 
> make[3]: Entering directory
> `/home/project/original/bldrt/buildroot/build_arm/DirectFB-1.0.1/systems/fbdev'
[..]

It looks like some (re)linking is being done at install time. Modify
directfb.mk to pass the relevant compiler/linker flags during install as
well.

Where you see:

$(STAGING_DIR)/usr/lib/libdirectfb.so: $(DIRECTFB_DIR)/.compiled
	$(MAKE) DESTDIR=$(STAGING_DIR)/usr -C $(DIRECTFB_DIR) install

change this to

	$(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(STAGING_DIR)/usr -C $(DIRECTFB_DIR) install

Please report if this works for you so that it can be checked in.

Hamish
-- 
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-16 23:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-16  3:27 [Buildroot] [buildroot 0002164]: DirectFB Fails with --enable-static option because of incorrect ld location bugs at busybox.net
2008-02-16 23:50 ` Hamish Moffatt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox