https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61637
--- Comment #3 from Krishnamoorthy C <chandrakm at hotmail dot com> --- Compiler options tried: ----------------------- CC= gcc CXX=g++ Compilation flags SYSCXXFLAGS= -Dlinux -Dlinux_x86_64 -DLINUX_AMD64 -O1 -maix64 -fpermissive -Wextra -Wuninitialized -Winit-self -Wwrite-strings -Wall -Wno-switch -Wno-missing-braces CFLAGS= $(SYSCXXFLAGS) -fPIC -c $(HEADER_PATH) $(LIBRARY_PATH) Also tried with the different path for std library STD_LIBRARY_PATH=-L/opt/freeware/lib64 -L/usr/lib -L/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/4.8.1/ppc64 Linker flags $(CXX) -shared -fPIC -maix64 $(CPPOBJECTS) $(COBJECTS) -o $@ -ldl -lpthread -lbsd $(LIBRARY_PATH) $(CATALYST_LIBS) $(CC) -shared -fPIC -maix64 $(CPPOBJECTS) $(COBJECTS) -o $@ -ldl -lpthread -lbsd $(LIBRARY_PATH) $(CATALYST_LIBS) Also tried with -Wl,-brtl , -fexeptions, -Xlinker -bM:SRE -Xlinker -bnoentry $ Tried with the static libgcc -static-libgcc