Bug 248276 - dev-lang/mozart-1.4.0 - ./src/base.cc:1: error: bad value (x86_64) for -march= switch
|
Bug#:
248276
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: AMD64
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: UPSTREAM
|
Assigned To: keri@gentoo.org
|
Reported By: virkony@gmail.com
|
|
Component: Development
|
|
|
URL:
|
|
Summary: dev-lang/mozart-1.4.0 - ./src/base.cc:1: error: bad value (x86_64) for -march= switch
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2008-11-23 10:07 0000
|
During building mozart-1.4.0.20080704/platform/dss configure generates
-march=x86_64
According to platform/dss/configure.ac that surely will lead into problems on
FreeBSD and possibly on others, except of host_cpu=sparc/ultrasparc/powerpc
Reproducible: Always
Steps to Reproduce:
under amd64
1. ebuild \=dev-lang/mozart-1.4.0
Actual Results:
gmake[2]: Entering directory
`/var/tmp/paludis/dev-lang-mozart-1.4.0/work/mozart-1.4.0.20080704/platform/dss'
x86_64-pc-linux-gnu-g++ -march=x86_64 -mtune=x86_64 -O3 -fomit-frame-pointer
-funsigned-char -I. -I./include -fno-exceptions -Winline -Weffc++ -Wall
-Wold-style-cast -Woverloaded-virtual -Wshadow -fPIC -c -o base.o
./src/base.cc
x86_64-pc-linux-gnu-g++ -march=x86_64 -mtune=x86_64 -O3 -fomit-frame-pointer
-funsigned-char -I. -I./include -fno-exceptions -Winline -Weffc++ -Wall
-Wold-style-cast -Woverloaded-virtual -Wshadow -fPIC -c -o msl_timers.o
./src/msl_timers.cc
x86_64-pc-linux-gnu-g++ -march=x86_64 -mtune=x86_64 -O3 -fomit-frame-pointer
-funsigned-char -I. -I./include -fno-exceptions -Winline -Weffc++ -Wall
-Wold-style-cast -Woverloaded-virtual -Wshadow -fPIC -c -o mslBase.o
./src/mslBase.cc
./src/base.cc:1: error: bad value (x86_64) for -march= switch
./src/base.cc:1: error: bad value (x86_64) for -mtune= switch
./src/mslBase.cc:1: error: bad value (x86_64) for -march= switch
./src/mslBase.cc:1: error: bad value (x86_64) for -mtune= switch
gmake[2]: *** [base.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: *** [mslBase.o] Error 1
./src/msl_timers.cc:1: error: bad value (x86_64) for -march= switch
./src/msl_timers.cc:1: error: bad value (x86_64) for -mtune= switch
gmake[2]: *** [msl_timers.o] Error 1
gmake[2]: Leaving directory
`/var/tmp/paludis/dev-lang-mozart-1.4.0/work/mozart-1.4.0.20080704/platform/dss'
Expected Results:
normal build
small patch for platform/dss/configure.ac is needed
Sorry, looks like there is something strange. It wouldn't compile under 64bit
even with right -march
./src/msl_msgContainer.cc: In member function 'virtual char*
_msl_internal::MsgCnt::m_stringrep()':
./src/msl_msgContainer.cc:122: error: cast from 'void*' to 'int' loses
precision
./src/msl_msgContainer.cc: In member function 'void
_msl_internal::MsgCnt::m_serialize(_msl_internal::DssWriteByteBuffer*,
_msl_internal::Site*, _msl_internal::MsgnLayerEnv*)':
./src/msl_msgContainer.cc:291: error: cast from 'void*' to 'int' loses
precision
./src/msl_msgContainer.cc: In member function 'virtual int
_msl_internal::MsgCnt::popIntVal()':
./src/msl_msgContainer.cc:410: error: cast from 'void*' to 'int' loses
precision
./src/msl_msgContainer.cc: In member function 'virtual int
_msl_internal::MsgCnt::peekMslMessageType()':
./src/msl_msgContainer.cc:498: error: cast from 'void*' to 'int' loses
precision
gmake[2]: *** [msl_msgContainer.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory
`/var/tmp/paludis/dev-lang-mozart-1.4.0-r1/work/mozart-1.4.0.20080704/platform/dss'
Please post your `emerge --info' or similarly adequate OS info too.
Thanks for the bug report. mozart uses 32 bit tagged references, so it's not
supported on 64 bit architectures. I've added -amd64 -ppc64 to KEYWORDS to
reflect this.
Hopefully upstream will eventually port this to 64 bit architectures.
Created an attachment (id=173567) [details]
emerge --info
Sorry, don't know how to produce the same info for paludis.
USE flags used for mozart: doc -emacs gdbm -static tcl threads tk
CHOST="x86_64-pc-linux-gnu"
MAKEOPTS="-j3"
CFLAGS="-O3 -march=core2 -mtune=core2 -msse -msse2 -msse3
-maccumulate-outgoing-args -minline-all-stringops -pipe"
CXXFLAGS="${CFLAGS}"