Lmms: build failure: relocatable linking with relocations from format elf64-x86-64 to format elf32-i386 is not supported

Created on 14 Jan 2014  Â·  15Comments  Â·  Source: LMMS/lmms

attempting to build the latest stable-0.4 branch (why is there no master?) yields:

...
[ 86%] Generating RemoteVstPlugin
/usr/bin/ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/x86_64-linux-gnu/wine/libwinecrt0.a(exe_entry.o)) to format elf32-i386 (RemoteVstPlugin.chYryi.o) is not supported
winebuild: /usr/bin/ld failed with status 1
winegcc: winebuild failed
make[2]: *** [plugins/vst_base/RemoteVstPlugin] Error 2
make[1]: *** [plugins/vst_base/CMakeFiles/vstbase.dir/all] Error 2
make: *** [all] Error 2

platform: Ubuntu 13.10 Saucy (latest stable)

cmake output:

andy@andy-bx:~/dev/lmms/build$ cmake ..
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
PROCESSOR: x86_64
Machine: x86_64-linux-gnu
-- Target host is 64 bit
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for include file semaphore.h
-- Looking for include file semaphore.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file sys/ipc.h
-- Looking for include file sys/ipc.h - found
-- Looking for include file sys/shm.h
-- Looking for include file sys/shm.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/wait.h
-- Looking for include file sys/wait.h - found
-- Looking for include file sys/select.h
-- Looking for include file sys/select.h - found
-- Looking for include file stdarg.h
-- Looking for include file stdarg.h - found
-- Looking for include file signal.h
-- Looking for include file signal.h - found
-- Looking for include file sched.h
-- Looking for include file sched.h - found
-- Looking for include file sys/soundcard.h
-- Looking for include file sys/soundcard.h - found
-- Looking for include file soundcard.h
-- Looking for include file soundcard.h - not found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file sys/ioctl.h
-- Looking for include file sys/ioctl.h - found
-- Looking for include file ctype.h
-- Looking for include file ctype.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file process.h
-- Looking for include file process.h - not found
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/bin/qmake-qt4 (found suitable version "4.8.4", minimum required is "4.3.0;COMPONENTS;QtCore;QtGui;QtXml") 
-- Found Qt translations in /usr/share/qt4/translations
-- checking for module 'sndfile>=1.0.11'
--   found sndfile, version 1.0.25
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found SDL: /usr/lib/x86_64-linux-gnu/libSDL.so;-lpthread (found version "1.2.15") 
-- Found STK: /usr/lib/x86_64-linux-gnu/libstk.so
-- checking for module 'portaudio-2.0'
--   package 'portaudio-2.0' not found
-- checking for module 'libpulse'
--   found libpulse, version 4.0
-- Found PulseAudio Simple: /usr/lib/x86_64-linux-gnu/libpulse.so
-- Looking for vorbis_bitrate_addblock in vorbis
-- Looking for vorbis_bitrate_addblock in vorbis - found
-- Found OggVorbis: /usr/lib/x86_64-linux-gnu/libogg.so;/usr/lib/x86_64-linux-gnu/libvorbis.so;/usr/lib/x86_64-linux-gnu/libvorbisfile.so;/usr/lib/x86_64-linux-gnu/libvorbisenc.so
-- Looking for snd_seq_create_simple_port in asound
-- Looking for snd_seq_create_simple_port in asound - found
-- Found ALSA: /usr/lib/x86_64-linux-gnu/libasound.so
-- Looking for include file machine/soundcard.h
-- Looking for include file machine/soundcard.h - not found
-- Looking for include file linux/awe_voice.h
-- Looking for include file linux/awe_voice.h - not found
-- Looking for include file awe_voice.h
-- Looking for include file awe_voice.h - not found
-- Looking for include file /usr/src/sys/i386/isa/sound/awe_voice.h
-- Looking for include file /usr/src/sys/i386/isa/sound/awe_voice.h - not found
-- Looking for include file /usr/src/sys/gnu/i386/isa/sound/awe_voice.h
-- Looking for include file /usr/src/sys/gnu/i386/isa/sound/awe_voice.h - not found
-- Looking for C++ include sys/asoundlib.h
-- Looking for C++ include sys/asoundlib.h - found
-- Looking for C++ include alsa/asoundlib.h
-- Looking for C++ include alsa/asoundlib.h - found
-- Looking for snd_pcm_resume in asound
-- Looking for snd_pcm_resume in asound - found
-- checking for module 'jack>=0.77'
--   found jack, version 0.122.0
-- checking for module 'fftw3f>=3.0.0'
--   found fftw3f, version 3.3.3
-- checking for module 'fluidsynth>=1.0.7'
--   found fluidsynth, version 1.1.6
-- Looking for wine_init in wine
-- Looking for wine_init in wine - found
-- Looking for C++ include windows.h
-- Looking for C++ include windows.h - found
-- checking for module 'samplerate>=0.1.8'
--   package 'samplerate>=0.1.8' not found
-- Performing Test HAVE_LRINT
-- Performing Test HAVE_LRINT - Success
-- Performing Test HAVE_LRINTF
-- Performing Test HAVE_LRINTF - Success
-- Performing Test CPU_CLIPS_POSITIVE
-- Performing Test CPU_CLIPS_POSITIVE - Failed
-- Performing Test CPU_CLIPS_NEGATIVE
-- Performing Test CPU_CLIPS_NEGATIVE - Failed
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.4.12") 

