Bug 819047 - rpmbuild wont work for target i686
Summary: rpmbuild wont work for target i686
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa
Version: 17
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-04 16:42 UTC by Arne Woerner
Modified: 2012-05-04 16:49 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-04 16:49:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Arne Woerner 2012-05-04 16:42:23 UTC
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):
mesa-8.0.2-5.fc17.src.rpm
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:
always

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 16:49:35 UTC
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.