FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 03-29-2012, 03:40 PM
1126
 
Default emerge haskell-opengl-2.2.1.1 failed

Hello list,

this is my first posting to this mailinglist since I recently switched
to Gentoo. I worked a few years with ArchLinux, then dumped it for
FreeBSD and - due to getting a new Laptop (Thinkpad X220) - I
considered switching back to Linux. So, here I am.


I tried to install haskell-platform (the overlay, that is) and it got
me into the following problem: emerging haskell-opengl-2.2.1.1 failed.
I append the build.log.


Thanks in advance,
greetings from Cologne,
Christian Lask.



The build.log residing in /var/tmp/portage/dev-haskell/opengl-2.2.1.1/temp/:


* Package: dev-haskell/opengl-2.2.1.1
* Repository: gentoo-haskell
* Maintainer: haskell@gentoo.org
* USE: amd64 elibc_glibc kernel_linux multilib userland_GNU
* FEATURES: sandbox

Unpacking source...
Unpacking OpenGL-2.2.1.1.tar.gz to
/var/tmp/portage/dev-haskell/opengl-2.2.1.1/work

Source unpacked in /var/tmp/portage/dev-haskell/opengl-2.2.1.1/work
Compiling source in
/var/tmp/portage/dev-haskell/opengl-2.2.1.1/work/OpenGL-2.2.1.1 ...

* Using cabal-1.14.0.
/usr/bin/ghc -package Cabal-1.14.0 --make
/var/tmp/portage/dev-haskell/opengl-2.2.1.1/work/OpenGL-2.2.1.1/Setup.hs
-dynamic -o setup
[1 of 1] Compiling Main (
/var/tmp/portage/dev-haskell/opengl-2.2.1.1/work/OpenGL-2.2.1.1/Setup.hs,
/var/tmp/portage/dev-haskell/opengl-2.2.1.1/work/OpenGL-2.2.1.1/Setup.o
)


