GCC-GNAT Ada Cross-Compiler (Debian/glibc -> AlpineLinux/uclibc) - gcc

I compiled a GCC 4.8.1 Cross-Compiler (BUILD/HOST: debian/glibc, TARGET: alpinelinux/uclibc). The C compiler is working great, but Ada won't work at moment.
juan#debian:~/HelloAda$ x86_64-alpine-linux-uclibc-gnatmake hello.adb
x86_64-alpine-linux-uclibc-gcc -c hello.adb
x86_64-alpine-linux-uclibc-gnatbind -x hello.ali
x86_64-alpine-linux-uclibc-gnatlink hello.ali
/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/adalib/libgnat.a(adaint.o): In function `__gnat_cpu_alloc':
/home/juan/GCC/obj/gcc/ada/rts/adaint.c:3797: undefined reference to `__sched_cpualloc'
/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/adalib/libgnat.a(adaint.o): In function `__gnat_cpu_free':
/home/juan/GCC/obj/gcc/ada/rts/adaint.c:3807: undefined reference to `__sched_cpufree'
collect2: error: ld returned 1 exit status
x86_64-alpine-linux-uclibc-gnatlink: error when calling /home/juan/opt/cross/bin/x86_64-alpine-linux-uclibc-gcc
x86_64-alpine-linux-uclibc-gnatmake: *** link failed.
/home/juan/GCC/obj/gcc/ada/rts/adaint.c: http://nopaste.info/ffcb612692.html
/usr/include/sched.h: http://nopaste.info/5332aed42a.html
/usr/include/bits/sched.h: http://nopaste.info/46323ab5d8.html
/opt/alpine/usr/include/sched.h: http://nopaste.info/998896bafe.html
/opt/alpine/usr/include/bits/sched.h: http://nopaste.info/e8cfbd2844.html
Does someone know, what's going wrong?
A more verbose output of what is going on:
juan#debian:~/HelloAda$ x86_64-alpine-linux-uclibc-gcc -c hello.adb
juan#debian:~/HelloAda$ x86_64-alpine-linux-uclibc-gnatbind hello
juan#debian:~/HelloAda$ x86_64-alpine-linux-uclibc-gnatlink -v -v hello
GNATLINK 4.8.1
Copyright (C) 1995-2013, Free Software Foundation, Inc.
x86_64-alpine-linux-uclibc-gcc -c -mtune=generic -march=x86-64 -gnatA -gnatWb -gnatiw -v -gnatws /home/juan/HelloAda/b~hello.adb
Using built-in specs.
COLLECT_GCC=/home/juan/opt/cross/bin/x86_64-alpine-linux-uclibc-gcc
Target: x86_64-alpine-linux-uclibc
Configured with: ../src/configure --prefix=/home/juan/opt/cross --build=x86_64-cross-linux-gnu --host=x86_64-cross-linux-gnu --target=x86_64-alpine-linux-uclibc --disable-altivec --disable-build-with-cxx --disable-checking --disable-fixed-point --disable-libssp --disable-libstdcxx-pch --disable-multilib --disable-nls --disable-werror --enable-languages=c,ada --enable-shared --with-dynamic-linker=ld64-uClibc.so.0.9.32 --with-dynamic-linker-prefix=/opt/alpine/lib --with-system-zlib --without-system-libunwindmake --with-sysroot=/opt/alpine
Thread model: posix
gcc version 4.8.1 (GCC)
COLLECT_GCC_OPTIONS='-c' '-mtune=generic' '-march=x86-64' '-gnatA' '-gnatWb' '-gnatiw' '-v' '-gnatws'
/home/juan/opt/cross/libexec/gcc/x86_64-alpine-linux-uclibc/4.8.1/gnat1 -quiet -dumpbase b~hello.adb -auxbase b~hello -mtune=generic -march=x86-64 -gnatA -gnatWb -gnatiw -gnatws /home/juan/HelloAda/b~hello.adb -o /tmp/ccG4vv8d.s
COLLECT_GCC_OPTIONS='-c' '-mtune=generic' '-march=x86-64' '-gnatA' '-gnatWb' '-gnatiw' '-v' '-gnatws'
/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/../../../../x86_64-alpine-linux-uclibc/bin/as -v --64 -o b~hello.o /tmp/ccG4vv8d.s
GNU assembler version 2.23.2 (x86_64-alpine-linux-uclibc) using BFD version (GNU Binutils) 2.23.2
COMPILER_PATH=/home/juan/opt/cross/libexec/gcc/x86_64-alpine-linux-uclibc/4.8.1/:/home/juan/opt/cross/libexec/gcc/x86_64-alpine-linux-uclibc/4.8.1/:/home/juan/opt/cross/libexec/gcc/x86_64-alpine-linux-uclibc/:/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/:/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/:/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/../../../../x86_64-alpine-linux-uclibc/bin/
LIBRARY_PATH=/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/:/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/../../../../x86_64-alpine-linux-uclibc/lib/../lib/:/opt/alpine/lib/../lib/:/opt/alpine/usr/lib/../lib/:/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/../../../../x86_64-alpine-linux-uclibc/lib/:/opt/alpine/lib/:/opt/alpine/usr/lib/
COLLECT_GCC_OPTIONS='-c' '-mtune=generic' '-march=x86-64' '-gnatA' '-gnatWb' '-gnatiw' '-v' '-gnatws'
/home/juan/opt/cross/bin/x86_64-alpine-linux-uclibc-gcc b~hello.o ./hello.o -v -o hello -L./ -L/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/adalib/ /home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/adalib/libgnat.a -static-libgcc
Using built-in specs.
COLLECT_GCC=/home/juan/opt/cross/bin/x86_64-alpine-linux-uclibc-gcc
COLLECT_LTO_WRAPPER=/home/juan/opt/cross/libexec/gcc/x86_64-alpine-linux-uclibc/4.8.1/lto-wrapper
Target: x86_64-alpine-linux-uclibc
Configured with: ../src/configure --prefix=/home/juan/opt/cross --build=x86_64-cross-linux-gnu --host=x86_64-cross-linux-gnu --target=x86_64-alpine-linux-uclibc --disable-altivec --disable-build-with-cxx --disable-checking --disable-fixed-point --disable-libssp --disable-libstdcxx-pch --disable-multilib --disable-nls --disable-werror --enable-languages=c,ada --enable-shared --with-dynamic-linker=ld64-uClibc.so.0.9.32 --with-dynamic-linker-prefix=/opt/alpine/lib --with-system-zlib --without-system-libunwindmake --with-sysroot=/opt/alpine
Thread model: posix
gcc version 4.8.1 (GCC)
COMPILER_PATH=/home/juan/opt/cross/libexec/gcc/x86_64-alpine-linux-uclibc/4.8.1/:/home/juan/opt/cross/libexec/gcc/x86_64-alpine-linux-uclibc/4.8.1/:/home/juan/opt/cross/libexec/gcc/x86_64-alpine-linux-uclibc/:/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/:/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/:/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/../../../../x86_64-alpine-linux-uclibc/bin/
LIBRARY_PATH=/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/:/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/../../../../x86_64-alpine-linux-uclibc/lib/../lib/:/opt/alpine/lib/../lib/:/opt/alpine/usr/lib/../lib/:/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/../../../../x86_64-alpine-linux-uclibc/lib/:/opt/alpine/lib/:/opt/alpine/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'hello' '-L./' '-L/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/adalib/' '-static-libgcc' '-mtune=generic' '-march=x86-64'
/home/juan/opt/cross/libexec/gcc/x86_64-alpine-linux-uclibc/4.8.1/collect2 --sysroot=/opt/alpine --eh-frame-hdr -m elf_x86_64 -dynamic-linker /opt/alpine/lib/ld64-uClibc.so.0.9.32 -o hello /opt/alpine/usr/lib/../lib/crt1.o /opt/alpine/usr/lib/../lib/crti.o /home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/crtbegin.o -L./ -L/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/adalib/ -L/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1 -L/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/../../../../x86_64-alpine-linux-uclibc/lib/../lib -L/opt/alpine/lib/../lib -L/opt/alpine/usr/lib/../lib -L/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/../../../../x86_64-alpine-linux-uclibc/lib -L/opt/alpine/lib -L/opt/alpine/usr/lib b~hello.o ./hello.o /home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/adalib/libgnat.a -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/crtend.o /opt/alpine/usr/lib/../lib/crtn.o
/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/adalib/libgnat.a(adaint.o): In function `__gnat_cpu_alloc':
/home/juan/GCC/obj/gcc/ada/rts/adaint.c:3797: undefined reference to `__sched_cpualloc'
/home/juan/opt/cross/lib/gcc/x86_64-alpine-linux-uclibc/4.8.1/adalib/libgnat.a(adaint.o): In function `__gnat_cpu_free':
/home/juan/GCC/obj/gcc/ada/rts/adaint.c:3807: undefined reference to `__sched_cpufree'
collect2: error: ld returned 1 exit status
x86_64-alpine-linux-uclibc-gnatlink: error when calling /home/juan/opt/cross/bin/x86_64-alpine-linux-uclibc-gcc

