Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems compiling on gentoo #71

Open
siffland opened this issue Nov 2, 2012 · 2 comments
Open

Problems compiling on gentoo #71

siffland opened this issue Nov 2, 2012 · 2 comments

Comments

@siffland
Copy link

siffland commented Nov 2, 2012

I would really like to get this compiled on gentoo (the portage overlay does not work). I have gotten around most issues but am stuck on this latest:

-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST -isystem/var/tmp//usr/include -isystem/var/tmp//opt/vc/include -isystem/usr/arm-bcm2708-linux-gnueabi/sys-root/usr/include -isystem/var/tmp//opt/vc/include/interface/vcos/pthreads -isystem/var/tmp//usr/include/freetype2 -isystem/usr/include -isystem/opt/vc/include -isystem/opt/vc/include/interface/vcos/pthreads/ -isystem/usr/include/freetype2/ -I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ -c OMXPlayerSubtitles.cpp -o OMXPlayerSubtitles.o -Wno-deprecated-declarations In file included from OMXPlayerSubtitles.cpp:23:0: Enforce.h:49:15: error: looser throw specifier for 'virtual const char\* Enforce_error::what() const' /usr/lib/gcc/armv6j-hardfloat-linux-gnueabi/4.5.4/include/g++-v4/exception:69:25: error: overriding 'virtual const char\* std::exception::what() const throw ()' Enforce.h:35:45: error: looser throw specifier for 'virtual Enforce_error::~Enforce_error()' /usr/lib/gcc/armv6j-hardfloat-linux-gnueabi/4.5.4/include/g++-v4/exception:65:13: error: overriding 'virtual std::exception::~exception() throw ()' make: **\* [OMXPlayerSubtitles.o] Error 1

I have not modified the Makefile at all and here is my modified Makefile.include

USE_BUILDROOT=0 FLOAT=hard

ifeq ($(USE_BUILDROOT), 1)
BUILDROOT :=/opt/xbmc-bcm/buildroot
SDKSTAGE :=$(BUILDROOT)/output/staging
TARGETFS :=$(BUILDROOT)/output/target
TOOLCHAIN :=$(BUILDROOT)/output/host/usr/
HOST :=arm-unknown-linux-gnueabi
SYSROOT :=$(BUILDROOT)/output/host/usr/arm-unknown-linux-gnueabi/sysroot
else
BUILDROOT :=/var/tmp/
SDKSTAGE :=/var/tmp/
TARGETFS :=/var/tmp/
TOOLCHAIN :=/usr
HOST :=bcm2708
SYSROOT :=$(TOOLCHAIN)/arm-bcm2708-linux-gnueabi/sys-root
endif

JOBS=7

CFLAGS := -isystem$(PREFIX)/include
CXXFLAGS := $(CFLAGS)
CPPFLAGS := $(CFLAGS)
LDFLAGS := -L$(BUILDROOT)/lib
LD := $(TOOLCHAIN)/bin/ld --sysroot=$(SYSROOT)
CC := $(TOOLCHAIN)/bin/g++ --sysroot=$(SYSROOT)
CXX := $(TOOLCHAIN)/bin/g++ --sysroot=$(SYSROOT)
OBJDUMP := $(TOOLCHAIN)/bin/objdump
RANLIB := $(TOOLCHAIN)/bin/ranlib
STRIP := $(TOOLCHAIN)/bin/strip
AR := $(TOOLCHAIN)/bin/ar
CXXCP := $(CXX) -E
PATH := $(PREFIX)/bin:$(BUILDROOT)/output/host/usr/bin:$(PATH)

CFLAGS += -pipe -mfloat-abi=$(FLOAT) -mcpu=arm1176jzf-s -fomit-frame-pointer -mabi=aapcs-linux -mtune=arm1176jzf-s -mfpu=vfp -Wno-psabi -mno-apcs-stack-check -O3 -mstructure-size-boundary=32 -mno-sched-prolog
LDFLAGS += -L$(SDKSTAGE)/lib -L$(SDKSTAGE)/usr/lib -L$(SDKSTAGE)/opt/vc/lib/
INCLUDES += -isystem$(SDKSTAGE)/usr/include -isystem$(SDKSTAGE)/opt/vc/include -isystem$(SYSROOT)/usr/include -isystem$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads -isystem$(SDKSTAGE)/usr/include/freetype2 -isystem/usr/include -isystem/opt/vc/include -isystem/opt/vc/include/interface/vcos/pthreads/ -isystem/usr/include/freetype2/

Any help would be appreciated. I updated my GIT repository last night and did a rpi-update to ensure the latest firmware.

Thanks,

Sean

@torarin
Copy link
Contributor

torarin commented Nov 2, 2012

You will have to use GCC 4.6 or above.

@Bigun
Copy link

Bigun commented Nov 16, 2012

I've actually addressed this issue in Gentoo bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=421683

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants