On 05/20/2018 11:49 AM, Jeffrey Walton wrote:
I'm working on Fedora 27 x86_64 from Master trying to sidestep https://bugs.kde.org/show_bug.cgi?id=387773.I configured Valgrind with the following: PKGCONFIG: /usr/local/lib64/pkgconfig CPPFLAGS: -I/usr/local/include -DNDEBUG CFLAGS: -g2 -O2 -m64 -march=native -fPIC CXXFLAGS: -g2 -O2 -m64 -march=native -fPIC LDFLAGS: -L/usr/local/lib64 -m64 -Wl,-R,/usr/local/lib64 -Wl,--enable-new-dtags LDLIBS: -ldl -lpthread Make'ing results in: $ make ... gcc ... -m32 ... 'priv/main_main.c' ...
cc1: error: -mpreferred-stack-boundary=2 is not between 3 and 12
This is peculiar: "I am working on ... x86_64" but invoking "gcc -m32" which requests "generate code for i686". Also, if the value is not at least 4 then some generated SSE instructions (even on i686) will fault because they demand 16-byte alignment, and any call involving a variable number of arguments which includes any argument that requires 16-byte alignment will generate incorrect code. The best strategy is to omit "-mpreferred-stack-boudnary" entirely. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
