bugTiny C Compiler - Bugs: bug #63828, tcc can not link to gcc or clang...

 
 

bug #63828: tcc can not link to gcc or clang built files on mac (ARM)

Submitter:  None
Submitted:  Wed 22 Feb 2023 07:28:41 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 22 Feb 2023 07:28:41 AM UTC, original submission:  

Using todays build of tcc I confirmed this problem on ARM mac (bdec3c534583066cf097543f265ad620a8baa30d, tcc version 0.9.27 mob:bdec3c5 2023-02-03T18:04:56+01:00 (AArch64 Darwin))

Compile the below using `-c a.c` on either clang or gcc. I tried with Apple clang version 14.0.0 (clang-1400.0.29.202) and gcc version 12.2.0 (Homebrew GCC 12.2.0)

a.c
int get() { return 1; }

Then compile the below using `tcc -g b.c a.o`. You get an "unrecognized file type" error. Following these instructions on linux will create a working binary

a.o: error: a.o: unrecognized file type

b.c
int get();
int main() {
return get();
}

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.12.
Corresponding source code