THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened. Details are below. User who did this - Maciej Blizinski (automatthias)
Attached to Project - awesome
Summary - Allow to use other compilers such as Sun Studio
Task Type - Bug Report
Category - Build system
Status - Unconfirmed
Assigned To - Operating System - All
Severity - Medium
Priority - Normal
Reported Version - git/master
Due in Version - Undecided
Due Date - Undecided
Details - The following bit of code in awesomeConfig.cmake unconditionally 
injects GCC-specific compiler flags:

# {{{ CFLAGS
add_definitions(-std=gnu99 -ggdb3 -fno-strict-aliasing -Wall -Wextra
   -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings
   -Wsign-compare -Wunused -Wno-unused-parameter -Wuninitialized -Winit-self
   -Wpointer-arith -Wredundant-decls -Wformat-nonliteral
   -Wno-format-zero-length -Wmissing-format-attribute -Wmissing-prototypes
   -Wstrict-prototypes)
# }}}

When trying to compile with Sun Studio:

(cd work/build-isa-sparcv8/awesome-3.4.4; gmake prefix="/opt/csw" exec_prefix="/opt/csw" 
bindir="/opt/csw/bin" sbindir="/opt/csw/sbin" libexecdir="/opt/csw/libexec" datadir="/
opt/csw/share" sysconfdir="/opt/csw/etc" sharedstatedir="/opt/csw/share" localstatedir="/opt/csw/var" 
libdir="/opt/csw/lib" infodir="/opt/csw/share/info" lispdir="/opt/csw/sha
re/emacs/site-lisp" includedir="/opt/csw/include" mandir="/opt/csw/share/man" 
docdir="/opt/csw/share/doc" sourcedir="/opt/csw/src" CPPFLAGS="-I/opt/csw/X11/include -I/opt/csw/
include" CFLAGS="-xO3 -xarch=v8" CXXFLAGS="-xO3 -xarch=v8" LDFLAGS="-xarch=v8 -L/opt/csw/X11/lib 
-L/opt/csw/lib" ASFLAGS="" OPTFLAGS="-xO3 -xarch=v8" CC="/opt/studio/SOS11/SUN
Wspro/bin/cc" CXX="/opt/studio/SOS11/SUNWspro/bin/CC" CC_HOME="/opt/studio/SOS11/SUNWspro" 
CC_VERSION="Sun C 5.10 SunOS_sparc 2009/06/03" CXX_VERSION="Sun C++ 5.10 SunOS_sparc
2009/06/03" GARCH="sparc" GAROSREL="5.10" GARPACKAGE="trunk" 
LD_OPTIONS="-R/opt/csw/X11/lib/\$ISALIST -R/opt/csw/X11/lib -R/opt/csw/lib/\$ISALIST -R/opt/csw/lib" VERBOSE=1)
gmake[2]: gcc: Command not found
gmake[2]: Entering directory 
`/home/maciej/src/opencsw/pkg/awesome.local/trunk/work/build-isa-sparcv8/awesome-3.4.4'
gmake[2]: gcc: Command not found
gmake[2]: gcc: Command not found
gmake[2]: gcc: Command not found
gmake[2]: gcc: Command not found
gmake[2]: gcc: Command not found
gmake[2]: gcc: Command not found
gmake[2]: gcc: Command not found
mkdir -p .build-netra.chopin.edu.pl--
cd .build-netra.chopin.edu.pl-- && cmake  "." ..
Re-run cmake no build system arguments
-- The C compiler identification is SunPro
-- The CXX compiler identification is SunPro
-- Check for working C compiler: /opt/studio/SOS11/SUNWspro/bin/cc
-- Check for working C compiler: /opt/studio/SOS11/SUNWspro/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /opt/studio/SOS11/SUNWspro/bin/CC
-- Check for working CXX compiler: /opt/studio/SOS11/SUNWspro/bin/CC -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - big endian
-- cat -> /opt/csw/gnu/cat
-- ln -> /opt/csw/gnu/ln
-- grep -> /opt/csw/gnu/grep
-- git -> /opt/csw/bin/git
-- hostname -> /opt/csw/gnu/hostname
(...)
[  5%] Building C object CMakeFiles/awesome.dir/awesome.c.o
/opt/studio/SOS11/SUNWspro/bin/cc   -xO3 -xarch=v8  -xO3 -DNDEBUG 
-I/home/maciej/src/opencsw/pkg/awesome.local/trunk/work/build-isa-sparcv8/awesome-3.4.4
 -I/home/maciej/src/op
encsw/pkg/awesome.local/trunk/work/build-isa-sparcv8/awesome-3.4.4/.build-netra.chopin.edu.pl--
 -I/opt/csw/X11/include -I/opt/csw/include/glib-2.0 -I/opt/csw/lib/glib-2.0/incl
ude -I/opt/csw/include/cairo -I/opt/csw/include/pixman-1 
-I/opt/csw/include/freetype2 -I/opt/csw/include -I/opt/csw/include/libpng12 
-I/opt/csw/include/pango-1.0 -I/opt/csw/X1
1/include/startup-notification-1.0 -I/opt/csw/include/dbus-1.0 
-I/opt/csw/lib/dbus-1.0/include   -std=gnu99 -ggdb3 -fno-strict-aliasing -Wall 
-Wextra -Wchar-subscripts -Wundef
-Wshadow -Wcast-align -Wwrite-strings -Wsign-compare -Wunused 
-Wno-unused-parameter -Wuninitialized -Winit-self -Wpointer-arith 
-Wredundant-decls -Wformat-nonliteral -Wno-for
mat-zero-length -Wmissing-format-attribute -Wmissing-prototypes 
-Wstrict-prototypes -o CMakeFiles/awesome.dir/awesome.c.o   -c 
/home/maciej/src/opencsw/pkg/awesome.local/trunk
/work/build-isa-sparcv8/awesome-3.4.4/awesome.c
cc: Warning: Option -d=gnu99 passed to ld, if ld is invoked, ignored otherwise
cc: Warning: Option -db3 passed to ld, if ld is invoked, ignored otherwise
cc: Warning: Option -fno-strict-aliasing passed to ld, if ld is invoked, 
ignored otherwise
cc: -W option with unknown program all
gmake[5]: *** [CMakeFiles/awesome.dir/awesome.c.o] Error 1
gmake[5]: Leaving directory 
`/home/maciej/src/opencsw/pkg/awesome.local/trunk/work/build-isa-sparcv8/awesome-3.4.4/.build-netra.chopin.edu.pl--'
gmake[4]: *** [CMakeFiles/awesome.dir/all] Error 2


For Sun Studio, the right c99 flag is -xc99.

More information can be found at the following URL:
http://awesome.naquadah.org/bugs/index.php?do=details&task_id=742

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to [email protected].

Reply via email to