"illegal instruction" is a compiler bug, right?

Rex Dieter rdieter at math.unl.edu
Sun Mar 12 02:31:35 UTC 2006


Quentin Spencer wrote:
> Rex Dieter wrote:

>>> CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" ./configure \
>>>       --enable-shared=yes --enable-lite-kernel --enable-static=no \
>>>       --prefix=%{_prefix} --infodir=%{_infodir} --libdir=%{_libdir}
>>>
>>> This should produce something that runs on an i386, right?
>>>   
>>
>> Not right.
>>
>> By not using %configure, and manually using ./configure, you've built a
>> binary that possibly optimizes for the build-host, though $RPM_OPT_FLAGS
>> *should* avoid that problem.  NOTE: You only set CXXFLAGS, but not
>> CFLAGS or FFLAGS (like what %configure does).

> OK, but if the application is written in C++, isn't setting CXXFLAGS
> enough? 

Last I knew, octave included a bunch of fortran stuff as well.
Regardless, it wouldn't hurt to cover all bases.

-- Rex




More information about the fedora-extras-list mailing list