[Bug 202566] lang/ghc : new version fails with "permission denied" on DragonFly poudriere

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Aug 22 11:09:07 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202566

            Bug ID: 202566
           Summary: lang/ghc : new version fails with "permission denied"
                    on DragonFly poudriere
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: haskell at FreeBSD.org
          Reporter: marino at FreeBSD.org
          Assignee: haskell at FreeBSD.org
             Flags: maintainer-feedback?(haskell at FreeBSD.org)

I am wondering if lang/ghc now builds in an illegal area.  When trying to build
the new version of GHC (using a patched version of lang/ghc to bring in 7.6.3
bootstrap from dragonfly) I get this error:

[89 of 89] Compiling Main             ( utils/ghc-cabal/Main.hs,
bootstrapping/Main.o )
Linking utils/ghc-cabal/dist/build/tmp/ghc-cabal ...
"touch" utils/ghc-cabal/dist/build/tmp/ghc-cabal
"cp" utils/ghc-cabal/dist/build/tmp/ghc-cabal inplace/bin/ghc-cabal
"inplace/bin/ghc-cabal" configure libraries/binary dist-boot ""
--with-ghc="/wrkdirs/lang/ghc/work/ghc-7.6.3-boot/bin/ghc-7.6.3"
--with-ghc-pkg="/wrkdirs/lang/ghc/work/ghc-7.6.3-boot/bin/ghc-pkg-7.6.3" 
--package-db=/wrkdirs/lang/ghc/work/ghc-7.10.2/libraries/bootstrapping.conf
--disable-library-for-ghci --enable-library-vanilla --disable-library-profiling
--disable-shared
--with-hscolour="/wrkdirs/lang/ghc/work/slaves_prefix/bin/HsColour"
--configure-option=CFLAGS="-pipe -I/usr/local/include -O2 -fno-strict-aliasing
-fno-stack-protector   " --configure-option=LDFLAGS="  "
--configure-option=CPPFLAGS="   " --gcc-options="-pipe -I/usr/local/include -O2
-fno-strict-aliasing -fno-stack-protector      "
--configure-option=--with-iconv-includes="/usr/local/include"
--configure-option=--with-iconv-libraries="/usr/local/lib"
--configure-option=--with-gmp-includes="/usr/local/include"
--configure-option=--with-gmp-libraries="/usr/local/lib"   --constraint "binary
== 0.7.5.0"   --constraint "Cabal == 1.22.4.0"   --constraint "hpc == 0.6.0.2" 
 --constraint "bin-package-db == 0.0.0.0"   --constraint "hoopl == 3.10.0.2"  
--constraint "transformers == 0.4.2.0"   --constraint "terminfo == 0.4.0.1"
--with-gcc="gcc" --configure-option=--with-cc="gcc" --with-ar="/usr/bin/ar"  
"inplace/bin/ghc-cabal" configure utils/hsc2hs dist ""
--with-ghc="/wrkdirs/lang/ghc/work/ghc-7.6.3-boot/bin/ghc-7.6.3"
--with-ghc-pkg="/wrkdirs/lang/ghc/work/ghc-7.6.3-boot/bin/ghc-pkg-7.6.3" 
--package-db=/wrkdirs/lang/ghc/work/ghc-7.10.2/libraries/bootstrapping.conf
--disable-library-for-ghci --disable-library-vanilla
--disable-library-profiling --disable-shared
--with-hscolour="/wrkdirs/lang/ghc/work/slaves_prefix/bin/HsColour"
--configure-option=CFLAGS="-pipe -I/usr/local/include -O2 -fno-strict-aliasing
-fno-stack-protector   " --configure-option=LDFLAGS="  "
--configure-option=CPPFLAGS="   " --gcc-options="-pipe -I/usr/local/include -O2
-fno-strict-aliasing -fno-stack-protector      "
--configure-option=--with-iconv-includes="/usr/local/include"
--configure-option=--with-iconv-libraries="/usr/local/lib"
--configure-option=--with-gmp-includes="/usr/local/include"
--configure-option=--with-gmp-libraries="/usr/local/lib"   --constraint "binary
== 0.7.5.0"   --constraint "Cabal == 1.22.4.0"   --constraint "hpc == 0.6.0.2" 
 --constraint "bin-package-db == 0.0.0.0"   --constraint "hoopl == 3.10.0.2"  
--constraint "transformers == 0.4.2.0"   --constraint "terminfo == 0.4.0.1"
--with-gcc="gcc" --configure-option=--with-cc="gcc" --with-ar="/usr/bin/ar"  
Configuring hsc2hs-0.67...
Configuring binary-0.7.5.0...
ghc-cabal: /usr/bin/ar: permission denied
utils/hsc2hs/ghc.mk:15: recipe for target 'utils/hsc2hs/dist/package-data.mk'
failed


My guess is /usr/bin/ar is trying to assemble something in a read-only mount in
poudriere, which should never happen.  (This is also a violation on FreeBSD but
poudriere there doesn't break when it happens)


Can you guys confirm this is indeed what is happening and if so, where is it
building and how can we make it build in $WRKDIR instead?

full log (won't be there forever):
http://muscles.dragonflybsd.org/bulk/bleeding-edge-potential/20150822_035817/logs/errors/ghc-7.10.2.log

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list