Installation Summary
--------------------
* Install Directory           : /usr/local
* Use system's libsamplerate  : 

Supported audio interfaces
--------------------------
* ALSA                        : OK
* JACK                        : OK
* OSS                         : OK
* PortAudio                   : not found, please install portaudio19-dev (or similiar, version >= 1.9) ;if you require PortAudio support
* PulseAudio                  : OK
* SDL                         : OK

Supported MIDI interfaces
-------------------------
* ALSA                        : OK
* OSS                         : OK
* WinMM                       : <not supported on this platform>

Supported file formats for project export
-----------------------------------------
* WAVE                        : OK
* OGG/VORBIS                  : OK

Optional plugins
----------------
* SoundFont2 player           : OK
* Stk Mallets                 : OK
* VST-instrument hoster       : OK
* VST-effect hoster           : OK
* CALF LADSPA plugins         : OK
* CAPS LADSPA plugins         : OK
* CMT LADSPA plugins          : OK
* TAP LADSPA plugins          : OK
* SWH LADSPA plugins          : OK


-----------------------------------------------------------------
IMPORTANT:
after installing missing packages, remove CMakeCache.txt before
running cmake again!
-----------------------------------------------------------------



-- Configuring done
-- Generating done
-- Build files have been written to: /home/andy/dev/lmms/build
bug

All 15 comments

Does this still happen with latest stable-0.4? There have been a few changes regarding WINE detection. If so, can you set "VERBOSE=1" and "make" again in the vst_base directory and post the output here?

Updated to 17babf6abc3d5de09bbbb in stable-0.4 and got the same thing.

andy@andy-bx:~/dev/lmms/build/plugins/vst_base$ make VERBOSE=1
cd /home/andy/dev/lmms/build && /usr/bin/cmake -H/home/andy/dev/lmms -B/home/andy/dev/lmms/build --check-build-system CMakeFiles/Makefile.cmake 0
cd /home/andy/dev/lmms/build && /usr/bin/cmake -E cmake_progress_start /home/andy/dev/lmms/build/CMakeFiles /home/andy/dev/lmms/build/plugins/vst_base/CMakeFiles/progress.marks
cd /home/andy/dev/lmms/build && make -f CMakeFiles/Makefile2 plugins/vst_base/all
make[1]: Entering directory `/home/andy/dev/lmms/build'
make -f plugins/vst_base/CMakeFiles/vstbase.dir/build.make plugins/vst_base/CMakeFiles/vstbase.dir/depend
make[2]: Entering directory `/home/andy/dev/lmms/build'
/usr/bin/cmake -E cmake_progress_report /home/andy/dev/lmms/build/CMakeFiles 
Generating RemoteVstPlugin
cd /home/andy/dev/lmms/build/plugins/vst_base && wineg++ -I/home/andy/dev/lmms/build -I/home/andy/dev/lmms/include -I/usr/local/include/wine/windows -I/usr/local/include -I/usr/include/wine/windows /home/andy/dev/lmms/plugins/vst_base/RemoteVstPlugin.cpp -mwindows -lpthread -m32 -o RemoteVstPlugin
/usr/bin/ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/x86_64-linux-gnu/wine/libwinecrt0.a(exe_entry.o)) to format elf32-i386 (RemoteVstPlugin.YNdh5I.o) is not supported
winebuild: /usr/bin/ld failed with status 1
winegcc: winebuild failed
make[2]: *** [plugins/vst_base/RemoteVstPlugin] Error 2
make[2]: Leaving directory `/home/andy/dev/lmms/build'
make[1]: *** [plugins/vst_base/CMakeFiles/vstbase.dir/all] Error 2
make[1]: Leaving directory `/home/andy/dev/lmms/build'
make: *** [all] Error 2

