leechristensen / tcltcc

Automatically exported from code.google.com/p/tcltcc
0 stars 0 forks source link

Compile Error under Linux #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. configure
2. make

What is the expected output? What do you see instead?
Compile errors:
In file included from ./generic/tcc.c:41:
./generic/i386/i386-gen.c: In function `gfunc_epilog':
./generic/i386/i386-gen.c:501: warning: passing arg 1 of `section_ptr_add' 
from incompatible pointer type
./generic/i386/i386-gen.c:501: warning: passing arg 2 of `section_ptr_add' 
makes pointer from integer without a cast
./generic/i386/i386-gen.c:501: error: too few arguments to function 
`section_ptr_add'
./generic/i386/i386-gen.c:507: warning: passing arg 1 of `get_sym_ref' 
from incompatible pointer type
./generic/i386/i386-gen.c:507: warning: passing arg 2 of `get_sym_ref' 
from incompatible pointer type
./generic/i386/i386-gen.c:507: warning: passing arg 3 of `get_sym_ref' 
makes pointer from integer without a cast
./generic/i386/i386-gen.c:507: error: too few arguments to function 
`get_sym_ref'
./generic/i386/i386-gen.c:522: error: `cst' undeclared (first use in this 
function)
./generic/i386/i386-gen.c:522: error: (Each undeclared identifier is 
reported only once
./generic/i386/i386-gen.c:522: error: for each function it appears in.)
./generic/i386/i386-gen.c:522: error: `ur_text_section' undeclared (first 
use in this function)
./generic/i386/i386-gen.c: In function `gen_bounded_ptr_add':
./generic/i386/i386-gen.c:969: error: `st' undeclared (first use in this 
function)
./generic/i386/i386-gen.c:976: warning: passing arg 1 of `greloc' from 
incompatible pointer type
./generic/i386/i386-gen.c:976: warning: passing arg 2 of `greloc' from 
incompatible pointer type
./generic/i386/i386-gen.c:976: warning: passing arg 3 of `greloc' makes 
pointer from integer without a cast
./generic/i386/i386-gen.c:976: error: too few arguments to function 
`greloc'
./generic/i386/i386-gen.c:977: warning: passing arg 1 of `oad' makes 
pointer from integer without a cast
./generic/i386/i386-gen.c:977: error: too few arguments to function `oad'
./generic/i386/i386-gen.c: In function `gen_bounded_ptr_deref':
./generic/i386/i386-gen.c:996: error: `st' undeclared (first use in this 
function)
./generic/i386/i386-gen.c:1012: warning: passing arg 1 of `error' from 
incompatible pointer type
./generic/i386/i386-gen.c:1012: error: too few arguments to function 
`error'
./generic/i386/i386-gen.c:1022: warning: passing arg 1 of `put_extern_sym' 
from incompatible pointer type
./generic/i386/i386-gen.c:1022: error: too few arguments to function 
`put_extern_sym'
./generic/tcc.c: In function `ieee_finite':
./generic/tcc.c:139: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
./generic/tcc.c: In function `gbound':
./generic/tcc.c:3904: error: too many arguments to function 
`gen_bounded_ptr_add'
./generic/tcc.c:3909: error: too many arguments to function 
`gen_bounded_ptr_deref'
./generic/tcc.c: In function `gen_op':
./generic/tcc.c:4791: error: too many arguments to function 
`gen_bounded_ptr_add'
In file included from ./generic/tcc.c:8699:
./generic/tccelf.c: In function `tcc_add_runtime':
./generic/tccelf.c:1012: error: `tcc_lib_path' undeclared (first use in 
this function)
./generic/tcc.c: In function `tcc_run':
./generic/tcc.c:8796: error: too many arguments to function
./generic/tcc.c: At top level:
./generic/tcc.c:9309: warning: 'tcc_basename' defined but not used
./generic/tcc.c:122: warning: 'num_callers' defined but not used
./generic/tcc.c:173: warning: 'strstart' defined but not used

What version of the product are you using? On what operating system?
Linux 2.6, gcc 3.4.6, tcltcc 0.2, tcl8.4

Please provide any additional information below.
I have compiled the standalone tcc under linux with no problems.

Original issue reported on code.google.com by goo...@qs.co.nz on 12 Oct 2007 at 9:48

GoogleCodeExporter commented 9 years ago
This was probably before the code was changed to compile under linux as well. 
Could 
you retry with the current SVN trunk?
For me compilation succeeds (albeit with warnings) with GCC 4.1.2

Original comment by mpc.jans...@gmail.com on 15 Oct 2007 at 10:11

GoogleCodeExporter commented 9 years ago

Original comment by mpc.jans...@gmail.com on 16 Oct 2007 at 6:48

GoogleCodeExporter commented 9 years ago
Cannot be reproduced in current SVN version (29). Closed

Original comment by mpc.jans...@gmail.com on 25 Nov 2007 at 2:16