View previous topic :: View next topic |
Author |
Message |
bware n00b
Joined: 23 Mar 2004 Posts: 22 Location: Amsterdam
|
Posted: Wed Aug 22, 2007 8:03 am Post subject: stage2 install fails on pcre compile (emerge system)[solved] |
|
|
I finaly got the correct netboot image for my sparc, so I decided to continue the install of the 2007.0 stage2 tarbal.
After running emerge system, it fails with:
Code: |
creating pcregrep
sparc-unknown-linux-gnu-g++ -c -O2 -mcpu=ultrasparc -pipe -fPIC -I. -I. -DSUPPORT_UTF8 -DPOSIX_MALLOC_THRESHOLD=10 ./pcrecpp.cc -fPIC -DPIC -o .libs/pcrecpp.o
In file included from /usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/include/g++-v4/string:45,
from ./pcrecpp.cc:38:
/usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/include/g++-v4/sparc-unknown-linux-gnu/bits/c++config.h:35:29: error: bits/os_defines.h: No such file or directory
make: *** [pcrecpp.o] Error 1
!!! ERROR: dev-libs/libpcre-6.6 failed.
Call stack:
ebuild.sh, line 1638: Called dyn_compile
ebuild.sh, line 985: Called qa_call 'src_compile'
ebuild.sh, line 44: Called src_compile
libpcre-6.6.ebuild, line 42: Called die
!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-libs/libpcre-6.6/temp/build.log'.
|
After searching the forum, I came across this post
So, I did:
Code: |
ls -la /usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/include/g++-v4/sparc-unknown-linux-gnu/bits/
total 160
drwxr-xr-x 3 root root 4096 Aug 20 11:48 .
drwxr-xr-x 3 root root 4096 Aug 20 11:48 ..
-rw-r--r-- 1 root root 2048 Apr 19 23:32 atomic_word.h
-rw-r--r-- 1 root root 2987 Apr 19 23:32 basic_file.h0000644
-rw-r--r-- 1 root root 1639 Apr 19 23:32 c++allocator.h
-rw-r--r-- 1 root root 33729 Apr 19 23:32 c++config.h
-rw-r--r-- 1 root root 1730 Apr 19 23:32 c++io.h
-rw-r--r-- 1 root root 3355 Apr 19 23:32 c++locale.h
-rw-r--r-- 1 root root 1510 Apr 19 23:32 cpu_defines.h
-rw-r--r-- 1 root root 2487 Apr 19 23:32 ctype_base.h0000644
-rw-r--r-- 1 root root 2346 Apr 19 23:32 ctype_inline.h
-rw-r--r-- 1 root root 5266 Apr 19 23:32 ctype_noninline.h
-rw-r--r-- 1 root root 2093 Apr 19 23:32 cxxabi_tweaks.h
-rw-r--r-- 1 root root 15585 Apr 19 23:32 gthr-default.h
-rw-r--r-- 1 root root 15585 Apr 19 23:32 gthr-posix.h0000644
-rw-r--r-- 1 root root 6022 Apr 19 23:32 gthr-single.h
-rw-r--r-- 1 root root 5232 Apr 19 23:32 gthr-tpf.h
-rw-r--r-- 1 root root 4384 Apr 19 23:32 gthr.h
-rw-r--r-- 1 root root 3805 Apr 19 23:32 messages_members.h
-rw-r--r-- 1 root root 1877 Apr 19 23:32 os_defines.h0000644
drwxr-xr-x 2 root root 4096 Aug 20 11:48 stdc++.h.gch
-rw-r--r-- 1 root root 2867 Apr 19 23:32 time_members.h
|
hmm...
I decided to do a quick fix of the pathnames and rerun emerge system once more
Code: |
cd/usr/lib/gcc/sparc-unknown-linux-gnu/4.1.1/
for file in `find . -type f -name *.h0000644`; do dstfile=`echo $file | cut -d \. -f1,2`.h ; mv $file $dstfile ; done
|
_________________ Regards,
BWare
Last edited by bware on Wed Aug 22, 2007 8:23 am; edited 2 times in total |
|
Back to top |
|
|
bware n00b
Joined: 23 Mar 2004 Posts: 22 Location: Amsterdam
|
Posted: Wed Aug 22, 2007 8:22 am Post subject: |
|
|
It seems the workaround did its job:
Code: | 1187770669: *** emerge --resume
1187770673: *** Resuming merge...
1187770679: >>> emerge (1 of 46) dev-libs/libpcre-6.6 to /
1187770680: === (1 of 46) Cleaning (dev-libs/libpcre-6.6::/usr/portage/dev-libs/libpcre/libpcre-6.6.ebuild)
1187770681: === (1 of 46) Compiling/Merging (dev-libs/libpcre-6.6::/usr/portage/dev-libs/libpcre/libpcre-6.6.ebuild)
1187771054: >>> AUTOCLEAN: dev-libs/libpcre
1187771054: --- AUTOCLEAN: Nothing unmerged.
1187771054: === (1 of 46) Post-Build Cleaning (dev-libs/libpcre-6.6::/usr/portage/dev-libs/libpcre/libpcre-6.6.ebuild)
1187771054: ::: completed emerge (1 of 46) dev-libs/libpcre-6.6 to /
|
Hope this helps someone that encounters the same problem. _________________ Regards,
BWare |
|
Back to top |
|
|
|
|
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
|
|