Actions
Bug #4686
closedlibosmocore fails to build with arm-none-eabi-gcc on Debian unstable
Start date:
07/30/2020
Due date:
% Done:
100%
Spec Reference:
Description
For some strnage reason, PRIu64 is not defined, which makes libosmocore builds fail in gsm0411_smc.c and gsm0411_smr.c.
We do include inttypes.h, and moving it to the top of the file doens't help. either.
Updated by laforge almost 4 years ago
I also have build issues under Debian9 on my local machine, but interesingly our jenkins build slave still manages to build osmo-ccid-firmware, including the cross-compiled libosmocore, see https://jenkins.osmocom.org/jenkins/job/gerrit-osmo-ccid-firmware/570/a1=default,a2=default,a3=default,a4=default,label=osmocom-gerrit-debian9/console
Updated by laforge almost 4 years ago
using
./configure --enable-static --prefix="$inst/stow/libosmocore" --host=arm-none-eabi \ --enable-embedded --disable-doxygen --disable-shared --disable-pseudotalloc \ --disable-libsctp --disable-libusb --disable-gb --enable-external-tests \ CFLAGS="-Os -ffunction-sections -fdata-sections -nostartfiles -nodefaultlibs -Werror -Wno-error=deprecated -Wno-error=deprecated-declarations -Wno-error=cpp -mthumb -Os -mlong-calls -g3 -mcpu=cortex-m4 -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -Wno-error=format
on debian unstable, I get:
CC auth_core.lo In file included from gsm0411_smr.c:56: gsm0411_smr.c: In function 'gsm411_smr_init': gsm0411_smr.c:65:29: error: expected ')' before 'PRIu64' #define SMR_LOG_STR "SMR(%" PRIu64 ") " ^~~~~~ ../../include/osmocom/core/logging.h:95:54: note: in definition of macro 'LOGPSRCC' logp2(ss, level, caller_file, caller_line, cont, fmt, ##args); \ ^~~ ../../include/osmocom/core/logging.h:49:2: note: in expansion of macro 'LOGPSRC' LOGPSRC(ss, level, NULL, 0, fmt, ## args) ^~~~~~~ gsm0411_smr.c:89:2: note: in expansion of macro 'LOGP' LOGP(DLSMS, LOGL_INFO, ^~~~ gsm0411_smr.c:90:3: note: in expansion of macro 'SMR_LOG_STR' SMR_LOG_STR "instance created for %s.\n", ^~~~~~~~~~~ In file included from gsm0411_smc.c:58: gsm0411_smc.c: In function 'gsm411_smc_init': gsm0411_smc.c:75:29: error: expected ')' before 'PRIu64' #define SMC_LOG_STR "SMC(%" PRIu64 ") " ^~~~~~
Updated by laforge almost 4 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 90
Updated by laforge almost 4 years ago
- Status changed from In Progress to Resolved
- % Done changed from 90 to 100
patch merged
Actions