Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev build chain
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1146
Location: Romania

PostPosted: Wed May 03, 2023 2:39 pm    Post subject: Reply with quote

eu47 wrote:
Interesting. You may have your reasons to have that third linux in /mnt/blanc/rootfs/pi.

I only need your second linux, that in /usr/aarch64-unknown-linux-gnu.


/mnt/blanc/rootfs/pi is just a pi rootfs shared through nfs. you can use an intel, not just to build your own crossdev toolchain for distcc, you can also update your own toolchain and deps, and also, update the pi remotely. that is where that long command comes in. You can use it to update your toolchain in /usr/aarc64whatever. but you can also use to upgrade hard packages like gcc, remotely.

And I think you should also look into running qemu statically, using binfmt.d. Just for good measure. It's an invaluable tool. You can actually chroot on arm linux from intel cpu, seamlessly.
Back to top
View user's profile Send private message
eu47
n00b
n00b


Joined: 06 May 2022
Posts: 24
Location: Edmonton, Canada

PostPosted: Wed May 03, 2023 6:10 pm    Post subject: Reply with quote

axl wrote:

I didn't start with both systems being arm. I started just like you, building for PI on intel. It should work. I assume there is something else at fault here. NOT the different arch. And even that is not a problem as you can run cross platform through qemu-static.

I suggest you take a look in config.log to see what the actual error was.

So, after the above issue was fixed, I started to build an aarch64 clang with cross-emerge.
The dependencies were built successfully until dev-lang/python, which seems to be pulled as dependency of clang even if "python" useflag is not set.
python build fails at configure stage with:
Code:
configure:25189: checking for device files
configure:25194: checking for /dev/ptmx
configure:25196: result: not set
configure:25198: error: set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling

Any idea what's the cause of this error?
Back to top
View user's profile Send private message
eu47
n00b
n00b


Joined: 06 May 2022
Posts: 24
Location: Edmonton, Canada

PostPosted: Wed May 03, 2023 7:14 pm    Post subject: Reply with quote

I solved the python configure problem above by altering the ebuild:

In src_prepare I added:
Code:
touch config.site
echo "ac_cv_file__dev_ptmx=no" > config.site
echo "ac_cv_file__dev_ptc=no" >> config.site


In src_configure I changed the econf line to:
Code:
CONFIG_SITE=config.site econf ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM 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