Ticket #4 (closed bug: fixed)
tcc Fails to compile.
| Reported by: | arshad.super@… | Owned by: | mwhitworth |
|---|---|---|---|
| Priority: | major | Component: | port (any other software) |
| Version: | 0.1rc1 | Keywords: | tcc |
| Cc: |
Description
tcc fails to compile under 0.1rc1 version.
#
# uname output
#
Arshad:/mnt/space/dload/Whitix/whitix-0.1rc1/user/tcc # uname -a
Linux linux-mydz 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006 i686 i686 i386 GNU/Linux
Arshad:/mnt/space/dload/Whitix/whitix-0.1rc1/user/tcc #
#
# End uname output.
#
#
# gcc Version
#
Arshad:/mnt/space/dload/Whitix/whitix-0.1rc1/user/tcc # gcc --v
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp --disable-libssp --disable-libgcj --with-slibdir=/lib --with-system-zlib --enable-shared --enable-cxa_atexit --enable-libstdcxx-allocator=new --program-suffix=-4.1 --enable-version-specific-runtime-libs --without-system-libunwind --with-cpu=generic --host=i586-suse-linux
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (SUSE Linux)
#
# end gcc Version
#
#
# make output
#
Arshad:/mnt/space/dload/Whitix/whitix-0.1rc1/user/tcc # make
gcc -nostdlib -O2 -I../posix/include -I../libc/include -I../librtl -fno-builtin -ffreestanding -fno-stack-protector -mpreferred-stack-boundary=2 -march=i386 -falign-functions=0 -fno-strict-aliasing -DTCC_TARGET_PE -o tcc.exe tcc.c
tcc.c: In function ‘resolve_sym’:
tcc.c:952: error: ‘RTLD_DEFAULT’ undeclared (first use in this function)
tcc.c:952: error: (Each undeclared identifier is reported only once
tcc.c:952: error: for each function it appears in.)
In file included from tcc.c:9334:
tccpe.c: At top level:
tccpe.c:21: error: redefinition of typedef ‘BYTE’
../librtl/syscalls.h:18: error: previous declaration of ‘BYTE’ was here
tccpe.c:22: error: redefinition of typedef ‘WORD’
../librtl/syscalls.h:14: error: previous declaration of ‘WORD’ was here
tccpe.c:23: error: redefinition of typedef ‘DWORD’
../librtl/syscalls.h:10: error: previous declaration of ‘DWORD’ was here
make: *** [tcc.exe] Error 1
Arshad:/mnt/space/dload/Whitix/whitix-0.1rc1/user/tcc # echo $?
2
#
# End make output
#
