Re: gmt-5 Solaris acomp failed
wolfgang Cohrs <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Hi Paul,
with
cmake ..
-- The C compiler identification is SunPro 5.12.0
-- The CXX compiler identification is SunPro 5.12.0
-- Check for working C compiler: /opt/solarisstudio12.3/bin/cc
-- Check for working C compiler: /opt/solarisstudio12.3/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/solarisstudio12.3/bin/CC
-- Check for working CXX compiler: /opt/solarisstudio12.3/bin/CC -- works
9%] Building C object src/CMakeFiles/pslib.dir/common_runpath.c.o
"/opt/GMT-5.1.1/src/gmt-5.1.1/src/common_runpath.c", line 229: warning:
argument #1 is incompatible with prototype:
prototype: pointer to void : "/usr/include/dlfcn.h", line 100
argument : pointer to function(pointer to char) returning pointer to
char
Linking C shared library libpsl.so
[ 12%] Built target pslib
Scanning dependencies of target gmtlib
[ 12%] Building C object src/CMakeFiles/gmtlib.dir/common_sighandler.c.o
"/opt/GMT-5.1.1/src/gmt-5.1.1/src/common_sighandler.c", line 29: warning:
empty translation unit
[ 12%] Building C object src/CMakeFiles/gmtlib.dir/gmt_api.c.o
cc: acomp failed for /opt/GMT-5.1.1/src/gmt-5.1.1/src/gmt_memory.c
*** Error code 2
The following command caused the error:
cd /opt/GMT-5.1.1/src/gmt-5.1.1/build/src && /opt/solarisstudio12.3/bin/cc
-DLIBRARY_EXPORTS -xO3 -DNDEBUG -KPIC
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src -I/opt/GMT-5.1.1/src/gmt-5.1.1/src
-I/opt/csw/include -I/opt/csw/gxx/include
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/gshhg
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/img
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/meca
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/mgd77
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/misc
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/potential
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/segy
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/spotter
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/x2sys -D NO_SIGHANDLER -o
CMakeFiles/gmtlib.dir/gmt_memory.c.o -c
/opt/GMT-5.1.1/src/gmt-5.1.1/src/gmt_memory.c
make: Fatal error: Command failed for target
`src/CMakeFiles/gmtlib.dir/gmt_memory.c.o'
Current working directory /opt/GMT-5.1.1/src/gmt-5.1.1/build
*** Error code 1
The following command caused the error:
make -f src/CMakeFiles/gmtlib.dir/build.make src/CMakeFiles/gmtlib.dir/build
make: Fatal error: Command failed for target `src/CMakeFiles/gmtlib.dir/all'
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /opt/csw/bin/gcc
-- Check for working C compiler: /opt/csw/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/csw/bin/c++
-- Check for working CXX compiler: /opt/csw/bin/c++ -- works
[ 18%] Building C object src/CMakeFiles/gmtlib.dir/gmt_memory.c.o
/opt/GMT-5.1.1/src/gmt-5.1.1/src/gmt_memory.c: In function 'GMT_memory_func':
/opt/GMT-5.1.1/src/gmt-5.1.1/src/gmt_memory.c:522:5: error: #error "missing
memalign"
# error "missing memalign"
^
/opt/GMT-5.1.1/src/gmt-5.1.1/src/gmt_memory.c:542:5: error: #error "missing
memalign"
# error "missing memalign"
^
*** Error code 1
The following command caused the error:
cd /opt/GMT-5.1.1/src/gmt-5.1.1/build/src && /opt/csw/bin/gcc
-DLIBRARY_EXPORTS -std=gnu99 -O3 -DNDEBUG -fPIC
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src -I/opt/GMT-5.1.1/src/gmt-5.1.1/src
-I/opt/csw/include -I/opt/csw/gxx/include
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/gshhg
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/img
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/meca
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/mgd77
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/misc
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/potential
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/segy
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/spotter
-I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/x2sys -D NO_SIGHANDLER -o
CMakeFiles/gmtlib.dir/gmt_memory.c.o -c
/opt/GMT-5.1.1/src/gmt-5.1.1/src/gmt_memory.c
make: Fatal error: Command failed for target
`src/CMakeFiles/gmtlib.dir/gmt_memory.c.o'
Current working directory /opt/GMT-5.1.1/src/gmt-5.1.1/build
*** Error code 1
The following command caused the error:
make -f src/CMakeFiles/gmtlib.dir/build.make src/CMakeFiles/gmtlib.dir/build
make: Fatal error: Command failed for target `src/CMakeFiles/gmtlib.dir/all'
Current working directory /opt/GMT-5.1.1/src/gmt-5.1.1/build
*** Error code 1
The following command caused the error:
make -f CMakeFiles/Makefile2 all
make: Fatal error: Command failed for target `all'
On Thu, 6 Mar 2014 07:02:49 -0700, Paul Wessel <[email protected]> wrote:
>Hi Wolfgang-
>
>For now, you need to add
>add_definitions(-D NO_SIGHANDLER)
>to your ConfigUser.cmake file since Solaris apparently has a different
structure layout.
>
>If you know how, perhaps you could insert the suitable #ifdefs in
common_sighandler.c to make it work and let us know. if not, perhaps you
could send us the man page for the uc_mcontext structure.
>
>Paul
>
>
>On Mar 6, 2014, at 12:07 AM, wolfgang Cohrs <[email protected]> wrote:
>
>> I've swapped the compiler
>>
>> cmake ..
>> -- The C compiler identification is GNU 4.8.2
>> -- The CXX compiler identification is GNU 4.8.2
>> -- Check for working C compiler: /opt/csw/bin/gcc
>> -- Check for working C compiler: /opt/csw/bin/gcc -- works
>> -- Detecting C compiler ABI info
>> -- Detecting C compiler ABI info - done
>> -- Check for working CXX compiler: /opt/csw/bin/c++
>> -- Check for working CXX compiler: /opt/csw/bin/c++ -- works
>>
>>
>> make
>> Scanning dependencies of target gen_gmt_headers
>> [ 3%] Generating gmt_colornames.h, gmt_color_rgb.h
>> [ 3%] Generating gmt_datums.h
>> [ 3%] Generating gmt_ellipsoids.h
>> [ 3%] Generating gmt_keycases.h, gmt_keywords.h
>> [ 3%] Generating gmtmath.h, gmtmath_op.h, gmtmath_explain.h
>> [ 3%] Generating grdmath.h, grdmath_op.h, grdmath_explain.h
>> [ 6%] Generating gmt_dimensions.h
>> [ 6%] Built target gen_gmt_headers
>> Scanning dependencies of target pslib
>> [ 6%] Building C object src/CMakeFiles/pslib.dir/pslib.c.o
>> [ 9%] Building C object src/CMakeFiles/pslib.dir/common_string.c.o
>> [ 9%] Building C object src/CMakeFiles/pslib.dir/common_runpath.c.o
>> Linking C shared library libpsl.so
>> [ 12%] Built target pslib
>> Scanning dependencies of target gmtlib
>> [ 12%] Building C object src/CMakeFiles/gmtlib.dir/common_sighandler.c.o
>> /opt/GMT-5.1.1/src/gmt-5.1.1/src/common_sighandler.c: In function
'sig_handler':
>> /opt/GMT-5.1.1/src/gmt-5.1.1/src/common_sighandler.c:81:55: error: 'REG_EIP'
>> undeclared (first use in this function)
>> # define UC_IP(uc) ((void *) (uc)->uc_mcontext.gregs[REG_EIP])
>> ^
>> /opt/GMT-5.1.1/src/gmt-5.1.1/src/common_sighandler.c:150:14: note: in
>> expansion of macro 'UC_IP'
>> array [0] = UC_IP (uc); /* caller's address */
>> ^
>> /opt/GMT-5.1.1/src/gmt-5.1.1/src/common_sighandler.c:81:55: note: each
>> undeclared identifier is reported only once for each function it appears in
>> # define UC_IP(uc) ((void *) (uc)->uc_mcontext.gregs[REG_EIP])
>> ^
>> /opt/GMT-5.1.1/src/gmt-5.1.1/src/common_sighandler.c:150:14: note: in
>> expansion of macro 'UC_IP'
>> array [0] = UC_IP (uc); /* caller's address */
>> ^
>> *** Error code 1
>> The following command caused the error:
>> cd /opt/GMT-5.1.1/src/gmt-5.1.1/build/src &&amp; /opt/csw/bin/gcc
>> -DLIBRARY_EXPORTS -std=gnu99 -O3 -DNDEBUG -fPIC
>> -I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src -I/opt/GMT-5.1.1/src/gmt-5.1.1/src
>> -I/opt/csw/include -I/opt/csw/gxx/include
>> -I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/gshhg
>> -I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/img
>> -I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/meca
>> -I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/mgd77
>> -I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/misc
>> -I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/potential
>> -I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/segy
>> -I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/spotter
>> -I/opt/GMT-5.1.1/src/gmt-5.1.1/build/src/x2sys -o
>> CMakeFiles/gmtlib.dir/common_sighandler.c.o -c
>> /opt/GMT-5.1.1/src/gmt-5.1.1/src/common_sighandler.c
>> make: Fatal error: Command failed for target
>> `src/CMakeFiles/gmtlib.dir/common_sighandler.c.o'
>> Current working directory /opt/GMT-5.1.1/src/gmt-5.1.1/build
>> *** Error code 1
>> The following command caused the error:
>> make -f src/CMakeFiles/gmtlib.dir/build.make src/CMakeFiles/gmtlib.dir/build
>> make: Fatal error: Command failed for target `src/CMakeFiles/gmtlib.dir/all'
>> Current working directory /opt/GMT-5.1.1/src/gmt-5.1.1/build
>> *** Error code 1
>> The following command caused the error:
>> make -f CMakeFiles/Makefile2 all
>> make: Fatal error: Command failed for target `all'
>>
>> To unsubscribe, send the message "signoff gmt-help" to
[email protected]
>
>To unsubscribe, send the message "signoff gmt-help" to
[email protected]
To unsubscribe, send the message "signoff gmt-help" to [email protected]