Skip to Content.
Sympa Menu

svadev - [svadev] gcc: error: unrecognized command line opti on ‘-fmemsafety’

svadev AT lists.siebelschool.illinois.edu

Subject: Svadev mailing list

List archive

[svadev] gcc: error: unrecognized command line opti on ‘-fmemsafety’


Chronological Thread 
  • From: Stefan.Scheruebl AT continental-corporation.com
  • To: svadev AT cs.uiuc.edu
  • Subject: [svadev] gcc: error: unrecognized command line opti on ‘-fmemsafety’
  • Date: Thu, 3 Jul 2014 11:33:06 +0200
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/svadev/>
  • List-id: <svadev.cs.uiuc.edu>

Hello,

Finally I succeeded in compiling SafeCode for LLVM 3.2 within CygWin.

Unfortunately during the test I got the following error message:


$ uname -a
CYGWIN_NT-6.1-WOW64 TA20-Altair-L 1.7.30(0.272/5/3) 2014-05-23 10:36 i686 Cygwin
 
 
$ clang -g -v -fmemsafety -c -o testa.o testa.c
clang version 3.2 (: http://llvm.org/svn/llvm-project/safecode/branches/release_32/tools/clang) (llvm/branches/release_32 ^/llvm/branches/release_32 212186)
Target: i386-pc-cygwin
Thread model: posix
"/usr/local/bin/clang" -cc1 -triple i386-pc-cygwin -S -disable-free -main-file-name testa.c -mrelocation-model static -mdisable-fp-elim -fmath-errno -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.24.51.20140623 -momit-leaf-frame-pointer -v -g -coverage-file /tmp/testa-n9JBUU.s -resource-dir /usr/local/bin/../lib/clang/3.2 -fmodule-cache-path /var/tmp/clang-module-cache -fno-dwarf-directory-asm -fdebug-compilation-dir /home/stsc -ferror-limit 19 -fmessage-length 192 -fmemsafety -mstackrealign -fno-use-cxa-atexit -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/testa-n9JBUU.s -x c testa.c
clang -cc1 version 3.2 based upon LLVM 3.2svn default target i386-pc-cygwin
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/local/bin/../lib/clang/3.2/include
/usr/include/w32api
/usr/include
End of search list.
"/usr/bin/gcc" -v -fmemsafety -c -m32 -o testa.o -x assembler /tmp/testa-n9JBUU.s
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
gcc: error: unrecognized command line option ‘-fmemsafety’
Target: i686-pc-cygwin
Configured with: /cygdrive/i/szsz/tmpp/gcc4/gcc-4.8.3-1/src/gcc-4.8.3/configure --srcdir=/cygdrive/i/szsz/tmpp/gcc4/gcc-4.8.3-1/src/gcc-4.8.3 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --libdir=/usr/lib --datarootdir=/usr/share --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --disable-__cxa_atexit --with-dwarf2 --with-arch=i686 --with-tune=generic --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-libada --enable-libjava --enable-libgcj-sublibs --disable-java-awt --disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --libexecdir=/usr/lib
Thread model: posix
gcc version 4.8.3 (GCC)
clang: error: assembler (via gcc) command failed with exit code 1 (use -v to see invocation)
 

Has anybody an idea where this message has it root cause. Obviously SafeCode is not working because the enable switch -fmemsafety  
is not recognized...how could this happen? Is this message known?


Adaption changes in the SafeCode->Tools->LTO->Makefile that may cause this behaviour:
 
//Added this
$(PROJ_OBJ_ROOT)/$(BuildMode)/lib/libLLVM-3.2svn.so: $(LLVM_OBJ_ROOT)/$(BuildMode)/lib/libLLVM-3.2svn.so
    $(VERB) echo "Creating symlink to $@"
    $(VERB) ln -fs $< $@


//Changed -> when compiling this in linux this change seems not to be needed!
$(PROJ_OBJ_ROOT)/$(BuildMode)/lib/libAssistDS.a: $(POOLALLOC_OBJDIR)/$(BuildMode)/lib/AssistDS.a   ==> changed AssistDS.a to libAssistDS.a
    $(VERB) echo "Creating symlink to $@"
    $(VERB) ln -fs $< $@

$(PROJ_OBJ_ROOT)/$(BuildMode)/lib/libLLVMDataStructure.a: $(POOLALLOC_OBJDIR)/$(BuildMode)/lib/LLVMDataStructure.a   ==> changed LLVMDataStructure.a to libLLVMDataStructure.a
    $(VERB) echo "Creating symlink to $@"
    $(VERB) ln -fs $< $@

$(PROJ_OBJ_ROOT)/$(BuildMode)/lib/libpoolalloc.a: $(POOLALLOC_OBJDIR)/$(BuildMode)/lib/poolalloc.a   ==> changed poolalloc.a to libpoolalloc.a
    $(VERB) echo "Creating symlink to $@"
    $(VERB) ln -fs $< $@

 

Regards,

Stefan


  • [svadev] gcc: error: unrecognized command line opti on ‘-fmemsafety’, Stefan . Scheruebl, 07/03/2014

Archive powered by MHonArc 2.6.16.

Top of Page