OpenBSD Build Failure - 2.4 release

Hi there,

I have this build error on OpenBSD-4.4-current:

llvm[3]: Compiling X86TargetAsmInfo.cpp for Release build
In file included from /usr/ports/devel/llvm/w-llvm-2.4/llvm-2.4/lib/Target/X86/X
86TargetAsmInfo.cpp:14:
/usr/ports/devel/llvm/w-llvm-2.4/llvm-2.4/lib/Target/X86/X86TargetAsmInfo.h: In
   constructor `llvm::X86TargetAsmInfo<BaseTAI>::X86TargetAsmInfo(const
   llvm::X86TargetMachine&)':
/usr/ports/devel/llvm/w-llvm-2.4/llvm-2.4/lib/Target/X86/X86TargetAsmInfo.h:31:
error: syntax
   error before `;' token
gmake[3]: *** [/usr/ports/devel/llvm/w-llvm-2.4/build-i386/lib/Target/X86/Releas
e/X86TargetAsmInfo.o] Error 1
gmake[3]: Leaving directory `/usr/ports/devel/llvm/w-llvm-2.4/build-i386/lib/Tar
get/X86'
gmake[2]: *** [X86/.makeall] Error 2
gmake[2]: Leaving directory `/usr/ports/devel/llvm/w-llvm-2.4/build-i386/lib/Tar
get'
gmake[1]: *** [Target/.makeall] Error 2
gmake[1]: Leaving directory `/usr/ports/devel/llvm/w-llvm-2.4/build-i386/lib'
gmake: *** [all] Error 1
*** Error code 2

Are you aware of this? Is there a fix?

Thanks

Hi, Edd

Are you aware of this? Is there a fix?

gcc 3.3 ?

Hi,

Im guessing I need 4 then :slight_smile:

I think we need to explicitly document 3.4+ as a prerequisite. I bet
nobody will ever care about 3.3, sorry.

3.3 has been unsupported since late 2005 ....

Its still the default compiler for OpenBSD, although 4.x is available
as a third party package. I will try this.

Thanks

Hi,

3.3 has been unsupported since late 2005 ....

Its still the default compiler for OpenBSD, although 4.x is available
as a third party package. I will try this.

Build works with gcc-4.2. Some regression tests fail:

# of expected passes 2769
# of unexpected failures 28
# of expected failures 6

10 of which are grep != ggrep errors. I could see grep complaining
during testing, so I backup up real grep and symlinked grep to a third
party installed ggrep:

# of expected passes 2779
# of unexpected failures 18
# of expected failures 6

These tests are probably failing on the other BSDs and Solaris too?

Now I wish to look at why the other tests fail. Do the tests put some
logs somewhere? Looking into the Makefile i see that clean removes
directories called 'Output', but there are no directories named as
such.

Thanks

Hello, Edd

Now I wish to look at why the other tests fail. Do the tests put some
logs somewhere? Looking into the Makefile i see that clean removes
directories called 'Output', but there are no directories named as
such.

Look for testrun.{log,sum} inside test directory.

Edd Barrett dixit:

These tests are probably failing on the other BSDs and Solaris too?

Hm, it didn't occur to me to run the llvm-gcc testsuite yet.
Would you care to send me a tarball of your current OpenBSD
port (Makefile and patches and stuff), so that I can have a
look at it (and maybe include obsd patches, because MirPorts
are supposed to work on it too)?

I’m building llvm and llvm-gcc from svn though, because I want clang.

bye,
//mirabilos