Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
not emerhing any thing, was this question ever answered ???
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
kris27
n00b
n00b


Joined: 02 Jun 2010
Posts: 47
Location: Sydney

PostPosted: Fri Nov 07, 2014 1:41 pm    Post subject: Reply with quote

nativemad wrote:
JRG was right with his first post here....
kris27 wrote:
CFLAGS='-O2 -march=native -pipe # -fomit-frame-pointer -march=native -mcx16 -msa
hf -maes -mpclmul -mpopcnt -mabm -mlwp -mavx'

Do you see the problem? -If you use a remark sign, make sure it is not included in the variable!! ;-)
Code:
CFLAGS="-O2 -march=native -pipe" # your comment here

instead of
Code:
CFLAGS="-O2 -march=native -pipe # your comment here"


Ooopsss ............ stupid typo, missed " thing. It wa sfixed, run with
CFLAGS="-O2 -march=native -pipe"
Run emerge and every thing as in previous posts, error persists - see previous listing of config.log

Was thinking to try runing configure script with break points in places which couse error, so may have a chance tracing/ debuging execution .... would this make sense ??? don't think so.

Regards, and thanks for your time.

K
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri Nov 07, 2014 3:08 pm    Post subject: Reply with quote

So the gcc works, but not in configure phase.
And as (we finally!) have a real config.log
The question is, what is that?

kris27 wrote:

## Core tests. ##
## ----------- ##

configure:2177: loading site script /usr/share/config.site <------------------
Back to top
View user's profile Send private message
kris27
n00b
n00b


Joined: 02 Jun 2010
Posts: 47
Location: Sydney

PostPosted: Sun Nov 09, 2014 6:57 am    Post subject: Reply with quote

Well ... I do not know where this line comes from, is it created by autools ??
Quote:

configure:2177: loading site script /usr/share/config.site <------------------

What I found on my system is :

# ls -l /usr/share/config.site
-rwxr-xr-x 1 root root 1485 Feb 16 2014 /usr/share/config.site

# more /usr/share/config.site

#!/bin/bash
# Copyright 2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

TOPDIR=/usr/share/crossdev/include/site

config_site_arch() {
local host=$(echo ${CHOST/-/ } | awk '{print $1}')

[[ ${host/arm.*eb/} != ${host} ]] && host=armeb
[[ ${host/arm/} != ${host} ]] && [[ ${host} != armeb ]] && host=arm

[[ ${host/mips.*el/} != ${host} ]] && host=mipsel

#[[ ${host/i[4-5]/6} != ${host} ]] && host=i686

echo ${host}
}

config_site_names() {
local site_arch=$(config_site_arch)
local sites=""
local x

[[ ${CHOST/-linux-/} != $CHOST ]] && sites+=" linux ${site_arch}-linux"
[[ ${CHOST/darwin/} != $CHOST ]] && sites+=" darwin ${site_arch}-linux"

[[ ${CHOST/-linux-uclibc/} != $CHOST ]] && sites+=" linux-uclibc ${site_
arch}-linux-uclibc"
[[ ${CHOST/-linux-gnu/} != $CHOST ]] && sites+=" linux-gnu ${site_arch}-
linux-gnu"

[[ ${CHOST/-linux-uclibceabi/} != $CHOST ]] && sites+=" linux-uclibceabi
${site_arch}-linux-uclibceabi"
[[ ${CHOST/-linux-gnueabi/} != $CHOST ]] && sites+=" linux-gnueabi ${sit
e_arch}-linux-gnueabi"

for x in ${sites} ${CHOST}; do
[[ -e ${TOPDIR}/${x} ]] && echo ${TOPDIR}/${x}
done
}

# Only kick in for cross-compiles so we don't break native builds #427184
if [[ ${CBUILD:-${CHOST}} != ${CHOST} ]]; then
sites="$(config_site_names)"
if [[ ${sites} != "" ]]; then
for site in ${sites}; do
echo "$(basename $0): loading site script ${site}"
. ${site}
done
fi
unset site
unset sites
fi

By looking at lines in config.log
configure:3293: x86_64-pc-linux-gnu-gcc --version >&5
gcc-config: error: could not run/locate 'x86_64-pc-linux-gnu-gcc'
configure:3304: $? = 1

run/locate 'foo' is incorrect as there are no subdirs named run conatining program locate or it is just info text ?

the only correct syntax is:
#locate 'foo'

Not sure if above analysis is correct but trying to find what is happenig ........

Regards, and thanks Kris
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sun Nov 09, 2014 7:12 am    Post subject: Reply with quote

no, it's the error type you get : run/locate isn't any program, just a typeof error.
configure script are full of assumptions like that on every tests : trying to jump 10m. fail -> user is unable to jump. While everyone could see why you cannot jump 10meter, everyone also suppose you are still able to jump, but they just like to do that in configure.
In this case, it found gcc, but when running it, it fail, and the shortcut error : we have not found the right gcc or we cannot run that gcc, shorten to a run/locate error.

