llvm-gcc errors

Hi,

I’m trying to compile a simple program that only printf(“hello”) using llvm-gcc with –emit-llvm flag, but I’m getting the following error stream. Any ideas what could be the problem?

Thanks,

Tal

In file included from /usr/include/stdio.h:28,

from simple.c:1:

/usr/include/features.h:324:26: error: bits/predefs.h: No such file or directory

/usr/include/features.h:357:25: error: sys/cdefs.h: No such file or directory

/usr/include/features.h:389:23: error: gnu/stubs.h: No such file or directory

In file included from /usr/include/stdio.h:34,

from simple.c:1:

/home/neo/Documents/llvm/llvm-gcc/bin/…/lib/gcc/x86_64-unknown-linux-gnu/4.2.1/include/stddef.h:214: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âtypedefâ

In file included from simple.c:1:

/usr/include/stdio.h:36:25: error: bits/types.h: No such file or directory

In file included from simple.c:1:

/usr/include/stdio.h:49: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âtypedefâ

/usr/include/stdio.h:54: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__USING_NAMESPACE_STDâ

In file included from /usr/include/libio.h:32,

from /usr/include/stdio.h:75,

from simple.c:1:

/usr/include/_G_config.h:24: error: expected specifier-qualifier-list before â__off_tâ

/usr/include/_G_config.h:29: error: expected specifier-qualifier-list before â__off64_tâ

In file included from /usr/include/stdio.h:75,

from simple.c:1:

/usr/include/libio.h:302: error: expected specifier-qualifier-list before â__off_tâ

/usr/include/libio.h:366: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__io_read_fnâ

/usr/include/libio.h:374: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__io_write_fnâ

/usr/include/libio.h:383: error: expected declaration specifiers or â…â before â__off64_tâ

/usr/include/libio.h: In function â_IO_feofâ:

/usr/include/libio.h:464: error: expected declaration specifiers before â__THROWâ

/usr/include/libio.h:465: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/libio.h:467: error: storage class specified for parameter â_IO_peekc_lockedâ

/usr/include/libio.h:473: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/libio.h:474: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/libio.h:475: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/libio.h:493: error: storage class specified for parameter â_IO_vfscanfâ

/usr/include/libio.h:495: error: storage class specified for parameter â_IO_vfprintfâ

/usr/include/libio.h:496: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â_IO_padnâ

/usr/include/libio.h:497: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â_IO_sgetnâ

/usr/include/libio.h:499: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â_IO_seekoffâ

/usr/include/libio.h:500: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â_IO_seekposâ

/usr/include/libio.h:502: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

In file included from simple.c:1:

/usr/include/stdio.h:80: error: storage class specified for parameter âva_listâ

/usr/include/stdio.h:91: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âoff_tâ

/usr/include/stdio.h:103: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âssize_tâ

/usr/include/stdio.h:109: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:115: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:165:28: error: bits/stdio_lim.h: No such file or directory

/usr/include/stdio.h:170: error: storage class specified for parameter âstdoutâ

/usr/include/stdio.h:171: error: storage class specified for parameter âstderrâ

/usr/include/stdio.h:177: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:181: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/stdio.h:182: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:190: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:210: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/stdio.h:211: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:229: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/stdio.h:233: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:243: error: expected â)â before â*â token

/usr/include/stdio.h:244: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:267: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:279: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token

/usr/include/stdio.h:296: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:320: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token

/usr/include/stdio.h:326: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token

/usr/include/stdio.h:330: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:337: error: expected â)â before â*â token

/usr/include/stdio.h:339: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:348: error: expected â)â before â*â token

/usr/include/stdio.h:352: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:363: error: storage class specified for parameter âprintfâ

/usr/include/stdio.h:366: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWNLâ

/usr/include/stdio.h:372: error: expected â)â before â*â token

/usr/include/stdio.h:378: error: storage class specified for parameter âvprintfâ

/usr/include/stdio.h:381: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWNLâ

/usr/include/stdio.h:382: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:391: error: expected declaration specifiers or â…â before âsize_tâ

/usr/include/stdio.h:393: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWNLâ

/usr/include/stdio.h:394: error: expected declaration specifiers before â__END_NAMESPACE_C99â

/usr/include/stdio.h:422: error: storage class specified for parameter âdprintfâ

/usr/include/stdio.h:426: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:437: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__wurâ

/usr/include/stdio.h:440: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/stdio.h:458: error: expected â)â before â*â token

/usr/include/stdio.h:460: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__wurâ

