[Mesa-dev] Mesa fails to build (32 bit chroot on 64 bit machine)

Emil Velikov emil.l.velikov at gmail.com
Sun Aug 17 14:30:04 PDT 2014


On 17/08/14 22:00, Kertesz Laszlo wrote:
> Hello.
> I have an issue building mesa on a 32 bit chroot. Compiling fails with the
> below messages (the Error ones repeated 9000+ times):
> 
> /tmp/ccvEhPCW.s: Assembler messages:
> /tmp/ccvEhPCW.s:13: Error: bad register name `%rip)'
> /tmp/ccvEhPCW.s:14: Error: bad register name `%rax)'
> /tmp/ccvEhPCW.s:15: Error: bad register name `%r11)'
> /tmp/ccvEhPCW.s:21: Error: bad register name `%rip)'
> /tmp/ccvEhPCW.s:22: Error: bad register name `%rax)'
> /tmp/ccvEhPCW.s:23: Error: bad register name `%r11)'
> /tmp/ccvEhPCW.s:29: Error: bad register name `%rip)'
> /tmp/ccvEhPCW.s:30: Error: bad register name `%rax)'
> 
Guessing that it's coming from the mesa assembly. You can disable it temporary
to confirm/dismiss --disable-asm.

With that aside - please _avoid_ setting any *FLAGS when building mesa. If it
does not work without them file a bug, rather than hacking around can causing
yourself move pain :)

> I built mesa before with the very same config file 2 days ago. What could be
> wrong?
> 
> Note: 64 bit builds fine.
> mesa build script:
> 
> #!/bin/bash
> ./autogen.sh --sysconfdir=/etc --prefix=/usr \

> LDFLAGS="-L/usr/lib/i386-linux-gnu -L/usr/lib -L/usr/local/lib/llvm32/lib" \
Please, no LDFLAGS/hacks like these.

> --disable-64-bit --enable-32-bit \
The 32/64bit options has been removed. Check out docs/autoconf.html for
information on cross/multilib builds. Please pay attention to PKG_CONFIG_PATH.

> CPPFLAGS="-m32" \
> CXXFLAGS="-m32" \
Replace these two with CC="gcc -m32"... And use them _only_ if doing a doing a
multilib build.

> LDFLAGS="-ltinfo -lpthread -ldl"
Can you drop these as well ?

> 
> Its a bit messed up, but it was working before in this exact form (i build
> llvm too and static link agains it). Debian Testing 64 bit.
IIRC static link against llvm is somewhat fuzzy and we've explicitly defaulted
to shared link. Currently I have no plans on beating it into shape, so any
patches that you can come up with will be greatly appreciated.

-Emil

> 
> -- 
> O zi buna,
> Kertesz Laszlo
> 
> 
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 



More information about the mesa-dev mailing list