[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal
From: |
Christian Jullien |
Subject: |
Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal |
Date: |
Thu, 26 Nov 2020 17:54:20 +0100 |
Your latest patch gives on OpenBSD:
-bash-5.0$ ./configure --cc=clang
Binary directory /usr/local/bin
TinyCC directory /usr/local/lib/tcc
Library directory /usr/local/lib
Include directory /usr/local/include
Manual directory /usr/local/share/man
Info directory /usr/local/share/info
Doc directory /usr/local/share/doc
Source path /home/jullien/tinycc
C compiler clang (10.0)
Target OS OpenBSD
CPU x86_64
Config ldl=no
Creating config.mak and config.h
-bash-5.0$ gmake
clang -o tcc.o -c tcc.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall -O2
-Wdec laration-after-statement
-fno-strict-aliasing -fheinous-gnu-extensions -Wno-poin
ter-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I.
clang -o libtcc.o -c libtcc.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall
-O2 -Wdeclaration-after-statement
-fno-strict-aliasing -fheinous-gnu-extensions -Wn
o-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I.
clang -o tccpp.o -c tccpp.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall -O2
- Wdeclaration-after-statement
-fno-strict-aliasing -fheinous-gnu-extensions -Wno-
pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I.
clang -o tccgen.o -c tccgen.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall
-O2 -Wdeclaration-after-statement
-fno-strict-aliasing -fheinous-gnu-extensions -Wn
o-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I.
clang -o tccelf.o -c tccelf.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall
-O2 -Wdeclaration-after-statement
-fno-strict-aliasing -fheinous-gnu-extensions -Wn
o-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I.
clang -o tccasm.o -c tccasm.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall
-O2 -Wdeclaration-after-statement
-fno-strict-aliasing -fheinous-gnu-extensions -Wn
o-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I.
clang -o tccrun.o -c tccrun.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall
-O2 -Wdeclaration-after-statement
-fno-strict-aliasing -fheinous-gnu-extensions -Wn
o-pointer-sign -Wno-sign-compare -Wno-unused-result -Wno-string-plus-int -I.
tccrun.c:653:18: error: no member named 'uc_rbp' in 'struct sigcontext'; did you
mean 'sc_rbp'?
rc->fp = uc->uc_rbp;
^~~~~~
sc_rbp
/usr/include/machine/signal.h:68:7: note: 'sc_rbp' declared here
long sc_rbp;
And on FreeBSD:
[jullien@freebsd64 ~/tinycc]$ ./configure; gmake
Binary directory /usr/local/bin
TinyCC directory /usr/local/lib/tcc
Library directory /usr/local/lib
Include directory /usr/local/include
Manual directory /usr/local/share/man
Info directory /usr/local/share/info
Doc directory /usr/local/share/doc
Source path /home/jullien/tinycc
C compiler gcc (9.3)
Target OS FreeBSD
CPU x86_64
Config ldl=no
Creating config.mak and config.h
gcc -o tcc.o -c tcc.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall -O2
-Wdecla ration-after-statement
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare
-Wno-unused-result -Wno-format-truncation -I.
gcc -o libtcc.o -c libtcc.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall -O2
- Wdeclaration-after-statement
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-co
mpare -Wno-unused-result -Wno-format-truncation -I.
gcc -o tccpp.o -c tccpp.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall -O2
-Wd eclaration-after-statement
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-comp
are -Wno-unused-result -Wno-format-truncation -I.
gcc -o tccgen.o -c tccgen.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall -O2
- Wdeclaration-after-statement
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-co
mpare -Wno-unused-result -Wno-format-truncation -I.
gcc -o tccelf.o -c tccelf.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall -O2
- Wdeclaration-after-statement
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-co
mpare -Wno-unused-result -Wno-format-truncation -I.
gcc -o tccasm.o -c tccasm.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall -O2
- Wdeclaration-after-statement
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-co
mpare -Wno-unused-result -Wno-format-truncation -I.
gcc -o tccrun.o -c tccrun.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall -O2
- Wdeclaration-after-statement
-fno-strict-aliasing -Wno-pointer-sign -Wno-sign-co
mpare -Wno-unused-result -Wno-format-truncation -I.
gcc -o x86_64-gen.o -c x86_64-gen.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0
-Wa ll -O2
-Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign -Wno
-sign-compare -Wno-unused-result
-Wno-format-truncation -I.
gcc -o x86_64-link.o -c x86_64-link.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0
- Wall -O2
-Wdeclaration-after-statement -fno-strict-aliasing -Wno-pointer-sign -W
no-sign-compare -Wno-unused-result
-Wno-format-truncation -I.
gcc -o i386-asm.o -c i386-asm.c -DTCC_TARGET_X86_64 -DONE_SOURCE=0 -Wall
- O2 -Wdeclaration-after-statement
-fno-strict-aliasing -Wno-pointer-sign -Wno-sig
n-compare -Wno-unused-result -Wno-format-truncation -I.
ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o
x86_64-gen. o x86_64-link.o
i386-asm.o
gcc -o tcc tcc.o libtcc.a -lm -lpthread -s
gmake[1]: Entering directory '/usr/home/jullien/tinycc/lib'
../tcc -c libtcc1.c -o libtcc1.o -B.. -I..
../tcc -c alloca86_64.S -o alloca86_64.o -B.. -I..
../tcc -c alloca86_64-bt.S -o alloca86_64-bt.o -B.. -I..
../tcc -c va_list.c -o va_list.o -B.. -I..
../tcc -c dsohandle.c -o dsohandle.o -B.. -I..
../tcc -ar rcs ../libtcc1.a libtcc1.o alloca86_64.o alloca86_64-bt.o va_list.o
d sohandle.o
../tcc -c bt-exe.c -o ../bt-exe.o -B.. -I..
In file included from bt-exe.c:6:
In file included from ../tccrun.c:21:
In file included from ../tcc.h:34:
In file included from /usr/include/stdlib.h:40:
/usr/include/sys/_types.h:135: error: #error "No support for your compiler for
stdargs"
gmake[1]: *** [Makefile:83: ../bt-exe.o] Error 1
gmake[1]: Leaving directory '/usr/home/jullien/tinycc/lib'
gmake: *** [Makefile:269: libtcc1.a] Error 2
-----Original Message-----
From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange.fr@nongnu.org] On
Behalf Of David CARLIER
Sent: Thursday, November 26, 2020 17:29
To: jullien@eligis.com; tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal
Here a modified version of the patch, tested on OpenBSD (stable), FreeBSD and
DragonFly.
On Thu, 26 Nov 2020 at 16:15, David CARLIER <devnexen@gmail.com> wrote:
>
> Are they with / without the fix ? Because normally the changes would
> address those I saw them too.
>
> On Thu, 26 Nov 2020 at 16:14, Christian Jullien <eligis@orange.fr> wrote:
> >
> > Same result, also NetBSD still fails with:
> >
> > -bash-5.0$ ./configure
> > Binary directory /usr/local/bin
> > TinyCC directory /usr/local/lib/tcc
> > Library directory /usr/local/lib
> > Include directory /usr/local/include
> > Manual directory /usr/local/share/man
> > Info directory /usr/local/share/info
> > Doc directory /usr/local/share/doc
> > Source path /home/jullien/tinycc
> > C compiler gcc (7.4)
> > Target OS NetBSD
> > CPU x86_64
> > Config ldl=no
> > Creating config.mak and config.h
> > config.h is unchanged
> > -bash-5.0$ gmake
> > gmake[1]: Entering directory '/home/jullien/tinycc/lib'
> > ../tcc -c bt-exe.c -o ../bt-exe.o -B.. -I..
> > In file included from bt-exe.c:6:
> > In file included from ../tccrun.c:21:
> > In file included from ../tcc.h:29:
> > In file included from /usr/include/stdlib.h:37:
> > /usr/include/sys/cdefs.h:441: error: #error "No function renaming possible"
> > gmake[1]: *** [Makefile:83: ../bt-exe.o] Error 1
> > gmake[1]: Leaving directory '/home/jullien/tinycc/lib'
> > gmake: *** [Makefile:269: libtcc1.a] Error 2
> >
> >
> > -----Original Message-----
> > From: Tinycc-devel
> > [mailto:tinycc-devel-bounces+eligis=orange.fr@nongnu.org] On Behalf
> > Of Sudipto Mallick
> > Sent: Thursday, November 26, 2020 16:50
> > To: tinycc-devel@nongnu.org
> > Subject: Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal
> >
> > Great achievement
> >
> > On OpenBSD x86_64, applied your patch and tried to compile, to get
> > an error that ucontext_t doesn't have uc_rbp as a member; i think
> > that was a typo and would be: sc_rbp. fixing that, it compiled
> > smoothly tried to compile a c file using this newly built tcc fails
> > with crt0.o etc. not found error :(
> >
> > ~smlckz
> >
> > _______________________________________________
> > Tinycc-devel mailing list
> > Tinycc-devel@nongnu.org
> > https://lists.nongnu.org/mailman/listinfo/tinycc-devel
> >
> >
> > _______________________________________________
> > Tinycc-devel mailing list
> > Tinycc-devel@nongnu.org
> > https://lists.nongnu.org/mailman/listinfo/tinycc-devel
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, (continued)
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, Christian Jullien, 2020/11/26
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, David CARLIER, 2020/11/26
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, Christian Jullien, 2020/11/26
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, David CARLIER, 2020/11/26
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, Christian Jullien, 2020/11/26
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, David CARLIER, 2020/11/26
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, Sudipto Mallick, 2020/11/26
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, Christian Jullien, 2020/11/26
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, David CARLIER, 2020/11/26
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, David CARLIER, 2020/11/26
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal,
Christian Jullien <=
- Re: [Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, Steffen Nurpmeso, 2020/11/26
[Tinycc-devel] [PATCH] DragonFlyBSD build fix proposal, David CARLIER, 2020/11/26