Vanilla Install of Slackware 10.2
After unpacking the source tar.gz Ran ./config
No errors were returned but when ran make got folowing
error:
cc1: error: bad value (k8) for -march= switch
cc1: error: bad value (k8) for -mcpu= switch
If i run .configure with CFLAGS and CXXFLAGS to
override detected CPU arcitecture make will compile
cleanly but without processor optimizations.
./configure CFLAGS="-march=i686 -mcpu=i686"
CXXFLAGS="-march=i686 -mcpu=i686"
output from make with broken config
root@Narusagawa:/usr/local/src/mjpegtools-1.8.0# make
make all-recursive
make[1]: Entering directory
`/usr/local/src/mjpegtools-1.8.0'
Making all in utils
make[2]: Entering directory
`/usr/local/src/mjpegtools-1.8.0/utils'
Making all in mmxsse
make[3]: Entering directory
`/usr/local/src/mjpegtools-1.8.0/utils/mmxsse'
if /bin/sh ../../libtool --tag=CC --mode=compile gcc
-DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../utils
-march=k8 -mcpu=k8 -g -O2 -pthread -Wall -Wunused -MT
build_sub22_mests.lo -MD -MP -MF
".deps/build_sub22_mests.Tpo" -c -o
build_sub22_mests.lo build_sub22_mests.c; \
then mv -f ".deps/build_sub22_mests.Tpo"
".deps/build_sub22_mests.Plo"; else rm -f
".deps/build_sub22_mests.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
-I../../utils -march=k8 -mcpu=k8 -g -O2 -pthread -Wall
-Wunused -MT build_sub22_mests.lo -MD -MP -MF
.deps/build_sub22_mests.Tpo -c build_sub22_mests.c
-fPIC -DPIC -o .libs/build_sub22_mests.o
cc1: error: bad value (k8) for -march= switch
cc1: error: bad value (k8) for -mcpu= switch
make[3]: *** [build_sub22_mests.lo] Error 1
make[3]: Leaving directory
`/usr/local/src/mjpegtools-1.8.0/utils/mmxsse'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/local/src/mjpegtools-1.8.0/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/local/src/mjpegtools-1.8.0'
make: *** [all] Error 2
please email admin (at) darkstaranime (dot) com with
resolutions/log file requests/requests for aditional
information/etc
Logged In: YES
user_id=155293
It seems that you compiler is not able to understand the
compile flags. Meant that you might use a to old compiler.
The workaround is to use the option --with-extra-cflags to
explicitly specify the cpu type.
Something like:
--with-extra-cflags "-mcpu=athlon4 -march=athlon4"
(if that still has problems then perhaps simply "athlon"
will work) will place additional -mcpu and -march options at
the end of the CFLAGS. They will override the options
detected by the cpuinfo script.
Logged In: YES
user_id=1312539
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).