Skip to content
This repository was archived by the owner on Aug 23, 2018. It is now read-only.
This repository was archived by the owner on Aug 23, 2018. It is now read-only.

Elm 0.18 violates W^X both during build and with the elm executable #179

@mulander

Description

@mulander

Hi,

I was successfully using Elm 0.17 on OpenBSD -current. The only issue was elm-repl violating W^X but the rest of the language worked fine.

Version 0.18 on the other hand fails to build with W^X violations during build and the elm binary (the only one produced from the build) violating it also.

W^X violation from dmesg:

dist/dist-sandbox-6f57610c/build/System/Clock_hsc_make(89932): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Data/Digest/CRC32_hsc_make(64777): W^X binary outside wxallowed mountpoint
/tmp/cabal-tmp-35565/entropy-0.3.7/dist/dist-sandbox-6f57610c/setup/setup(62741): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Data/Memory/MemMap/Posix_hsc_make(45451): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Network/BSD_hsc_make(57693): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/System/PosixCompat/Extensions_hsc_make(3928): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Codec/Compression/Zlib/Stream_hsc_make(79448): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/System/Time_hsc_make(24385): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Text/Regex/Posix/Wrap_hsc_make(23212): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Data/Digest/CRC32_hsc_make(66096): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Data/Memory/MemMap/Posix_hsc_make(16844): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Codec/Compression/Zlib/Stream_hsc_make(25961): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/System/Time_hsc_make(82113): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Network/BSD_hsc_make(9198): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/System/Clock_hsc_make(59571): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Data/Digest/CRC32_hsc_make(65182): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Data/Memory/MemMap/Posix_hsc_make(40138): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/System/Time_hsc_make(45768): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Network/BSD_hsc_make(85664): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/System/PosixCompat/Extensions_hsc_make(21187): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Text/Regex/Posix/Wrap_hsc_make(14934): W^X binary outside wxallowed mountpoint
dist/dist-sandbox-6f57610c/build/Codec/Compression/Zlib/Stream_hsc_make(74638): W^X binary outside wxallowed mountpoint
/tmp/cabal-tmp-38572/entropy-0.3.7/dist/dist-sandbox-6f57610c/setup/setup(78537): W^X binary outside wxallowed mountpoint
/home/mulander/lab/elm/Elm-Platform/0.18/.cabal-sandbox/bin//elm(5810): W^X binary outside wxallowed mountpoint
/home/mulander/lab/elm/Elm-Platform/0.18/.cabal-sandbox/bin//elm(94966): W^X binary outside wxallowed mountpoint

Sample build errors:

Failed to install unix-compat-0.4.2.0                                                                                                  
Build log ( /home/mulander/lab/elm/Elm-Platform/0.18/.cabal-sandbox/logs/unix-compat-0.4.2.0.log ):                                    
Configuring unix-compat-0.4.2.0...                                                                                                     
Building unix-compat-0.4.2.0...                                                                                                        
Preprocessing library unix-compat-0.4.2.0...                                                                                           
hsc2hs: dist/dist-sandbox-6f57610c/build/System/PosixCompat/Extensions_hsc_make: runProcess: runInteractiveProcess: exec: permission de
nied (Permission denied)                                                                                                               
Failed to install regex-posix-0.95.2                                                                                                   
Build log ( /home/mulander/lab/elm/Elm-Platform/0.18/.cabal-sandbox/logs/regex-posix-0.95.2.log ):                                     
Configuring regex-posix-0.95.2...                                                                                                      
Building regex-posix-0.95.2...                                                                                                         
Preprocessing library regex-posix-0.95.2...                                                                                            
hsc2hs: dist/dist-sandbox-6f57610c/build/Text/Regex/Posix/Wrap_hsc_make: runProcess: runInteractiveProcess: exec: permission denied (Pe
rmission denied)                                                                                                                       
Building zlib-0.6.1.2...                                                                                                               
Failed to install zlib-0.6.1.2                                                                                                         
Build log ( /home/mulander/lab/elm/Elm-Platform/0.18/.cabal-sandbox/logs/zlib-0.6.1.2.log ):                                           
Configuring zlib-0.6.1.2...                                                                                                            
Building zlib-0.6.1.2...                                                                                                               
Preprocessing library zlib-0.6.1.2...                                                                                                  
hsc2hs: dist/dist-sandbox-6f57610c/build/Codec/Compression/Zlib/Stream_hsc_make: runProcess: runInteractiveProcess: exec: permission de
nied (Permission denied)
Installed elm-compiler-0.18
Failed to install entropy-0.3.7
Build log ( /home/mulander/lab/elm/Elm-Platform/0.18/.cabal-sandbox/logs/entropy-0.3.7.log ):
[1 of 1] Compiling Main             ( /tmp/cabal-tmp-38572/entropy-0.3.7/dist/dist-sandbox-6f57610c/setup/setup.hs, /tmp/cabal-tmp-3857
2/entropy-0.3.7/dist/dist-sandbox-6f57610c/setup/Main.o )
Linking /tmp/cabal-tmp-38572/entropy-0.3.7/dist/dist-sandbox-6f57610c/setup/setup ...
cabal: user error (Error: some packages failed to install:
HTTP-4000.2.23 depends on network-2.6.3.1 which failed to install.
asn1-encoding-0.9.4 depends on memory-0.13 which failed to install.
asn1-parse-0.9.4 depends on memory-0.13 which failed to install.
asn1-types-0.3.2 depends on memory-0.13 which failed to install.
clock-0.7.2 failed during the building phase. The exception was:
ExitFailure 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions