Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problem building manually a software
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rafareino
n00b
n00b


Joined: 15 Aug 2013
Posts: 11
Location: Brazil

PostPosted: Thu Aug 15, 2013 11:50 pm    Post subject: [SOLVED] Problem building manually a software Reply with quote

Hi,

I'm an enthusiast of the implementation of fish by ridiculousfish.com, and thet was my main shel since a long time ago.

I've just concluded my first install of gentoo and wanna build that shell(the github one), for my personal use, but when I run:

Code:

./configure


I receive this response:

Code:

rafareino@gentoo ~/bin/fish $ ./configure
bash: ./configure: Permission denied


Or more detailed:

Code:

checking if autoconf needs to be run... no
checking if autoheader needs to be run... no
checking for g++... g++
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... configure: error: in `/home/rafareino/bin/fish':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details


I've looked in config.log, and I think the relevant part is that:
Code:

configure:2389: $? = 0
configure:2378: g++ -v >&5
Using built-in specs.
COLLECT_GCC=/usr/i686-pc-linux-gnu/gcc-bin/4.6.3/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/4.6.3/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.6.3 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.6.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.6.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.6.3/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.6.3/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --without-cloog --without-ppl --disable-lto --enable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.6.3/python --enable-checking=release --disable-libgcj --enable-libstdcxx-time --with-arch=i686 --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.6.3 p1.13, pie-0.5.2'
Thread model: posix
gcc version 4.6.3 (Gentoo 4.6.3 p1.13, pie-0.5.2)
configure:2389: $? = 0
configure:2378: g++ -V >&5
g++: error: unrecognized option '-V'
g++: fatal error: no input files
compilation terminated.
configure:2389: $? = 1
configure:2378: g++ -qversion >&5
g++: error: unrecognized option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:2389: $? = 1
configure:2409: checking whether the C++ compiler works
configure:2431: g++    conftest.cpp  >&5
configure:2435: $? = 0
configure:2483: result: yes
configure:2486: checking for C++ compiler default output file name
configure:2488: result: a.out
configure:2494: checking for suffix of executables
configure:2501: g++ -o conftest    conftest.cpp  >&5
configure:2505: $? = 0
configure:2527: result:
configure:2549: checking whether we are cross compiling
configure:2557: g++ -o conftest    conftest.cpp  >&5
configure:2561: $? = 0
configure:2568: ./conftest
./configure: line 2570: ./conftest: Permission denied
configure:2572: $? = 126
configure:2579: error: in `/home/rafareino/bin/fish':
configure:2581: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details


It seems that the configure script is trying to check the compilers, and then run conftest, that fail.

I'm not so sure that the compiler tests are the problem. I just typed in

Code:

sh -x ./configure


But I do not had the time to look it, so I will do it, and post if a find something.

Thanks in advance.


Last edited by rafareino on Fri Aug 16, 2013 12:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21498

PostPosted: Fri Aug 16, 2013 1:26 am    Post subject: Reply with quote

It looks like you are running this from a filesystem that was mounted as noexec.
Back to top
View user's profile Send private message
rafareino
n00b
n00b


Joined: 15 Aug 2013
Posts: 11
Location: Brazil

PostPosted: Fri Aug 16, 2013 12:05 pm    Post subject: Reply with quote

Hu wrote:
It looks like you are running this from a filesystem that was mounted as noexec.


Ow, You've got it.

I not even remembered that an fs could have this option!

Thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum