[Coin-discuss] Build failure from current CVS source on SuSE 9.1 AMD64 platform with fix
Laszlo Ladanyi
ladanyi at us.ibm.com
Thu May 12 22:23:44 EDT 2005
Hi Clint,
I have modified the makefile and put k8 there (if the arch is x86_64), but
that is still not perfect, since k8 is available only from g++-3.4 and up. I'm
not sure what's the best solution since at that point the version of g++
is not known. I suppose one could do a $(shell g++ -v) and parse the
result... Any other suggestion?
--Laci
On Wed, 12 Jan 2005, Clint wrote:
> The default CVS checkout of the Cbc (and dependent) modules fails to
> compile on SuSE 9.1 AMD64 platform. I checked out the source for the
> Cbc module via cvs and make failed with the following errors:
>
> cc1plus: error: bad value (x86_64) for -march= switch
>
> I traced this down to COIN/Makefiles/Makefile.linux, where
>
> ARCH=$(shell arch)
>
> is passed on to
>
> CXXFLAGS += -march=$(ARCH)
>
> On the AMD64 platform, ARCH=x86_64, however this is not a correct
> argument to -march in GCC. I hardcoded
>
> ARCH=k8
>
> into Makefile.linux and make proceeded normally. This is obviously
> not a permanent fix, but I just wanted to report the bug.
>
> - clint
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
>
More information about the Coin-discuss
mailing list