Are you using dnf ? or manually installing packages ? If using dnf, then follow steps in the above blog. If not , get the gcc/libgcc rpms from AIX 7.2 repo (https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.2/) and reinstall it.
Original Message:
Sent: Mon January 08, 2024 08:17 AM
From: Diwakar Mishra
Subject: issue with Gcc10
Hi Ayappan,
I have reinstalled but still getting the same eror. Could you please suggest the what need to be check please.
------------------------------
Diwakar Mishra
Original Message:
Sent: Mon January 08, 2024 08:06 AM
From: Ayappan P
Subject: issue with Gcc10
Looks like the machine was migrated from AIX 7.1 to AIX 7.2. One has to reinstall the gcc, libgcc rpms after OS migration which is not done here I guess ( atleast for libgcc-10-2.ppc)
Please check this blog https://community.ibm.com/community/user/power/blogs/sangamesh-mallayya1/2022/01/10/aix-migration-with-dnf?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9
------------------------------
Ayappan P
Original Message:
Sent: Mon January 08, 2024 07:51 AM
From: Diwakar Mishra
Subject: issue with Gcc10
Hi Ayappan,
Please find the below the output.
root:/root>ls -l /opt/freeware/lib/libgcc_s.a
lrwxrwxrwx 1 root system 40 Jan 03 16:31 /opt/freeware/lib/libgcc_s.a -> gcc/powerpc-ibm-aix7.1.0.0/10/libgcc_s.a
root:/root>
root:/root>oslevel -s
7200-00-02-1614
root:/root>
------------------------------
Diwakar Mishra
Original Message:
Sent: Mon January 08, 2024 06:11 AM
From: Ayappan P
Subject: issue with Gcc10
Please check whether the symlink "/opt/freeware/lib/libgcc_s.a" is proper.
In AIX 7.3,
# ls -l /opt/freeware/lib/libgcc_s.a
lrwxrwxrwx 1 root system 40 Nov 30 2021 /opt/freeware/lib/libgcc_s.a -> gcc/powerpc-ibm-aix7.3.0.0/10/libgcc_s.a
In AIX 7.2,
# ls -l /opt/freeware/lib/libgcc_s.a
lrwxrwxrwx 1 root system 40 Jan 04 07:36 /opt/freeware/lib/libgcc_s.a -> gcc/powerpc-ibm-aix7.2.0.0/10/libgcc_s.a
------------------------------
Ayappan P
Original Message:
Sent: Mon January 08, 2024 05:34 AM
From: Diwakar Mishra
Subject: issue with Gcc10
Hi Ayappan,
Please find the below output. libgcc-10-2.ppc is installed.
root:/tmp/gcc>rpm -qa | grep -i gcc
libgcc-10-2.ppc
libgcc10-10.3.0-6.ppc
gcc10-cpp-10.3.0-6.ppc
gcc10-10.3.0-6.ppc
root:/tmp/gcc>
------------------------------
Diwakar Mishra
Original Message:
Sent: Mon January 08, 2024 04:47 AM
From: Ayappan P
Subject: issue with Gcc10
Please check whether you have "libgcc-10-2.ppc" rpm installed (not just libgcc10-10.3.0-6.ppc).
------------------------------
Ayappan P
Original Message:
Sent: Mon January 08, 2024 04:41 AM
From: Diwakar Mishra
Subject: issue with Gcc10
Hello Team,
Im getting the below error after installtion and running the gcc-10 could please with the issue.
root:/opt/freeware/bin>gcc-10 hello.c
exec(): 0509-036 Cannot load program gcc-10 because of the following errors:
0509-022 Cannot load module /opt/freeware/lib/libiconv.a(libiconv.so.2).
0509-150 Dependent module libgcc_s.a(shr.o) could not be loaded.
0509-022 Cannot load module libgcc_s.a(shr.o).
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module gcc-10.
0509-150 Dependent module /opt/freeware/lib/libiconv.a(libiconv.so.2) could not be loaded.
root:/opt/freeware/bin>
------------------------------
Diwakar Mishra
------------------------------