Closed dronecz closed 9 months ago
Hello,
I´m trying to make a docker image and I have this error:
#0 building with "default" instance using docker driver #1 [printer internal] load build definition from Dockerfile #1 transferring dockerfile: 4.04kB done #1 DONE 0.0s #2 [printer internal] load .dockerignore #2 transferring context: 2B done #2 DONE 0.1s #3 [printer internal] load metadata for docker.io/library/python:3.10-slim-bullseye #3 DONE 0.7s #4 [printer runner 1/19] FROM docker.io/library/python:3.10-slim-bullseye@sha256:70c88c25d2d71d55bdb72f1df802e00d7038c0be8ffe836735d32e20fd845952 #4 DONE 0.0s #5 [printer internal] load build context #5 transferring context: 1.57kB done #5 DONE 0.0s #6 [printer builder 2/9] RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests git swig virtualenv avr-libc binutils-avr build-essential cmake gcc-avr libcurl4-openssl-dev libssl-dev python3-dev python3-libgpiod && apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* #6 CACHED #7 [printer builder 3/9] WORKDIR /build #7 CACHED #8 [printer builder 4/9] RUN git clone https://github.com/klipper3d/klipper && virtualenv -p python3 /build/klippy-env && /build/klippy-env/bin/pip install -r /build/klipper/scripts/klippy-requirements.txt #8 CACHED #9 [printer builder 5/9] COPY config/simulavr.config /usr/src #9 CACHED #10 [printer runner 8/19] RUN chmod +x /bin/service_control #10 CACHED #11 [printer runner 6/19] COPY scripts/service_control.sh /bin/service_control #11 CACHED #12 [printer runner 7/19] RUN chmod +x /bin/start #12 CACHED #13 [printer runner 4/19] COPY config/supervisord.conf /etc/supervisor/supervisord.conf #13 CACHED #14 [printer runner 2/19] RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests git build-essential supervisor sudo curl iproute2 libcurl4-openssl-dev liblmdb-dev libopenjp2-7 libsodium-dev libssl-dev && apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* #14 CACHED #15 [printer runner 3/19] RUN groupadd --force -g 1000 printer && useradd -rm -d /home/printer -g 1000 -u 1000 printer && usermod -aG dialout,tty,sudo printer && echo 'printer ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers.d/printer #15 CACHED #16 [printer runner 5/19] COPY scripts/start.sh /bin/start #16 CACHED #17 [printer runner 9/19] WORKDIR /home/printer #17 CACHED #18 [printer builder 6/9] RUN git clone -b master https://git.savannah.nongnu.org/git/simulavr.git && cd klipper && cp /usr/src/simulavr.config .config && make PYTHON=python3 && cp out/klipper.elf /build/simulavr.elf && rm -f .config && make PYTHON=python3 clean && cd ../simulavr && make python && make build && make clean #18 0.334 Cloning into 'simulavr'... #18 3.850 Creating symbolic link out/board #18 3.874 Building out/autoconf.h #18 4.088 Compiling out/src/sched.o #18 4.175 Compiling out/src/command.o #18 4.275 Compiling out/src/basecmd.o #18 4.386 Compiling out/src/debugcmds.o #18 4.425 Compiling out/src/initial_pins.o #18 4.456 Compiling out/src/gpiocmds.o #18 4.533 Compiling out/src/stepper.o #18 4.626 Compiling out/src/endstop.o #18 4.673 Compiling out/src/trsync.o #18 4.747 Compiling out/src/adccmds.o #18 4.800 Compiling out/src/spicmds.o #18 4.863 Compiling out/src/i2ccmds.o #18 4.917 Compiling out/src/pwmcmds.o #18 4.976 Compiling out/src/buttons.o #18 5.038 Compiling out/src/tmcuart.o #18 5.124 Compiling out/src/neopixel.o #18 5.196 Compiling out/src/pulse_counter.o #18 5.243 Compiling out/src/lcd_st7920.o #18 5.310 Compiling out/src/lcd_hd44780.o #18 5.373 Compiling out/src/spi_software.o #18 5.416 Compiling out/src/i2c_software.o #18 5.517 Compiling out/src/thermocouple.o #18 5.580 Compiling out/src/sensor_adxl345.o #18 5.635 Compiling out/src/sensor_angle.o #18 5.739 Compiling out/src/sensor_mpu9250.o #18 5.799 Compiling out/src/avr/main.o #18 5.837 Compiling out/src/avr/timer.o #18 5.892 Compiling out/src/avr/gpio.o #18 5.954 Compiling out/src/avr/adc.o #18 5.996 Compiling out/src/avr/spi.o #18 6.040 Compiling out/src/avr/i2c.o #18 6.096 Compiling out/src/avr/hard_pwm.o #18 6.147 Compiling out/src/avr/watchdog.o #18 6.182 Compiling out/src/avr/serial.o #18 6.218 Compiling out/src/generic/serial_irq.o #18 6.314 Building out/compile_time_request.o #18 6.589 Version: v0.12.0-93-g43a9685c #18 6.690 Linking out/klipper.elf #18 6.725 out/src/sensor_angle.o: In function `command_query_spi_angle': #18 6.725 /build/klipper/src/sensor_angle.c:232: undefined reference to `sensor_bulk_reset' #18 6.725 out/src/sensor_angle.o: In function `angle_check_report': #18 6.725 /build/klipper/src/sensor_angle.c:82: undefined reference to `sensor_bulk_report' #18 6.725 /build/klipper/src/sensor_angle.c:82: undefined reference to `sensor_bulk_report' #18 6.725 out/src/sensor_adxl345.o: In function `command_query_adxl345': #18 6.725 /build/klipper/src/sensor_adxl345.c:124: undefined reference to `sensor_bulk_reset' #18 6.725 out/src/sensor_adxl345.o: In function `command_query_adxl345_status': #18 6.725 /build/klipper/src/sensor_adxl345.c:143: undefined reference to `sensor_bulk_status' #18 6.725 out/src/sensor_adxl345.o: In function `adxl_query': #18 6.725 /build/klipper/src/sensor_adxl345.c:97: undefined reference to `sensor_bulk_report' #18 6.725 out/src/sensor_mpu9250.o: In function `command_query_mpu9250': #18 6.725 /build/klipper/src/sensor_mpu9250.c:132: undefined reference to `sensor_bulk_reset' #18 6.725 out/src/sensor_mpu9250.o: In function `command_query_mpu9250_status': #18 6.725 /build/klipper/src/sensor_mpu9250.c:161: undefined reference to `sensor_bulk_status' #18 6.725 out/src/sensor_mpu9250.o: In function `mp9250_query': #18 6.725 /build/klipper/src/sensor_mpu9250.c:102: undefined reference to `sensor_bulk_report' #18 6.726 collect2: error: ld returned 1 exit status #18 6.727 make: *** [Makefile:72: out/klipper.elf] Error 1 #18 ERROR: process "/bin/sh -c git clone -b master https://git.savannah.nongnu.org/git/simulavr.git && cd klipper && cp /usr/src/simulavr.config .config && make PYTHON=python3 && cp out/klipper.elf /build/simulavr.elf && rm -f .config && make PYTHON=python3 clean && cd ../simulavr && make python && make build && make clean" did not complete successfully: exit code: 2 ------ > [printer builder 6/9] RUN git clone -b master https://git.savannah.nongnu.org/git/simulavr.git && cd klipper && cp /usr/src/simulavr.config .config && make PYTHON=python3 && cp out/klipper.elf /build/simulavr.elf && rm -f .config && make PYTHON=python3 clean && cd ../simulavr && make python && make build && make clean: 6.725 out/src/sensor_adxl345.o: In function `adxl_query': 6.725 /build/klipper/src/sensor_adxl345.c:97: undefined reference to `sensor_bulk_report' 6.725 out/src/sensor_mpu9250.o: In function `command_query_mpu9250': 6.725 /build/klipper/src/sensor_mpu9250.c:132: undefined reference to `sensor_bulk_reset' 6.725 out/src/sensor_mpu9250.o: In function `command_query_mpu9250_status': 6.725 /build/klipper/src/sensor_mpu9250.c:161: undefined reference to `sensor_bulk_status' 6.725 out/src/sensor_mpu9250.o: In function `mp9250_query': 6.725 /build/klipper/src/sensor_mpu9250.c:102: undefined reference to `sensor_bulk_report' 6.726 collect2: error: ld returned 1 exit status 6.727 make: *** [Makefile:72: out/klipper.elf] Error 1 ------
Does anybody encounter a similar issue?
This looks more like a Klipper issue itself while compiling the Klipper firmware.
Hello,
I´m trying to make a docker image and I have this error:
Does anybody encounter a similar issue?