tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Cross compiling for riscv64 on arm64


From: Sagar Acharya
Subject: Re: [Tinycc-devel] Cross compiling for riscv64 on arm64
Date: Tue, 7 Feb 2023 16:52:13 +0100 (CET)

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 sagaracharya@tutanota.com:

> 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 sagaracharya@tutanota.com:
>
>> 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
>>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]