r271801 - Add PIE magic for NetBSD. Add tests for the correct flags for
Ismail Donmez via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 6 04:21:37 PDT 2016
Hi,
On Sat, Jun 4, 2016 at 11:03 PM, Joerg Sonnenberger via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> Author: joerg
> Date: Sat Jun 4 15:03:26 2016
> New Revision: 271801
>
> URL: http://llvm.org/viewvc/llvm-project?rev=271801&view=rev
> Log:
> Add PIE magic for NetBSD. Add tests for the correct flags for
> non-shared, PIE and shared output mode.
>
> Modified:
> cfe/trunk/lib/Driver/Tools.cpp
> cfe/trunk/test/Driver/netbsd.c
This seems to fail for me on Windows:
$ "C:/cygwin64/home/ismail/src/llvm/dist/./bin/clang.EXE"
"-no-canonical-prefixes" "-target" "x86_64--netbsd"
"--sysroot=C:\cygwin64\home\ismail\src\llvm\tools\clang\test\Driver/Inputs/basic_netbsd_tree"
"C:\cygwin64\home\ismail\src\llvm\tools\clang\test\Driver\netbsd.c"
"-###"
$ "C:/cygwin64/home/ismail/src/llvm/dist/./bin\FileCheck.EXE"
"-check-prefix=STATIC"
"C:\cygwin64\home\ismail\src\llvm\tools\clang\test\Driver\netbsd.c"
# command stderr:
C:\cygwin64\home\ismail\src\llvm\tools\clang\test\Driver\netbsd.c:121:12:
error: expected string not found in input
// STATIC: "-dynamic-linker" "/libexec/ld.elf_so"
^
<stdin>:7:1: note: scanning from here
^
error: command failed with exit status: 1
--
********************
Here is the output passed to FileCheck:
win7-vbox ~ > "C:/cygwin64/home/ismail/src/llvm/dist/./bin/clang.EXE"
"-no-canonical-prefixes" "-target" "x86_64--netbsd"
"--sysroot=C:\cygwin64\home\ismail\src\llvm\tools\clang\test\Driver/Inputs/basic_netbsd_tree"
"C:\cygwin64\home\ismail\src\llvm\tools\clang\test\Driver\netbsd.c"
"-###"
clang version 3.9.0 (http://llvm.org/git/clang
4076bbb87bd1f3b606192c84d4de201e9b9217fb) (http://llvm.org/git/llvm
6dbfac925fe759193c6a16089e2be36f586729d6)
Target: x86_64--netbsd
Thread model: posix
InstalledDir: C:\cygwin64\home\ismail\src\llvm\dist\bin
"C:\\cygwin64\\home\\ismail\\src\\llvm\\dist\\bin\\clang.EXE" "-cc1"
"-triple" "x86_64--netbsd" "-emit-obj" "-mrelax-all" "-disable-free"
"-disable-llvm-verifier" "-discard-value-names" "-main-file-name"
"netbsd.c" "-mrelocation-model" "static" "-mthread-model" "posix"
"-mdisable-fp-elim" "-masm-verbose" "-mconstructor-aliases"
"-munwind-tables" "-target-cpu" "x86-64" "-dwarf-column-info"
"-debugger-tuning=gdb" "-resource-dir"
"C:\\cygwin64\\home\\ismail\\src\\llvm\\dist\\bin\\..\\lib\\clang\\3.9.0"
"-isysroot" "C:\\cygwin64\\home\\ismail\\src\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_netbsd_tree"
"-fdebug-compilation-dir" "C:\\cygwin64\\home\\ismail" "-ferror-limit"
"19" "-fmessage-length" "0" "-fobjc-runtime=gnustep"
"-fdiagnostics-show-option" "-o" "C:\\cygwin64\\tmp\\netbsd-7165c6.o"
"-x" "c" "C:\\cygwin64\\home\\ismail\\src\\llvm\\tools\\clang\\test\\Driver\\netbsd.c"
"C:\\cygwin64\\bin\\ld.exe"
"--sysroot=C:\\cygwin64\\home\\ismail\\src\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_netbsd_tree"
"--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so" "-o" "a.out"
"C:\\cygwin64\\home\\ismail\\src\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_netbsd_tree/usr/lib\\crt0.o"
"C:\\cygwin64\\home\\ismail\\src\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_netbsd_tree/usr/lib\\crti.o"
"C:\\cygwin64\\home\\ismail\\src\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_netbsd_tree/usr/lib\\crtbegin.o"
"C:\\cygwin64\\tmp\\netbsd-7165c6.o" "-lc"
"C:\\cygwin64\\home\\ismail\\src\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_netbsd_tree/usr/lib\\crtend.o"
"C:\\cygwin64\\home\\ismail\\src\\llvm\\tools\\clang\\test\\Driver/Inputs/basic_netbsd_tree/usr/lib\\crtn.o"
Let me know if you can stop any error.
More information about the cfe-commits
mailing list