LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 808 - configure fails on NetBSD
Summary: configure fails on NetBSD
Status: RESOLVED FIXED
Alias: None
Product: Build scripts
Classification: Unclassified
Component: autoconf (show other bugs)
Version: 1.7
Hardware: PC NetBSD
: P normal
Assignee: Reid Spencer
URL:
Keywords: build-problem
Depends on:
Blocks:
 
Reported: 2006-06-15 04:47 PDT by Christoph Bauer
Modified: 2010-02-22 12:46 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
Some "draft" (1.75 KB, patch)
2007-01-20 14:43 PST, Anton Korobeynikov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Bauer 2006-06-15 04:47:39 PDT
Here is the output of configure.

% ./configure 
checking build system type... i386-unknown-netbsdelf3.0
checking host system type... i386-unknown-netbsdelf3.0
checking target system type... i386-unknown-netbsdelf3.0
checking type of operating system we're on... Unknown
configure: error: Operating system is unknown, configure can't continue

I think llvm should support NetBSD.
Comment 1 Chris Lattner 2007-01-18 02:03:42 PST
Does this still happen with current LLVM CVS?
Comment 2 Christoph Bauer 2007-01-20 05:41:54 PST
I checked llvm-1.9 and llvm-cvs and yes: it's the same. (Ok: The version number
3.0 is different and CVS-configure prints some WARNINGs).

Comment 3 Reid Spencer 2007-01-20 14:37:11 PST
Wow, didn't even know about this one. Mine.
Comment 4 Anton Korobeynikov 2007-01-20 14:43:27 PST
Created attachment 583 [details]
Some "draft"

This at least will allow LLVM to configure on NetBSD
Comment 5 Reid Spencer 2007-01-20 14:47:56 PST
Anton: I've already committed that, with these patches:

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/043007.html
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/043008.html
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070115/043009.html

Christopher,

Could you please update your configure script an lib/System/Mutex.cpp. We've
added support but I don't want to close this until someone on NetBSD confirms
that it works. Please report any failures here.

Thanks,

Reid.
Comment 6 Christoph Bauer 2007-01-21 08:00:04 PST
Great! But I found another (tiny) build problem:
On NetBSD perl is installed under /usr/pkg/bin/perl. 

First line in GenLibDeps.pl is
#!/usr/bin/perl

Therefore GenLibDeps.pl should be called with 
 $(Verb) $(PERL) $(GenLibDeps) -flat ...
in tools/llvm-config/Makefile.
Comment 7 Reid Spencer 2007-01-21 09:53:56 PST
Fixed. Please let me know if there's anything else preventing a clean build.
Comment 8 Reid Spencer 2007-01-26 02:39:11 PST
Christoph,

Can this get closed now? Is the configure working on NetBSD?

Reid.
Comment 9 Christoph Bauer 2007-01-26 03:26:59 PST
Hi Reid,

sorry, i'm quite busy at the moment. I did a quick check this morning
and everything looks good. Thanks a lot for your work.

Christoph