GO code with godror compilation error on Oracle Linux 6.8 gcc 4.4.7

My GO code which uses godror is not getting compiled on Oracle Enterprise Linux 6.8. I reckon this is because of the gcc version which is : 4.4.7

The main error is :

cgo: gcc did not produce error at completed:1

I checked this error on the web and found that this is because of older gcc version.
But I checked and found that I am using gcc 4.4.7 which is latest for Oracle Enterprise Linux 6.8
So is it not a problem of gcc version ?

The complete error and go environment details are below :

GO version and environment :

$ go version
go version go1.17 linux/amd64

It is probably a problem with your GCC version. 4.4.7 is quite old. You’ll need to find a way to upgrade it or change your OS if it cannot be done in your current OS version. Maybe this post could help? https://community.oracle.com/tech/apps-infra/discussion/4333499/how-to-get-gcc-version-8-installed

OL 6.8 was released in 2016 and it’s support status isn’t great
Use a newer version of OL that has a newer gcc

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.