On Sun, Jan 24, 2016 at 09:47:28AM +0100, Pascal Stumpf wrote:
> On Sun, 24 Jan 2016 17:03:16 +1100, Jonathan Gray wrote:
> > On Sat, Jan 23, 2016 at 07:03:23PM -0500, Michael McConville wrote:
> > > FWIW, I've been running this patch without issue for months. >
> > > Juan Francisco Cantero Hurtado wrote: > > Can you modify the
> > structure of devel/llvm/ to something like > > devel/llvm/version/?
> > With lang/gcc works pretty well, we can work with > > the latest
> > version while the ports tree uses the stable version by > > default.
> > > > This sounds like a good idea to me. > > We should probably also
> > make sure that this update won't further > complicate things for
> > Jonathan: > > https://marc.info/?l=openbsd-cvs&m=145088099210901&w=2
> > > > https://marc.info/?l=openbsd-cvs&m=144816103704050&w=2 >
> > > https://marc.info/?l=openbsd-cvs&m=145091674119104&w=2 > >
> > https://marc.info/?l=openbsd-cvs&m=145108545813434&w=2 >
> > 
> > Well, Mesa won't build with the existing ports llvm so any update can't
> > make it worse.
> > 
> > I do wonder if llvm should be patched to use libestdc++ until such time
> > that libc++ is useable though. As otherwise clang can't compile against
> > the clang headers...
> 
> That's exactly what I did in the port:
> 
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/local/include/c++/4.9.3
>  /usr/local/include/c++/4.9.3/x86_64-unknown-openbsd5.9
>  /usr/local/include/c++/4.9.3/backward
>  /usr/include/g++
>  /usr/include/g++/amd64-unknown-openbsd5.9
>  /usr/include/g++/backward
>  /usr/local/bin/../lib/clang/3.7.1/include
>  /usr/include
> End of search list.
>  "/usr/bin/ld" -e __start --eh-frame-hdr -Bdynamic -dynamic-linker
> /usr/libexec/ld.so -o a.out /usr/lib/crt0.o /usr/lib/crtbegin.o
> -L/usr/local/lib/gcc/x86_64-unknown-openbsd5.9/4.9.3 -L/usr/local/lib
> /tmp/hw-dc2526.o -lestdc++ -lm -lgcc -lc -lgcc /usr/lib/crtend.o

I'm curious how you get that, as I'm using the patch you posted.

$ pkg_info | fgrep llvm                                                         
               
llvm-3.7.1          modular, fast C/C++/ObjC compiler, static analyzer and tools

$ cat t.cpp
#include <stdio.h>

int
main(void)
{
        return (0);
}

$ /usr/local/bin/clang++ -v t.cpp      
clang version 3.7.1 (tags/RELEASE_371/final)
Target: amd64-unknown-openbsd5.9
Thread model: posix
 "/usr/local/bin/clang-3.7" -cc1 -triple amd64-unknown-openbsd5.9 -emit-obj 
-mrelax-all -disable-free -disable-llvm-verifier -main-file-name t.cpp 
-mrelocation-model pic -pic-level 1 -pie-level 1 -mthread-model posix 
-mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables 
-target-cpu x86-64 -v -dwarf-column-info -resource-dir 
/usr/local/bin/../lib/clang/3.7.1 -fdeprecated-macro -fdebug-compilation-dir 
/tmp -ferror-limit 19 -fmessage-length 96 -stack-protector 2 -mstackrealign 
-fobjc-runtime=gnustep -fcxx-exceptions -fexceptions -fdiagnostics-show-option 
-o /tmp/t-d3cc9c.o -x c++ t.cpp
clang -cc1 version 3.7.1 based upon LLVM 3.7.1 default target 
amd64-unknown-openbsd5.9
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/g++
 /usr/include/g++/amd64-unknown-openbsd5.9
 /usr/include/g++/backward
 /usr/local/bin/../lib/clang/3.7.1/include
 /usr/include
End of search list.
 "/usr/bin/ld" -e __start --eh-frame-hdr -Bdynamic -dynamic-linker 
/usr/libexec/ld.so -o a.out /usr/lib/crt0.o /usr/lib/crtbegin.o 
-L/usr/lib/gcc-lib/amd64-unknown-openbsd5.9/4.2.1 /tmp/t-d3cc9c.o -lstdc++ -lm 
-lgcc -lc -lgcc /usr/lib/crtend.o

$ fgrep -r estdc devel/llvm/*
$

$ ls devel/llvm/patches/patch-*                                                 
                     
devel/llvm/patches/patch-Makefile_config_in
devel/llvm/patches/patch-cmake_modules_AddLLVM_cmake
devel/llvm/patches/patch-cmake_modules_HandleLLVMOptions_cmake
devel/llvm/patches/patch-tools_clang_include_clang_Driver_Options_td
devel/llvm/patches/patch-tools_clang_tools_scan-build_scan-build

Reply via email to