Ticket #4 (closed bug: fixed)

Opened 6 months ago

Last modified 6 months ago

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
#

Attachments

Change History

  Changed 6 months ago by mwhitworth

Thanks for another bug report. Did you ./configure before typing make? (There's no way TCC_TARGET_PE, which is the source of the errors, would be defined using the default config.mak and Makefile in the default port). If so, just redownload the port and type "make" in the user directory. This should build and install the port.

(I've updated the tcc package anyway, so you'll want to download it again using ./portdownload.sh -i tcc)

  Changed 6 months ago by arshad.super@…

I think i did ./configure before make. Anyway i will retest it out and get back with results.

Thanks.

follow-up: ↓ 4   Changed 6 months ago by mwhitworth

Did the updated package compile fine for you?

in reply to: ↑ 3   Changed 6 months ago by arshad.super@…

Replying to mwhitworth:

Did the updated package compile fine for you?

Apology for delay reply.

I did download the tcc port, and tried out. It worked.
But there was no "configure" file. I just typed make
to build it.

Thanks

  Changed 6 months ago by mwhitworth

  • status changed from new to closed
  • resolution set to fixed

Indeed. You won't need to type configure (as it only builds for one target, Whitix). I'll make that clearer.

  Changed 6 months ago by arshad.super@…

What i meant was, tcc port had a configure earlier. Now it does not.
However it does not make any difference to the output.

Thanks.

Add/Change #4 (tcc Fails to compile.)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.