Compiling on OpenBSD-current

2016-12-01 Thread Adam Steen
Hi

When Compiling on OpenBSD-Current I get the follow error, what do i need to
do to fix this?

Cheers
Adam

===--- building phase 0
gmake --no-print-directory -f ghc.mk phase=0 phase_0_builds
gmake[1]: Nothing to be done for 'phase_0_builds'.
===--- building phase 1
gmake --no-print-directory -f ghc.mk phase=1 phase_1_builds
"/usr/local/bin/ghc" -o utils/hsc2hs/dist/build/tmp/hsc2hs -hisuf hi -osuf
 o -hcsuf hc -static  -O0 -H64m -Wall   -package-db
libraries/bootstrapping.conf  -hide-all-packages -i -iutils/hsc2hs/.
-iutils/hsc2hs/dist/build -Iutils/hsc2hs/dist/build
-iutils/hsc2hs/dist/build/hsc2hs/autogen
-Iutils/hsc2hs/dist/build/hsc2hs/autogen -optP-include
-optPutils/hsc2hs/dist/build/hsc2hs/autogen/cabal_macros.h -package-id
base-4.9.0.0 -package-id containers-0.5.7.1 -package-id directory-1.2.6.2
-package-id filepath-1.4.1.0 -package-id process-1.4.2.0 -XHaskell2010
 -no-user-package-db -rtsopts   -odir utils/hsc2hs/dist/build -hidir
utils/hsc2hs/dist/build -stubdir utils/hsc2hs/dist/build-optl-z
-optlwxneeded -static  -O0 -H64m -Wall   -package-db
libraries/bootstrapping.conf  -hide-all-packages -i -iutils/hsc2hs/.
-iutils/hsc2hs/dist/build -Iutils/hsc2hs/dist/build
-iutils/hsc2hs/dist/build/hsc2hs/autogen
-Iutils/hsc2hs/dist/build/hsc2hs/autogen -optP-include
-optPutils/hsc2hs/dist/build/hsc2hs/autogen/cabal_macros.h -package-id
base-4.9.0.0 -package-id containers-0.5.7.1 -package-id directory-1.2.6.2
-package-id filepath-1.4.1.0 -package-id process-1.4.2.0 -XHaskell2010
 -no-user-package-db -rtsopts   utils/hsc2hs/dist/build/Main.o
utils/hsc2hs/dist/build/C.o utils/hsc2hs/dist/build/Common.o
utils/hsc2hs/dist/build/CrossCodegen.o
utils/hsc2hs/dist/build/DirectCodegen.o utils/hsc2hs/dist/build/Flags.o
utils/hsc2hs/dist/build/HSCParser.o utils/hsc2hs/dist/build/UtilsCodegen.o
utils/hsc2hs/dist/build/Paths_hsc2hs.o

: error:
Warning: Couldn't figure out linker information!
 Make sure you're using GNU ld, GNU gold or the built in OS X
linker, etc.
cc: wxneeded: No such file or directory
`cc' failed in phase `Linker'. (Exit code: 1)
compiler/ghc.mk:580: compiler/stage1/build/.depend-v.haskell: No such file
or directory
gmake[1]: *** [utils/hsc2hs/ghc.mk:15: utils/hsc2hs/dist/build/tmp/hsc2hs]
Error 1
gmake: *** [Makefile:125: all] Error 2
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Setting Up a OpenBSD System for Building GHC Wiki Page

2017-04-05 Thread Adam Steen
Hi All

I have created the Building/Preparation/OpenBSD Wiki Page, i have not yet
link it to Building/Preparation
 page yet, but
am looking for a review

Setting Up a OpenBSD System for Building GHC


Cheers
Adam
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Setting Up a OpenBSD System for Building GHC Wiki Page

2017-04-05 Thread Adam Steen
Good Morning All

Thanks for the replies

@Karel
After more testing it looks like i can remove the python business.

@Sergei and @Karel
libiconv is a prerequisite of ghc and is installed automatically, do
you think this should be explicit?

@Matthias
I will have to have a read about branches and will update the wiki shortly.

Cheers
Adam

On 6 April 2017 at 04:38, Matthias Kilian  wrote:
> Hi Adam,
>
> On Wed, Apr 05, 2017 at 03:39:18PM +0800, Adam Steen wrote:
>> I have created the Building/Preparation/OpenBSD Wiki Page, i have not yet
>> link it to Building/Preparation
>> <https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation> page yet, but
>> am looking for a review
>>
>> Setting Up a OpenBSD System for Building GHC
>> <https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/OpenBSD>
>
> Nice to see that some people actively work on ghc on OpenBSD (and
> apologies for me beeing such a slacker keeping the ghc package for
> OpenBSD up to date).
>
> FWIW, you don't have to pass the very exact package name to pkg_add,
> like 'autoconf-2.69p2' or ''automake-1.15p0'. There's a relatively new
> concept in pkg_tools called 'branches' (see pkg_add(1) manpage).
>
> You just have to replace the '-' separating the stem and the version by
> a '%', e.g.
>
> pkg_add autoconf%2.69 automake%1.15
>
> Then you'll get autoconf-2.69 and aotmake-1.15 regardless of what's the
> current REVISION (aka package patchleve) ot the package.
>
> Ciao,
> Kili

