Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248276 - dev-lang/mozart-1.4.0 - ./src/base.cc:1: error: bad value (x86_64) for -march= switch
Summary: dev-lang/mozart-1.4.0 - ./src/base.cc:1: error: bad value (x86_64) for -march...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Keri Harris
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-23 10:07 UTC by Nikolay Orlyuk
Modified: 2008-11-27 08:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mozart-1.4.0.20080704/platform/dss/config.log (config.log.bz2,6.45 KB, application/x-bzip2)
2008-11-23 10:12 UTC, Nikolay Orlyuk
Details
emerge --info (emerge-info.txt.bz2,3.51 KB, application/x-bzip2)
2008-11-27 08:01 UTC, Nikolay Orlyuk
Details
dev-lang-mozart-1.4.0/temp/loadsaveenv (loadsaveenv.bz2,31.61 KB, application/x-bzip2)
2008-11-27 08:02 UTC, Nikolay Orlyuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Orlyuk 2008-11-23 10:07:03 UTC
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
Comment 1 Nikolay Orlyuk 2008-11-23 10:12:12 UTC
Created attachment 172917 [details]
mozart-1.4.0.20080704/platform/dss/config.log
Comment 2 Nikolay Orlyuk 2008-11-23 10:44:06 UTC
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'
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-26 17:04:43 UTC
Please post your `emerge --info' or similarly adequate OS info too.
Comment 4 Keri Harris gentoo-dev 2008-11-27 05:36:21 UTC
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.
Comment 5 Nikolay Orlyuk 2008-11-27 08:01:02 UTC
Created attachment 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}"
Comment 6 Nikolay Orlyuk 2008-11-27 08:02:05 UTC
Created attachment 173569 [details]
dev-lang-mozart-1.4.0/temp/loadsaveenv