Lib32bz2-1.0 no longer available on Debian


#1

Continuing the discussion from Installing on Linux:

It seems lib32bz2-1.0 is being dropped from both Debian (as it's not on my system) and Ubuntu (as I found http://askubuntu.com/questions/637113/unable-to-locate-package-lib32bz2-1-0).

Perhaps we should extend the documentation to mention multiarch as an alternative? so 'apt-get install zlib1g:i386 libncurses5:i386 libbz2-1.0:i386'?

(I haven't tested this, haven't gotten so far yet, but it seems reasonable to me)


Axoloti software installation (ubuntu 32bit)
#2

yeah, someone will need to test this, as I guess this is going to need something like 15.04 to fix this.

if this is indeed true, and also the fix, then the build.sh will also need to be updated.


#3

We ran in to this during CCC as well.

Removing this package from the apt-line in the build.sh was adequate to make the script finish with success (I'm running the patcher as we speak).


#4

Yeah removing will allow build.sh to finish, but you then need to manually install these ( hmm need to remember what fails without ... It's one of the dependent libraries)


Axoloti software installation (ubuntu 32bit)
#5

Hmm, I haven't run in to anything that was dependent on it so far.


#6

I did, hence why I added it to the build.sh smile

did you have a clean machine? I added it after installing a fresh ubuntu 14.04 image and it failed to find some dependancies. I'll try to check the github version history, perhaps I commented on why.
(given i added it to the user guide, id assume its to to with java.... but perhaps dependent on java version.. but thats a guess at this stage)


#7

Dunno if this is still a live question, but: the right package to install post 14.xx is libbz2-1.0:i386. I have yet to test build.sh yet, though.


#8

Just did a fresh install on ubuntu 18.04.1
As expected, libbz2-1.0 is not available, but replacing it with libbz2-1.0:i386 works fine


#9

Hello, I installed libbz2-1.0:i386 as suggested here, but I still get:
make: *** [/home/tim/axoloti/build/xpatch.h.gch] Error 127
Makefile.patch:53: recipe for target '/home/tim/axoloti/build/xpatch.h.gch' failed
shell task failed, exit value: 2
Compiling patch failed ( untitled )
Control transfer failed: -9
Ping: WaitSync Timeout, disconnecting now
Disconnect request

any suggestions?
Thanks,
Tim


#10

sorry, maybe the problem is yet something else;
arm-none-eabi-g++: Command not found
is what it says...
gr,
Tim


#11

not sure what I'm overlooking here.
after doing:
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt-get update
sudo apt-get install gcc-arm-embedded
i get:
Axoloti version : 1.0.12-2-0-g7975cc87 build time : 09/04/2018 13:05:40 UTC
Link to firmware CRC E95BAC96
Status: factory (1.0.12,anon) : OK ( 1.0.12,clean )
Status : home : OK
Status: community (1.0.12,anon) : OK ( 1.0.12,clean )
USB device found
connected
Authentic Axoloti Core
search path : /home/tim/axoloti/axoloti-factory/objects
Firmware version: 1.0.0.1, crc=0xE95BAC96, entrypoint=0x20011000
search path : /home/tim/axoloti/objects
search path : /home/tim/axoloti/axoloti-contrib/objects
finished loading objects
Generate code complete
Creating directory on sdcard : /untitled
Done creating directory
Changing working directory on sdcard : /untitled
Done changing working directory
Start compiling patch
Compiling patch... with /opt/Axoloti/app/firmware
BDIR = /home/tim/axoloti/build
FIRMWARE = .
Build precompiled header
arm-none-eabi-g++ -nostdlib -fno-exceptions -fno-rtti -mcpu=cortex-m4 -O3 -fomit-frame-pointer -falign-functions=16 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Wunused-parameter -DCORTEX_USE_FPU=TRUE -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB -std=c++11 -DARM_MATH_CM4 -D__FPU_PRESENT -fno-math-errno -fno-threadsafe-statics -fno-use-cxa-atexit -Wno-unused-parameter -I/opt/Axoloti/app/CMSIS/Include -I/opt/Axoloti/app/CMSIS/DSP_Lib/Include -I/opt/Axoloti/app/chibios/os/ports/common/ARMCMx/CMSIS/include -I/opt/Axoloti/app/chibios/os/ports/common/ARMCMx -I/opt/Axoloti/app/chibios/os/ports/GCC/ARMCMx -I/opt/Axoloti/app/chibios/os/ports/GCC/ARMCMx/STM32F4xx -I/opt/Axoloti/app/chibios/os/kernel/include -I/opt/Axoloti/app/chibios/os/hal/include -I/opt/Axoloti/app/chibios/os/hal/platforms/STM32F4xx -I/opt/Axoloti/app/chibios/os/hal/platforms/STM32 -I/opt/Axoloti/app/chibios/os/hal/platforms/STM32/GPIOv2 -I/opt/Axoloti/app/chibios/os/hal/platforms/STM32/I2Cv1 -I/opt/Axoloti/app/chibios/os/hal/platforms/STM32/OTGv1 -I/opt/Axoloti/app/chibios/os/hal/platforms/STM32/RTCv2 -I/opt/Axoloti/app/chibios/os/hal/platforms/STM32/SPIv1 -I/opt/Axoloti/app/chibios/os/hal/platforms/STM32/TIMv1 -I/opt/Axoloti/app/chibios/os/hal/platforms/STM32/USARTv1 -I/opt/Axoloti/app/chibios/boards/ST_STM32F4_DISCOVERY -I/opt/Axoloti/app/chibios/ext/fatfs/src -I. -I/opt/Axoloti/app/chibios -I./mutable_instruments -Winvalid-pch -MD -MP -c ./xpatch.h -o /home/tim/axoloti/build/xpatch.h.gch
In file included from ./axoloti.h:24:0,
from ./xpatch.h:3:
./axoloti_math.h:180:0: warning: "RAND_MAX" redefined
#define RAND_MAX INT32_MAX

In file included from /usr/arm-none-eabi/include/c++/7.3.1/bits/std_abs.h:38:0,
from /usr/arm-none-eabi/include/c++/7.3.1/cmath:47,
from /usr/arm-none-eabi/include/c++/7.3.1/math.h:36,
from /usr/arm-none-eabi/include/fastmath.h:7,
from ./axoloti.h:21,
from ./xpatch.h:3:
/usr/arm-none-eabi/include/stdlib.h:63:0: note: this is the location of the previous definition
#define RAND_MAX _RANDMAX

In file included from ./axoloti.h:24:0,
from ./xpatch.h:3:
./axoloti_math.h: In function 'int rand()':
./axoloti_math.h:181:57: error: 'int rand()' was declared 'extern' and later 'static' [-fpermissive]
attribute ( ( always_inline ) ) _STATICINLINE int rand(void) {
^~~~
In file included from /usr/arm-none-eabi/include/c++/7.3.1/bits/std_abs.h:38:0,
from /usr/arm-none-eabi/include/c++/7.3.1/cmath:47,
from /usr/arm-none-eabi/include/c++/7.3.1/math.h:36,
from /usr/arm-none-eabi/include/fastmath.h:7,
from ./axoloti.h:21,
from ./xpatch.h:3:
/usr/arm-none-eabi/include/stdlib.h:140:5: note: previous declaration of 'int rand()'
int rand (void);
^~~~
make: *** [/home/tim/axoloti/build/xpatch.h.gch] Error 1
Makefile.patch:53: recipe for target '/home/tim/axoloti/build/xpatch.h.gch' failed
shell task failed, exit value: 2
Compiling patch failed ( untitled )


#12

Here's what I am running:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

You should not have to install the gcc cortex-m compiler separately.
The install/build script pulls it down and puts in the expected place.

See: axoloti/platform_linux/build.sh

I'm not sure what's wrong with your install - but feel free to look a couple of patches I made to the base axoloti tarball I needed to make it work on my system.


#13

I've just installed the latest Ubuntu.. 18.04.2 LTS and had trouble installing the required libraries after installing the axoloti runtime and patcher. Said some of them weren't available eg. lib32bz2-1.0. I ignored this and the patcher ran. Problem is when I went Live with patches there were a few errors I encountered in the axoloti log window. I don't know enough about linux to know what happened. I had a hunch it may have to do with skipping the installation of these libraries.

I did as raboof suggested.

apt-get install zlib1g:i386 libncurses5:i386 libbz2-1.0:i386

Seemed to have fixed the issues I was having, the patcher works great, and now my patch goes live and all.

So thumbs up regarding this change. Perhaps the install documentation could make a note of this.

I'm pretty rusty with linux and with axoloti patching. It feels good to be back.


SOLVED Problem on Debian 9, PLEASE HELP!
#14

Also works in ubuntu studio 20.