I dunno if i am right here or not, but im guessing you are on a 64bit
system trying to install a missing 32bit vst library. if that is the case
you need to install ia32 libs. What distro are you on. I know with the
newer ubuntu's somethings have changed and ia32 is no longer available.

On Wed, Jan 15, 2014 at 11:50 PM, Andrew Kelley [email protected]:

Updated to 17babf6https://github.com/LMMS/lmms/commit/17babf6abc3d5de09bbbbin stable-0.4 and got the same thing.

andy@andy-bx:~/dev/lmms/build/plugins/vst_base$ make VERBOSE=1
cd /home/andy/dev/lmms/build && /usr/bin/cmake -H/home/andy/dev/lmms -B/home/andy/dev/lmms/build --check-build-system CMakeFiles/Makefile.cmake 0
cd /home/andy/dev/lmms/build && /usr/bin/cmake -E cmake_progress_start /home/andy/dev/lmms/build/CMakeFiles /home/andy/dev/lmms/build/plugins/vst_base/CMakeFiles/progress.marks
cd /home/andy/dev/lmms/build && make -f CMakeFiles/Makefile2 plugins/vst_base/all
make[1]: Entering directory /home/andy/dev/lmms/build' make -f plugins/vst_base/CMakeFiles/vstbase.dir/build.make plugins/vst_base/CMakeFiles/vstbase.dir/depend make[2]: Entering directory/home/andy/dev/lmms/build'
/usr/bin/cmake -E cmake_progress_report /home/andy/dev/lmms/build/CMakeFiles
Generating RemoteVstPlugin
cd /home/andy/dev/lmms/build/plugins/vst_base && wineg++ -I/home/andy/dev/lmms/build -I/home/andy/dev/lmms/include -I/usr/local/include/wine/windows -I/usr/local/include -I/usr/include/wine/windows /home/andy/dev/lmms/plugins/vst_base/RemoteVstPlugin.cpp -mwindows -lpthread -m32 -o RemoteVstPlugin
/usr/bin/ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/x86_64-linux-gnu/wine/libwinecrt0.a(exe_entry.o)) to format elf32-i386 (RemoteVstPlugin.YNdh5I.o) is not supported
winebuild: /usr/bin/ld failed with status 1
winegcc: winebuild failed
make[2]: ** [plugins/vst_base/RemoteVstPlugin] Error 2
make[2]: Leaving directory /home/andy/dev/lmms/build' make[1]: *** [plugins/vst_base/CMakeFiles/vstbase.dir/all] Error 2 make[1]: Leaving directory/home/andy/dev/lmms/build'
make: *
* [all] Error 2

—
Reply to this email directly or view it on GitHubhttps://github.com/LMMS/lmms/issues/15#issuecomment-32424338
.

Jonathan Aquilina

Yep:

andy@andy-bx:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 13.10
Release:    13.10
Codename:   saucy
andy@andy-bx:~$ uname -a
Linux andy-bx 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

http://askubuntu.com/questions/107230/what-happened-to-the-ia32-libs-package
This should help solve the issue you are having.

On Wed, Jan 15, 2014 at 11:56 PM, Andrew Kelley [email protected]:

Yep:

andy@andy-bx:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
andy@andy-bx:~$ uname -a
Linux andy-bx 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

—
Reply to this email directly or view it on GitHubhttps://github.com/LMMS/lmms/issues/15#issuecomment-32424816
.

Jonathan Aquilina

Thanks eagles. So how do I know which 32bit libraries I need?

That is a very good question which sadly I cannot answer. I think what
needs to be done is we need to see who maintains the debian version and get
a new package packaged and pushed to upstream debian. If that is the case
when the package gets installed we can have it pull down the multiarch
packages instead.

Apologies I cannot be of any further help but I think googling around would
help you out somehow.

On Thu, Jan 16, 2014 at 12:09 AM, Andrew Kelley [email protected]:

Thanks eagles. So how do I know which 32bit libraries I need?

—
Reply to this email directly or view it on GitHubhttps://github.com/LMMS/lmms/issues/15#issuecomment-32425848
.

Jonathan Aquilina

I had the same issue and found this thread:
http://sourceforge.net/apps/phpbb/lmms/viewtopic.php?f=7&t=526
The last post suggests to manually link the missing library files by issuing:

ln -s /usr/lib/i386-linux-gnu/wine /usr/lib32/
ln -s /usr/lib/i386-linux-gnu/libwine.so /usr/lib32/libwine.so

