Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579200 - dev-libs/crypto++ wrongly uses CXXFLAGS+=-march=native
Summary: dev-libs/crypto++ wrongly uses CXXFLAGS+=-march=native
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-07 05:34 UTC by Marshall McMullen
Modified: 2016-04-07 20:40 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marshall McMullen 2016-04-07 05:34:37 UTC
In the GNUMakefile provided with dev-libs/crypto++-5.6.2, there's this line of code:

{code}
ifneq ($(GCC42_OR_LATER),0)
ifeq ($(UNAME),Darwin)
CXXFLAGS += -arch x86_64 -arch i386
else
CXXFLAGS += -march=native
endif
endif
{code}

In my case I was using compiler 4.8.1 and this thus forced me to get -march=native. This caused great grief since the build machine I was on was a slightly different CPU family which caused any binary calling into crypto++ to receive a SIGILL (Illegal Instruction) and crash.

I found a similar freeBSD bug report on this here: 

http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2014-January/270075.html
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2016-04-07 20:40:23 UTC
Good one!
Thanks!