/var/tmp/portage/dev-haskell/opengl-2.2.1.1/work/OpenGL-2.2.1.1/Setup.hs:3:1:
Warning: In the use of `defaultUserHooks'
(imported from Distribution.Simple):
Deprecated: "Use simpleUserHooks or autoconfUserHooks,
unless you need Cabal-1.2

compatibility in which case you must stick with defaultUserHooks"
Linking setup ...
./setup configure --ghc --prefix=/usr --with-compiler=/usr/bin/ghc
--with-hc-pkg=/usr/bin/ghc-pkg --prefix=/usr --libdir=/usr/lib64
--libsubdir=opengl-2.2.1.1/ghc-7.4.1 --datadir=/usr/share/
--datasubdir=opengl-2.2.1.1/ghc-7.4.1 --ghc-option=-optl-Wl,-O1
--ghc-option=-optl-Wl,--as-needed --disable-executable-stripping
--docdir=/usr/share/doc/opengl-2.2.1.1 --verbose

Warning: defaultUserHooks in Setup script is deprecated.
Configuring OpenGL-2.2.1.1...
Dependency base -any: using base-4.5.0.0
Using Cabal-1.14.0 compiled by ghc-7.4
Using compiler: ghc-7.4.1
Using install prefix: /usr
Binaries installed in: /usr/bin
Libraries installed in: /usr/lib64/opengl-2.2.1.1/ghc-7.4.1
Private binaries installed in: /usr/libexec
Data files installed in: /usr/share/opengl-2.2.1.1/ghc-7.4.1
Documentation installed in: /usr/share/doc/opengl-2.2.1.1
No alex found
Using ar found on system at: /usr/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.5.3 found on system at: /usr/bin/gcc
Using ghc version 7.4.1 given by user at: /usr/bin/ghc
Using ghc-pkg version 7.4.1 given by user at: /usr/bin/ghc-pkg
No greencard found
No haddock found
No happy found
No hmake found
Using hpc version 0.6 found on system at: /usr/bin/hpc
Using hsc2hs version 0.67 found on system at: /usr/bin/hsc2hs
No hscolour found
No hugs found
No jhc found
Using ld found on system at: /usr/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
Using pkg-config version 0.26 found on system at: /usr/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /bin/tar
No uhc found
sh configure --with-hc=/usr/bin/ghc --with-hc-pkg=/usr/bin/ghc-pkg
--prefix=/usr --libdir=/usr/lib64 --datadir=/usr/share/
--with-gcc=/usr/bin/gcc

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for Windows environment... no
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for atan... no
checking for atan in -lm... yes
checking for GL library... -lGL -lm
checking for GLU library... -lGLU -lGL -lm
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking OpenGL/gl.h usability... no
checking OpenGL/gl.h presence... no
checking for OpenGL/gl.h... no
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking OpenGL/glu.h usability... no
checking OpenGL/glu.h presence... no
checking for OpenGL/glu.h... no
checking Haskell type for GLboolean... Word8
checking Haskell type for GLbyte... Int8
checking Haskell type for GLubyte... Word8
checking Haskell type for GLshort... Int16
checking Haskell type for GLushort... Word16
checking Haskell type for GLint... Int32
checking Haskell type for GLuint... Word32
checking Haskell type for GLsizei... Int32
checking Haskell type for GLenum... Word32
checking Haskell type for GLbitfield... Word32
checking Haskell type for GLfloat... Float
checking Haskell type for GLclampf... Float
checking Haskell type for GLdouble... Double
checking Haskell type for GLclampd... Double
checking Haskell type for GLchar... Int8
checking Haskell type for GLintptr... Int64
checking Haskell type for GLsizeiptr... Int64
configure: creating ./config.status
config.status: creating config.mk
config.status: creating OpenGL.buildinfo
config.status: creating include/HsOpenGLConfig.h
config.status: creating include/HsOpenGL.h
config.status: include/HsOpenGL.h is unchanged
Reading parameters from ./OpenGL.buildinfo
./setup build
Building OpenGL-2.2.1.1...
Preprocessing library OpenGL-2.2.1.1...
[ 1 of 84] Compiling Graphics.Rendering.OpenGL.GL.FlushFinish (
Graphics/Rendering/OpenGL/GL/FlushFinish.hs,
dist/build/Graphics/Rendering/OpenGL/GL/FlushFinish.o )
[ 2 of 84] Compiling Graphics.Rendering.OpenGL.GL.IOState (
Graphics/Rendering/OpenGL/GL/IOState.hs,
dist/build/Graphics/Rendering/OpenGL/GL/IOState.o )
[ 3 of 84] Compiling Graphics.Rendering.OpenGL.GL.PeekPoke (
Graphics/Rendering/OpenGL/GL/PeekPoke.hs,
dist/build/Graphics/Rendering/OpenGL/GL/PeekPoke.o )
[ 4 of 84] Compiling Graphics.Rendering.OpenGL.GL.GLboolean (
Graphics/Rendering/OpenGL/GL/GLboolean.hs,
dist/build/Graphics/Rendering/OpenGL/GL/GLboolean.o )


Graphics/Rendering/OpenGL/GL/GLboolean.hs:27:23:
Could not deduce (Eq a) arising from a use of `/='
from the context (Num a)
bound by the type signature for
unmarshalGLboolean :: Num a => a -> Bool
at Graphics/Rendering/OpenGL/GL/GLboolean.hs:27:1-27
Possible fix:
add (Eq a) to the context of
the type signature for unmarshalGLboolean :: Num a => a -> Bool
In the expression: (/= 0)
In an equation for `unmarshalGLboolean':
unmarshalGLboolean = (/= 0)
* ERROR: dev-haskell/opengl-2.2.1.1 failed (compile phase):
* setup build failed
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 2566: Called haskell-cabal_src_compile
* environment, line 1973: Called cabal_src_compile
* environment, line 516: Called cabal-build
* environment, line 336: Called die
* The specific snippet of code:
* ./setup "$@" || die "setup build failed"
*
* If you need support, post the output of 'emerge --info
=dev-haskell/opengl-2.2.1.1',
* the complete build log and the output of 'emerge -pqv
=dev-haskell/opengl-2.2.1.1'.

* This ebuild used the following eclasses from overlays:
* /var/lib/layman/haskell/eclass/haskell-cabal.eclass
* /var/lib/layman/haskell/eclass/ghc-package.eclass
* This ebuild is from an overlay named 'gentoo-haskell':
'/var/lib/layman/haskell/'
* The complete build log is located at
'/var/tmp/portage/dev-haskell/opengl-2.2.1.1/temp/build.log'.
* The ebuild environment file is located at
'/var/tmp/portage/dev-haskell/opengl-2.2.1.1/temp/environment'.

* S: '/var/tmp/portage/dev-haskell/opengl-2.2.1.1/work/OpenGL-2.2.1.1'
 
Old 03-30-2012, 05:11 PM
Sergei Trofimovich
 
Default emerge haskell-opengl-2.2.1.1 failed

> I tried to install haskell-platform (the overlay, that is) and it got
> me into the following problem: emerging haskell-opengl-2.2.1.1 failed.
> I append the build.log.

First off, thanks for the report!
I've pushed the fix this morning, so it should already be on mirrors:

> 30 Mar 2012; Sergei Trofimovich <slyfox@gentoo.org>
> +files/opengl-2.2.1.1-ghc-7.4.patch, opengl-2.2.1.1.ebuild:
> Fix build failure against ghc-7.4 (reported by Christian Lask).

Another note: you are mixing stable (opengl) and unstable (ghc) packages.
It is usually fine, but in order to use anything from overlay you'll
need to set unstable keywords for packages there.

https://github.com/gentoo-haskell/gentoo-haskell/blob/master/README.rst
contains some notes on adding haskell repo via layman.

--

Sergei
 

Thread Tools




All times are GMT. The time now is 12:27 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org