Fails to build with native Solaris compiler #143

Closed
opened 2017-09-23 10:19:01 +00:00 by plicease · 3 comments
plicease commented 2017-09-23 10:19:01 +00:00 (Migrated from github.com)

Problem appears to be that the sun compilers have a different understanding of what -Wall et. al. mean:

sun2% make
  CC       libpkgconf/audit.lo
c99: -W option with unknown program all
*** Error code 1
The following command caused the error:
echo "  CC      " libpkgconf/audit.lo;source='libpkgconf/audit.c' object='libpkgconf/audit.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ./depcomp \
/bin/sh ./libtool --silent --tag=CC    --mode=compile /opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H  -I. -I./libpkgconf     -Wall -Wextra -Wformat=2 -std=gnu99 -DPKG_DEFAULT_PATH=\"/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/local/include\" -DSYSTEM_LIBDIR=\"/usr/local/lib\" -g -c -o libpkgconf/audit.lo libpkgconf/audit.c
make: Fatal error: Command failed for target `libpkgconf/audit.lo'

I can provide additional detail as needed.

Problem appears to be that the sun compilers have a different understanding of what `-Wall` et. al. mean: ``` sun2% make CC libpkgconf/audit.lo c99: -W option with unknown program all *** Error code 1 The following command caused the error: echo " CC " libpkgconf/audit.lo;source='libpkgconf/audit.c' object='libpkgconf/audit.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/sh ./depcomp \ /bin/sh ./libtool --silent --tag=CC --mode=compile /opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H -I. -I./libpkgconf -Wall -Wextra -Wformat=2 -std=gnu99 -DPKG_DEFAULT_PATH=\"/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/local/include\" -DSYSTEM_LIBDIR=\"/usr/local/lib\" -g -c -o libpkgconf/audit.lo libpkgconf/audit.c make: Fatal error: Command failed for target `libpkgconf/audit.lo' ``` I can provide additional detail as needed.
plicease commented 2017-09-23 10:19:50 +00:00 (Migrated from github.com)

verbose output:

sun2% make V=1
source='libpkgconf/audit.c' object='libpkgconf/audit.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/sh ./depcomp \
/bin/sh ./libtool  --tag=CC    --mode=compile /opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H  -I. -I./libpkgconf     -Wall -Wextra -Wformat=2 -std=gnu99 -DPKG_DEFAULT_PATH=\"/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/local/include\" -DSYSTEM_LIBDIR=\"/usr/local/lib\" -g -c -o libpkgconf/audit.lo libpkgconf/audit.c
libtool: compile:  /opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H -I. -I./libpkgconf -Wall -Wextra -Wformat=2 -std=gnu99 "-DPKG_DEFAULT_PATH=\"/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig\"" "-DSYSTEM_INCLUDEDIR=\"/usr/local/include\"" "-DSYSTEM_LIBDIR=\"/usr/local/lib\"" -g -c libpkgconf/audit.c  -KPIC -DPIC -o libpkgconf/.libs/audit.o
c99: -W option with unknown program all
*** Error code 1
make: Fatal error: Command failed for target `libpkgconf/audit.lo'
verbose output: ``` sun2% make V=1 source='libpkgconf/audit.c' object='libpkgconf/audit.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/sh ./depcomp \ /bin/sh ./libtool --tag=CC --mode=compile /opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H -I. -I./libpkgconf -Wall -Wextra -Wformat=2 -std=gnu99 -DPKG_DEFAULT_PATH=\"/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig\" -DSYSTEM_INCLUDEDIR=\"/usr/local/include\" -DSYSTEM_LIBDIR=\"/usr/local/lib\" -g -c -o libpkgconf/audit.lo libpkgconf/audit.c libtool: compile: /opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H -I. -I./libpkgconf -Wall -Wextra -Wformat=2 -std=gnu99 "-DPKG_DEFAULT_PATH=\"/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig\"" "-DSYSTEM_INCLUDEDIR=\"/usr/local/include\"" "-DSYSTEM_LIBDIR=\"/usr/local/lib\"" -g -c libpkgconf/audit.c -KPIC -DPIC -o libpkgconf/.libs/audit.o c99: -W option with unknown program all *** Error code 1 make: Fatal error: Command failed for target `libpkgconf/audit.lo' ```

this should be resolved, no?

this should be resolved, no?
plicease commented 2017-09-26 20:35:36 +00:00 (Migrated from github.com)

I think so I will let you know if I find otherwise. Thanks!

I think so I will let you know if I find otherwise. Thanks!
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#143
There is no content yet.