/usr/include/stdio.h:462: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/stdio.h:469: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:486: error: storage class specified for parameter âvscanfâ

/usr/include/stdio.h:486: error: expected â,â or â;â before â__wurâ

/usr/include/stdio.h:491: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/stdio.h:514: error: expected â)â before â*â token

/usr/include/stdio.h:518: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__wurâ

/usr/include/stdio.h:521: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/stdio.h:528: error: expected declaration specifiers before â__END_NAMESPACE_C99â

/usr/include/stdio.h:538: error: expected â)â before â*â token

/usr/include/stdio.h:544: error: storage class specified for parameter âgetcharâ

/usr/include/stdio.h:545: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:557: error: storage class specified for parameter âgetchar_unlockedâ

/usr/include/stdio.h:567: error: expected â)â before â*â token

/usr/include/stdio.h:571: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:580: error: expected declaration specifiers or â…â before âFILEâ

/usr/include/stdio.h:580: error: storage class specified for parameter âputcâ

/usr/include/stdio.h:586: error: storage class specified for parameter âputcharâ

/usr/include/stdio.h:587: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:608: error: expected declaration specifiers or â…â before âFILEâ

/usr/include/stdio.h:608: error: storage class specified for parameter âputc_unlockedâ

/usr/include/stdio.h:609: error: storage class specified for parameter âputchar_unlockedâ

/usr/include/stdio.h:616: error: expected â)â before â*â token

/usr/include/stdio.h:619: error: expected declaration specifiers or â…â before âFILEâ

/usr/include/stdio.h:619: error: storage class specified for parameter âputwâ

/usr/include/stdio.h:623: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:636: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__wurâ

/usr/include/stdio.h:637: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:665: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âgetdelimâ

/usr/include/stdio.h:675: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âgetlineâ

/usr/include/stdio.h:681: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:692: error: storage class specified for parameter âputsâ

/usr/include/stdio.h:699: error: expected declaration specifiers or â…â before âFILEâ

/usr/include/stdio.h:699: error: storage class specified for parameter âungetcâ

/usr/include/stdio.h:706: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfreadâ

/usr/include/stdio.h:712: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfwriteâ

/usr/include/stdio.h:714: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:736: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âfwrite_unlockedâ

/usr/include/stdio.h:741: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:751: error: expected â)â before â*â token

/usr/include/stdio.h:756: error: expected â)â before â*â token

/usr/include/stdio.h:757: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:775: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âftelloâ

/usr/include/stdio.h:789: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:800: error: expected â)â before â*â token

/usr/include/stdio.h:812: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:825: error: expected â)â before â*â token

/usr/include/stdio.h:827: error: expected â)â before â*â token

/usr/include/stdio.h:828: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:833: error: expected â)â before â*â token

/usr/include/stdio.h:834: error: expected â)â before â*â token

/usr/include/stdio.h:838: error: expected declaration specifiers before â__BEGIN_NAMESPACE_STDâ

/usr/include/stdio.h:844: error: expected declaration specifiers before â__END_NAMESPACE_STDâ

/usr/include/stdio.h:850:30: error: bits/sys_errlist.h: No such file or directory

/usr/include/stdio.h:860: error: expected â)â before â*â token

/usr/include/stdio.h:870: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â*â token

/usr/include/stdio.h:876: error: expected â)â before â*â token

/usr/include/stdio.h:882: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â__THROWâ

/usr/include/stdio.h:910: error: expected â)â before â*â token

/usr/include/stdio.h:914: error: expected â)â before â*â token

/usr/include/stdio.h:917: error: expected â)â before â*â token

/usr/include/stdio.h:940: error: expected declaration specifiers before â__END_DECLSâ

simple.c:7: error: old-style parameter declarations in prototyped function definition

simple.c:7: error: expected â{â at end of input

Hi Tal,

Hi,

I’m trying to compile a simple program that only printf(“hello”) using llvm-gcc
with –emit-llvm flag, but I’m getting the following error stream. Any ideas what
could be the problem?

llvm-gcc is dead (long dead), please use dragonegg or clang instead.

Best wishes, Duncan.

llvm-gcc is dead (long dead), please use dragonegg or clang instead.

Maybe we should just "svn rm"
https://llvm.org/svn/llvm-project/llvm-gcc-4.2 and
https://llvm.org/svn/llvm-project/llvm-gcc-4.0.

They will always be in svn history if someone really wants them and we
can leave a README behind.

Cheers,
Rafael