New: mesa3d build fails
https://bugs.busybox.net/show_bug.cgi?id=559
Host: i686
Target: i686
Build: x86_64
Summary: mesa3d build fails
Product: buildroot
Version: unspecified
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
AssignedTo: unassigned at buildroot.uclibc.org
ReportedBy: fpasch at googlemail.com
CC: buildroot at uclibc.org
Estimated Hours: 0.0
Hello!
Just tried to compile x11 for x86 on a x86_64 machine with buildroot-2009.08-rc2. I'm using an external glibc-toolchain (created by crosstool-ng)
Build of Mesa 7.2 fails with:/home/test/crosstool-ng/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/4.3.2/../../../../i686-unknown-linux-gnu/bin/ld:
cannot find -lX11
collect2: ld returned 1 exit status
My current workaround is:
package/x11r7/mesa3d/mesa3d.mk 2009-08-11 14:30:42.000000000 +0200 renamed from package/x11r7/mesa3d/mesa3d.mk~ 2009-08-11 14:30:37.000000000 +0200 +1 -2
@@ -47,7 +47,7 @@ echo "SRC_DIRS = glx/x11 mesa glu glut/glx" && \ echo "USING_EGL = 0" && \ echo "X11_INCLUDES = " && \ - echo "EXTRA_LIB_PATH = " && \ + echo "EXTRA_LIB_PATH = -L$(STAGING_DIR)/usr/lib" && \ echo "PROGRAM_DIRS =" && \ echo "MKDEP_OPTIONS = -fdepend -Y$(STAGING_DIR)/usr/include -I$(MESA_GCCINCLUDE)" \
) >> $(MESA_CONFIG_FILE)
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 559] mesa3d build fails
https://bugs.busybox.net/show_bug.cgi?id=559
Peter Korsgaard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
--- Comment #1 from Peter Korsgaard <[email protected]> 2009-08-26 20:50:20 UTC --- (In reply to comment #0)
Quoted 8 lines
Just tried to compile x11 for x86 on a
x86_64machine with buildroot-2009.08-rc2. I'm using an external glibc-toolchain (created by crosstool-ng)Build of Mesa 7.2 fails with:
/home/test/crosstool-ng/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/4.3.2/../../../../i686-unknown-linux-gnu/bin/ld:
cannot find -lX11
collect2: ld returned 1 exit status
Hmm, could you post the entire cmdline? It sounds to me as if -sysroot is missing, otherwise it should look in STAGING_DIR/usr/lib automatically.
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 559] mesa3d build fails
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=559
--- Comment #2 from Simon Pasch <[email protected]> 2009-08-27 08:34:14 UTC --- (In reply to comment #1)
Quoted 3 lines
Hmm, could you post the entire cmdline? It sounds to me as if -sysroot is missing, otherwise it should look in STAGING_DIR/usr/lib automatically.
/home/test/x-tools/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa/main -I../../../src/mesa/glapi pkg-config --cflags libdrm -Wall -Wmissing-prototypes -std=c99 -ffast-math -Os -pipe -Os --sysroot /home/test/buildroot-2009.08-rc3/build_i686/staging_dir/ -fPIC -m32 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -fno-strict-aliasing -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/usr/local/lib/dri\" ../../../src/mesa/glapi/glthread.c -o ../../../src/mesa/glapi/glthread.o /home/test/x-tools/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-gcc -c -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa/main -I../../../src/mesa/glapi pkg-config --cflags libdrm -Wall -Wmissing-prototypes -std=c99 -ffast-math -Os -pipe -Os --sysroot /home/test/buildroot-2009.08-rc3/build_i686/staging_dir/ -fPIC -m32 -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -fno-strict-aliasing -DXF86VIDMODE -D_REENTRANT -UIN_DRI_DRIVER -DDEFAULT_DRIVER_DIR=\"/usr/local/lib/dri\" ../../../src/mesa/x86/glapi_x86.S -o ../../../src/mesa/x86/glapi_x86.o/bin/sh ../../../bin/mklib -o GL -linker '/home/test/x-tools/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-gcc'
-ldflags '' \
-major 1 -minor 2 \
-install ../../../lib -id /usr/local/lib/libGL.1.dylib \
-lX11 -lXext -lXxf86vm -lXdamage -lXfixes -lm -lpthread -ldlpkg-config --libs libdrm glcontextmodes.o clientattrib.o compsize.o eval.o
glxcmds.o glxcurrent.o glxext.o glxextensions.o indirect.o indirect_init.o
indirect_size.o indirect_window_pos.o indirect_texture_compression.o
indirect_transpose_matrix.o indirect_vertex_array.o indirect_vertex_program.o
pixel.o pixelstore.o render2.o renderpix.o single2.o singlepix.o vertarr.o
xfont.o glx_pbuffer.o glx_query.o drisw_glx.o dri_common.o dri_glx.o XF86dri.o
glxhash.o ../../../src/mesa/main/dispatch.o ../../../src/mesa/glapi/glapi.o ../../../src/mesa/glapi/glthread.o ../../../src/mesa/x86/glapi_x86.o
mklib: Making Linux shared library: libGL.so.1.2 /home/test/x-tools/i686-unknown-linux-gnu/lib/gcc/i686-unknown-linux-gnu/4.3.2/../../../../i686-unknown-linux-gnu/bin/ld:
cannot find -lX11
collect2: ld returned 1 exit status
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 559] mesa3d build fails
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=559
--- Comment #3 from Clark Rawlins <[email protected]> 2009-12-01 13:50:52 UTC --- Created an attachment (id=783)
--> (https://bugs.busybox.net/attachment.cgi?id=783)
Pass LDFLAGS to the build config file
Without the LDFLAGS in the build configuration file building mesa3d fails with an external toolchain on amd64 machines targeting i686. The error indicates that libX11 can't be found.
This change passes the --sysroot parameter (along with any others specified by buildroot for LDFLAGS to the mklib script.
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 559] mesa3d build fails
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=559
--- Comment #4 from Lionel Landwerlin <[email protected]> 2009-12-01 13:54:03 UTC --- (In reply to comment #3)
Quoted 1 line
Created an attachment (id=783)
--> (https://bugs.busybox.net/attachment.cgi?id=783) [details]
Quoted 10 lines
Pass LDFLAGS to the build config file
Without the LDFLAGS in the build configuration file building mesa3d fails with an external toolchain on amd64 machines targeting i686. The error indicates that libX11 can't be found.
This change passes the --sysroot parameter (along with any others specified by buildroot for LDFLAGS to the mklib script.
A few other packages have the same problem (tested with external toolchain too), e2fsprogs for example.
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 559] mesa3d build fails
In reply to bugzilla at busybox.nethttps://bugs.busybox.net/show_bug.cgi?id=559
Peter Korsgaard <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED--- Comment #5 from Peter Korsgaard <[email protected]> 2009-12-06 19:14:15 UTC --- Committed, thanks!
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.