RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

[i386] Compilation fail in old distros (Ubuntu 14.04)

Open sergiobenrocha2 opened this issue 7 years ago • 5 comments

This is a minor issue since it's affecting only old Ubuntu versions in i386 arch, such as 14.04

In file included from libretro-common/audio/audio_mixer.c:52:0:
./deps/dr/dr_flac.h: In function ‘drflac_open_with_metadata_private’:
./deps/dr/dr_flac.h:673:17: error: PIC register clobbered by ‘ebx’ in ‘asm’
                 __asm__ (
                 ^
./deps/dr/dr_flac.h:673:17: error: PIC register clobbered by ‘ebx’ in ‘asm’
                 __asm__ (
                 ^

https://launchpadlibrarian.net/370762888/buildlog_ubuntu-trusty-i386.retroarch_1.7.3-r201805180210-3c1c675-78~ubuntu14.04.1_BUILDING.txt.gz

sergiobenrocha2 avatar May 18 '18 02:05 sergiobenrocha2

See if this solves it -

https://github.com/libretro/RetroArch/commit/9dea722c39d81bc770647183c66820a5d4f8fddb

inactive123 avatar May 18 '18 03:05 inactive123

Different error:

/usr/bin/gcc -D_FORTIFY_SOURCE=2 -g -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -msse -msse2 -DHAVE_FILE_LOGGER -DHAVE_SHADERPIPELINE -I./libretro-common/include -I./deps -DHAVE_DR_MP3 -I./deps/7zip -DHAVE_DR_FLAC -DHAVE_FLAC -I./deps/libFLAC/include -I./libretro-common/formats/libchdr -Wall -O3 -ffast-math -I./deps/7zip -I. -Ideps -Ideps/stb -std=gnu99 -D_GNU_SOURCE -Wno-unused-result -Wno-unused-variable -DHAVE_CONFIG_H -DRARCH_INTERNAL -D_FILE_OFFSET_BITS=64 -DGLOBAL_CONFIG_DIR='"/etc"' -DHAVE_VIDEO_PROCESSOR -DHAVE_HID -DHAVE_LIBRETRODB -DHAVE_DYLIB -DHAVE_GIT_VERSION -DGIT_VERSION=' 9dea722' -DHAVE_DR_MP3 -DHAVE_RUNAHEAD -DHAVE_CC_RESAMPLER -DHAVE_LANGEXTRA -finput-charset=UTF-8 -DHAVE_IMAGEVIEWER -I/usr/include/qt5/QtCore -I/usr/include/qt5 -I/usr/include/qt5/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtWidgets -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/include/qt5/QtGui -DHAVE_MAIN -fPIC -DHAVE_COMMAND -DHAVE_STDIN_CMD -I/usr/include/alsa -DHAVE_TINYALSA  -D_REENTRANT -DHAVE_MENU -DHAVE_RGUI -DHAVE_MATERIALUI -DHAVE_XMB -DHAVE_OVERLAY -DHAVE_STB_FONT -I/usr/include/freetype2 -DHAVE_THREADS -DHAVE_THREAD_STORAGE   -DHAVE_X11        -DHAVE_LIBUSB -DHAVE_HID  -I/usr/include/libdrm -I/usr/include/libdrm -DHAVE_OPENGL -DHAVE_GLSL -I/usr/include/libdrm -DHAVE_GL_SYNC -DHAVE_GLSL -DHAVE_EGL -I/usr/include/libdrm -D_REENTRANT -I/usr/include/SDL2   -DHAVE_CG -DHAVE_7ZIP -D_7ZIP_ST -DHAVE_IBXM -DHAVE_DR_FLAC -I./deps -DHAVE_STDINT_H -DHAVE_LROUND -DFLAC__HAS_OGG=0 -DFLAC_PACKAGE_VERSION="\"retroarch\"" -DHAVE_ZLIB -DHAVE_CHD -DWANT_SUBCODE -DWANT_RAW_DATA_SECTOR -DHAVE_RTGA -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_COMPRESSION -DHAVE_V4L2 -DHAVE_NETWORKING -DHAVE_NETWORK_CMD -DHAVE_CHEEVOS -DHAVE_MINIUPNPC -DHAVE_BUILTINMINIUPNPC -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -I./deps -DHAVE_COMPRESSION -MMD -c -o obj-unix/release/runahead/mem_util.o runahead/mem_util.c
./deps/dr/dr_flac.h:673:17: error: inconsistent operand constraints in an ‘asm’
                 __asm__ __volatile__ (
                 ^
./deps/dr/dr_flac.h:673:17: error: inconsistent operand constraints in an ‘asm’
                 __asm__ __volatile__ (
                 ^

https://launchpadlibrarian.net/370769047/buildlog_ubuntu-trusty-i386.retroarch_1.7.3-r201805180342-9dea722-78~ubuntu14.04.1_BUILDING.txt.gz

sergiobenrocha2 avatar May 18 '18 03:05 sergiobenrocha2

Hi @sergiobenrocha2 , what's the current status on this?

inactive123 avatar Oct 18 '18 04:10 inactive123

Still an issue

n file included from libretro-common/audio/audio_mixer.c:52:0:
./deps/dr/dr_flac.h: In function ‘drflac_open_with_metadata_private.constprop.47’:
./deps/dr/dr_flac.h:673:17: error: inconsistent operand constraints in an ‘asm’
                 __asm__ __volatile__ (
                 ^
./deps/dr/dr_flac.h:673:17: error: inconsistent operand constraints in an ‘asm’
                 __asm__ __volatile__ (
                 ^

https://launchpadlibrarian.net/393929181/buildlog_ubuntu-trusty-i386.retroarch_1.7.5-r201810190133-6ad2727-82~ubuntu14.04.1_BUILDING.txt.gz

sergiobenrocha2 avatar Oct 19 '18 02:10 sergiobenrocha2

@sergiobenrocha2 I think we can close this issue as we have 32 bits build ? Thank you.

gouchi avatar Aug 13 '24 15:08 gouchi