Hi everyone!

I am currently working on my master's thesis on diverse 
double-compiling<https://dwheeler.com/trusting-trust/> and have opted for using 
tcc.


Right now I am trying to use x86_64-tcc (targeting x86_64 Linux) on macOS 15.1 
to compile a native tcc for x86_64 Linux.
The full build process is the following: (1) clang(16.0.6, target 
x86_64-apple-darwin24.1.0) -> (2) x86_64-tcc (0.9.28rc, target x86_64 Linux) -> 
(3) tcc (0.9.28rc, target x86_64 Linux)


I run into the problem when going from 2 to 3 where using: "./configure 
--cc=x86_64-tcc ..." causes c2str from conftest.c to be compiled for the cross 
target and thus not be able to run on the build os.


Has anyone tried something like this and know of a good solution or 
configuration options?
Otherwise I guess it should be possible to use a native(for build os) c2str and 
omitting that compilation step in the makefile.


Thanks and kind regards,

Ludvig Christensen

________________________________

Observera att avsändaren inte är anställd vid Kungliga Tekniska högskolan. KTH 
ansvarar inte för åsikter, påståenden eller personuppgifter som förmedlas i 
detta meddelande.

Please note that the sender is not employed by KTH Royal Institute of 
Technology. KTH is not responsible for the opinions, claims or personal data 
conveyed in this message.
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to