On Thu, Apr 6, 2017 at 4:38 AM, Matthias Kilian  wrote:
> Hi Adam,
>
> On Wed, Apr 05, 2017 at 03:39:18PM +0800, Adam Steen wrote:
>> I have created the Building/Preparation/OpenBSD Wiki Page, i have not yet
>> link it to Building/Preparation
>> <https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation> page yet, but
>> am looking for a review
>>
>> Setting Up a OpenBSD System for Building GHC
>> <https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/OpenBSD>
>
> Nice to see that some people actively work on ghc on OpenBSD (and
> apologies for me beeing such a slacker keeping the ghc package for
> OpenBSD up to date).
>
> FWIW, you don't have to pass the very exact package name to pkg_add,
> like 'autoconf-2.69p2' or ''automake-1.15p0'. There's a relatively new
> concept in pkg_tools called 'branches' (see pkg_add(1) manpage).
>
> You just have to replace the '-' separating the stem and the version by
> a '%', e.g.
>
> pkg_add autoconf%2.69 automake%1.15
>
> Then you'll get autoconf-2.69 and aotmake-1.15 regardless of what's the
> current REVISION (aka package patchleve) ot the package.
>
> Ciao,
> Kili
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs


Re: Setting Up a OpenBSD System for Building GHC Wiki Page

2017-04-09 Thread Adam Steen
Hi Sean

The more people using OpenBSD and GHC the better, please add as much
information as you think necessary.

Cheers
Adam

On Mon, Apr 10, 2017 at 12:26 PM, Sean Westfall  wrote:
> Hi Adam Steen,
> I just chatted with you on
> https://github.com/commercialhaskell/stack/issues/416, I just added so more
> info for the wxallowed step to your wiki page -- hope you don't mind. I'm
> gonna post something to this mailing list in a minute about the trouble I've
> been having with building GHC on openBSD 6.0.
>
> Thanks,
> Sean
>
> On Wed, Apr 5, 2017 at 8:04 PM, Adam Steen  wrote:
>>
>> Good Morning All
>>
>> Thanks for the replies
>>
>> @Karel
>> After more testing it looks like i can remove the python business.
>>
>> @Sergei and @Karel
>> libiconv is a prerequisite of ghc and is installed automatically, do
>> you think this should be explicit?
>>
>> @Matthias
>> I will have to have a read about branches and will update the wiki
>> shortly.
>>
>> Cheers
>> Adam
>>
>> On 6 April 2017 at 04:38, Matthias Kilian  wrote:
>> > Hi Adam,
>> >
>> > On Wed, Apr 05, 2017 at 03:39:18PM +0800, Adam Steen wrote:
>> >> I have created the Building/Preparation/OpenBSD Wiki Page, i have not
>> >> yet
>> >> link it to Building/Preparation
>> >> <https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation> page yet,
>> >> but
>> >> am looking for a review
>> >>
>> >> Setting Up a OpenBSD System for Building GHC
>> >> <https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/OpenBSD>
>> >
>> > Nice to see that some people actively work on ghc on OpenBSD (and
>> > apologies for me beeing such a slacker keeping the ghc package for
>> > OpenBSD up to date).
>> >
>> > FWIW, you don't have to pass the very exact package name to pkg_add,
>> > like 'autoconf-2.69p2' or ''automake-1.15p0'. There's a relatively new
>> > concept in pkg_tools called 'branches' (see pkg_add(1) manpage).
>> >
>> > You just have to replace the '-' separating the stem and the version by
>> > a '%', e.g.
>> >
>> > pkg_add autoconf%2.69 automake%1.15
>> >
>> > Then you'll get autoconf-2.69 and aotmake-1.15 regardless of what's the
>> > current REVISION (aka package patchleve) ot the package.
>> >
>> > Ciao,
>> > Kili
>>
>> On Thu, Apr 6, 2017 at 4:38 AM, Matthias Kilian 
>> wrote:
>> > Hi Adam,
>> >
>> > On Wed, Apr 05, 2017 at 03:39:18PM +0800, Adam Steen wrote:
>> >> I have created the Building/Preparation/OpenBSD Wiki Page, i have not
>> >> yet
>> >> link it to Building/Preparation
>> >> <https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation> page yet,
>> >> but
>> >> am looking for a review
>> >>
>> >> Setting Up a OpenBSD System for Building GHC
>> >> <https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/OpenBSD>
>> >
>> > Nice to see that some people actively work on ghc on OpenBSD (and
>> > apologies for me beeing such a slacker keeping the ghc package for
>> > OpenBSD up to date).
>> >
>> > FWIW, you don't have to pass the very exact package name to pkg_add,
>> > like 'autoconf-2.69p2' or ''automake-1.15p0'. There's a relatively new
>> > concept in pkg_tools called 'branches' (see pkg_add(1) manpage).
>> >
>> > You just have to replace the '-' separating the stem and the version by
>> > a '%', e.g.
>> >
>> > pkg_add autoconf%2.69 automake%1.15
>> >
>> > Then you'll get autoconf-2.69 and aotmake-1.15 regardless of what's the
>> > current REVISION (aka package patchleve) ot the package.
>> >
>> > Ciao,
>> > Kili
>> ___
>> ghc-devs mailing list
>> ghc-devs@haskell.org
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
>
>
>
> --
>
> Sean Westfall
> 2644 E. 4th St.
> Long Beach, CA 90802
> ph: (808) 281-4695
> em: sean.westf...@gmail.com
___
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs