ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
10.46k stars 17.11k forks source link

Ubuntu 24.04 environment issue #27157

Closed Blake-West closed 1 month ago

Blake-West commented 3 months ago

Bug report

./install-prereqs-ubuntu.sh fails on Ubuntu 24.04 Distributor ID: Ubuntu Description: Ubuntu 24.04 LTS Release: 24.04 Codename: noble

Please describe the problem

C++ internal segmentation fault when building wxpython Version master:8a58affe242eb77fb3872cc77a701c6b726332f6

Platform [ X ] All [ ] AntennaTracker [ ] Copter [ ] Plane [ ] Rover [ ] Submarine

Airframe type N/A

Hardware type N/A

Logs environment_install_error.txt

Blake-West commented 3 months ago

Any suggestions mentioned. I'll be happy to look into / work on.

khancyr commented 3 months ago

Thanks for reporting this. It looks like it compile fine on CI, so we will need to dig out what is the diff

peterbarker commented 1 month ago

@Blake-West try forcing a different compiler type; unless you want to dip your toes into compiler development, not much else is going to fix an internal compiler error!

Setting CC and CXX in the environment should be sufficient to try a different compiler.

peterbarker commented 1 month ago

@Blake-West I just did a vagrant up noble here, and it brings up the environment OK, including the compilation of wx

(venv-ardupilot) vagrant@vagrant:/vagrant/ArduCopter(master)$ dpkg -l | grep g++ii  g++                                   4:13.2.0-7ubuntu1                       amd64        GNU C++ compiler
ii  g++-13                                13.2.0-23ubuntu4                        amd64        GNU C++ compiler
ii  g++-13-arm-linux-gnueabihf            13.2.0-23ubuntu4cross1                  amd64        GNU C++ compiler for arm-linux-gnueabihf architecture
ii  g++-13-x86-64-linux-gnu               13.2.0-23ubuntu4                        amd64        GNU C++ compiler for x86_64-linux-gnu architecture
ii  g++-arm-linux-gnueabihf               4:13.2.0-7ubuntu1                       amd64        GNU C++ compiler for the armhf architecture
ii  g++-x86-64-linux-gnu                  4:13.2.0-7ubuntu1                       amd64        GNU C++ compiler for the amd64 architecture
peterbarker commented 1 month ago

@Blake-West please also try an apt update && apt dist-upgrade

@Blake-West ... or have you already solved this?

Blake-West commented 1 month ago

Apologies. I did a clean install of ubuntu24 again. Followed the typical installation instructions and no errors arose as I've typically expected.

Not sure what could have been the issue; maybe new intel CPUs being dodgy?

Regardless, everything seems to be in working order.

khancyr commented 1 month ago

could happens with a bad packet or anything. thanks to confirm that everything is ok now. We will close this.