It's quite clear that __sched_cpualloc/free* functions are either specific to Glibc 2.7 or not implemented in uclibc.
$ objdump -T libc.so.6 | grep __sched
000c4c30 g DF .text 00000043 GLIBC_2.0 __sched_getparam
000c4d10 g DF .text 00000037 GLIBC_2.0 __sched_yield
000c5540 g DF .text 00000029 GLIBC_2.7 __sched_cpualloc
000c4d50 g DF .text 0000003f GLIBC_2.0 __sched_get_priority_max
000c5570 g DF .text 00000020 GLIBC_2.7 __sched_cpufree
000c4d90 g DF .text 0000003f GLIBC_2.0 __sched_get_priority_min
000c5500 g iD .text 0000003f GLIBC_2.6 __sched_cpucount
000c4c80 g DF .text 00000045 GLIBC_2.0 __sched_setscheduler
000c4cd0 g DF .text 0000003f GLIBC_2.0 __sched_getscheduler
I guess these required for the CPU concurrency tasks.
If you have access to uclibc source, perhaps it will be possible to define these functions and recompile the library by referencing Glibc here.. Or better yet, just make a small library with these two functions and link that when creating the binary ELF image.
__sched_cpualloc and __sched_cpufree aren't rocket science, as it turns out. Here is the code as it appears in Glibc:
9 #include <sched.h>
20 #include <stdlib.h>
21
22
23 cpu_set_t *
24 __sched_cpualloc (size_t count)
25 {
26 return malloc (CPU_ALLOC_SIZE (count));
27 }
and
23 void
24 __sched_cpufree (cpu_set_t *set)
25 {
26 free (set);
27 }
finally, CPU_ALLOC_SIZE is also simple:
165 # define __CPU_ALLOC_SIZE(count) \
166 ((((count) + __NCPUBITS - 1) / __NCPUBITS) * 8)
So I guess you can write your own wrappers for uclibc now and test to see if it works.

Related

after upgrade to gcc9.3 linking segfaults in lto-wrapper but LTO is disabled

