Subject: lib/36511: lcc is an ANSI C compiler for a variety of platforms
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <cheusov@tut.by>
List: netbsd-bugs
Date: 06/19/2007 20:15:01
>Number:         36511
>Category:       lib
>Synopsis:       lcc is an ANSI C compiler for a variety of platforms
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 19 20:15:00 +0000 2007
>Originator:     cheusov@tut.by
>Release:        NetBSD 4.0_BETA2
>Organization:
Best regards, Aleksey Cheusov.
>Environment:
System: NetBSD chen.chizhovka.net 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #18: Sat Jun 9 22:13:59 EEST 2007 cheusov@chen.chizhovka.net:/srv/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
While playing with LCC, an "ANSI C compiler for a variety of platforms"
I found that even Hello World application cannot be compiled with it
under NetBSD.

0 tmp>cat main.c 
#include <stdio.h>

int main (void)
{
        printf ("Hello world\n");
        return 0;
}
0 tmp>gcc main.c 
0 tmp>./a.out                                            
Hello world
0 tmp>lcc main.c 
cpp: /usr/include/sys/cdefs_elf.h:67 /usr/pkg/share/lcc/include/sys/cdefs.h:21 /usr/include/stdio.h:40 main.c:1 Syntax error in #if/#elsif
1 tmp>


Can you make NetBSD include files
a bit friendlier for C compilers other that GCC?

>Fix:

Unknown