This did solve the problem for me.

I dont know if that woudl still apply ia32lib is no more as multiarch
packages have been released.

On Thu, Jan 16, 2014 at 12:13 AM, Jonas Teeberg [email protected]:

I had the same issue and found this thread:
http://sourceforge.net/apps/phpbb/lmms/viewtopic.php?f=7&t=526
The last post suggests to manually link the missing library files by
issuing:

ln -s /usr/lib/i386-linux-gnu/wine /usr/lib32/
ln -s /usr/lib/i386-linux-gnu/libwine.so /usr/lib32/libwine.so

This did solve the problem for me.

—
Reply to this email directly or view it on GitHubhttps://github.com/LMMS/lmms/issues/15#issuecomment-32426123
.

Jonathan Aquilina

So I think the issue here is that the configure step should detect when this is going to be a problem and then tell the user what to do to fix it.

What does

dpkg -l | grep wine

and

dpkg -l | grep gcc

say?

andy@andy-bx:~$ dpkg -l | grep wine
ii  wine-gecko1.4:amd64                       1.4.0-0ubuntu2                             amd64        Microsoft Windows compatibility layer (embedded web browser)
ii  wine-gecko1.4:i386                        1.4.0-0ubuntu2                             i386         Microsoft Windows compatibility layer (embedded web browser)
ii  wine1.4                                   1.4.1-0ubuntu7                             amd64        Microsoft Windows Compatibility Layer (Binary Emulator and Library)
ii  wine1.4-amd64                             1.4.1-0ubuntu7                             amd64        Microsoft Windows Compatibility Layer (64-bit support)
ii  wine1.4-dev                               1.4.1-0ubuntu7                             amd64        Microsoft Windows Compatibility Layer (Development files)
ii  wine1.4-i386                              1.4.1-0ubuntu7                             i386         Microsoft Windows Compatibility Layer (32-bit support)
ii  winetricks                                0.0+20130702+svn1032-1                     all          package manager for WINE to install software easily
andy@andy-bx:~$ dpkg -l | grep gcc
ii  gcc                                       4:4.8.1-2ubuntu3                           amd64        GNU C compiler
ii  gcc-4.7-base:amd64                        4.7.3-7ubuntu3                             amd64        GCC, the GNU Compiler Collection (base package)
ii  gcc-4.8                                   4.8.1-10ubuntu9                            amd64        GNU C compiler
ii  gcc-4.8-base:amd64                        4.8.1-10ubuntu9                            amd64        GCC, the GNU Compiler Collection (base package)
ii  gcc-4.8-base:i386                         4.8.1-10ubuntu9                            i386         GCC, the GNU Compiler Collection (base package)
ii  gcc-4.8-multilib                          4.8.1-10ubuntu9                            amd64        GNU C compiler (multilib files)
ii  gcc-multilib                              4:4.8.1-2ubuntu3                           amd64        GNU C compiler (multilib files)
ii  lib32gcc-4.8-dev                          4.8.1-10ubuntu9                            amd64        GCC support library (32 bit development files)
ii  lib32gcc1                                 1:4.8.1-10ubuntu9                          amd64        GCC support library (32 bit Version)
ii  libgcc-4.7-dev:amd64                      4.7.3-7ubuntu3                             amd64        GCC support library (development files)
ii  libgcc-4.8-dev:amd64                      4.8.1-10ubuntu9                            amd64        GCC support library (development files)
ii  libgcc1:amd64                             1:4.8.1-10ubuntu9                          amd64        GCC support library
ii  libgcc1:i386                              1:4.8.1-10ubuntu9                          i386         GCC support library
ii  libx32gcc-4.8-dev                         4.8.1-10ubuntu9                            amd64        GCC support library (x32 development files)
ii  libx32gcc1                                1:4.8.1-10ubuntu9                          amd64        GCC support library (x32)

hmm, it built fine on my other 64-bit desktop with the same distro.

the dpkg -l stuff is the same for both systems. I'm not sure what the difference is.

btw I think I fixed the issue on Saturday (commit b10a254d125ea7383bc38697531cc7579e24758e) - can you confirm, so I can close this issue?

Confirmed! Thanks for the workaround.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Firepal picture Firepal  Â·  3Comments

DeRobyJ picture DeRobyJ  Â·  3Comments

TrumpislikeCyrus picture TrumpislikeCyrus  Â·  4Comments

binyominzeev picture binyominzeev  Â·  3Comments

Gabrielxd195 picture Gabrielxd195  Â·  3Comments