[PlanetCCRMA] Error compiling Jack on X86_64

Frank van de Pol fvdpol@coil.demon.nl
Fri Jul 30 12:34:01 2004

Hi Janina,

I'm not sure if this is of any help for you since I don't run PlanetCCRMA,
but I can confirm that jack 0.98.1 runs fine on my amd64 box (gentoo linux,
gcc 3.4.1, kernel 2.6.7). At least now you know it *should* work, so there
is light at the end of the tunnel :-)


Anyway, my systems compiles the affected file like this:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../config -I.. -I.. -D_REENTRANT 
-D_POSIX_PTHREAD_SEMANTICS -Wall -DREENTRANT -O3 -fomit-frame-pointer 
-ffast-math -funroll-loops -fmove-all-movables -I../config -I.. -I.. 
-funroll-loops -fprefetch-loop-arrays   -DJACK_LOCATION=\"/usr/bin\" 
-DREENTRANT -O3 -fomit-frame-pointer -ffast-math -funroll-loops 
-fmove-all-movables -I../config -I.. -I.. -D_REENTRANT 
-D_POSIX_PTHREAD_SEMANTICS -Wall -g -O3 -ffast-math -funroll-loops 
-fprefetch-loop-arrays    -MT libjack_la-shm.lo
-MD -MP -MF ".deps/libjack_la-shm.Tpo" -c -o libjack_la-shm.lo 


On Fri, Jul 30, 2004 at 01:37:26PM -0400, Janina Sajka wrote:
> I suppose it's arugable whether I'm a masochist, but I do have a Opteron
> box here and I'm trying to compile some of the CCRMA packages for this
> platform. So far, alsa-driver/kernel-module and libsndfile have
> compiled, but jack fails with an error that makes me want to say,
> "Duh-uh?" ...
> mkdir .libs
>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../config -I.. -I.. -D_REENTRANT
> -D_POSIX_PTHREAD_SEMANTICS -Wall -DREENTRANT -O3 -fomit-frame-pointer
> -ffast-math -funroll-loops -fmove-all-movables -I../config -I.. -I..
> -mcpu=i686 -O3 -ffast-math -funroll-loops -fprefetch-loop-arrays -mmmx
> -msse -mfpmath=sse -DJACK_LOCATION=\"/usr/bin\" -I../config -I.. -I..
> -fomit-frame-pointer -ffast-math -funroll-loops -fmove-all-movables
> -I../config -I.. -I.. -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -g
> -march=x86_64 -mcpu=i686 -O3 -ffast-math -funroll-loops
> -fprefetch-loop-arrays -mmmx -msse -mfpmath=sse -MT libjack_la-shm.lo
> -MD -MP -MF .deps/libjack_la-shm.Tpo -c shm.c  -fPIC -DPIC -o
> .libs/libjack_la-shm.o
> cc1: error: bad value (x86_64) for -march= switch
> cc1: error: CPU you selected does not support x86-64 instruction set
> To me, a most inexpert coder, this looks like a trivial oversight
> somewhere in the code. march and mcpu are clearly unmatched. But, I'm
> also thinking I shouldn't go on appearances. So, mindful that the Jack
> FAQ notes issues with 2.6.7 kernels (which mine is, from the Fedora
> development tree), is this something likely to be fairly easy to
> resolve? Or shall I wait on the experts to resolve a larger tangle than
> I currently comprehend?
> 			Janina, Lost on the frontiers ...
> _______________________________________________
> PlanetCCRMA mailing list
> PlanetCCRMA@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/planetccrma

+---- --- -- -  -   -    -
| Frank van de Pol                  -o)    A-L-S-A
| FvdPol@coil.demon.nl              /\\  Sounds good!
| http://www.alsa-project.org      _\_v
| Linux - Why use Windows if we have doors available?