musl isn't compiled for riscv64. I tried to compile musl-1.2.3 with

cd musl-1.2.3
./configure --target=riscv64 CC=riscv64-tcc
make

It shows an error which has asm module

__asm__(....);

I think current riscv64 cross compiler doesn't support asm. Is riscv64-asm.c 
for physical hardware based on rv64 processor and not for cross compilation?
Thanking you
Sagar Acharya
https://designman.org



6 Feb 2023, 23:39 by [email protected]:

> I built a cross-compiler with
>
> ./configure --config-musl
> make cross-riscv64
>
> On using the built riscv64-tcc to compile, I get,
>
> tcc: error: file 'crt1.o' not found
> tcc: error: file 'crti.o' not found
> error: include file 'stdint.h' not found
>
> Please help.
>
>
> Thanking you
> Sagar Acharya
>
>
>
> 6 Feb 2023, 21:17 by [email protected]:
>
>> I built an older commit successfully for
>>
>> --config-musl
>>
>> Can you help me with how to build tcc on arm64 to cross-compile a program 
>> for riscv64?
>>
>>
>> Thanking you
>> Sagar Acharya
>> https://designman.org
>>
>
>

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to