Try rebuild it without that file, i'm not saying the file is bad, i'm saying it's what i would do myself, i don't have that file myself, but as my previous quote shown you, you have a "strange" configuration it seems nobody expect a default locate to look into /usr/local/var/mlocate location. Did you install stuff by hands and forget them? (you know kind of let me build a gcc in /usr/local/bin and forget it doesn't works but is still there...), as the error doesn't seems to be gcc itself, but more a problem with permissions, autotools or gcc-config... or strange location of hand craft stuff forgotten.
Back to top
View user's profile Send private message
kris27
n00b
n00b


Joined: 02 Jun 2010
Posts: 47
Location: Sydney

PostPosted: Sun Nov 09, 2014 9:04 am    Post subject: Reply with quote

Thanks Krinn for replay.

1. Emerge is run by root - as root is the "God" permissions would not interfere unless rx for root are not there (unlikely).
2. My "strange" applications are in either /opt or /home/usr/opt and are build by "hand" ( no autotools at times ).
3. Is there a way to emerge/restore emerge to "virign" state on running system ????
I was thinking of making new Gentoo either on /mnt/Gentoo or separate disk mounted on /mnt/Gentoo and tha using the following:
Backup /home/usr nad /opt to other drive and unmout it, so my "funnies" are preserved

3.a
#cd /
#tar -cf - -C /mnt/Gentoo . | tar -xpf - // this would copy the whole new gentoo to old and ovewrite??? existing

or
3.b
get current snapshot to running system and decompress it hope that would override all screwd up files ?

4.
Is the /var content is the most important for emerge ??? If so it would just anough to transfer /var from working system ?

5. The /usr/local/bin conatains the following:
# ls /usr/local/bin/
a2p avr-strings h2xs perlivp strip
addr2line avr-strip instmodsh perlthanks sudo
ar bdftruncate json_pp piconv sudoedit
as c++filt ld pl2pm sudoreplay
avr-addr2line c2ph ld.bfd pod2html ucs2any
avr-ar ccache libnetcfg pod2latex udisksctl
avr-as config_data locate pod2man unlzma
avr-c++ corelist lzcat pod2text unxz
avr-c++filt cpan lzcmp pod2usage updatedb
avr-cpp cpan2dist lzdiff podchecker xconsole
avr-elfedit cpanp lzegrep podselect xsubpp
avr-g++ cpanp-run-perl lzfgrep prove xz
avr-gcc dap-config lzgrep psed xzcat
avr-gcc-4.6.3 dap-config-pkgconfig lzless pstruct xzcmp
avr-gcov elfedit lzma ptar xzdec
avr-gprof enc2xs lzmadec ptardiff xzdiff
avr-ld exrenvmap lzmainfo ptargrep xzegrep
avr-ld.bfd exrheader lzmore python-wrapper xzfgrep
avr-man exrmakepreview nm ranlib xzgrep
avr-nm exrmaketiled objcopy readelf xzless
avr-objcopy exrstdattr objdump s2p xzmore
avr-objdump find2perl perl shasum zipdetails
avr-ranlib getdap perl5.18.2 size
avr-readelf gprof perlbug splain
avr-size h2ph perldoc strings

All above is curing symtoms but the reson is unknown - which is bad QA procedure.

Regards K
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Sun Nov 09, 2014 11:44 am    Post subject: Reply with quote

kris27 wrote:

All above is curing symtoms but the reson is unknown - which is bad QA procedure.

yeah... i'd lookup where that file is coming from...
Code:
qfile /usr/share/config.site

If that does not return any package name, then it is not there from portage and I'd move it to somewhere where the autotools do not look.... Something like that:
Code:
mkdir /root/backupstragengestuff && mv /usr/share/config.site /root/backupstrangestuff/

...I could imagine that there is much more strange stuff from a manual "make install"....
The following command will give you a list of all files modified at the date when this strange file was created... maybe you'll see the src dir and could do a "make uninstall" there or just move all related files to the "backupstrangestuff" folder...
Code:
find / -type f -newermt 2014-02-16 ! -newermt 2014-02-17

HTH
_________________
Power to the people!
Back to top
View user's profile Send private message
kris27
n00b
n00b


Joined: 02 Jun 2010
Posts: 47
Location: Sydney

PostPosted: Sun Nov 09, 2014 2:29 pm    Post subject: Reply with quote

Many thanks ... my detailed knowledge of Gentoo system is .... Hm, not that great, well, never was interested much in being good Gentoo sys admin. Just get system running as lean, and optimsied just anough for a few programes.

The command:
#qfile /usr/share/config.site
sys-devel/crossdev (/usr/share/config.site)

#emerge -av crossdev
[ebuild U ] sys-devel/crossdev-20140118 [20131107] 21 kB

I am bit worry to uninstall it as I am making software for arm328 based robot that suppose to be autonomous astronomical telescope controller. Not sure if this particular program (crossdev) is actually needed for what I am doing.
Have to investigate or suufer until little robot is usefull ......

Thanks for your time, regards Kris
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54212
Location: 56N 3W

PostPosted: Sun Nov 09, 2014 3:29 pm    Post subject: Reply with quote

kris27.

Crossdev was used to build your cross toolchain.
That particular file, /usr/share/config.site, provides answers to a few .configure questions that don't make sense when you are running a cross compiler.

There was a bug or two on bugs.gentoo.org about crossdev not playing nicely with some profiles.
It works for me on amd64/no-multilib, or I would know more abaut it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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