I tried with clang also but not luck, tried different approaches like using 
gccgo to directly build c-shared vs building c-archive using golang and 
then converting it to c-shared by linking using gcc/clang. No luck at all.

On Sunday 3 March 2024 at 20:29:12 UTC+5:30 TheDiveO wrote:

> llvm/clang? I've ditched gcc because of its many unfixable problems. After 
> loosing quite some time, trying to cross-compile Go using gcc, I've 
> switched to clang IIRC and this works beautifully, especially 
> cross-building for Alpine/musl. However my AIX time with RS6000 was decades 
> ago, and I was the one constantly turning up new kernel bugs from user 
> space.
>
> On Saturday, March 2, 2024 at 6:42:56 PM UTC+1 Anshuman Mor wrote:
>
>> I have written multiple c-shared libraries code in golang for Windows, 
>> Linux, MacOS . I am using GCC cross compiler for the same. This code is 
>> running fine in production without any issue since last 3 years.
>>
>> But, we have recently got a requirement to compile the same thing for 
>> AIX/PowerPC but I am afraid that go compiler doesn't support this out of 
>> the box, I tried many approaches but none worked like - 
>>
>> 1. Using gccgo compiler but this errors out with "Thread Local Storage" 
>> error.
>> 2. Using c-archive and then convert to shared using gcc compiler, this 
>> also errors out with something or other.
>>
>> Has anyone done similar type of work for Aix? Any help would be greatly 
>> appreciated.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/398764cb-d1b5-440d-b350-297b67a51005n%40googlegroups.com.

Reply via email to