[x264-devel] cannot build x264: error on the binutils stuff

Jonas Kuepper Jonas.Kuepper at cinepostproduction.de
Wed Jun 15 15:20:33 CEST 2011


At least some progress...

OK, basically the problem was as follows:

The distro came with binutils 2.16 with the assembler installed in /usr/bin/as
So x264 complained about the old version back then, which is right.

So i compiled binutils 2.21 but this as was installed to /usr/local/bin .
So now i had TWO as's (two asses... ;) ) installed.

A simple call to as from bash would invoke /usr/local/bin/as (2.21) but the call from the compiler pointed /usr/bin/as (2.16) (the call translates to /usr/x86_64-suse-linux/bin/as which is a link to /usr/bin/as) .

So the config script invokes two different as : The first call who generates the version calls simply as in PATH (2.21). Thats why the error message is so odd ("hey, you have 2.21, but you need at least 2.17"). Maybe this should be fixed.

So I linked /usr/bin/as to /usr/local/bin/as and now configure behaves.

But...

...now I'm running into this:

gcc -Wshadow -O3 -ffast-math  -Wall -I. -std=gnu99 -fPIC -s -fomit-frame-pointer -fno-tree-vectorize   -c -o common/cpu.o common/cpu.c
/tmp/cc138ftM.s: Assembler messages:
/tmp/cc138ftM.s:1283: Error: symbol `fstatat64' is already defined
/tmp/cc138ftM.s:1298: Error: symbol `fstat64' is already defined
/tmp/cc138ftM.s:1311: Error: symbol `lstat64' is already defined
/tmp/cc138ftM.s:1324: Error: symbol `stat64' is already defined
make: *** [common/cpu.o] Error 1

Gnaaah, what's going on here? These are defined in /usr/include/sys/stat.h but where else....??

Does anyone know or should i find myself a Linux specialist.. (which I am not!) 

Thanks
Jonas 
 

> -----Original Message-----
> From: x264-devel-bounces at videolan.org 
> [mailto:x264-devel-bounces at videolan.org] On Behalf Of Jonas Kuepper
> Sent: Wednesday, June 15, 2011 8:38 AM
> To: Mailing list for x264 developers
> Subject: Re: [x264-devel] cannot build x264: error on the 
> binutils stuff
> 
> Oh,
> 
> out of curiosity i ran
> gcc conftest.c -Wall -I. -std=gnu99 -v -lm -o conftest (with 
> the -v option)
> 
> And guess what:
> -------------------------------
> Using built-in specs.
> [... snipp ...]
>  
> /usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-l
inux/bin/as -V -Qy -o /tmp/ccGEtB7N.o /tmp/ccOsaOXu.s GNU > assembler version 2.16.91.0.5 (x86_64-suse-linux) using BFD 
> version 2.16.91.0.5 20051219 (SUSE Linux)
> conftest.c: Assembler messages:
> conftest.c:1: Error: no such instruction: `pabsw %xmm0,%xmm0'
> -------------------------------
> 
> Seems like my build environment is not configured right.
> where can i change that behaviour...?
> 
> Jonas
> 
> 
> ________________________________________
> Von: x264-devel-bounces at videolan.org 
> [x264-devel-bounces at videolan.org]" im Auftrag von 
> "Jonas Kuepper [Jonas.Kuepper at cinepostproduction.de]
> Gesendet: Mittwoch, 15. Juni 2011 08:18
> An: Mailing list for x264 developers
> Betreff: Re: [x264-devel] cannot build x264: error on the 
> binutils stuff
> 
> Hey Jason,
> 
> heres it is:
> jonas at co:~> as --version
> GNU assembler (GNU Binutils) 2.21
> Copyright 2010 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under 
> the terms of the GNU General Public License version 3 or later.
> This program has absolutely no warranty.
> This assembler was configured for a target of `x86_64-suse-linux'.
> 
> I think this is also checked in the configure -script...?
> 
> Any help would be great. And BTW: Keep up the good work! :)
> 
> Jonas
> ________________________________________
> Von: x264-devel-bounces at videolan.org 
> [x264-devel-bounces at videolan.org]" im Auftrag von 
> "Jason Garrett-Glaser [jason at x264.com]
> Gesendet: Mittwoch, 15. Juni 2011 00:28
> An: Mailing list for x264 developers
> Betreff: Re: [x264-devel] cannot build x264: error on the 
> binutils stuff
> 
> On Tue, Jun 14, 2011 at 3:14 PM, Jonas Kuepper 
> <Jonas.Kuepper at cinepostproduction.de> wrote:
> > Updated, got gcc 4.4.2 running but still no luck and same 
> error... :(
> > conftest.c:1: Error: no such instruction: `pabsw %xmm0,%xmm0'
> >
> > i moved /usr/bin/gcc-4.4 to /usr/bin/gcc, tried gcc 
> --version and got "gcc (SUSE Linux) 4.4.2 [gcc-4_4-branch 
> revision 155966]"
> >
> > am i missing something? i only installed the dependencies 
> of gcc44. do i need more packages?
> 
> It's not your gcc that matters, but your gnu as.  Check your 
> as version.
> 
> Jason
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
> 


More information about the x264-devel mailing list