I just upgraded gcc form 7.5 to 9.3 and started to have gcc linker segfaults - but only on armv7 target (the same all sources are building/linking OK for aarch64/x86_64 targets).
Segfault is in lto-wrapper - but I disabled LTO so I'm a bit confused....
here is gcc linking output:
armv7a-minimyth-linux-gnueabihf-g++ -v -Wl,-O1 -Wl,-rpath,/usr/lib/qt5/lib -Wl,-rpath,/usr/lib/qt5/lib -shared -Wl,-soname,libmythtv-32.so.32 -o libmythtv-32.so.32.0.0 obj/cc.o obj/vbi.o obj/lang.o obj/recordinginfo.o obj/dbcheck.o obj/videodbcheck.o obj/tvremoteutil.o obj/tv.o obj/jobqueue.o obj/recordingprofile.o obj/remoteencoder.o obj/videosource.o obj/cardutil.o obj/sourceutil.o obj/videometadatautil.o obj/vbi608extractor.o obj/cc608decoder.o obj/cc608reader.o obj/cc708decoder.o obj/cc708reader.o obj/cc708window.o obj/subtitlereader.o obj/scheduledrecording.o obj/signalmonitorvalue.o obj/livetvchain.o obj/playgroup.o obj/channelsettings.o obj/previewgenerator.o obj/previewgeneratorqueue.o obj/transporteditor.o obj/channelgroup.o obj/recordingrule.o obj/mythsystemevent.o obj/mythmediabuffer.o obj/mythavformatbuffer.o obj/mythfilebuffer.o obj/mythstreamingbuffer.o obj/mythinteractivebuffer.o obj/mythopticalbuffer.o obj/metadataimagehelper.o obj/mythframe.o obj/mythavutil.o obj/recordingfile.o obj/diseqc.o obj/diseqcsettings.o obj/mythmediawriter.o obj/mythavformatwriter.o obj/mythfifowriter.o obj/teletextdecoder.o obj/teletextreader.o obj/vbilut.o obj/tspacket.o obj/pespacket.o obj/mpegtables.o obj/atsctables.o obj/dvbtables.o obj/premieretables.o obj/sctetables.o obj/mpegstreamdata.o obj/atscstreamdata.o obj/dvbstreamdata.o obj/scanstreamdata.o obj/mpegdescriptors.o obj/atscdescriptors.o obj/dvbdescriptors.o obj/sctedescriptors.o obj/splicedescriptors.o obj/dishdescriptors.o obj/premieredescriptors.o obj/atsc_huffman.o obj/freesat_huffman.o obj/iso6937tables.o obj/H264Parser.o obj/tablestatus.o obj/tsstreamdata.o obj/frequencies.o obj/frequencytables.o obj/channelutil.o obj/channelinfo.o obj/dtvmultiplex.o obj/dtvconfparser.o obj/dtvconfparserhelpers.o obj/scaninfo.o obj/channelimporter.o obj/iptvchannelfetcher.o obj/srtwriter.o obj/mythdvdbuffer.o obj/mythdvdcontext.o obj/mythdvdinfo.o obj/mythdvdstream.o obj/mythdvdplayer.o obj/mythdvddecoder.o obj/mythbdiowrapper.o obj/mythbdbuffer.o obj/mythbdinfo.o obj/mythbdoverlay.o obj/mythbdplayer.o obj/mythbddecoder.o obj/mythbdoverlayscreen.o obj/httplivestream.o obj/httplivestreambuffer.o obj/m3u.o obj/profilegroup.o obj/tv_play.o obj/mythplayer.o obj/audioplayer.o obj/mythccextractorplayer.o obj/teletextextractorreader.o obj/playercontext.o obj/tv_play_win.o obj/deletemap.o obj/mythcommflagplayer.o obj/commbreakmap.o obj/tvbrowsehelper.o obj/netstream.o obj/mythiowrapper.o obj/textsubtitleparser.o obj/xine_demux_sputext.o obj/decoderbase.o obj/nuppeldecoder.o obj/avformatdecoder.o obj/privatedecoder.o obj/mythcodeccontext.o obj/osd.o obj/teletextscreen.o obj/subtitlescreen.o obj/interactivescreen.o obj/mythvideoout.o obj/mythvideooutnull.o obj/videobuffers.o obj/jitterometer.o obj/videodisplayprofile.o obj/mythcodecid.o obj/videooutwindow.o obj/videocolourspace.o obj/videovisual.o obj/mythdeinterlacer.o obj/mythvaapicontext.o obj/mythdrmprimecontext.o obj/mythopenglvideo.o obj/mythvideooutopengl.o obj/mythopenglinterop.o obj/mythvideotexture.o obj/mythopengltonemap.o obj/mythvaapiinterop.o obj/mythvaapiglxinterop.o obj/mythdrmprimeinterop.o obj/mythegldmabuf.o obj/mythvaapidrminterop.o obj/filters.o obj/goom_core.o obj/graphic.o obj/tentacle3d.o obj/ifs.o obj/ifs_display.o obj/lines.o obj/surf3d.o obj/zoom_filter_mmx.o obj/zoom_filter_xmmx.o obj/videovisualgoom.o obj/DetectLetterbox.o obj/mythairplayserver.o obj/mythraopdevice.o obj/mythraopconnection.o obj/dsmcc.o obj/dsmcccache.o obj/dsmccbiop.o obj/dsmccobjcarousel.o obj/mhegic.o obj/interactivetv.o obj/mhi.o obj/channelbase.o obj/dtvchannel.o obj/signalmonitor.o obj/dtvsignalmonitor.o obj/inputinfo.o obj/scanwizard.o obj/channelscan_sm.o obj/channelscanner.o obj/channelscanner_gui.o obj/channelscanner_gui_scan_pane.o obj/channelscanner_cli.o obj/frequencytablesetting.o obj/inputselectorsetting.o obj/multiplexsetting.o obj/paneanalog.o obj/scanmonitor.o obj/scanwizardconfig.o obj/externrecscanner.o obj/eithelper.o obj/eitscanner.o obj/eitfixup.o obj/eitcache.o obj/programdata.o obj/tv_rec.o obj/recordingquality.o obj/recorderbase.o obj/DeviceReadBuffer.o obj/dtvrecorder.o obj/importrecorder.o obj/RTjpegN.o obj/audioinput.o obj/audioinputalsa.o obj/audioinputoss.o obj/v4lrecorder.o obj/v4l2util.o obj/v4lchannel.o obj/analogsignalmonitor.o obj/v4l2encrecorder.o obj/v4l2encstreamhandler.o obj/v4l2encsignalmonitor.o obj/mythv4l2m2mcontext.o obj/firewirechannel.o obj/firewirerecorder.o obj/firewiresignalmonitor.o obj/firewiredevice.o obj/avcinfo.o obj/linuxfirewiredevice.o obj/linuxavcinfo.o obj/cetonrtsp.o obj/iptvchannel.o obj/iptvrecorder.o obj/iptvsignalmonitor.o obj/iptvstreamhandler.o obj/streamhandler.o obj/packetbuffer.o obj/rtppacketbuffer.o obj/httptsstreamhandler.o obj/hlsstreamhandler.o obj/HLSPlaylistWorker.o obj/HLSReader.o obj/HLSSegment.o obj/HLSStream.o obj/HLSStreamWorker.o obj/vboxutils.o obj/vboxchannelfetcher.o obj/mpegrecorder.o obj/ExternalChannel.o obj/ExternalRecChannelFetcher.o obj/ExternalRecorder.o obj/ExternalStreamHandler.o obj/ExternalSignalMonitor.o obj/dvbtypes.o obj/dvbchannel.o obj/dvbsignalmonitor.o obj/dvbcam.o obj/dvbrecorder.o obj/dvbstreamhandler.o obj/dvbci.o obj/moc_jobqueue.o obj/moc_recordingprofile.o obj/moc_videosource.o obj/moc_playgroup.o obj/moc_channelsettings.o obj/moc_previewgenerator.o obj/moc_previewgeneratorqueue.o obj/moc_transporteditor.o obj/moc_mythsystemevent.o obj/moc_diseqcsettings.o obj/moc_profilegroup.o obj/moc_tv_play.o obj/moc_tv_play_win.o obj/moc_netstream.o obj/moc_osd.o obj/moc_videooutwindow.o obj/moc_videocolourspace.o obj/moc_mythopenglvideo.o obj/moc_mythopenglinterop.o obj/moc_mythopengltonemap.o obj/moc_mythvaapiglxinterop.o obj/moc_mythairplayserver.o obj/moc_mythraopdevice.o obj/moc_mythraopconnection.o obj/moc_mhegic.o obj/moc_scanwizard.o obj/moc_channelscanner_gui.o obj/moc_channelscanner_gui_scan_pane.o obj/moc_inputselectorsetting.o obj/moc_multiplexsetting.o obj/moc_paneatsc.o obj/moc_panedvbutilsimport.o obj/moc_scanmonitor.o obj/moc_scanwizardconfig.o obj/moc_cetonrtsp.o obj/moc_iptvchannel.o obj/moc_iptvstreamhandler.o obj/moc_httptsstreamhandler.o -L/home/piotro/minimyth-dev/images/main/usr/lib -L../../external/libmythdvdnav -lmythdvdnav-32 -L../../external/libudfread -lmythudfread-32 -lva-glx -L../libmyth -L../../external/FFmpeg/libswresample -lmythswresample -L../../external/FFmpeg/libavutil -L../../external/FFmpeg/libavcodec -L../../external/FFmpeg/libavformat -L../../external/FFmpeg/libswscale -L../../external/FFmpeg/libpostproc -L../../external/FFmpeg/libavfilter -L../libmythui -L../libmythupnp -L../libmythbase -L../libmythservicecontracts -lmyth-32 -lmythswscale -lmythavformat -lmythavcodec -lmythavutil -lmythpostproc -lmythavfilter -lmythui-32 -lmythupnp-32 -lmythbase-32 -lmythservicecontracts-32 -L../libmythfreemheg -lmythfreemheg-32 -llzo2 -lXext -lXinerama -lXxf86vm -lXrandr -ldns_sd -lcrypto -lass -lEGL -lva-x11 -lX11 -lva-drm -lva -lasound -lfreetype -ldrm -lxml2 -lm -lz -lbluray -pthread -lsamplerate -lraw1394 -liec61883 -lavc1394 -lrom1394 -ldl -lpthread /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Widgets.so /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Gui.so /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Network.so /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Xml.so /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Sql.so /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Core.so -lGLESv2
Using built-in specs.
COLLECT_GCC=armv7a-minimyth-linux-gnueabihf-g++
COLLECT_LTO_WRAPPER=/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/lto-wrapper
Target: armv7a-minimyth-linux-gnueabihf
Configured with: .//../../../work/build_main.d/gcc-9.3.0/configure --prefix=/home/piotro/minimyth-dev/images/build/usr --exec_prefix=/home/piotro/minimyth-dev/images/build/usr --bindir=/home/piotro/minimyth-dev/images/build/usr/bin --sbindir=/home/piotro/minimyth-dev/images/build/usr/sbin --libexecdir=/home/piotro/minimyth-dev/images/build/usr/libexec --datadir=/home/piotro/minimyth-dev/images/build/usr/share --sysconfdir=/home/piotro/minimyth-dev/images/build/etc --sharedstatedir=/home/piotro/minimyth-dev/images/build/usr/share --localstatedir=/home/piotro/minimyth-dev/images/build/var --libdir=/home/piotro/minimyth-dev/images/build/usr/lib --infodir=/home/piotro/minimyth-dev/images/build/usr/info --includedir=/home/piotro/minimyth-dev/images/build/usr/include --oldincludedir=/home/piotro/minimyth-dev/images/build/usr/include --mandir=/home/piotro/minimyth-dev/images/build/usr/share/man --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=armv7a-minimyth-linux-gnueabihf --with-gnu-as --with-gnu-ld --with-local-prefix=/usr --enable-plugin --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --enable-libatommic --enable-libgomp --enable-gold --enable-ld --disable-libquadmath --disable-libquadmath-support --disable-libada --disable-libssp --enable-lto --disable-multilib --enable-nls --enable-decimal-float --enable-shared --enable-host-shared --enable-threads=posix --enable-version-specific-runtime-libs --with-mpc-include=//home/piotro/minimyth-dev/images/build/usr/include --with-mpc-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-mpfr-include=//home/piotro/minimyth-dev/images/build/usr/include --with-mpfr-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-gmp-include=//home/piotro/minimyth-dev/images/build/usr/include --with-gmp-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-isl-include=//home/piotro/minimyth-dev/images/build/usr/include --with-isl-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-libelf-include=//home/piotro/minimyth-dev/images/build/usr/include --with-libelf-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-sysroot=/home/piotro/minimyth-dev/images/main
Thread model: posix
gcc version 9.3.0 (GCC)
COMPILER_PATH=/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/:/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/:/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/:/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/:/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/:/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/../../../../armv7a-minimyth-linux-gnueabihf/bin/
LIBRARY_PATH=/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/:/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/../../../../armv7a-minimyth-linux-gnueabihf/lib/:/home/piotro/minimyth-dev/images/main/lib/:/home/piotro/minimyth-dev/images/main/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-shared' '-o' 'libmythtv-32.so.32.0.0' '-L/home/piotro/minimyth-dev/images/main/usr/lib' '-L../../external/libmythdvdnav' '-L../../external/libudfread' '-L../libmyth' '-L../../external/FFmpeg/libswresample' '-L../../external/FFmpeg/libavutil' '-L../../external/FFmpeg/libavcodec' '-L../../external/FFmpeg/libavformat' '-L../../external/FFmpeg/libswscale' '-L../../external/FFmpeg/libpostproc' '-L../../external/FFmpeg/libavfilter' '-L../libmythui' '-L../libmythupnp' '-L../libmythbase' '-L../libmythservicecontracts' '-L../libmythfreemheg' '-pthread' '-shared-libgcc' '-mcpu=arm10tdmi' '-mtls-dialect=gnu' '-marm' '-march=armv5t'
/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/collect2 -plugin /home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/liblto_plugin.so -plugin-opt=/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/lto-wrapper -plugin-opt=-fresolution=/tmp/ccUX1bUc.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lpthread -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s --sysroot=/home/piotro/minimyth-dev/images/main --eh-frame-hdr -shared -X -m armelf_linux_eabi -o libmythtv-32.so.32.0.0 /home/piotro/minimyth-dev/images/main/usr/lib/crti.o /home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/crtbeginS.o -L/home/piotro/minimyth-dev/images/main/usr/lib -L../../external/libmythdvdnav -L../../external/libudfread -L../libmyth -L../../external/FFmpeg/libswresample -L../../external/FFmpeg/libavutil -L../../external/FFmpeg/libavcodec -L../../external/FFmpeg/libavformat -L../../external/FFmpeg/libswscale -L../../external/FFmpeg/libpostproc -L../../external/FFmpeg/libavfilter -L../libmythui -L../libmythupnp -L../libmythbase -L../libmythservicecontracts -L../libmythfreemheg -L/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0 -L/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/../../../../armv7a-minimyth-linux-gnueabihf/lib -L/home/piotro/minimyth-dev/images/main/lib -L/home/piotro/minimyth-dev/images/main/usr/lib -O1 -rpath /usr/lib/qt5/lib -rpath /usr/lib/qt5/lib -soname libmythtv-32.so.32 obj/cc.o obj/vbi.o obj/lang.o obj/recordinginfo.o obj/dbcheck.o obj/videodbcheck.o obj/httplivestreambuffer.o obj/m3u.o obj/profilegroup.o obj/tv_play.o obj/mythplayer.o obj/audioplayer.o obj/mythccextractorplayer.o obj/teletextextractorreader.o obj/playercontext.o obj/tv_play_win.o obj/deletemap.o obj/mythcommflagplayer.o obj/commbreakmap.o obj/tvbrowsehelper.o obj/netstream.o obj/mythiowrapper.o obj/textsubtitleparser.o obj/xine_demux_sputext.o obj/decoderbase.o obj/nuppeldecoder.o obj/avformatdecoder.o obj/privatedecoder.o obj/ifs_display.o obj/lines.o obj/surf3d.o obj/zoom_filter_mmx.o obj/channelscanner_gui_scan_pane.o obj/channelscanner_cli.o obj/frequencytablesetting.o obj/inputselectorsetting.o obj/multiplexsetting.o obj/paneanalog.o obj/scanmonitor.o obj/scanwizardconfig.o obj/externrecscanner.o obj/eithelper.o obj/eitscanner.o obj/eitfixup.o obj/eitcache.o obj/programdata.o obj/tv_rec.o obj/recordingquality.o obj/recorderbase.o obj/DeviceReadBuffer.o obj/dtvrecorder.o obj/importrecorder.o obj/RTjpegN.o obj/audioinput.o obj/audioinputalsa.o obj/audioinputoss.o obj/v4lrecorder.o obj/v4l2util.o obj/v4lchannel.o obj/analogsignalmonitor.o obj/v4l2encrecorder.o obj/v4l2encstreamhandler.o obj/v4l2encsignalmonitor.o obj/mythv4l2m2mcontext.o obj/firewirechannel.o obj/firewirerecorder.o obj/firewiresignalmonitor.o obj/firewiredevice.o obj/avcinfo.o obj/linuxfirewiredevice.o obj/linuxavcinfo.o obj/cetonrtsp.o obj/iptvchannel.o obj/iptvrecorder.o obj/iptvsignalmonitor.o obj/iptvstreamhandler.o obj/streamhandler.o obj/packetbuffer.o obj/rtppacketbuffer.o obj/httptsstreamhandler.o obj/hlsstreamhandler.o obj/HLSPlaylistWorker.o obj/HLSReader.o obj/HLSSegment.o obj/HLSStream.o obj/HLSStreamWorker.o obj/vboxutils.o obj/vboxchannelfetcher.o obj/mpegrecorder.o obj/ExternalChannel.o obj/ExternalRecChannelFetcher.o obj/ExternalRecorder.o obj/ExternalStreamHandler.o obj/ExternalSignalMonitor.o obj/dvbtypes.o obj/dvbchannel.o obj/dvbsignalmonitor.o obj/dvbcam.o obj/dvbrecorder.o obj/dvbstreamhandler.o obj/dvbci.o obj/moc_jobqueue.o obj/moc_recordingprofile.o obj/moc_videosource.o obj/moc_playgroup.o obj/moc_channelsettings.o obj/moc_previewgenerator.o obj/moc_previewgeneratorqueue.o obj/moc_transporteditor.o obj/moc_mythsystemevent.o obj/moc_diseqcsettings.o obj/moc_profilegroup.o obj/moc_tv_play.o obj/moc_tv_play_win.o obj/moc_netstream.o obj/moc_osd.o obj/moc_videooutwindow.o obj/moc_videocolourspace.o obj/moc_mythopenglvideo.o obj/moc_mythopenglinterop.o obj/moc_mythopengltonemap.o obj/moc_mythvaapiglxinterop.o obj/moc_mythairplayserver.o obj/moc_mythraopdevice.o obj/moc_mythraopconnection.o obj/moc_mhegic.o obj/moc_scanwizard.o obj/moc_channelscanner_gui.o obj/moc_channelscanner_gui_scan_pane.o obj/moc_inputselectorsetting.o obj/moc_multiplexsetting.o obj/moc_paneatsc.o obj/moc_panedvbutilsimport.o obj/moc_scanmonitor.o obj/moc_scanwizardconfig.o obj/moc_cetonrtsp.o obj/moc_iptvchannel.o obj/moc_iptvstreamhandler.o obj/moc_httptsstreamhandler.o -lmythdvdnav-32 -lmythudfread-32 -lva-glx -lmythswresample -lmyth-32 -lmythswscale -lmythavformat -lmythavcodec -lmythavutil -lmythpostproc -lmythavfilter -lmythui-32 -lmythupnp-32 -lmythbase-32 -lmythservicecontracts-32 -lmythfreemheg-32 -llzo2 -lXext -lXinerama -lXxf86vm -lXrandr -ldns_sd -lcrypto -lass -lEGL -lva-x11 -lX11 -lva-drm -lva -lasound -lfreetype -ldrm -lxml2 -lz -lbluray -lsamplerate -lraw1394 -liec61883 -lavc1394 -lrom1394 -ldl -lpthread /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Widgets.so /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Gui.so /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Network.so /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Xml.so /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Sql.so /home/piotro/minimyth-dev/images/main/usr/lib/qt5/lib/libQt5Core.so -lGLESv2 -lstdc++ -lm -lgcc_s -lpthread -lc -lgcc_s /home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/crtendS.o /home/piotro/minimyth-dev/images/main/usr/lib/crtn.o
/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/lto-wrapper -fresolution=/tmp/ccUX1bUc.res -flinker-output=dyn /home/piotro/minimyth-dev/images/main/usr/lib/liblzo2.a#0x93a84 /home/piotro/minimyth-dev/images/main/usr/lib/liblzo2.a#0xdd748
armv7a-minimyth-linux-gnueabihf-g++ #/tmp/ccBzlLps
Using built-in specs.
COLLECT_GCC=armv7a-minimyth-linux-gnueabihf-g++
Target: armv7a-minimyth-linux-gnueabihf
Configured with: .//../../../work/build_main.d/gcc-9.3.0/configure --prefix=/home/piotro/minimyth-dev/images/build/usr --exec_prefix=/home/piotro/minimyth-dev/images/build/usr --bindir=/home/piotro/minimyth-dev/images/build/usr/bin --sbindir=/home/piotro/minimyth-dev/images/build/usr/sbin --libexecdir=/home/piotro/minimyth-dev/images/build/usr/libexec --datadir=/home/piotro/minimyth-dev/images/build/usr/share --sysconfdir=/home/piotro/minimyth-dev/images/build/etc --sharedstatedir=/home/piotro/minimyth-dev/images/build/usr/share --localstatedir=/home/piotro/minimyth-dev/images/build/var --libdir=/home/piotro/minimyth-dev/images/build/usr/lib --infodir=/home/piotro/minimyth-dev/images/build/usr/info --includedir=/home/piotro/minimyth-dev/images/build/usr/include --oldincludedir=/home/piotro/minimyth-dev/images/build/usr/include --mandir=/home/piotro/minimyth-dev/images/build/usr/share/man --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=armv7a-minimyth-linux-gnueabihf --with-gnu-as --with-gnu-ld --with-local-prefix=/usr --enable-plugin --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --enable-libatommic --enable-libgomp --enable-gold --enable-ld --disable-libquadmath --disable-libquadmath-support --disable-libada --disable-libssp --enable-lto --disable-multilib --enable-nls --enable-decimal-float --enable-shared --enable-host-shared --enable-threads=posix --enable-version-specific-runtime-libs --with-mpc-include=//home/piotro/minimyth-dev/images/build/usr/include --with-mpc-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-mpfr-include=//home/piotro/minimyth-dev/images/build/usr/include --with-mpfr-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-gmp-include=//home/piotro/minimyth-dev/images/build/usr/include --with-gmp-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-isl-include=//home/piotro/minimyth-dev/images/build/usr/include --with-isl-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-libelf-include=//home/piotro/minimyth-dev/images/build/usr/include --with-libelf-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-sysroot=/home/piotro/minimyth-dev/images/main
Thread model: posix
gcc version 9.3.0 (GCC)
COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fno-pie' '-mtune=cortex-a7' '-mfloat-abi=softfp' '-mfpu=neon-vfpv4' '-mtls-dialect=gnu' '-O2' '-v' '-shared' '-L/home/piotro/minimyth-dev/images/main/usr/lib' '-L../../external/libmythdvdnav' '-L../../external/libudfread' '-L../libmyth' '-L../../external/FFmpeg/libswresample' '-L../../external/FFmpeg/libavutil' '-L../../external/FFmpeg/libavcodec' '-L../../external/FFmpeg/libavformat' '-L../../external/FFmpeg/libswscale' '-L../../external/FFmpeg/libpostproc' '-L../../external/FFmpeg/libavfilter' '-L../libmythui' '-L../libmythupnp' '-L../libmythbase' '-L../libmythservicecontracts' '-L../libmythfreemheg' '-pthread' '-shared-libgcc' '-mcpu=arm10tdmi' '-mtls-dialect=gnu' '-marm' '-dumpdir' './' '-dumpbase' 'libmythtv-32.so.32.0.0.wpa' '-fltrans-output-list=/tmp/libmythtv-32.so.32.0.0.bfgQHe.ltrans.out' '-fwpa' '-fresolution=/tmp/ccUX1bUc.res' '-flinker-output=dyn' '-shared-libgcc' '-march=armv5t'
/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/lto1 -quiet -dumpdir ./ -dumpbase libmythtv-32.so.32.0.0.wpa -mtune=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mtls-dialect=gnu -mcpu=arm10tdmi -mtls-dialect=gnu -marm -march=armv5t -auxbase liblzo2 -O2 -version -fno-openmp -fno-openacc -fno-pie -fltrans-output-list=/tmp/libmythtv-32.so.32.0.0.bfgQHe.ltrans.out -fwpa -fresolution=/tmp/ccUX1bUc.res -flinker-output=dyn #/tmp/cckNBYDe
GNU GIMPLE (GCC) version 9.3.0 (armv7a-minimyth-linux-gnueabihf)
compiled by GNU C version 9.3.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 9.3.0 (armv7a-minimyth-linux-gnueabihf)
compiled by GNU C version 9.3.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COMPILER_PATH=/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/:/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/:/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/:/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/:/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/:/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/../../../../armv7a-minimyth-linux-gnueabihf/bin/:/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/:/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/:/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/:/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/:/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/:/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/../../../../armv7a-minimyth-linux-gnueabihf/bin/
LIBRARY_PATH=/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/:/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/../../../../armv7a-minimyth-linux-gnueabihf/lib/:/home/piotro/minimyth-dev/images/main/lib/:/home/piotro/minimyth-dev/images/main/usr/lib/
COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fno-pie' '-mtune=cortex-a7' '-mfloat-abi=softfp' '-mfpu=neon-vfpv4' '-mtls-dialect=gnu' '-O2' '-v' '-shared' '-L/home/piotro/minimyth-dev/images/main/usr/lib' '-L../../external/libmythdvdnav' '-L../../external/libudfread' '-L../libmyth' '-L../../external/FFmpeg/libswresample' '-L../../external/FFmpeg/libavutil' '-L../../external/FFmpeg/libavcodec' '-L../../external/FFmpeg/libavformat' '-L../../external/FFmpeg/libswscale' '-L../../external/FFmpeg/libpostproc' '-L../../external/FFmpeg/libavfilter' '-L../libmythui' '-L../libmythupnp' '-L../libmythbase' '-L../libmythservicecontracts' '-L../libmythfreemheg' '-pthread' '-shared-libgcc' '-mcpu=arm10tdmi' '-mtls-dialect=gnu' '-marm' '-dumpdir' './' '-dumpbase' 'libmythtv-32.so.32.0.0.wpa' '-fltrans-output-list=/tmp/libmythtv-32.so.32.0.0.bfgQHe.ltrans.out' '-fwpa' '-fresolution=/tmp/ccUX1bUc.res' '-flinker-output=dyn' '-shared-libgcc' '-march=armv5t'
armv7a-minimyth-linux-gnueabihf-g++ #/tmp/ccKCtvMG
Using built-in specs.
COLLECT_GCC=armv7a-minimyth-linux-gnueabihf-g++
Target: armv7a-minimyth-linux-gnueabihf
Configured with: .//../../../work/build_main.d/gcc-9.3.0/configure --prefix=/home/piotro/minimyth-dev/images/build/usr --exec_prefix=/home/piotro/minimyth-dev/images/build/usr --bindir=/home/piotro/minimyth-dev/images/build/usr/bin --sbindir=/home/piotro/minimyth-dev/images/build/usr/sbin --libexecdir=/home/piotro/minimyth-dev/images/build/usr/libexec --datadir=/home/piotro/minimyth-dev/images/build/usr/share --sysconfdir=/home/piotro/minimyth-dev/images/build/etc --sharedstatedir=/home/piotro/minimyth-dev/images/build/usr/share --localstatedir=/home/piotro/minimyth-dev/images/build/var --libdir=/home/piotro/minimyth-dev/images/build/usr/lib --infodir=/home/piotro/minimyth-dev/images/build/usr/info --includedir=/home/piotro/minimyth-dev/images/build/usr/include --oldincludedir=/home/piotro/minimyth-dev/images/build/usr/include --mandir=/home/piotro/minimyth-dev/images/build/usr/share/man --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=armv7a-minimyth-linux-gnueabihf --with-gnu-as --with-gnu-ld --with-local-prefix=/usr --enable-plugin --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ --enable-libatommic --enable-libgomp --enable-gold --enable-ld --disable-libquadmath --disable-libquadmath-support --disable-libada --disable-libssp --enable-lto --disable-multilib --enable-nls --enable-decimal-float --enable-shared --enable-host-shared --enable-threads=posix --enable-version-specific-runtime-libs --with-mpc-include=//home/piotro/minimyth-dev/images/build/usr/include --with-mpc-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-mpfr-include=//home/piotro/minimyth-dev/images/build/usr/include --with-mpfr-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-gmp-include=//home/piotro/minimyth-dev/images/build/usr/include --with-gmp-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-isl-include=//home/piotro/minimyth-dev/images/build/usr/include --with-isl-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-libelf-include=//home/piotro/minimyth-dev/images/build/usr/include --with-libelf-lib=//home/piotro/minimyth-dev/images/build/usr/lib --with-sysroot=/home/piotro/minimyth-dev/images/main
Thread model: posix
gcc version 9.3.0 (GCC)
COLLECT_GCC_OPTIONS='-c' '-fno-openmp' '-fno-openacc' '-fno-pie' '-mtune=cortex-a7' '-mfloat-abi=softfp' '-mfpu=neon-vfpv4' '-mtls-dialect=gnu' '-O2' '-v' '-shared' '-L/home/piotro/minimyth-dev/images/main/usr/lib' '-L../../external/libmythdvdnav' '-L../../external/libudfread' '-L../libmyth' '-L../../external/FFmpeg/libswresample' '-L../../external/FFmpeg/libavutil' '-L../../external/FFmpeg/libavcodec' '-L../../external/FFmpeg/libavformat' '-L../../external/FFmpeg/libswscale' '-L../../external/FFmpeg/libpostproc' '-L../../external/FFmpeg/libavfilter' '-L../libmythui' '-L../libmythupnp' '-L../libmythbase' '-L../libmythservicecontracts' '-L../libmythfreemheg' '-pthread' '-shared-libgcc' '-mcpu=arm10tdmi' '-mtls-dialect=gnu' '-marm' '-dumpdir' './' '-dumpbase' 'libmythtv-32.so.32.0.0.ltrans0' '-fltrans' '-o' '/tmp/libmythtv-32.so.32.0.0.bfgQHe.ltrans0.ltrans.o' '-shared-libgcc' '-march=armv5t'
/home/piotro/minimyth-dev/images/build/usr/libexec/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/lto1 -quiet -dumpdir ./ -dumpbase libmythtv-32.so.32.0.0.ltrans0 -mtune=cortex-a7 -mfloat-abi=softfp -mfpu=neon-vfpv4 -mtls-dialect=gnu -mcpu=arm10tdmi -mtls-dialect=gnu -marm -march=armv5t -auxbase-strip /tmp/libmythtv-32.so.32.0.0.bfgQHe.ltrans0.ltrans.o -O2 -version -fno-openmp -fno-openacc -fno-pie -fltrans #/tmp/ccD9DwUp -o /tmp/ccdmhKhE.s
GNU GIMPLE (GCC) version 9.3.0 (armv7a-minimyth-linux-gnueabihf)
compiled by GNU C version 9.3.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 9.3.0 (armv7a-minimyth-linux-gnueabihf)
compiled by GNU C version 9.3.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.18-GMP
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
In function ‘u2p’:
lto1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: armv7a-minimyth-linux-gnueabihf-g++ returned 1 exit status
compilation terminated.
/home/piotro/minimyth-dev/images/build/usr/lib/gcc/armv7a-minimyth-linux-gnueabihf/9.3.0/../../../../armv7a-minimyth-linux-gnueabihf/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Well - partial explanation/solution: my toolchain seems to be configured with LTO enabled by default. I'm not passing explicitly -fno-lto to turn it off at app. compilation. Adding this solves issue....

