[OT] change default compiler version to build an rpm

David Nielsen david at lovesunix.net
Thu May 4 22:22:41 UTC 2006


tor, 04 05 2006 kl. 23:57 +0200, skrev Gianluca Cecchi:
> On Thu, 04 May 2006 14:28:30 -0700 Michael A. Peters wrote:
> >in %build section:
> >try export CC=%{_bindir}/gcc32
> >or
> >make CC=%{_bindir}/gcc32
> 
> either setting in %build
> %configure CC=%{_bindir}/gcc32
> %{__make} CC=%{_bindir}/gcc32
> 
> or
> export CC=%{_bindir}/gcc32
> 
> I get this during configure:
> 
> checking for i686-redhat-linux-gnu-gcc... /usr/bin/gcc32
> checking for C compiler default output file name... configure: error:
> C compiler cannot create executables
> See `config.log' for more details.
> 
> In config.log I have:
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable
> -shared --enable-threads=posix --disable-checking --with-system-zlib
> --enable-__cxa_atexit --enable-la
> nguages=c,c++,f77 --disable-libgcj --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-55.fc5)
> configure:2076: $? = 0
> configure:2078: /usr/bin/gcc32 -V </dev/null >&5
> gcc32: argument to `-V' is missing
> configure:2081: $? = 1
> configure:2104: checking for C compiler default output file name
> configure:2107: /usr/bin/gcc32 -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protect
> or --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables   conftest.c
>   >&5
> cc1: invalid option `tune=generic'
> cc1: unrecognized option `-fstack-protector'
> cc1: invalid parameter `ssp-buffer-size'
> configure:2110: $? = 1
> 
> Do I have also to change CFLAGS...?

Of course, these are not supported in gcc 3.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dette er en digitalt underskrevet brevdel
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20060505/9d0cfd17/attachment.sig>


More information about the fedora-devel-list mailing list