Bug 819047 - rpmbuild wont work for target i686
rpmbuild wont work for target i686
Product: Fedora
Classification: Fedora
Component: mesa (Show other bugs)
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Adam Jackson
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-05-04 12:42 EDT by Arne Woerner
Modified: 2012-05-04 12:49 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-05-04 12:49:35 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Arne Woerner 2012-05-04 12:42:23 EDT
Description of problem:
i wanted to try to build my own mesa rpms with --enable-texture-float, so that i get the advertised OpenGL 3 support, so that SecondLife (32bit application) looks more shiny... :-)
but: i cant use rpmbuild to do that...

Version-Release number of selected component (if applicable):
Linux vaako.riddick.homeunix.org 3.3.4-3.fc17.x86_64 #1 SMP Wed May 2 16:16:08 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

How reproducible:

Steps to Reproduce:
1. install srpm
2. rpmbuild -bb --target=i686 SPECS/mesa.spec
3. linux32 rpmbuild -bb --target=i686 SPECS/mesa.spec
Actual results:
1. rpmbuild -bb --target=i686 SPECS/mesa.spec
g++ -Wl,-z,relro  -L/usr/lib64/llvm  -lpthread -lffi -ldl -lm  lp_test_sincos.o lp_test_main.o -o lp_test_sincos -Wl,--start-group  -L../../auxiliary/ -lgallium libllvmpipe.a -lLLVM-3.0 -lstdc++  -lXext -lXdamage -lXfixes -lX11-xcb -lX11 -lxcb-glx -lxcb -lXxf86vm   -ldrm   -lm -lpthread -ldl -Wl,--end-group
/usr/bin/ld: skipping incompatible ../../auxiliary//libgallium.a when searching for -lgallium
/usr/bin/ld: cannot find -lgallium
2. linux32 rpmbuild -bb --target=i686 SPECS/mesa.spec
/bin/sh ../../../../../bin/mklib -o nouveau_vieux_dri.so.tmp -noprefix -linker 'g++' -ldflags '-Wl,-z,relro ' \
	../common/utils.o ../common/dri_util.o ../common/xmlconfig.o nouveau_screen.o nouveau_context.o nouveau_fbo.o nouveau_driver.o nouveau_state.o nouveau_bufferobj.o nouveau_span.o nouveau_bo_state.o nouveau_texture.o nouveau_surface.o nouveau_scratch.o nouveau_array.o nv04_context.o nv04_render.o nv04_state_fb.o nv04_state_raster.o nv04_state_tex.o nv04_state_frag.o nv04_surface.o nv10_context.o nv10_render.o nv10_state_fb.o nv10_state_polygon.o nv10_state_raster.o nv10_state_tex.o nv10_state_frag.o nv10_state_tnl.o nv20_context.o nv20_render.o nv20_state_fb.o nv20_state_polygon.o nv20_state_raster.o nv20_state_tex.o nv20_state_frag.o nv20_state_tnl.o      ../../../../../src/mesa/libmesa.a -lselinux -ldrm   -lexpat -lm -lpthread -ldl -ldrm_nouveau  
mklib: Making Linux shared library:  nouveau_vieux_dri.so.tmp
/usr/bin/ld: i386 architecture of input file `../common/utils.o' is incompatible with i386:x86-64 output

Expected results:
i expected that i get the 32bit libraries for the 32bit SecondLife client...

Additional info:
maybe i didnt use rpmbuild properly?
how do u make the 32bit libs?
Comment 1 Adam Jackson 2012-05-04 12:49:35 EDT
Mesa's build system is broken about this.  I recommend using mock to rebuild for 32-bit in any case.

Note You need to log in before you can comment on or make changes to this bug.