New: buildroot-2012.11 while building X11 for ARM, errors on xlib_libX11-1.4.2
https://bugs.busybox.net/show_bug.cgi?id=5750
Summary: buildroot-2012.11 while building X11 for ARM, errors
on xlib_libX11-1.4.2
Product: buildroot
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: major
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: rdghx at 163.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
Created attachment 4670
--> https://bugs.busybox.net/attachment.cgi?id=4670
config file
CC Sync.lo
CC Synchro.lo CC Text16.lo CC Text.lo CC TextExt16.lo CC TextExt.lo CC TextToStr.lo CC TrCoords.lo CC UndefCurs.lo CC UngrabBut.lo CC UngrabKbd.lo CC UngrabKey.lo CC UngrabPtr.lo CC UngrabSvr.lo CC UninsCmap.lo CC UnldFont.lo CC UnmapSubs.lo CC UnmapWin.lo CC VisUtil.lo CC WarpPtr.lo CC Window.lo CC WinEvent.lo CC Withdraw.lo CC WMGeom.lo CC WMProps.lo CC WrBitF.lo CC xcb_disp.lo CC xcb_io.lo CC XlibAsync.lo CC XlibInt.lo CC Xrm.lo
XlibInt.c: In function '_XPrintDefaultError':
XlibInt.c:1433:5: warning: format not a string literal, argument types not
checked
XlibInt.c:1453:2: warning: format not a string literal, argument types not
checked
XlibInt.c:1485:6: warning: format not a string literal, argument types not
checked
XlibInt.c:1513:2: warning: format not a string literal, argument types not
checked
XlibInt.c:1519:5: warning: format not a string literal, argument types not
checked
XlibInt.c:1523:5: warning: format not a string literal, argument types not
checked
CC x11_xcb.lo
CCLD libX11.la
libtool: link: warning: library
`/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libxcb.la'
was moved./bin/grep:/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libXau.la:
No such file or directory/bin/sed: can't read /usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libXau.la:
No such file or directory
libtool: link:
`/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/work/buildroot/buildroot-2012.11/output/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/lib/libXau.la' is not a valid libtool archive
make[4]: *** [libX11.la] Error 1
make[4]: Leaving directory
`/usr/work/buildroot/buildroot-2012.11/output/build/xlib_libX11-1.4.2/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/work/buildroot/buildroot-2012.11/output/build/xlib_libX11-1.4.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/usr/work/buildroot/buildroot-2012.11/output/build/xlib_libX11-1.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/work/buildroot/buildroot-2012.11/output/build/xlib_libX11-1.4.2'
make: ***
[/usr/work/buildroot/buildroot-2012.11/output/build/xlib_libX11-1.4.2/.stamp_built]
Error 2
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] buildroot-2012.11 while building X11 for ARM, errors on xlib_libX11-1.4.2
https://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #1 from Thomas Petazzoni <[email protected]> 2012-12-05 07:59:54 UTC --- For some complicated reason, using Buildroot in a directory stored under /usr
doesn't work. We will work on fixing that, but in the mean time, please build
from /home/something, /opt or anything else, but not from a subdirectory of
/usr.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] buildroot-2012.11 while building X11 for ARM, errors on xlib_libX11-1.4.2
Quoted 7 lines · bugzilla at busybox.net
https://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #1 from Thomas Petazzoni<[email protected]> 2012-12-05 07:59:54 UTC --- For some complicated reason, using Buildroot in a directory stored under /usr
doesn't work. We will work on fixing that, but in the mean time, please build
from/home/something, /opt or anything else, but not from a subdirectory of
/usr.
We should at least have a check for that...
Regards,
Arnout
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286540 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
[Buildroot] [Bug 5750] buildroot-2012.11 while building X11 for ARM, errors on xlib_libX11-1.4.2
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle <[email protected]> writes:
Hi,
Quoted 4 lines
Quoted 4 lines
For some complicated reason, using Buildroot in a directory stored under /usr doesn't work. We will work on fixing that, but in the mean time, please build from
/home/something, /opt or anything else, but not from a subdirectory of /usr.
Arnout> We should at least have a check for that...
Indeed. I'm looking into adding one.
Signature · 1 line
Bye, Peter Korsgaard
[Buildroot] [Bug 5750] buildroot-2012.11 while building X11 for ARM, errors on xlib_libX11-1.4.2
Dear Peter Korsgaard,
Quoted 8 lines · Peter Korsgaard
Quoted 4 lines
Quoted 4 lines
For some complicated reason, using Buildroot in a directory stored under /usr doesn't work. We will work on fixing that, but in the mean time, please build from
/home/something, /opt or anything else, but not from a subdirectory of /usr.Arnout> We should at least have a check for that...
Indeed. I'm looking into adding one.
Well, I think we should rather fix the problem. I have a fix that works for most cases, except for the stupid libglib2 package that generates incorrect .la files...
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
[Buildroot] [Bug 5750] buildroot-2012.11 while building X11 for ARM, errors on xlib_libX11-1.4.2
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Arnout> We should at least have a check for that...
Quoted 2 lines
Quoted 2 lines
Indeed. I'm looking into adding one.
Thomas> Well, I think we should rather fix the problem. I have a fix Thomas> that works for most cases, except for the stupid libglib2 Thomas> package that generates incorrect .la files...
Ahh, even better.
Signature · 1 line
Bye, Peter Korsgaard
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
Thomas Petazzoni <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at buildroot.uclibc |thomas.petazzoni at free-elect
|.org |rons.com
Summary|buildroot-2012.11 while |Doing a Buildroot build
|building X11 for ARM, |from /usr doesn't work
|errors on |
|xlib_libX11-1.4.2 |Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #2 from Thomas Petazzoni <[email protected]> 2013-05-26 11:01:51 UTC --- *** Bug 5222 has been marked as a duplicate of this bug. ***
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #3 from Thomas Petazzoni <[email protected]> 2013-05-26 14:23:16 UTC --- *** Bug 5228 has been marked as a duplicate of this bug. ***
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #4 from Thomas Petazzoni <[email protected]> 2014-02-13 13:10:24 UTC --- *** Bug 6470 has been marked as a duplicate of this bug. ***
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
Antoine Pierlot-Garcin <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |antoine.pierlot-garcin at scle
| |.fr--- Comment #5 from Antoine Pierlot-Garcin <[email protected]> 2014-05-13 15:56:57 UTC --- *** Bug 7082 has been marked as a duplicate of this bug. ***
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
Thomas De Schampheleire <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|thomas.petazzoni at free-elect |patrickdepinguin+buildroot@
|rons.com |gmail.com
Target Milestone|--- |2014.08--- Comment #6 from Thomas De Schampheleire <[email protected]> 2014-05-14 07:57:38 UTC --- During the 2014.02 stabilization cycle, I started looking into this bug.
See some info here:
http://lists.busybox.net/pipermail/buildroot/2014-February/089291.html
After that I didn't continue further, yet, but my plan is to take this up again and hopefully close the bug by 2014.08.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #7 from Ben Stoltz <[email protected]> 2014-05-15 17:31:12 UTC --- This fixes the problem for me.
Ben Stoltz <[email protected]>
package/pkg-autotools.mk +0 -0
@@ -249,8 +249,12 @@ ifndef $(2)_INSTALL_STAGING_CMDS define $(2)_INSTALL_STAGING_CMDS $$(TARGET_MAKE_ENV) $$($$(PKG)_MAKE_ENV) $$($$(PKG)_MAKE)
$$($$(PKG)_INSTALL_STAGING_OPT) -C $$($$(PKG)_SRCDIR)
for i in $$$$(find $(STAGING_DIR)/usr/lib* -name "*.la"); do \ - cp -f $$$$i $$$$i~; \ - $$(SED) "s:\(['= ]\)/usr:\\1$(STAGING_DIR)/usr:g" $$$$i; \ + cp -n $$$$i $$$$i~; \ + $$(SED) "s,$(BASE_DIR), at BASE_DIR@,g" \ + -e "s:\(['= ]\)/usr:\\1 at STAGING_DIR@/usr:g" \ + -e "s, at STAGING_DIR@,$(STAGING_DIR),g" \ + -e "s, at BASE_DIR@,$(BASE_DIR),g" \ + $$$$i; \
done
endef
endif
package/pkg-generic.mk +6 -3
@@ -195,9 +195,12 @@ $(BUILD_DIR)/%/.stamp_staging_installed: $(foreach hook,$($(PKG)_POST_INSTALL_STAGING_HOOKS),$(call $(hook))$(sep)) $(Q)if test -n "$($(PKG)_CONFIG_SCRIPTS)" ; then \ $(call MESSAGE,"Fixing package configuration files") ;\ - $(SED) "s,^\(exec_\)\?prefix=.*,\1prefix=$(STAGING_DIR)/usr,g" \ - -e "s,-I/usr/,-I$(STAGING_DIR)/usr/,g" \ - -e "s,-L/usr/,-L$(STAGING_DIR)/usr/,g" \ + $(SED) 's,$(BASE_DIR), at BASE_DIR@,g' \ + -e "s,^\(exec_\)\?prefix=.*,\1prefix=@STAGING_DIR@/usr,g" \ + -e "s,-I/usr/,-I at STAGING_DIR@/usr/,g" \ + -e "s,-L/usr/,-L at STAGING_DIR@/usr/,g" \ + -e 's, at STAGING_DIR@,$(STAGING_DIR),g' \ + -e 's, at BASE_DIR@,$(BASE_DIR),g' \ $(addprefix $(STAGING_DIR)/usr/bin/,$($(PKG)_CONFIG_SCRIPTS))
;\
fi
$(Q)touch $@package/pkgconf/pkgconf.mk +0 -1
@@ -19,8 +19,10 @@ endef define HOST_PKGCONF_INSTALL_WRAPPER $(INSTALL) -m 0755 -D package/pkgconf/pkg-config.in \ $(HOST_DIR)/usr/bin/pkg-config - $(SED)
's, at PKG_CONFIG_LIBDIR@,$(STAGING_DIR)/usr/lib/pkgconfig:$(STAGING_DIR)/usr/share/pkgconfig,' \
- -e 's, at STAGING_DIR@,$(STAGING_DIR),' \
+ $(SED) 's,$(BASE_DIR), at BASE_DIR@,g' \
+ -e
's, at PKG_CONFIG_LIBDIR@, at STAGING_DIR@/usr/lib/pkgconfig:@STAGING_DIR@/usr/share/pkgconfig,' \
+ -e 's, at STAGING_DIR@,$(STAGING_DIR),g' \
+ -e 's, at BASE_DIR@,$(BASE_DIR),g' \
$(HOST_DIR)/usr/bin/pkg-configendef
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #8 from Thomas De Schampheleire <[email protected]> 2014-05-15 19:18:48 UTC --- (In reply to comment #7)
Quoted 1 line
This fixes the problem for me.
Thanks, I will definitely test this out!
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #9 from Ben Stoltz <[email protected]> 2014-05-15 20:05:53 UTC --- Created attachment 5384
--> https://bugs.busybox.net/attachment.cgi?id=5384
Patch file
Cut and paste errors at end of line on previous submission.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #10 from Thomas De Schampheleire <[email protected]> 2014-06-14 19:43:00 UTC --- (In reply to comment #8)
Quoted 4 lines
(In reply to comment #7)
Quoted 1 line
This fixes the problem for me.
Thanks, I will definitely test this out!
It seems that the result is similar to the patch I was using until now (attached). It works fine too, but if you grep in output/staging you will find still occurrences of /usr/path/to/buildroot/.../sysroot/usr/path/to/buildroot, caused by pkgconfig, as mentioned in
http://lists.busybox.net/pipermail/buildroot/2014-February/089866.html.
While this seems to do no harm, I intend to track down this issue further.
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #11 from Thomas De Schampheleire <[email protected]> 2014-06-14 19:43:43 UTC --- Created attachment 5450
--> https://bugs.busybox.net/attachment.cgi?id=5450
alternative patch
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #12 from Thomas De Schampheleire <[email protected]> 2014-06-20 19:14:07 UTC --- Patches fixing this issue submitted at:
http://patchwork.ozlabs.org/patch/362322/
http://patchwork.ozlabs.org/patch/362324/
http://patchwork.ozlabs.org/patch/362323/
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
Thomas De Schampheleire <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED--- Comment #13 from Thomas De Schampheleire <[email protected]> 2014-06-29 13:03:02 UTC --- Slightly modified patches now accepted, so marking bug as fixed.
See commits:
http://git.buildroot.org/buildroot/commit/?id=7701fc53d19be7cab8bddba72046a39e8421fd9e
http://git.buildroot.org/buildroot/commit/?id=9580c178e55b90c456096bb553f0cd0e26eff6a1
http://git.buildroot.org/buildroot/commit/?id=17eaa5d3ab1982a89c82e603484edbed8f712e16
Hooray for closing this very old bug!
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
[Buildroot] [Bug 5750] Doing a Buildroot build from /usr doesn't work
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=5750
--- Comment #14 from Thomas Petazzoni <[email protected]> 2014-06-29 13:19:56 UTC --- (In reply to comment #13)
Quoted 1 line
Hooray for closing this very old bug!
Yes, thanks a _lot_ for working on this problem!
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.