Coder Social home page Coder Social logo

Build failures under GCC 10 about mp4v2 HOT 7 OPEN

techsmith avatar techsmith commented on July 22, 2024
Build failures under GCC 10

from mp4v2.

Comments (7)

felixonmars avatar felixonmars commented on July 22, 2024 1

FYI: I am using -Wno-narrowing for now.

from mp4v2.

slvr32 avatar slvr32 commented on July 22, 2024

Just FYI, I successfully built mp4v2-2.1.0 with gcc/g++ 10.2 on a Slackware64-current (20210320) install as follows...

$ gzip -dc mp4v2-2.1.0.tar.gz | tar xvf -
$ cd mp4v2-2.1.0
$ CXXFLAGS="-std=gnu++98" ./configure --prefix=/my/favorite/prefix
$ make

(success)

from mp4v2.

felixonmars avatar felixonmars commented on July 22, 2024

@slvr32 Thanks. Unfortunately that's a different problem and we are using that patch already as well.

Adding CXXFLAGS="-std=gnu++98" as you suggested makes the error worse (error: ‘nullptr’ was not declared in this scope/identifier ‘nullptr’ is a keyword in C++11 [-Wc++11-compat]).

from mp4v2.

slvr32 avatar slvr32 commented on July 22, 2024

@felixonmars

I edited my original comment a couple of times, but I ended up having success without any patch, and just the details in my current edited comment.

I also qualified the details of my system, since you didn't mention specifics about yours..

from mp4v2.

felixonmars avatar felixonmars commented on July 22, 2024

Thanks for the info. I am building mp4v2 4.1.4 (& packaging) on latest Arch Linux x86_64, with gcc/g++ 10.2.0.

from mp4v2.

mathpopo avatar mathpopo commented on July 22, 2024

util/mp4art.cpp: In member function 'virtual bool mp4v2::util::ArtUtility::utility_option(int, bool&)':
util/mp4art.cpp:380:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_ART_ANY' from 'unsigned int' to 'int' [-Wnarrowing]
380 | case LC_ART_ANY:
| ^~~~~~~~~~
util/mp4art.cpp:384:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_ART_INDEX' from 'unsigned int' to 'int' [-Wnarrowing]
384 | case LC_ART_INDEX:
| ^~~~~~~~~~~~
util/mp4art.cpp:393:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_LIST' from 'unsigned int' to 'int' [-Wnarrowing]
393 | case LC_LIST:
| ^~~~~~~
util/mp4art.cpp:397:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_ADD' from 'unsigned int' to 'int' [-Wnarrowing]
397 | case LC_ADD:
| ^~~~~~
util/mp4art.cpp:404:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_REMOVE' from 'unsigned int' to 'int' [-Wnarrowing]
404 | case LC_REMOVE:
| ^~~~~~~~~
util/mp4art.cpp:408:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_REPLACE' from 'unsigned int' to 'int' [-Wnarrowing]
408 | case LC_REPLACE:
| ^~~~~~~~~~
util/mp4art.cpp:415:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_EXTRACT' from 'unsigned int' to 'int' [-Wnarrowing]
415 | case LC_EXTRACT:
| ^~~~~~~~~~
make: *** [GNUmakefile:1376: util/mp4art.o] Error 1
make: *** Waiting for unfinished jobs....
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_chpl.cpp -o src/atom_chpl.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_amr.cpp -o src/atom_amr.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/3gp.cpp -o src/3gp.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_avc1.cpp -o src/atom_avc1.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_ac3.cpp -o src/atom_ac3.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_colr.cpp -o src/atom_colr.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_avcC.cpp -o src/atom_avcC.o >/dev/null 2>&1
root@eaaff158c96c:/docker/mp4v2# gcc --version
gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
Copyright (C) 2021 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.

from mp4v2.

mathpopo avatar mathpopo commented on July 22, 2024

CXXFLAGS="-std=gnu++98" can solve isue

from mp4v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.