Conflict between gcc and clang when compiling a code on Mac Osx El Capitan

I was compiling a code (wgrib) which needs C and Fortran. I have installed Xcode 7.3.1 and the relative command line tools for Xcode 7.3 on my MacOsx El Capitan.
I'm pasting the command line and the config.log after compiling wgrib (which failed).
export CC=/usr/bin/gcc
export FC=/usr/local/bin/gfortran
sudo make wgrib
makefile:362: *** ERROR, fortran compiler (enironment vararible FC) is not recognized. Stop.
vi config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by libaec configure 1.0.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-shared --prefix=/usr/local/grib2
## --------- ##
## Platform. ##
## --------- ##
hostname = IMac-Arianna.local
uname -m = x86_64
uname -r = 15.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 15.6.0: Fri Feb 17 10:21:18 PST 2017; root:xnu-3248.60.11.4.1~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 15.6.0: Fri Feb 17 10:21:18 PST 2017; root:xnu-3248.60.11.4.1~1/RELEASE_X86_64
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 4.00 gigabytes
Default processor set: 232 tasks, 903 threads, 2 processors
Load average: 4.19, Mach factor: 0.54
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Library/Frameworks/Python.framework/Versions/3.5/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /Library/Frameworks/GDAL.framework/Programs
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: .
PATH: /Users/arianna/seadas6.1/scripts
PATH: /Users/arianna/seadas6.1/bin
PATH: .
PATH: /Users/arianna/seadas6.1/src/lib3/hdf4/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /opt/X11/bin
PATH: /Library/TeX/texbin
PATH: /Applications/itt/idl/idl80/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2430: checking build system type
configure:2444: result: x86_64-apple-darwin15.6.0
configure:2464: checking host system type
configure:2477: result: x86_64-apple-darwin15.6.0
configure:2518: checking how to print strings
configure:2545: result: printf
configure:2617: checking for gcc
configure:2644: result: /usr/bin/gcc
configure:2873: checking for C compiler version
configure:2882: /usr/bin/gcc --version >&5
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:2893: $? = 0
configure:2882: /usr/bin/gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:2893: $? = 0
configure:2882: /usr/bin/gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:2893: $? = 1
configure:2882: /usr/bin/gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:2893: $? = 1
configure:2913: checking whether the C compiler works
configure:2935: /usr/bin/gcc -I/usr/local/grib2/include -Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security --fast-math -O3 -DGFORTRAN -fopenmp -I/usr/local/grib2/jasper-1.900.1/src/libjasper/include -I/usr/include conftest.c >&5
clang: error: unsupported option '--fast-math'
clang: error: unsupported option '-fopenmp'
clang: error: unsupported option '-fopenmp'
configure:2939: $? = 1
configure:2977: result: no
configure: failed program was:
| /* confdefs.h */
| /* confdefs.h */
| #define PACKAGE_NAME "libaec"
| #define PACKAGE_TARNAME "libaec"
| #define PACKAGE_VERSION "1.0.0"
| #define PACKAGE_STRING "libaec 1.0.0"
| #define PACKAGE_BUGREPORT "rosenhauer#dkrz.de"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2982: error: in `/usr/local/grib2/libaec-1.0.0':
configure:2984: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin15.6.0
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-I/usr/local/grib2/include -Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security --fast-math -O3 -DGFORTRAN -fopenmp -I/usr/local/grib2/jasper-1.900.1/src/libjasper/include -I/usr/include '
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
AMDEP_TRUE=''
AMTAR=''
AM_BACKSLASH=''
AM_DEFAULT_V=''
AM_DEFAULT_VERBOSITY=''
AM_V=''
AR=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
CC='/usr/bin/gcc'
CCDEPMODE=''
CFLAGS='-I/usr/local/grib2/include -Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security --fast-math -O3 -DGFORTRAN -fopenmp -I/usr/local/grib2/jasper-1.900.1/src/libjasper/include -I/usr/include '
CFLAG_VISIBILITY=''
CPP=''
CPPFLAGS=''
CYGPATH_W=''
DEFS=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/grib2'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
pdfdir='${docdir}'
prefix='/usr/local/grib2'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "libaec"
#define PACKAGE_TARNAME "libaec"
#define PACKAGE_VERSION "1.0.0"
#define PACKAGE_STRING "libaec 1.0.0"
#define PACKAGE_BUGREPORT "rosenhauer#dkrz.de"
#define PACKAGE_URL ""
configure: exit 77
You're using clang, not the GNU gcc, as noted by the output:
/usr/bin/gcc --version
Apple LLVM version 7.3.0 (clang-703.0.31)
libaec is known to have compatibility issues with clang, using the real gcc instead should fix your problem:
brew install gcc
export CC=gcc-9 # Use the version listed in `ls /usr/local/bin/gcc-*`, not clang gcc
export FC=gfortran
make

