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

Problem with basic includes after building #1

Open
pmalek opened this issue Nov 20, 2014 · 1 comment
Open

Problem with basic includes after building #1

pmalek opened this issue Nov 20, 2014 · 1 comment
Assignees
Labels

Comments

@pmalek
Copy link

pmalek commented Nov 20, 2014

I have just launched this script on Centos 6.6 x64 and gcc seemed to work but after running e.g. zsh 5.0.7 compilation I have the following:

$./configure
....
checking for limit RLIMIT_NICE... yes
checking for limit RLIMIT_RTPRIO... yes
checking for limit RLIMIT_POSIXLOCKS... no
checking for limit RLIMIT_NPTS... no
checking for limit RLIMIT_SWAP... no
checking for limit RLIMIT_KQUEUES... no
checking if RLIMIT_VMEM and RLIMIT_RSS are the same... no
checking if RLIMIT_VMEM and RLIMIT_AS are the same... no
checking if RLIMIT_RSS and RLIMIT_AS are the same... no
checking for struct rusage.ru_maxrss... yes
checking for struct rusage.ru_ixrss... yes
checking for struct rusage.ru_idrss... yes
checking for struct rusage.ru_isrss... yes
checking for struct rusage.ru_minflt... yes
checking for struct rusage.ru_majflt... yes
checking for struct rusage.ru_nswap... yes
checking for struct rusage.ru_inblock... yes
checking for struct rusage.ru_oublock... yes
checking for struct rusage.ru_msgsnd... yes
checking for struct rusage.ru_msgrcv... yes
checking for struct rusage.ru_nsignals... yes
checking for struct rusage.ru_nvcsw... yes
checking for struct rusage.ru_nivcsw... yes
checking for /dev/fd filesystem... /proc/self/fd
checking for RFS superroot directory... no
checking whether we should use the native getcwd... no
checking whether getcwd calls malloc to allocate memory... no
checking for setproctitle... no
checking for library containing setproctitle... no
checking for NIS... no
checking for NIS+... no
checking for utmp file... /var/run/utmp
checking for wtmp file... /var/log/wtmp
checking for utmpx file... no
checking for wtmpx file... no
checking for brk() prototype in <unistd.h>... yes
checking for sbrk() prototype in <unistd.h>... yes
checking for mknod prototype in <sys/stat.h>... yes
checking for ioctl prototype in <unistd.h> or <termios.h>... no
checking for ioctl prototype in <sys/ioctl.h>... yes
checking if named FIFOs work... no
checking if echo in /bin/sh interprets escape sequences... no
checking if link() works... no
checking if kill(pid, 0) returns ESRCH correctly... no
checking if POSIX sigsuspend() works... no
checking if tcsetpgrp() actually works... error
configure: error: unexpected return status

After installing glibc headers I add the following to your script's gcc build (--disable-multilib) because otherwise I would get an error:

gcc-*)
                # We are using a newer version of CLooG (0.18.0).
                # I have also made stack protection available
                # (similar to DEP in windows).
                CONF_ARGS=(
                    --disable-cloog-version-check
                    --disable-ppl-version-check
                    --disable-multilib

I have added the following to my .bashrc:

PATH="/home/USER/src/gcc-4.9.2-boost-1.57-master/rtf/bin:$PATH"
LD_LIBRARY_PATH="/home/USER/src/gcc-4.9.2-boost-1.57-master/rtf/lib:/home/USER/src/gcc-4.9.2-boost-1.57-master/rtf/lib64:$LD_LIBRARY_PATH"

BTW any ideas how can I install it in e.g. /usr/local/ (system wide/automatically)?Because if I launch the script in the following way:

$./bld.sh /usr/local

then instead of installing it actually there then it would create the subdirectory /usr/local/rtf and in it bin, lib, etc etc.

@jlinoff
Copy link
Owner

jlinoff commented Nov 20, 2014

Thanks for the tip about --disable-multilib. I have not seen a case where it is needed. I will dig in a bit deeper to better understand what happened.

To release to /usr/local area, change line 356 from this:

RTFDIR=$"ROOTDIR/rtf"

to this

RTFDIR="$ROOTDIR"

However i would strongly encourage you not to do this. It might destabilize your system because there may be components of the OS or installed packages that rely on the version of the compiler that the OS was built with.

@jlinoff jlinoff self-assigned this Apr 18, 2015
@jlinoff jlinoff added the bug label Apr 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants