Hi Ziyao,
I checked the version that was installed with debian's apt package manager, it 
was 0.27.
So, I looked around, and I found the 0.28, cloned it, compiled, and installed, 
and it all works now on my raspberry pi 4.I appreciate your help!  I can now 
use the dynamic compiling on all my environments!  No more 285 error.
Thanks!!~Vinny
    On Saturday, December 9, 2023 at 09:02:05 AM PST, 
tinycc-devel-requ...@nongnu.org <tinycc-devel-requ...@nongnu.org> wrote:  
 
 Send Tinycc-devel mailing list submissions to
    tinycc-devel@nongnu.org

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.nongnu.org/mailman/listinfo/tinycc-devel
or, via email, send a message with subject or body 'help' to
    tinycc-devel-requ...@nongnu.org

You can reach the person managing the list at
    tinycc-devel-ow...@nongnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinycc-devel digest..."


Today's Topics:

  1. Re: tcc: error: unknown relocation type for got: 285 (vw)
  2. Preprocessing issue? (Patrick Pelissier)
  3. Re: tcc: error: unknown relocation type for got: 285 (Ziyao)


----------------------------------------------------------------------

Message: 1
Date: Fri, 8 Dec 2023 18:40:19 +0000 (UTC)
From: vw <vw...@yahoo.com>
To: "tinycc-devel@nongnu.org" <tinycc-devel@nongnu.org>
Subject: Re: [Tinycc-devel] tcc: error: unknown relocation type for
    got: 285
Message-ID: <421555815.1591264.1702060819...@mail.yahoo.com>
Content-Type: text/plain; charset="utf-8"

 Hi Ziyao,
When I do the command uname -a, it does report back as aarch64:> uname -aLinux 
oogway 5.15.76-v8+ #1597 SMP PREEMPT Fri Nov 4 12:16:41 GMT 2022 aarch64 
GNU/Linux
When I installed libtcc, I just used the command:sudo apt install libtcc-devSo, 
I am not sure how to find if it is ARM32 or AArch64?  I assume everything must 
be AArch64?  
 I have 2 raspberry pi 4's, and it is the same "relocation 285" error on both.
I can add that tcc itself works fine on the raspberry pi 4 from the command 
line.
On my amd desktop, the libtcc_test.c file compiles and runs fine.    
I didn't compile anything myself, all tcc, libtcc-dev where installed via the 
sudo apt install.  My version of debian is 11 (bullseye).
I am really interested in the feature of dynamic compilation as in the 
libtcc_test.c example file.  
Thanks!Vinny
 On 2023-12-08 07:48, Henri Carrie via Tinycc-devel wrote:
> But when i tried to get it to work on my raspberry pi 4, running debian 
> 11, I got this error and I don’t know how to get around it:
> tcc: error: Unknown relocation type for got: 285

Are you running an AArch64 variant of Debian or an ARMv7 one?

Relocation type 285 stands for R_AARCH64_LDST32_ABS_LO12_NC, which is 
handled
in arm64-link.c. Are you using libtcc compiled for ARM32 instead of 
AArch64?

> Any suggestions on how to fix it?
> 
> thanks!
> Vinny
> 
> _______________________________________________
> Tinycc-devel mailing list
> Tinycc-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel

-- 
Ziyao



------------------------------

Subject: Digest Footer

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


------------------------------

End of Tinycc-devel Digest, Vol 247, Issue 2
********************************************
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<https://lists.nongnu.org/archive/html/tinycc-devel/attachments/20231208/f19f9abb/attachment.htm>

------------------------------

Message: 2
Date: Fri, 8 Dec 2023 20:47:52 +0100
From: Patrick Pelissier <patrick.peliss...@gmail.com>
To: tinycc-devel@nongnu.org
Subject: [Tinycc-devel] Preprocessing issue?
Message-ID:
    <CAPTYtHqzZ4KizFQyXJ86et1KM2nz0CTDxHgm1WuB4e=paoy...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Hi,

 I think I have found an issue in TCC preprocessing.
 The program below produces the following output when runs with tcc -E:

, USER

  , USER_COMP_CORE

 whereas I would have expected 1 more line:

, USER

 , USER_COMP_CORE

 , USER_COMP_CORE

(Tested with GIT 81a32ec305ee871d8129978bf3d57bc108bec46b)

 The program is a little bit long so it is available here:
https://gist.github.com/P-p-H-d/aeb690c7ed396b57a84f9a5fc83e10c0

--
 Regards
  Patrick



------------------------------

Message: 3
Date: Sat, 09 Dec 2023 16:43:59 +0800
From: Ziyao <zi...@disroot.org>
To: tinycc-devel@nongnu.org
Subject: Re: [Tinycc-devel] tcc: error: unknown relocation type for
    got: 285
Message-ID: <b2bbd70b4e019eb9e8ce84a4c8153...@disroot.org>
Content-Type: text/plain; charset=US-ASCII; format=flowed

On 2023-12-09 02:40, vw via Tinycc-devel wrote:

> When I installed libtcc, I just used the command:
> sudo apt install libtcc-dev
> So, I am not sure how to find if it is ARM32 or AArch64?  I assume
> everything must be AArch64?

Do NOT install TinyCC from your package manager, it should be a quite
old version of TinyCC.

> I didn't compile anything myself, all tcc, libtcc-dev where installed
> via the sudo apt install.  My version of debian is 11 (bullseye).

Build TinyCC from source should be the solution.

> I am really interested in the feature of dynamic compilation as in the
> libtcc_test.c example file.
> 
> Thanks!
> Vinny

-- 
Ziyao



------------------------------

Subject: Digest Footer

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


------------------------------

End of Tinycc-devel Digest, Vol 247, Issue 3
********************************************
  
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to