Janus WebRTC installation issue?

I am installing Janus WebRTC on Beaglebone Black(BBB).
I execute the janus_config.sh script file below to set environment variables:
#!/bin/bash
if [ $# -gt 1 ] || [ $# -eq 0 ]; then
echo "Usage: source /path/to/this/build_script.sh path/where/dependencies/built"
fi
JANUS_PATH=$1
if ! [ -d $JANUS_PATH ]; then
mkdir -v $JANUS_PATH
fi
BUILD==$(./config.guess)
unset JANUS_CFLAGS
JANUS_CFLAGS+="-I$1/include/glib-2.0 "
JANUS_CFLAGS+="-I$1/lib/glib-2.0/include "
JANUS_CFLAGS+="-I$1/include "
JANUS_CFLAGS+="-I$1/include/gio-unix-2.0/gio "
JANUS_CFLAGS+="-I$1/include/nice "
JANUS_CFLAGS+="-I/home/debian/usr/local/include/openssl "
JANUS_CFLAGS+="-I$1/include/opus "
JANUS_CFLAGS+="-I$1/include/sofia-sip-1.12/sofia-resolv "
JANUS_CFLAGS+="-I$1/include/srtp "
JANUS_CFLAGS+="-I$1/include/stun "
JANUS_CFLAGS+="-I$1/include/stun/usages "
JANUS_CFLAGS+="-I$1/lib/libffi-3.2.1/include "
export JANUS_CFLAGS
unset JANUS_LIBS
JANUS_LIBS+="-L$1/lib -lglib-2.0 "
JANUS_LIBS+="-L/home/debian/usr/local/lib -lssl -lcrypto "
JANUS_LIBS+="-L$1/lib -lsrtp -lcrypto "
JANUS_LIBS+="-L$1/lib -lusrsctp"
export JANUS_LIBS
unset LDFLAGS
LDFLAGS+="-L$1/lib "
LDFLAGS+="-L/home/debian/usr/local/lib"
export LDFLAGS
unset LIBS
LIBS+="-lsrtp -lcrypto -lusrsctp -lglib-2.0 -lnice -lgio-2.0 -lgobject-2.0 -lsofia-sip-ua -ljansson -lssl -lgmodule-2.0 "
LIBS+="-lffi -lgthread-2.0 -lz "
export LIBS
unset CPPFLAGS
CPPFLAGS+="-I$1/include "
CPPFLAGS+="-I$1/include/glib-2.0 "
CPPFLAGS+="-I$1/lib/glib-2.0/include "
CPPFLAGS+="-pthread -I$1/include/nice "
CPPFLAGS+="-I$1/include/sofia-sip-1.12"
export CPPFLAGS
unset TRANSPORTS_CFLAGS
TRANSPORTS_CFLAGS+="-I$1/include/glib-2.0 "
TRANSPORTS_CFLAGS+="-I$1/lib/glib-2.0/include "
TRANSPORTS_CFLAGS+="-I$1/include"
export TRANSPORTS_CFLAGS
unset TRANSPORTS_LIBS
TRANSPORTS_LIBS+="-L$1/lib -lglib-2.0 "
TRANSPORTS_LIBS+="-L/home/debian/usr/local/lib -lssl -lcrypto "
TRANSPORTS_LIBS+="-L$1/lib -lsrtp -lcrypto "
TRANSPORTS_LIBS+="-L$1/lib -lusrsctp"
export TRANSPORTS_LIBS
unset PLUGINS_CFLAGS
unset PLUGINS_LIBS
PLUGINS_CFLAGS=$JANUS_CFLAGS
PLUGINS_LIBS=$JANUS_LIBS
export PLUGINS_CFLAGS
export PLUGINS_LIBS
./configure --build=$BUILD --disable-plugin-voicemail --disable-plugin-videoroom --disable-plugin-videocall --disable-plugin-recordplay --disable-plugin-echotest --disable-plugin-audiobridge --disable-websockets --disable-rabbitmq --disable-plugin-sip --disable-docs --prefix=$JANUS_PATH
When run command source janus_config.sh $PREFIX,I get error, see config.log below for more detail:
/*
$ ./configure --build==armv7l-unknown-linux-gnueabihf --disable-plugin-voicemail --disable-plugin-videoroom --disable-plugin-videocall --disable-plugin-recordplay --disable-plugin-echotest --disable-plugin-audiobridge --disable-websockets --disable-rabbitmq --disable-plugin-sip --disable-docs --prefix=/home/debian/Janus/usr
## --------- ##
## Platform. ##
## --------- ##
hostname = beaglebone
uname -m = armv7l
uname -r = 3.8.13-bone70
uname -s = Linux
uname -v = #1 SMP Fri Jan 23 02:15:42 UTC 2015
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/debian/bin
PATH: /home/debian/.linuxbrew/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/local/games
PATH: /usr/games
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2466: checking for a BSD-compatible install
configure:2534: result: /usr/bin/install -c
configure:2545: checking whether build environment is sane
configure:2600: result: yes
configure:2751: checking for a thread-safe mkdir -p
configure:2790: result: /bin/mkdir -p
configure:2797: checking for gawk
configure:2827: result: no
configure:2797: checking for mawk
configure:2813: found /usr/bin/mawk
configure:2824: result: mawk
configure:2835: checking whether make sets $(MAKE)
configure:2857: result: yes
configure:2886: checking whether make supports nested variables
configure:2903: result: yes
configure:3040: checking whether make supports nested variables
configure:3057: result: yes
configure:3081: checking for style of include used by make
configure:3109: result: GNU
configure:3180: checking for gcc
configure:3196: found /usr/bin/gcc
configure:3207: result: gcc
configure:3436: checking for C compiler version
configure:3445: gcc --version >&5
gcc (Debian 4.9.2-10) 4.9.2
Copyright (C) 2014 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.
configure:3456: $? = 0
configure:3445: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-10)
configure:3456: $? = 0
configure:3445: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3456: $? = 4
configure:3445: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3456: $? = 4
configure:3476: checking whether the C compiler works
configure:3498: gcc -I/home/debian/Janus/usr/include -I/home/debian/Janus/usr/include/glib-2.0 -I/home/debian/Janus/usr/lib/glib-2.0/include -pthread -I/home/debian/Janus/usr/include/nice -I/home/debian/Janus/usr/include/sofia-sip-1.12 -L/home/debian/Janus/usr/lib -L/home/debian/usr/local/lib conftest.c -lsrtp -lcrypto -lusrsctp -lglib-2.0 -lnice -lgio-2.0 -lgobject-2.0 -lsofia-sip-ua -ljansson -lssl -lgmodule-2.0 -lffi -lgthread-2.0 -lz >&5
I think problem is here because openssl directory is not as I set in janus_config.sh, I install openssl in /home/debian/usr/local
/home/debian/Janus/usr/lib/libcrypto.a(mem_clr.o): In function `OPENSSL_cleanse':
mem_clr.c:(.text+0x0): multiple definition of `OPENSSL_cleanse'
/home/debian/Janus/usr/lib/libcrypto.a(armv4cpuid.o):(.text+0x1c): first defined here
/home/debian/Janus/usr/lib/libcrypto.a(armcap.o): In function `OPENSSL_cpuid_setup':
armcap.c:(.text.startup+0x0): multiple definition of `OPENSSL_cpuid_setup'
/home/debian/Janus/usr/lib/libcrypto.a(cryptlib.o):cryptlib.c:(.text+0x8d8): first defined here
collect2: error: ld returned 1 exit status
configure:3502: $? = 1
configure:3540: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Janus Gateway"
| #define PACKAGE_TARNAME "janus-gateway"
| #define PACKAGE_VERSION "0.1.0"
| #define PACKAGE_STRING "Janus Gateway 0.1.0"
| #define PACKAGE_BUGREPORT "https://github.com/meetecho/janus-gateway"
| #define PACKAGE_URL "https://janus.conf.meetecho.com"
| #define PACKAGE "janus-gateway"
| #define VERSION "0.1.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3545: error: in `/home/debian/Janus/Dependencies/janus-gateway-master':
configure:3547: error: C compiler cannot create executables
See `config.log' for more details;
*/
Could you help me find out the problem here?
Multiples definitions for the same resource, problably, how did you configure it??? try this:
./config -fPIC -DOPENSSL_PIC

How to solve bad instruction `vadd.i16 q0,q0,q0' when attempting to check gcc for neon instruction

Checking gcc supports failed for neon instruction vadd.i16 q0,q0,q0
test.c
int main ()
{
__asm__("vadd.i16 q0, q0, q0"); return 0;
}
arm-linux-androideabi-gcc test.c
/tmp/ccfc8m0G.s: Assembler messages:
/tmp/ccfc8m0G.s:24: Error: bad instruction `vadd.i16 q0,q0,q0'
Tried with flags -mcpu=cortex-a8 -mfpu=neon but stil no success
Above code was used to test gcc support for neon instruction.
Actually i am trying to build x264 with NEON support for ARM platformAfter running configure script
x264 config log file contains
Command line options: "--cross-prefix=arm-linux-androideabi-" "--enable-pic" "--extra- cflags=-mcpu=cortex-a8" "--host=arm-linux"
checking whether arm-linux-androideabi-gcc works... yes
checking whether arm-linux-androideabi-gcc supports for( int i = 0; i < 9; i++ ); with -std=gnu99... yes
checking whether arm-linux-androideabi-gcc supports __asm__("rev ip, ip");... yes
checking whether arm-linux-androideabi-gcc supports __asm__("movt r0, #0");... yes
checking whether arm-linux-androideabi-gcc supports __asm__("vadd.i16 q0, q0, q0");... no
arm-linux-androideabi-gcc conftest.c -Wall -I. -I$(SRCPATH) -mcpu=cortex-a8 -std=gnu99 -lm -o conftest
E:\cygwin\tmp\ccVtVI1i.s: Assembler messages:
E:\cygwin\tmp\ccVtVI1i.s:24: Error: bad instruction `vadd.i16 q0,q0,q0'
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main () { __asm__("vadd.i16 q0, q0, q0"); return 0; }
--------------------------------------------------
config.h contains
#define HAVE_MALLOC_H 1
#define HAVE_ARMV6 1
#define HAVE_ARMV6T2 1
#define ARCH_ARM 1
#define SYS_LINUX 1
#define HAVE_VECTOREXT 1
#define fseek fseeko
#define ftell ftello
#define HAVE_GPL 1
#define HAVE_INTERLACED 1
#define HAVE_ALTIVEC 0
#define HAVE_ALTIVEC_H 0
#define HAVE_MMX 0
#define HAVE_NEON 0
#define HAVE_BEOSTHREAD 0
#define HAVE_POSIXTHREAD 0
#define HAVE_WIN32THREAD 0
#define HAVE_THREAD 0
#define HAVE_LOG2F 0
#define HAVE_VISUALIZE 0
#define HAVE_SWSCALE 0
#define HAVE_LAVF 0
#define HAVE_FFMS 0
#define HAVE_GPAC 0
#define HAVE_GF_MALLOC 0
#define HAVE_AVS 0
#define HAVE_CPU_COUNT 0
Running make command build x264 static lib based on above config.h which contains HAVE_NEON 0
**Compiler Version**
arm-linux-androideabi-gcc -v
Using built-in specs.
Target: arm-linux-androideabi
Configured with: /tmp/ndk-digit/src/build/../gcc/gcc-4.4.3/configure --prefix=/usr/local/google/digit/repo/opensource/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows --target=arm-linux-androideabi --host=i586-mingw32msvc --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/tmp/ndk-digit/build/toolchain/temp-install --with-mpfr=/tmp/ndk-digit/build/toolchain/temp-install --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable
-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-target-optspace --enable-initfini-array --disable-nls --prefix=/usr/local/google/digit/repo/opensource/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows --with-sysroot=/usr/local/google/digit/repo/opensource/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/sysroot --with-binutils-version=2.20.1 --with-mpfr-version=2.4.1 --with
-gmp-version=4.2.4 --with-gcc-version=4.4.3 --with-gdb-version=6.6 --with-arch=armv5te --program-transform-name='s,^,arm-linux-androideabi-,'
Thread model: posix
gcc version 4.4.3 (GCC)
Goal is to utilize neon enabled ARM processor to boost x264 encoder performance...
I'm not really sure what it is you want to accomplish. Do you just want to see if gcc can compile neon instructions, or see if the CPU in question supports neon?
In any case:
I cannot get your code to work either. After googling around, it seems that gcc cannot really handle inline neon code very well. Apparantly the -mfpu=neon flag is somehow ignored (if you compile to .s with the -E flag, you will see that .fpu is set to softvfp even if -mfpu=neon was used)
Consider writing a .S or .s file instead. Something like this:
test.s
.cpu cortex-a8
.fpu neon
.text
.align 2
.global f
.type f, %function
f:
vadd.i16 q0, q0, q0
.size f, .-f
For what it's worth this instruction works fine for me with gcc 4.5.1 (CodeSourcery).
Try with these switches:
-mfpu=neon
-mfloat-abi=softfp
-mcpu=cortex-a8
-march=armv7-a
-mthumb

Problems in Mac Lion Software compiler problems .. correct setup process required

The system has been useing Macports. I configured the system exactly as per the line by line instructions of these guidelines. In the process I got the error below. The only change I have from it is that instead of using easy_install I did easy_install-2.6. I feel it is a CXX error something which is kind of above my knowledge. Can some one help me in setting up my Mac correctly? I am a heavy user of Xcode (iPhone development) and a Roboticist and need a compiler for executing C files. I would also be willing on working with Python for this and future setups (wsgi applications). I have a 64-bit OSX Lion running currently.
{-------------------------------------------------------------------------------
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
[rosbuild] Building package rosconsole
[rosbuild] Cached build flags older than manifests; calling rospack to get flags
[rosbuild] Including /Users/rajeshmedampudi/ros/ros_comm/clients/roslisp/cmake/roslisp.cmake
[rosbuild] Including /Users/rajeshmedampudi/ros/ros_comm/clients/rospy/cmake/rospy.cmake
[rosbuild] Including /Users/rajeshmedampudi/ros/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/rajeshmedampudi/ros/ros_comm/tools/rosconsole/build
cd build && make -l8
Scanning dependencies of target rospack_genmsg_libexe
[ 0%] Built target rospack_genmsg_libexe
Scanning dependencies of target rosbuild_precompile
[ 0%] Built target rosbuild_precompile
Scanning dependencies of target rosconsole
[ 50%] Building CXX object CMakeFiles/rosconsole.dir/src/rosconsole/rosconsole.o
/Users/rajeshmedampudi/ros/ros_comm/tools/rosconsole/src/rosconsole/rosconsole.cpp:684: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make[3]: *** [CMakeFiles/rosconsole.dir/src/rosconsole/rosconsole.o] Error 1
make[2]: *** [CMakeFiles/rosconsole.dir/all] Error 2
make[1]: *** [all] Error 2
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package rosconsole written to:
[ rosmake ] /Users/rajeshmedampudi/.ros/rosmake/rosmake_output-20111107-233014/rosconsole/build_output.log
[rosmake-4] Finished <<< rosconsole [FAIL] [ 7.71 seconds ]
[ rosmake ] Halting due to failure in package rosconsole.
[ rosmake ] Waiting for other threads to complete.
[rosmake-0] Finished <<< rosunit [PASS] [ 24.44 seconds ]
[rosmake-5] Finished <<< rosgraph [PASS] [ 24.44 seconds ]
[rosmake-6] Finished <<< std_msgs [PASS] [ 24.44 seconds ]
[ rosmake ] Results:
[ rosmake ] Built 28 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /Users/rajeshmedampudi/.ros/rosmake/rosmake_output-20111107-233014
Traceback (most recent call last):
File "/usr/local/bin/rosinstall", line 5, in <module>
pkg_resources.run_script('rosinstall==0.5.22', 'rosinstall')
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 489, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1214, in run_script
exec script_code in namespace, namespace
File "/Library/Python/2.6/site-packages/rosinstall-0.5.22-py2.6.egg/EGG-INFO/scripts/rosinstall", line 679, in <module>
File "/Library/Python/2.6/site-packages/rosinstall-0.5.22-py2.6.egg/EGG-INFO/scripts/rosinstall", line 670, in rosinstall_main
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 488, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'source /Users/rajeshmedampudi/ros/setup.sh && rosmake ros ros_comm --rosdep-install' returned non-zero exit status 1
This is the Config problem i am having while i am trying to compile with my current llvm-gcc
This is the config.log(in full) as you already must be knowing i am a little inexperienced with the compiler changes and all...
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by llvm configure 3.1svn, which was
generated by GNU Autoconf 2.60. Invocation command line was
$ ./configure --prefix=/opt --enable-optimized
## --------- ##
## Platform. ##
## --------- ##
hostname = Rajeshs-Mac-Pro.local
uname -m = x86_64
uname -r = 11.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 8.00 gigabytes
Default processor set: 141 tasks, 759 threads, 8 processors
Load average: 0.99, Mach factor: 7.00
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Library/Frameworks/Python.framework/Versions/2.7/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /Library/Frameworks/Python.framework/Versions/2.6/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /usr/local/mysql/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/X11/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2067: checking for C compiler version
configure:2074: clang --version >&5
Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.2.0
Thread model: posix
configure:2077: $? = 0
configure:2084: clang -v >&5
Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin11.2.0
Thread model: posix
configure:2087: $? = 0
configure:2094: clang -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:2097: $? = 1
configure:2120: checking for C compiler default output file name
configure:2147: clang -Qunused-arguments -Qunused-arguments conftest.c >&5
configure:2150: $? = 0
configure:2196: result: a.out
configure:2201: checking whether the C compiler works
configure:2211: ./a.out
configure:2214: $? = 0
configure:2231: result: yes
configure:2238: checking whether we are cross compiling
configure:2240: result: no
configure:2243: checking for suffix of executables
configure:2250: clang -o conftest -Qunused-arguments -Qunused-arguments conftest.c >&5
configure:2253: $? = 0
configure:2277: result:
configure:2283: checking for suffix of object files
configure:2309: clang -c -Qunused-arguments -Qunused-arguments conftest.c >&5
configure:2312: $? = 0
configure:2335: result: o
configure:2339: checking whether we are using the GNU C compiler
configure:2368: clang -c -Qunused-arguments -Qunused-arguments conftest.c >&5
configure:2374: $? = 0
configure:2381: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:2384: $? = 0
configure:2391: test -s conftest.o
configure:2394: $? = 0
configure:2408: result: yes
configure:2413: checking whether clang accepts -g
configure:2443: clang -c -g -Qunused-arguments conftest.c >&5
configure:2449: $? = 0
configure:2456: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:2459: $? = 0
configure:2466: test -s conftest.o
configure:2469: $? = 0
configure:2599: result: yes
configure:2616: checking for clang option to accept ISO C89
configure:2690: clang -c -Qunused-arguments -Qunused-arguments conftest.c >&5
configure:2696: $? = 0
configure:2703: test -z "$ac_c_werror_flag" || test ! -s conftest.err
configure:2706: $? = 0
configure:2713: test -s conftest.o
configure:2716: $? = 0
configure:2736: result: none needed
configure:2870: checking for C++ compiler version
configure:2877: llvm-g++ --version >&5
i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
Copyright (C) 2007 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.
configure:2880: $? = 0
configure:2887: llvm-g++ -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~1/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
configure:2890: $? = 0
configure:2897: llvm-g++ -V >&5
llvm-g++-4.2: argument to `-V' is missing
configure:2900: $? = 1
configure:2903: checking whether we are using the GNU C++ compiler
configure:2932: llvm-g++ -c -Qunused-arguments conftest.cpp >&5
configure:2938: $? = 0
configure:2945: test -z "$ac_cxx_werror_flag" || test ! -s conftest.err
configure:2948: $? = 0
configure:2955: test -s conftest.o
configure:2958: $? = 0
configure:2972: result: yes
configure:2977: checking whether llvm-g++ accepts -g
configure:3007: llvm-g++ -c -g -Qunused-arguments conftest.cpp >&5
configure:3013: $? = 0
configure:3020: test -z "$ac_cxx_werror_flag" || test ! -s conftest.err
configure:3023: $? = 0
configure:3030: test -s conftest.o
configure:3033: $? = 0
configure:3163: result: yes
configure:3191: checking how to run the C preprocessor
configure:3321: result: llvm-gcc-4.2
configure:3350: llvm-gcc-4.2 -Qunused-arguments conftest.c
conftest.c:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'error'
configure:3356: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "llvm"
| #define PACKAGE_TARNAME "-llvm-"
| #define PACKAGE_VERSION "3.1svn"
| #define PACKAGE_STRING "llvm 3.1svn"
| #define PACKAGE_BUGREPORT "llvmbugs#cs.uiuc.edu"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3350: llvm-gcc-4.2 -Qunused-arguments conftest.c
conftest.c:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'error'
configure:3356: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "llvm"
| #define PACKAGE_TARNAME "-llvm-"
| #define PACKAGE_VERSION "3.1svn"
| #define PACKAGE_STRING "llvm 3.1svn"
| #define PACKAGE_BUGREPORT "llvmbugs#cs.uiuc.edu"
| /* end confdefs.h. */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
| Syntax error
configure:3432: error: C preprocessor "llvm-gcc-4.2" fails sanity check
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=clang
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-Qunused-arguments
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-Qunused-arguments
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=llvm-gcc-4.2
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=llvm-g++
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_objext=o
ac_cv_prog_CPP=llvm-gcc-4.2
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ALL_BINDINGS=''
AR=''
ARCH=''
BINDINGS_TO_BUILD=''
BINPWD=''
BINUTILS_INCDIR=''
BUILD_CC=''
BUILD_CXX=''
BUILD_EXEEXT=''
BZIP2=''
CAT=''
CC='clang'
CFLAGS='-Qunused-arguments'
CIRCO=''
CLANG_SRC_ROOT=''
CMP=''
CONVENIENCE_LTDL_FALSE=''
CONVENIENCE_LTDL_TRUE=''
CP=''
CPP='llvm-gcc-4.2'
CPPFLAGS='-Qunused-arguments'
CVSBUILD=''
CXX='llvm-g++'
CXXFLAGS='-g -O2'
DATE=''
DEBUG_RUNTIME=''
DEBUG_SYMBOLS=''
DEFS=''
DISABLE_ASSERTIONS=''
DOT=''
DOTTY=''
DOXYGEN=''
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP=''
ENABLE_CBE_PRINTF_A=''
ENABLE_DOCS=''
ENABLE_DOXYGEN=''
ENABLE_EMBED_STDCXX=''
ENABLE_EXPENSIVE_CHECKS=''
ENABLE_OPTIMIZED=''
ENABLE_PIC=''
ENABLE_POLLY=''
ENABLE_PROFILING=''
ENABLE_PTHREADS=''
ENABLE_SHARED=''
ENABLE_THREADS=''
ENABLE_TIMESTAMPS=''
ENABLE_VISIBILITY_INLINES_HIDDEN=''
ENDIAN=''
EXEEXT=''
EXPENSIVE_CHECKS=''
EXTRA_LD_OPTIONS=''
EXTRA_OPTIONS=''
FDP=''
FIND=''
GAS=''
GRAPHVIZ=''
GREP=''
GROFF=''
GV=''
GZIPBIN=''
HAVE_LINK_VERSION_SCRIPT=''
HAVE_PERL=''
HAVE_PTHREAD=''
HOST_OS=''
HUGE_VAL_SANITY=''
INSTALL_DATA=''
INSTALL_LTDL_FALSE=''
INSTALL_LTDL_TRUE=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
JIT=''
LDFLAGS=''
LIBADD_DL=''
LIBOBJS=''
LIBS=''
LINKALL=''
LLVM_BINDIR=''
LLVM_CONFIGTIME=''
LLVM_COPYRIGHT='Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.'
LLVM_CROSS_COMPILING=''
LLVM_DATADIR=''
LLVM_DOCSDIR=''
LLVM_ENUM_ASM_PARSERS=''
LLVM_ENUM_ASM_PRINTERS=''
LLVM_ENUM_DISASSEMBLERS=''
LLVM_ENUM_TARGETS=''
LLVM_ETCDIR=''
LLVM_HAS_POLLY=''
LLVM_INCLUDEDIR=''
LLVM_INFODIR=''
LLVM_LIBDIR=''
LLVM_MANDIR=''
LLVM_ON_UNIX=''
LLVM_ON_WIN32=''
LLVM_PREFIX=''
LN_S=''
LTLIBOBJS=''
MKDIR=''
MMAP_FILE=''
MV=''
NEATO=''
NM=''
NOLINKALL=''
NO_MISSING_FIELD_INITIALIZERS=''
NO_VARIADIC_MACROS=''
OBJEXT='o'
OCAMLC=''
OCAMLDEP=''
OCAMLDOC=''
OCAMLOPT=''
OCAML_LIBDIR=''
OPTIMIZE_OPTION=''
OS=''
PACKAGE_BUGREPORT='llvmbugs#cs.uiuc.edu'
PACKAGE_NAME='llvm'
PACKAGE_STRING='llvm 3.1svn'
PACKAGE_TARNAME='-llvm-'
PACKAGE_VERSION='3.1svn'
PATH_SEPARATOR=':'
PDFROFF=''
PERL=''
POD2HTML=''
POD2MAN=''
RANLIB=''
RDYNAMIC=''
RM=''
RPATH=''
RUNTEST=''
SED=''
SHELL='/bin/sh'
SHLIBEXT=''
SHLIBPATH_VAR=''
TAR=''
TARGETS_TO_BUILD=''
TARGET_HAS_JIT=''
TARGET_OS=''
TCLSH=''
TWOPI=''
USE_OPROFILE=''
USE_UDIS86=''
XDOT_PY=''
ZIP=''
ac_ct_CC=''
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
ifGNUmake=''
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/opt'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
target=''
target_alias=''
target_cpu=''
target_os=''
target_vendor=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "llvm"
#define PACKAGE_TARNAME "-llvm-"
#define PACKAGE_VERSION "3.1svn"
#define PACKAGE_STRING "llvm 3.1svn"
#define PACKAGE_BUGREPORT "llvmbugs#cs.uiuc.edu"
configure: exit 1
Now i did not find any material of how to go about in installing llvm-chang in my system where do you need to install it and how to go about it. do you know of any such... It would be a great help in clearing this out... thanks.
PS: this is the guide i am using. i tried making downloading the files to /usr/llvm and they did download but got stuck at the .configure part.... do you want me to specify any other form of messages that need to be done in setting up the mac compiler correctly.
The guidelines you are referring to are outdated, please check the users guide on their website
Have you tried to install the package apple-gcc42 and force the compiler to GCC instead of LLVM? Xcode 4.2 uses LLVM by default and it does not come with GCC anymore.
Well, I just ran into the same problem on Mac OS X Lion (10.7).
So far, this workaround worked for me:
change to the directory ..../ros/ros_comm/tools/rosconsole/build
and call 'make'. This should produce the same error again.
Now call 'make -n' which prints out the commands which are really called by make.
Pick the (long) line where it compiles (c++) rosconsole.cpp from them, change the optimization option from -O2 to -O0 (thats MINUS OHH ZERO) and execute that command.
Then call make again to let it finish its work.
The problem seems that the Python that comes installed with the Lion software seems to have been messe with. What i Basically did was to create a new login and then carry on the installation process with easy-install2.6 . rather than use easy install easy_install

Resources