Questions tagged [xlc]

xlc or xlC is the command to invoke IBM XL C or C++ compiler. It is used on IBMs proprietary platforms like Blue Gene, AIX, z/OS, and z/VM

113 questions
0
votes
1 answer

IBM xlc compile fail with error message "The test "std::function" is unexpected

I use IBM xlc to compile C++ code but it failed with error message "The test "std::function" is unexpected. I use std::function in my code and add compile option "-qlanglvl=extended0x". The xlc version is 13.1. By the way, the same code is compiled…
KeKe
  • 177
  • 1
  • 1
  • 5
0
votes
0 answers

How to hide the exporting of some symbols in CMake while linking a C++ shared library for AIX platform

I am building a shared library on AIX using XLC compiler which depends on a static library. The issue am facing is the shared library built is exporting some of the symbols of the static libary which should be hidden. I noticed that, in the linker…
Seeker
  • 101
  • 2
  • 10
0
votes
1 answer

Compiling mpfr 4.0.2 on AIX fails to configure TLS support

I'm trying to compile mpfr on AIX and get an error finding TLS support. My end goal is to have a working gcc (9.3) with libstdc++ support for threads and TLS. I tried compiling with both an existing gcc on the machine (which is 8.3 and doesn't have…
Egozy
  • 380
  • 2
  • 13
0
votes
1 answer

What format is xlc debug info?

I'm trying to look at the debug info for a program compiled with xlc v11.1 on AIX. I used -g flag when compiled, but looking at the help page I don't see it mention DWARF anywhere or if I can specify what format I want. Any ideas how I can tell what…
TreeWater
  • 761
  • 6
  • 13
0
votes
0 answers

krb-protos.h Syntax error: possible missing identifier?

I am using krb-protos.h from krb4 package for my openssh code compilation on AIX 7.1 but facing below error, "/usr/athena/include/krb-protos.h", line 71.9: 1506-046 (S) Syntax error. "/usr/athena/include/krb-protos.h", line 75.15: 1506-275 (S)…
Pravin Junnarkar
  • 800
  • 1
  • 5
  • 13
0
votes
1 answer

CRTDBG_MAP_ALLOC equivalent on AIX's xlC

I am trying to detect if I have a memory leak on my AIX xlC compiled object. When using visual studio if I included CRTDBG_MAP_ALLOC it would give me some printout information regarding memory leaks. Does xlC have something similar to use when…
Kyle_109
  • 41
  • 1
  • 1
  • 7
0
votes
1 answer

why typedef throwing error :(S) Initializer must be a valid constant expression

in f1.h header using typedef for structure. sample code snippet shown below typedef struct{ int a; union u { int x; char y; }xyz; }mystruct; In f2.h header using the structure mysturct to get the offset. Code snippet…
0
votes
0 answers

"-qaltivec" is not compatible with "-qarch=pwr5"

I'm having trouble understanding a warning from IBM XL C/C++. I'm working on GCC119 from the compile farm, which is a AIX ppc64-be machine. $ cat test.cxx #if defined(__ALTIVEC__) # include # undef vector # undef pixel # undef…
jww
  • 97,681
  • 90
  • 411
  • 885
0
votes
0 answers

Symbol __mcount is not exported from dependent module /usr/lib/libC.a[shr_64.o]

I have compiled my code on AIX 7.1 using xlc compiler. The compilation is successful and I have created a shared library, but when I try to load the library on Apache I am getting the following error. httpd: Syntax error on line 54 of…
0
votes
0 answers

Installing Apache httpd 2.4.x on AIX 7.1 using xlc

I am installing apache httpd 2.4.x on AIX 7.1 machine using xlc compiler. Make is successful. But make install is failing with the following error Making install in modules Making install in aaa rm -f…
0
votes
2 answers

CMAKE AIX xlc compiler not getting used

I am trying to use the xlc compiler for my cpp code on AIX. I want the cc compiler for my C code output: user@AIX> cmake -DCMAKE_CXX_COMPILER=/usr/vac/bin/xlc .. -- The C compiler identification is XL 11.1.0 -- The CXX compiler identification is XL…
Tim Edwards
  • 97
  • 1
  • 2
  • 13
0
votes
1 answer

Is there a XL C builtin for LXVD2X prior to 13.1.4?

I'm working from C/C++ using built-ins. I need the lvd2x instruction to load unaligned data into a VMX register. It looks like lvd2x is available on Power7 and Power8 processors. GCC provides vec_vsx_ld built-in to perform the task. According to IBM…
jww
  • 97,681
  • 90
  • 411
  • 885
0
votes
1 answer

xlC warning, "The NOSTRICT option has the potential to alter the semantics of a program"

I'm testing on the GCC Compile Farm and GCC119. GCC119 is a AIX machine with the xlC 13.1 compiler. I know very little about the platform and compiler. When I build under xlC: $ CXX=xlC gmake CXXFLAGS="-DNDEBUG -g2 -O3 -qrtti" -j 8 xlC -DNDEBUG -g2…
jww
  • 97,681
  • 90
  • 411
  • 885
0
votes
1 answer

Trying to create a build process on AIX 6.1

I'm trying to update a client's build process. My client is using IBM P6's running AIX 6.1. My client has been able to compile and build C++ and C code on similar systems, but not the particular one I'm working on. I've made sure that the IBM…
pwmeyer
  • 1
  • 2
0
votes
1 answer

How to resolve a name conflict between a system header macro and a boost template function?

What is the best way to resolve a conflicting macro name with a boost template function? After including boost/chrono.hpp I got the compiler error: CCN5816 (W) Too many arguments are specified for the macro "round". The extra arguments are…
Christian Ammer
  • 7,464
  • 6
  • 51
  • 108