Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
boost-1.83.0-r2 build error on loongson2f notebook
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
emtone
n00b
n00b


Joined: 11 Apr 2017
Posts: 44

PostPosted: Sat Oct 28, 2023 4:20 am    Post subject: boost-1.83.0-r2 build error on loongson2f notebook Reply with quote

error info:
b2 --user-config=/var/tmp/portage/dev-libs/boost-1.83.0-r2/work/boost_1_83_0-abi_mips_n32.n32/user-config.jam python=3.10 python=3.11 python=3.12 --prefix=/usr gentoorelease -j1 -q -d+2 pch=off --without-mpi --boost-build=/usr/share/b2/src --layout=system threading=multi link=shared -sNO_BZIP2=0 -sNO_LZMA=1 -sNO_ZLIB=0 -sNO_ZSTD=1
/usr/share/b2/src/build/project.jam:820: in class@project-attributes.set from module object(project-attributes)@7768
error: Invalid project attribute 'common-requirements' specified for project at 'libs/url/build'
/usr/share/b2/src/build/project.jam:1151: in project from module project-rules
libs/url/build/Jamfile:22: in modules.load from module Jamfile</var/tmp/portage/dev-libs/boost-1.83.0-r2/work/boost_1_83_0-abi_mips_n32.n32/libs/url/build>
/usr/share/b2/src/build/project.jam:372: in load-jamfile from module project
/usr/share/b2/src/build/project.jam:64: in load from module project
/usr/share/b2/src/build/project.jam:89: in load-used-projects from module project
/usr/share/b2/src/build/project.jam:75: in load from module project
/usr/share/b2/src/build/project.jam:142: in project.find from module project
/usr/share/b2/src/build-system.jam:618: in load from module build-system
/usr/share/b2/src/kernel/modules.jam:294: in import from module modules
/usr/share/b2/src/kernel/bootstrap.jam:135: in module scope from module

^[[31;01m*^[[0m ERROR: dev-libs/boost-1.83.0-r2::gentoo failed (compile phase):
^[[31;01m*^[[0m (no error message)
^[[31;01m*^[[0m
^[[31;01m*^[[0m Call stack:
^[[31;01m*^[[0m ebuild.sh, line 136: Called src_compile
^[[31;01m*^[[0m environment, line 3322: Called multilib-minimal_src_compile
^[[31;01m*^[[0m environment, line 2079: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
^[[31;01m*^[[0m environment, line 2346: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
^[[31;01m*^[[0m environment, line 2051: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
^[[31;01m*^[[0m environment, line 2049: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
^[[31;01m*^[[0m environment, line 501: Called multilib-minimal_abi_src_compile
^[[31;01m*^[[0m environment, line 2073: Called multilib_src_compile
^[[31;01m*^[[0m environment, line 2566: Called die
^[[31;01m*^[[0m The specific snippet of code:
^[[31;01m*^[[0m ejam --prefix="${EPREFIX}"/usr "${OPTIONS[@]}" || die;
^[[31;01m*^[[0m
^[[31;01m*^[[0m If you need support, post the output of emerge --info '=dev-libs/boost-1.83.0-r2::gentoo',
^[[31;01m*^[[0m the complete build log and the output of emerge -pqv '=dev-libs/boost-1.83.0-r2::gentoo'.
^[[31;01m*^[[0m The complete build log is located at '/var/tmp/portage/dev-libs/boost-1.83.0-r2/temp/build.log'.
^[[31;01m*^[[0m The ebuild environment file is located at '/var/tmp/portage/dev-libs/boost-1.83.0-r2/temp/environment'.
^[[31;01m*^[[0m Working directory: '/var/tmp/portage/dev-libs/boost-1.83.0-r2/work/boost_1_83_0-abi_mips_n32.n32'
^[[31;01m*^[[0m S: '/var/tmp/portage/dev-libs/boost-1.83.0-r2/work/boost_1_83_0'
Back to top
View user's profile Send private message
emtone
n00b
n00b


Joined: 11 Apr 2017
Posts: 44

PostPosted: Sat Oct 28, 2023 4:22 am    Post subject: Reply with quote

I found that the 1.83 url Jamfile is different from 1.82 url Jamfile which can build success.
The 1.83 Jamfile:
/var/tmp/portage/dev-libs/boost-1.83.0-r2/work/boost_1_83_0-abi_mips_n32.n32/libs/url/build # cat Jamfile
...
: common-requirements
<link>shared:<define>BOOST_URL_DYN_LINK=1
<link>static:<define>BOOST_URL_STATIC_LINK=1

The 1.82 Jamfile:
/var/tmp/portage/dev-libs/boost-1.82.0-r1/work/boost_1_82_0-abi_mips_n32.n32/libs/url/build # cat Jamfile
...
: usage-requirements
<link>shared:<define>BOOST_URL_DYN_LINK=1
<link>static:<define>BOOST_URL_STATIC_LINK=1

1.83 Jamfile use "common-requirements" but 1.82 Jamfile use "usage-requirements" .
Back to top
View user's profile Send private message
emtone
n00b
n00b


Joined: 11 Apr 2017
Posts: 44

PostPosted: Sun Oct 29, 2023 2:49 am    Post subject: Reply with quote

modify 1.83 Jamfile "common-requirements" to "usage-requirements"
then cd /usr/portage/dev-libs/boost/ and run "ebuild boost-1.83.0-r2.ebuild install" and "ebuild boost-1.83.0-r2.ebuild qmerge" will success build and install.
Back to top
View user's profile Send private message
severin91
n00b
n00b


Joined: 23 Nov 2023
Posts: 2

PostPosted: Fri Nov 24, 2023 4:36 pm    Post subject: Reply with quote

emtone wrote:
modify 1.83 Jamfile "common-requirements" to "usage-requirements"
then cd /usr/portage/dev-libs/boost/ and run "ebuild boost-1.83.0-r2.ebuild install" and "ebuild boost-1.83.0-r2.ebuild qmerge" will success build and install.


Thank you. Before your solution worked for me, I also had to recompile gcc with USE-Flag "vtv".
And because I couldnt find the ebuilds, I just started "emerge boost" and as soon as the source was unpacked I copied the modified Jamfile into .../url/build.
Back to top
View user's profile Send private message
emtone
n00b
n00b


Joined: 11 Apr 2017
Posts: 44

PostPosted: Sun Dec 17, 2023 2:45 am    Post subject: Reply with quote

severin91 wrote:
emtone wrote:
modify 1.83 Jamfile "common-requirements" to "usage-requirements"
then cd /usr/portage/dev-libs/boost/ and run "ebuild boost-1.83.0-r2.ebuild install" and "ebuild boost-1.83.0-r2.ebuild qmerge" will success build and install.


Thank you. Before your solution worked for me, I also had to recompile gcc with USE-Flag "vtv".
And because I couldnt find the ebuilds, I just started "emerge boost" and as soon as the source was unpacked I copied the modified Jamfile into .../url/build.


You are welcome !
I'm glad to be able to help you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) 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