! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
wrong flags being passed to compiler (sun studio 11)
Status:
RESOLVED: FIXED
Product:
Xfce4-dev-tools
Component:
General

Comments

Description Anil 2006-09-01 20:25:32 CEST
source='xfce-miscutils.c' object='libxfce4util_la-xfce-miscutils.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../depcomp \
/bin/bash ../libtool --tag=CC --mode=compile /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -I..                                                      -DDEFAULT_XDG_CACHE_HOME=\"~/.cache\"                           -DDEFAULT_XDG_DATA_HOME=\"~/.local/share\"                      -DDEFAULT_XDG_CONFIG_HOME=\"~/.config\"                                 -DDEFAULT_XDG_DATA_DIRS=\"/opt/Xfce-beta/share:/usr/local/share:/usr/share\"  -DDEFAULT_XDG_CONFIG_DIRS=\"/opt/Xfce-beta/etc/xdg:/opt/Xfce-beta/etc/xfce4:/etc/xdg\"  -DDATADIR=\"/opt/Xfce-beta/share\"                                  -DSYSCONFDIR=\"/opt/Xfce-beta/etc\"                          -DPACKAGE_LOCALE_DIR=\"/opt/Xfce-beta/share/locale\"                          -DG_LOG_DOMAIN=\"libxfce4util\"                  -DKIOSKDIR=\"/opt/Xfce-beta/etc/xdg/xfce4/kiosk\"          -DKIOSKDEF=\"ALL\"                                              -DLIBXFCE4UTIL_COMPILATION  -I/opt/Xfce-beta/include -I/usr/X11/include -I/usr/openwin/include -I/opt/Xfce-beta/include/glib-2.0 -I/opt/Xfce-beta/lib/glib-2.0/include -I/opt/Xfce-beta/include -I/usr/X11/include -I/usr/openwin/include -O0 -g3 -Werror -Wall -c -o libxfce4util_la-xfce-miscutils.lo `test -f 'xfce-miscutils.c' || echo './'`xfce-miscutils.c
 /opt/SUNWspro/bin/cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. "-DDEFAULT_XDG_CACHE_HOME=\"~/.cache\"" "-DDEFAULT_XDG_DATA_HOME=\"~/.local/share\"" "-DDEFAULT_XDG_CONFIG_HOME=\"~/.config\"" -DDEFAULT_XDG_DATA_DIRS=\"/opt/Xfce-beta/share:/usr/local/share:/usr/share\" -DDEFAULT_XDG_CONFIG_DIRS=\"/opt/Xfce-beta/etc/xdg:/opt/Xfce-beta/etc/xfce4:/etc/xdg\" -DDATADIR=\"/opt/Xfce-beta/share\" -DSYSCONFDIR=\"/opt/Xfce-beta/etc\" -DPACKAGE_LOCALE_DIR=\"/opt/Xfce-beta/share/locale\" -DG_LOG_DOMAIN=\"libxfce4util\" -DKIOSKDIR=\"/opt/Xfce-beta/etc/xdg/xfce4/kiosk\" -DKIOSKDEF=\"ALL\" -DLIBXFCE4UTIL_COMPILATION -I/opt/Xfce-beta/include -I/usr/X11/include -I/usr/openwin/include -I/opt/Xfce-beta/include/glib-2.0 -I/opt/Xfce-beta/lib/glib-2.0/include -I/opt/Xfce-beta/include -I/usr/X11/include -I/usr/openwin/include -O0 -g3 -Werror -Wall -c xfce-miscutils.c  -KPIC -DPIC -o .libs/libxfce4util_la-xfce-miscutils.o
cc: Warning: option -0 passed to ld
cc: Warning: option -3 passed to ld
cc: illegal option -Werror
*** Error code 1
dmake: Warning: Command failed for target `libxfce4util_la-xfce-miscutils.lo'
Current working directory /data/Xfce-beta-src/xfce/libxfce4util-4.3.90.3svn-r22981/libxfce4util
*** Error code 1
dmake: Fatal error: Command failed for target `all'
Current working directory /data/Xfce-beta-src/xfce/libxfce4util-4.3.90.3svn-r22981/libxfce4util
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
  case $f in \
    *=* | --[!k]*);; \
    *k*) failcom='fail=yes';; \
  esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='libxfce4util                                                       docs                                                          po                                          xfce4-kiosk-query'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make  $local_target) \
  || eval $failcom; \
done; \
if test "$dot_seen" = "no"; then \
  make  "$target-am" || exit 1; \
fi; test -z "$fail"
dmake: Fatal error: Command failed for target `all-recursive'
Current working directory /data/Xfce-beta-src/xfce/libxfce4util-4.3.90.3svn-r22981
*** Error code 1
dmake: Fatal error: Command failed for target `all'
Comment 1 Anil 2006-09-02 02:17:39 CEST
These occur when I enable debug (default). If I --enable-debug=no I no longer see these errors.
Comment 2 Benedikt Meurer editbugs 2006-09-02 11:33:44 CEST
Fixed with revision 22990.

2006-09-02	Benedikt Meurer <benny@xfce.org>

	* m4macros/xdt-features.m4: Set gcc specific compiler flags only if
	  gcc is being used. Bug #2251.

Bug #2251

Reported by:
Anil
Reported on: 2006-09-01
Last modified on: 2009-07-14

People

Assignee:
Xfce Bug Triage
CC List:
0 users

Version

Attachments

Additional information