Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install unix package #376

Closed
JulianZhang opened this issue May 14, 2017 · 4 comments
Closed

Can't install unix package #376

JulianZhang opened this issue May 14, 2017 · 4 comments

Comments

@JulianZhang
Copy link
Contributor

Hi all, many packages depend on unix, But I can' install it on centOS with eta 0.0.6b4

At first we need add extra-include-dirs as /home/zhangjun/.stack/programs/x86_64-linux/ghc-7.10.3/lib/ghc-7.10.3/include/ to avoid "HsFFI.h" missing problem.

After that reinstall unix will meet problem as blow.


$etlas install unix
Resolving dependencies...
Configuring unix-2.7.2.1...
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for an ANSI C-conforming const... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for string.h... (cached) yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/stat.h... (cached) yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking bsd/libutil.h usability... no
checking bsd/libutil.h presence... no
checking for bsd/libutil.h... no
checking libutil.h usability... no
checking libutil.h presence... no
checking for libutil.h... no
checking pty.h usability... yes
checking pty.h presence... yes
checking for pty.h... yes
checking utmp.h usability... yes
checking utmp.h presence... yes
checking for utmp.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking for getgrgid_r... yes
checking for getgrnam_r... yes
checking for getpwnam_r... yes
checking for getpwuid_r... yes
checking for getpwnam... yes
checking for getpwuid... yes
checking for getpwent... yes
checking for getgrent... yes
checking for lchown... yes
checking for setenv... yes
checking for sysconf... yes
checking for unsetenv... yes
checking for clearenv... yes
checking for nanosleep... yes
checking for ptsname... yes
checking for setitimer... yes
checking for readdir_r... yes
checking for telldir... yes
checking for seekdir... yes
checking for _NSGetEnviron... no
checking whether execvpe is declared... yes
checking for execvpe... yes
checking for struct stat.st_atim... yes
checking for struct stat.st_mtim... yes
checking for struct stat.st_ctim... yes
checking for struct stat.st_atimespec... no
checking for struct stat.st_mtimespec... no
checking for struct stat.st_ctimespec... no
checking for struct stat.st_atimensec... no
checking for struct stat.st_mtimensec... no
checking for struct stat.st_ctimensec... no
checking for struct stat.st_atime_n... no
checking for struct stat.st_mtime_n... no
checking for struct stat.st_ctime_n... no
checking for struct stat.st_uatime... no
checking for struct stat.st_umtime... no
checking for struct stat.st_uctime... no
checking for struct passwd.pw_gecos... yes
checking for utimensat... yes
checking for futimens... yes
checking for lutimes... yes
checking for futimes... yes
checking for mkstemps... yes
checking for mkdtemp... yes
checking for fsync... yes
checking whether fdatasync is declared... yes
checking for fdatasync... yes
checking for posix_fadvise... yes
checking for posix_fallocate... yes
checking whether tcdrain is declared... yes
checking whether ctermid is declared... yes
checking for library containing shm_open... -lrt
checking for shm_open... yes
checking for shm_unlink... yes
checking value of SIGABRT... 6
checking value of SIGALRM... 14
checking value of SIGBUS... 7
checking value of SIGCHLD... 17
checking value of SIGCONT... 18
checking value of SIGFPE... 8
checking value of SIGHUP... 1
checking value of SIGILL... 4
checking value of SIGINT... 2
checking value of SIGKILL... 9
checking value of SIGPIPE... 13
checking value of SIGQUIT... 3
checking value of SIGSEGV... 11
checking value of SIGSTOP... 19
checking value of SIGTERM... 15
checking value of SIGTSTP... 20
checking value of SIGTTIN... 21
checking value of SIGTTOU... 22
checking value of SIGUSR1... 10
checking value of SIGUSR2... 12
checking value of SIGPOLL... 29
checking value of SIGPROF... 27
checking value of SIGSYS... 31
checking value of SIGTRAP... 5
checking value of SIGURG... 23
checking value of SIGVTALRM... 26
checking value of SIGXCPU... 24
checking value of SIGXFSZ... 25
checking value of SIG_BLOCK... 0
checking value of SIG_SETMASK... 2
checking value of SIG_UNBLOCK... 1
checking value of SIGINFO... -1
checking value of SIGWINCH... 28
checking for _SC_GETGR_R_SIZE_MAX... yes
checking for _SC_GETPW_R_SIZE_MAX... yes
checking return type of usleep... int
checking return type of unsetenv... int
checking for RTLD_NEXT from dlfcn.h... yes
checking for RTLD_DEFAULT from dlfcn.h... yes
checking for openpty... no
checking for openpty in -lutil... yes
checking for /dev/ptmx... yes
checking for /dev/ptc... no
checking for library containing dlopen... -ldl
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 library containing sem_close... -lpthread
configure: creating ./config.status
config.status: creating unix.buildinfo
config.status: creating include/HsUnixConfig.h
configure: WARNING: unrecognized options: --with-compiler
Preprocessing library for unix-2.7.2.1..
Building library for unix-2.7.2.1..

etlas: '/usr/bin/java' exited with an error:
Cannot parse dependencies:
Malformed dependency: rt
Malformed dependency: util
Malformed dependency: dl
Malformed dependency: pthread
Failed to install unix-2.7.2.1
etlas: Error: some packages failed to install:
unix-2.7.2.1-AwcK3ka9q5o5yY0lpEawoF failed during the building phase. The
exception was:
ExitFailure 1
@rahulmutt
Copy link
Member

We will not be supporting unix any-time soon because it's platform-dependent. What you can do instead is tell us which packages you need and we can get them patched.

@JulianZhang
Copy link
Contributor Author

@rahulmutt The most import package is warp, I need it to run web server.

@rahulmutt
Copy link
Member

rahulmutt commented May 14, 2017

warp is not ready yet. In the mean time, check out https://github.com/rahulmutt/eta-servant-example

@rahulmutt
Copy link
Member

We're not going to port unix until further notice. The current method is to shim out the required methods from unix in whatever library you want that depends on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants