FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 06-11-2011, 12:09 AM
Sergio Belkin
 
Default Different behaviour on gcc 4.6?

Sorry, I was typing on a netbook :P and the mail it was sent without subject


--
--
Sergio Belkin *http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
LPIC-2 Certified - http://www.lpi.org
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 06-11-2011, 01:34 AM
Kevin Kofler
 
Default Different behaviour on gcc 4.6?

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

--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 06-11-2011, 03:48 AM
Sergio Belkin
 
Default Different behaviour on gcc 4.6?

2011/6/10 Kevin Kofler <kevin.kofler@chello.at>:
> 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@palermo.edu"
| #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@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 06-11-2011, 08:35 PM
Christoph Frieben
 
Default Different behaviour on gcc 4.6?

2011/6/11 Sergio Belkin:
> /* 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@palermo.edu"
> #define PACKAGE_URL ""
> #define PACKAGE "UpTools"
> #define VERSION "8.5.5"
> /* end confdefs.h. **/
>
> int
> main ()
> {
>
> ;
> return 0;
> }

Your code snippet is compiled without any issue; seems like your
compiler flags are messed up. ~C

$ cc --version
cc (GCC) 4.6.0 20110530 (Red Hat 4.6.0-9)
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 

Thread Tools




All times are GMT. The time now is 01:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org