Re: Different behaviour on gcc 4.6?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/6/10 Kevin Kofler <kevin.kofler@xxxxxxxxx>:
> Sergio Belkin wrote:
>> | int
>> | {
>> |
>> |;
>> |return 0;
>> | }
>
> This is not a valid C program. Maybe GCC 4.5 accepted this junk?! GCC 4.6 is
> right to error on it.
>
>        Kevin Kofler
>
> --

Thanks Kevin, but not so fast  ;)  !
 it was my fault, I've copied bad the snip, below is the right one,
and that is indeed a valid C program, please take a look  (I wonder if
LDFLAGS="-no-install" is no more valid, perhaps someone may want to
test against some source) :


gcc version 4.6.0 20110530 (Red Hat 4.6.0-9) (GCC)
configure:3618: $? = 0
configure:3607: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3618: $? = 4
configure:3607: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3618: $? = 4
configure:3638: checking whether the C compiler works
configure:3660: gcc   -no-install conftest.c  >&5
gcc: error: unrecognized option '-no-install'
configure:3664: $? = 1
configure:3702: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "UpTools"
| #define PACKAGE_TARNAME "UpTools"
| #define PACKAGE_VERSION "8.5.5"
| #define PACKAGE_STRING "UpTools 8.5.5"
| #define PACKAGE_BUGREPORT "bugs-uptools@xxxxxxxxxxx"
| #define PACKAGE_URL ""
| #define PACKAGE "UpTools"
| #define VERSION "8.5.5"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3707: error: in `/tmp/UpTools-8.5.5':
configure:3709: error: C compiler cannot create executables

End of snippet


-- 
--
Sergio Belkin  http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified - http://www.lpi.org
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux