Skip to content

Build error on Ubuntu 24.10 #1066

Open
Open
@hector-cao

Description

@hector-cao

I have this build error on Ubuntu 24.10

sdk/Makefile.source

In the target:

  $(MAKE) -C tlibc/ -j$(shell nproc) 2> /dev/null                                                             

The build error:

time/strptime.c:92:1: error: type defaults to 'int' in declaration of 'DEF_WEAK' [-Wimplicit-int]
time/strptime.c:92:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
time/strptime.c: In function '_strptime':

Gcc version

gcc (Ubuntu 14.2.0-4ubuntu2) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The build flags:

g++ -Wnon-virtual-dtor -std=c++17 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -UDEBUG -DNDEBUG -ffunction-sections -fdata-sections -Wall -Wextra -Winit-self -Wpointer-arith -Wreturn-type -Waddress -Wsequence-point -Wformat-security -Wmissing-include-dirs -Wfloat-equal -Wundef -Wshadow -Wcast-align -Wconversion -Wredundant-decls -DITT_ARCH_IA64 -ffreestanding -nostdinc -fvisibility=hidden -fpie -fno-strict-overflow -fno-delete-null-pointer-checks -B/usr/local/bin -mindirect-branch-register -fcf-protection=none -mfunction-return=thunk-extern -fno-plt -Wa,-mlfence-after-load=yes -Wa,-mlfence-before-indirect-branch=memory -Wa,-mlfence-before-ret=shl -nostdinc++ -fno-exceptions -fno-rtti -I. -I/src/common/inc -I/src/common/inc/tlibc -I/src/common/inc/internal -I/src/sdk/trts -I./string/asm -I./gdtoa -c tstdc_version.cpp -o tstdc_version.o

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions