Closed swthorn closed 1 month ago
Hi, Thank you for reporting the possible bug!
The errors you get seem to be related to code that has been generated with the asn1c tool, that we use to generate the encoding/decoding functions for the ASN.1 messages, that are later integrated into the main OScar project.
However, I have just tried compiling OScar on my two Ubuntu systems, and I get no errors. The first system is running Ubuntu 20 LTS with gcc/g++ 9.4.0, and the second Ubuntu 22 LTS with gcc/g++ 11.4.0. I also get no issue when cross-compiling for OpenWrt-V2X 21.02.1: https://github.com/francescoraves483/OpenWrt-V2X
In order to try to reproduce the issue:
gcc -v
and g++ -v
, respectively.Let us know! Thank you!
I'm using GCC version 14.2.1:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,m2,objc,obj-c++,rust --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://gitlab.archlinux.org/archlinux/packaging/packages/gcc/-/issues --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.1 20240805 (GCC)
g++ -v outputs nearly the same thing:
❯ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/14.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,m2,objc,obj-c++,rust --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://gitlab.archlinux.org/archlinux/packaging/packages/gcc/-/issues --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.1 20240805 (GCC)
I'm using Arch:
❯ screenfetch
-`
.o+` swthorn@swthorn
`ooo/ OS: Arch Linux
`+oooo: Kernel: x86_64 Linux 6.8.4-2-pve
`+oooooo: Uptime: 6d 18h 40m
-+oooooo+: Packages: 458
`/:-:++oooo+: Shell: zsh 5.9
`/++++/+++++++: Disk: 146G / 502G (29%)
`/++++++++++++++: CPU: AMD EPYC 9124 16-Core @ 16x 3GHz
`/+++ooooooooooooo/` GPU: ASPEED Technology, Inc. ASPEED Graphics Family (rev 52)
./ooosssso++osssssso+` RAM: 119741MiB / 131072MiB
.oossssso-````/ossssss+`
-osssssso. :ssssssso.
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/
I installed a ubuntu distrobox:
distrobox create --name ubuntu --image ubuntu:22.04
sudo apt install libgps-dev gcc git make g++
git clone https://github.com/DriveX-devs/OScar.git && cd OScar
make -j8
works, so perhaps the problem is the GCC or g++ version.
Hi, Thank you very much for all the details, and sorry for the huge delay in checking out the issue!
The last commit on the main branch (7775f4c) should fix compilation under both gcc/g++ 13 and gcc/g++ 14.
Let us know in case you encounter any additional issue in compiling OScar!
Hi! Awesome work, I tried cloning and building the repository, but I get a bunch of ASN.1 type errors: