Using wxWidgets and OpenGL by command line on Mac OS X - macos

I'm trying to compile a project I made under Linux Ubuntu 10.4 with wxWidgets and OpenGL, written in C++ language, on my MacBook with Mac OS X 10.7 (Lion). I installed wxWidgets with this configuration:
$ arch_flags="-arch i386"
$ ../configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --enable-unicode --enable-debug --disable-shared --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6 --with-opengl
Compiling, I obtains a lot of warnings. The compilation fails at the linking phase:
[...]
g++gcc-4.6.x `wx-config --cxxflags` -g -std=c++0x -c -o GUI.o GUI.cc
In file included from /opt/local/include/wx-2.8/wx/mac/glcanvas.h:4:0,
from /opt/local/include/wx-2.8/wx/glcanvas.h:60,
from Fenetre.h:5,
from GUI.cc:2:
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:49:37: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
/opt/local/include/wx-2.8/wx/mac/carbon/glcanvas.h:53:21: warning: ‘AGLDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:47) [-Wdeprecated-declarations]
[...]
g++gcc-4.6.x exerciceP13.o GUI.o Fenetre.o Vue_OpenGL.o Balle.o ChampForces.o Dessinable.o Exception.o Ressort.o Integrateur.o IntegrateurEuler.o ObjetMobile.o Obstacle.o Pendule.o PendulePlan.o PlanInfini.o Vecteur.o Systeme.o Balle3D.o PendulePlan3D.o Brique3D.o Brique.o PlanInfini3D.o Ressort3D.o Couleur.o IntegrateurNewmark.o Vent.o Ventilateur3D.o Trampoline3D.o IntRungKut.o ChampVitesse.o TapisRoulant3D.o PenduleSpherique.o Cylindre.o Cylindre3D.o `wx-config --libs gl,core,base` -o exerciceP13
g++gcc-4.6.x: error: i386: No such file or directory
g++gcc-4.6.x: error: unrecognized option ‘-arch’
make: *** [exerciceP13] Error 1
Here my Makefile et my includes on graphical classes headers:
CC = g++gcc-4.6.x
CXX = g++gcc-4.6.x
CXXFLAGS= `wx-config --cxxflags` -g -std=c++0x
LDLIBS = `wx-config --libs gl,core,base`
all: exerciceP13
exerciceP13: exerciceP13.o GUI.o Fenetre.o Vue_OpenGL.o Balle.o ChampForces.o Dessinable.o Exception.o Ressort.o Integrateur.o IntegrateurEuler.o ObjetMobile.o Obstacle.o Pendule.o PendulePlan.o PlanInfini.o Vecteur.o Systeme.o Balle3D.o PendulePlan3D.o Brique3D.o Brique.o PlanInfini3D.o Ressort3D.o Couleur.o IntegrateurNewmark.o Vent.o Ventilateur3D.o Trampoline3D.o IntRungKut.o ChampVitesse.o TapisRoulant3D.o PenduleSpherique.o Cylindre.o Cylindre3D.o
exerciceP13.o: exerciceP13.cc GUI.h
GUI.o: GUI.h GUI.cc Fenetre.h
Fenetre.o: Fenetre.h Fenetre.cc Vue_OpenGL.h
Vue_OpenGL.o: Vue_OpenGL.h Vue_OpenGL.cc Systeme.h Balle3D.h PendulePlan3D.h PlanInfini.h Brique3D.h PlanInfini3D.h Ressort3D.h IntegrateurEuler.h IntegrateurNewmark.h Ventilateur3D.h Trampoline3D.h Vent.h IntRungKut.h ChampVitesse.h TapisRoulant3D.h Cylindre3D.h
Balle.o: Balle.h Balle.cc ObjetMobile.h Vecteur.h
Brique.o: Brique.h Brique.cc Obstacle.h Vecteur.h ObjetMobile.h
ChampForces.o: ChampForces.h ChampForces.cc Vecteur.h Balle.h Dessinable.h
Dessinable.o: Dessinable.h Dessinable.cc
Exception.o: Exception.h Exception.cc
Integrateur.o: Integrateur.h Integrateur.cc ObjetMobile.h
IntegrateurEuler.o: IntegrateurEuler.h IntegrateurEuler.cc Integrateur.h ObjetMobile.h
ObjetMobile.o: ObjetMobile.h ObjetMobile.cc Vecteur.h Dessinable.h
Obstacle.o: Obstacle.h Obstacle.cc Vecteur.h ObjetMobile.h Dessinable.h
Pendule.o: Pendule.h Pendule.cc ObjetMobile.h Vecteur.h
PendulePlan.o: PendulePlan.h PendulePlan.cc Pendule.h Vecteur.h Balle.h
PlanInfini.o: PlanInfini.h PlanInfini.cc Vecteur.h Obstacle.h
Vecteur.o: Vecteur.h Vecteur.cc Exception.h
Systeme.o: Systeme.h Systeme.cc ObjetMobile.h Obstacle.h ChampForces.h Integrateur.h Dessinable.h
Balle3D.o: Balle3D.h Balle3D.cc Balle.h Couleur.h
PendulePlan3D.o: PendulePlan3D.h PendulePlan3D.cc PendulePlan.h Couleur.h
Brique3D.o: Brique3D.h Brique3D.cc Brique.h Couleur.h
PlanInfini3D.o: PlanInfini.h PlanInfini.cc PlanInfini.h Couleur.h
Ressort.o: Ressort.cc Ressort.h Vecteur.h ObjetMobile.h
Ressort3D.o: Ressort3D.cc Ressort3D.h Ressort.h Couleur.h
Couleur.o: Couleur.h Couleur.cc
IntegrateurNewmark.o: IntegrateurNewmark.h IntegrateurNewmark.cc Integrateur.h
Vent.o: Vent.cc Vent.h Vecteur.h Brique.h ObjetMobile.h ChampForces.h Ventilateur3D.h
Ventilateur3D.o: Ventilateur3D.h Ventilateur3D.cc Vecteur.h Vent.h Systeme.h Brique3D.h Dessinable.h
Trampoline3D.o: Trampoline3D.h Trampoline3D.cc Brique3D.h ObjetMobile.h Systeme.h Dessinable.h
ChampVitesse.o: ChampVitesse.h ChampVitesse.cc Vecteur.h ChampForces.h ObjetMobile.h Brique.h TapisRoulant3D.h
TapisRoulant3D.o: TapisRoulant3D.h TapisRoulant3D.cc Vecteur.h Brique3D.h Systeme.h ChampVitesse.h Dessinable.h
IntRungKut.o: IntRungKut.h IntRungKut.cc Integrateur.h ObjetMobile.h Vecteur.h
PenduleSpherique.o: PenduleSpherique.h PenduleSpherique.cc Pendule.h Vecteur.h
Cylindre.o: Cylindre.h Cylindre.cc Vecteur.h Obstacle.h ObjetMobile.h
Cylindre3D.o: Cylindre3D.h Cylindre3D.cc Vecteur.h Couleur.h Cylindre.h
clean:
rm -f *.o
Includes:
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "wx/glcanvas.h" // Pour combiner wxWidgets et OpenGL

I finally used Macports to install both GCC 4.7 +universal and wxWidgets. It worked very well.

Related

Compiler not working when installing latest version of Ruby on Mac M1

I am trying to install Jekyll on my mac m1, but I cannot because the Ruby m1 macs come with is not up to date. I'm trying to update Ruby to 3.2.0 or to any useable version but this comes up:
checking whether the C compiler works... no
configure: error: in `/Users/OliviaLee/src/ruby-3.2.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
!!! Configuration of ruby 3.2.0 failed!
Here is the config.log file:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ ./configure --prefix=/Users/OliviaLee/.rubies/ruby-3.2.0 --with-opt-dir=/opt/homebrew/opt/openssl#1.1:/opt/homebrew/opt/readline:/opt/homebrew/opt/libyaml:/opt/homebrew/opt/gdbm
## --------- ##
## Platform. ##
## --------- ##
hostname = MacBook-Pro-162.local
uname -m = arm64
uname -r = 22.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103
/usr/bin/uname -p = arm
/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 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103
Kernel configured for up to 8 processors.
8 processors are physically available.
8 processors are logically available.
Processor type: arm64e (ARM64E)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 8.00 gigabytes
Default processor set: 440 tasks, 2772 threads, 8 processors
Load average: 10.08, Mach factor: 1.78
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/homebrew/bin/
PATH: /opt/homebrew/sbin/
PATH: /Users/OliviaLee/.rbenv/shims/
PATH: /opt/homebrew/bin/
PATH: /opt/homebrew/sbin/
PATH: /Library/Frameworks/Python.framework/Versions/3.9/bin/
PATH: /Users/OliviaLee/opt/anaconda3/bin/
PATH: /Users/OliviaLee/opt/anaconda3/condabin/
PATH: /usr/local/bin/
PATH: /System/Cryptexes/App/usr/bin/
PATH: /usr/bin/
PATH: /bin/
PATH: /usr/sbin/
PATH: /sbin/
PATH: /Library/Apple/usr/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3464: looking for aux files: install-sh config.guess config.sub
configure:3477: trying ./tool/
configure:3488: ./tool/install-sh found
configure:3506: ./tool/config.guess found
configure:3506: ./tool/config.sub found
configure:3698: checking for ruby
configure:3721: found /usr/bin/ruby
configure:3734: result: /usr/bin/ruby
configure:3859: checking build system type
configure:3874: result: x86_64-apple-darwin13.4.0
configure:3894: checking host system type
configure:3908: result: x86_64-apple-darwin13.4.0
configure:3928: checking target system type
configure:3942: result: x86_64-apple-darwin13.4.0
configure:4403: checking for x86_64-apple-darwin13.4.0-cl.exe
configure:4435: result: clang
configure:4956: checking for llvm-ar
configure:4988: result: x86_64-apple-darwin13.4.0-ar
configure:5002: checking for clang++
configure:5034: result: x86_64-apple-darwin13.4.0-clang++
configure:5047: checking for llvm-nm
configure:5079: result: x86_64-apple-darwin13.4.0-nm
configure:5092: checking for llvm-objcopy
configure:5113: found /Users/OliviaLee/opt/anaconda3/bin/llvm-objcopy
configure:5124: result: llvm-objcopy
configure:5137: checking for llvm-objdump
configure:5158: found /Users/OliviaLee/opt/anaconda3/bin/llvm-objdump
configure:5169: result: llvm-objdump
configure:5182: checking for llvm-ranlib
configure:5214: result: x86_64-apple-darwin13.4.0-ranlib
configure:5227: checking for llvm-strip
configure:5259: result: x86_64-apple-darwin13.4.0-strip
configure:5536: checking for x86_64-apple-darwin13.4.0-gcc
configure:5568: result: clang
configure:5966: checking for C compiler version
configure:5975: clang --version >&5
clang version 12.0.0
Target: x86_64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /Users/OliviaLee/opt/anaconda3/bin
configure:5986: $? = 0
configure:5975: clang -v >&5
clang version 12.0.0
Target: x86_64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /Users/OliviaLee/opt/anaconda3/bin
configure:5986: $? = 0
configure:5975: clang -V >&5
clang-12: error: argument to '-V' is missing (expected 1 value)
clang-12: error: no input files
configure:5986: $? = 1
configure:5975: clang -qversion >&5
clang-12: error: unknown argument '-qversion'; did you mean '--version'?
clang-12: error: no input files
configure:5986: $? = 1
configure:5975: clang -version >&5
clang-12: error: unknown argument '-version'; did you mean '--version'?
clang-12: error: no input files
configure:5986: $? = 1
configure:6006: checking whether the C compiler works
configure:6028: clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/OliviaLee/opt/anaconda3/include -D_FORTIFY_SOURCE=2 -isystem /Users/OliviaLee/opt/anaconda3/include -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/OliviaLee/opt/anaconda3/lib -L/Users/OliviaLee/opt/anaconda3/lib conftest.c >&5
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd' for architecture x86_64
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
configure:6032: $? = 1
configure:6072: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main (void)
| {
|
| ;
| return 0;
| }
configure:6077: error: in `/Users/OliviaLee/src/ruby-3.2.0':
configure:6079: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin13.4.0
ac_cv_env_AR_set=set
ac_cv_env_AR_value=x86_64-apple-darwin13.4.0-ar
ac_cv_env_AS_set=set
ac_cv_env_AS_value=x86_64-apple-darwin13.4.0-as
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='-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/OliviaLee/opt/anaconda3/include'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-D_FORTIFY_SOURCE=2 -isystem /Users/OliviaLee/opt/anaconda3/include'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isystem /Users/OliviaLee/opt/anaconda3/include'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=x86_64-apple-darwin13.4.0-clang++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/OliviaLee/opt/anaconda3/lib -L/Users/OliviaLee/opt/anaconda3/lib'
ac_cv_env_LD_set=set
ac_cv_env_LD_value=x86_64-apple-darwin13.4.0-ld
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_NM_set=set
ac_cv_env_NM_value=x86_64-apple-darwin13.4.0-nm
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_set=set
ac_cv_env_RANLIB_value=x86_64-apple-darwin13.4.0-ranlib
ac_cv_env_STRIP_set=set
ac_cv_env_STRIP_value=x86_64-apple-darwin13.4.0-strip
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-apple-darwin13.4.0
ac_cv_env_cflags_set=
ac_cv_env_cflags_value=
ac_cv_env_cppflags_set=
ac_cv_env_cppflags_value=
ac_cv_env_cxxflags_set=
ac_cv_env_cxxflags_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-apple-darwin13.4.0
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
ac_cv_host=x86_64-apple-darwin13.4.0
ac_cv_path_BASERUBY=/usr/bin/ruby
ac_cv_prog_AR=x86_64-apple-darwin13.4.0-ar
ac_cv_prog_CC=clang
ac_cv_prog_CXX=x86_64-apple-darwin13.4.0-clang++
ac_cv_prog_NM=x86_64-apple-darwin13.4.0-nm
ac_cv_prog_OBJCOPY=llvm-objcopy
ac_cv_prog_OBJDUMP=llvm-objdump
ac_cv_prog_RANLIB=x86_64-apple-darwin13.4.0-ranlib
ac_cv_prog_STRIP=x86_64-apple-darwin13.4.0-strip
ac_cv_target=x86_64-apple-darwin13.4.0
## ----------------- ##
## Output variables. ##
## ----------------- ##
ADDITIONAL_DLDFLAGS=''
ALLOCA=''
AR='x86_64-apple-darwin13.4.0-ar'
ARCHFILE=''
ARCH_FLAG=''
ARFLAGS=''
AS='x86_64-apple-darwin13.4.0-as'
ASFLAGS=''
ASMEXT=''
BASERUBY='/usr/bin/ruby --disable=gems'
BTESTRUBY=''
BUILTIN_ENCOBJS=''
BUILTIN_TRANSOBJS=''
BUILTIN_TRANSSRCS=''
CAPITARGET=''
CARGO=''
CARGO_BUILD_ARGS=''
CC='clang'
CCDLFLAGS=''
CC_VERSION=''
CC_VERSION_MESSAGE=''
CC_WRAPPER=''
CFLAGS='-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/OliviaLee/opt/anaconda3/include'
CHDIR=''
COMMON_HEADERS=''
COMMON_LIBS=''
COMMON_MACROS=''
CONFIGURE=''
COROUTINE_TYPE=''
COUTFLAG=''
CP=''
CPP=''
CPPFLAGS='-D_FORTIFY_SOURCE=2 -isystem /Users/OliviaLee/opt/anaconda3/include'
CPPOUTFILE=''
CROSS_COMPILING=''
CSRCFLAG=''
CXX='x86_64-apple-darwin13.4.0-clang++'
CXXFLAGS='-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isystem /Users/OliviaLee/opt/anaconda3/include'
DEFS=''
DESTDIR=''
DLDFLAGS=''
DLDLIBS=''
DLDSHARED=''
DLEXT=''
DLLWRAP=''
DLNOBJ=''
DOT=''
DOXYGEN=''
DTRACE=''
DTRACE_EXT=''
DTRACE_OBJ=''
DTRACE_OPT=''
DTRACE_REBUILD=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
ENABLE_DEBUG_ENV=''
ENABLE_SHARED=''
ENCOBJS=''
ENCSTATIC=''
EXECUTABLE_EXTS=''
EXEEXT=''
EXPORT_PREFIX=''
EXTDLDFLAGS=''
EXTLDFLAGS=''
EXTOBJS=''
EXTOUT=''
EXTSTATIC=''
GCC=''
GIT='git'
GNU_LD=''
GREP=''
HAVE_BASERUBY='yes'
HAVE_GIT='yes'
INSTALLDOC=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STATIC_LIBRARY=''
LD='x86_64-apple-darwin13.4.0-ld'
LDFLAGS='-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/OliviaLee/opt/anaconda3/lib -L/Users/OliviaLee/opt/anaconda3/lib'
LDSHARED=''
LDSHAREDXX=''
LIBEXT=''
LIBOBJS=''
LIBPATHENV=''
LIBPATHFLAG=''
LIBRUBY=''
LIBRUBYARG=''
LIBRUBYARG_SHARED=''
LIBRUBYARG_STATIC=''
LIBRUBY_A=''
LIBRUBY_ALIASES=''
LIBRUBY_A_OBJS=''
LIBRUBY_DLDFLAGS=''
LIBRUBY_LDSHARED=''
LIBRUBY_RELATIVE=''
LIBRUBY_SO=''
LIBRUBY_SONAME=''
LIBS=''
LINK_SO=''
LN_S=''
LTLIBOBJS=''
MAINLIBS=''
MAJOR='3'
MAKEDIRS=''
MAKEFILES=''
MANTYPE=''
MINIOBJS=''
MINIRUBY=''
MINOR='2'
MJIT_CC=''
MJIT_CFLAGS=''
MJIT_DEBUGFLAGS=''
MJIT_HEADER_FLAGS=''
MJIT_HEADER_INSTALL_DIR=''
MJIT_LDSHARED=''
MJIT_OPTFLAGS=''
MJIT_SUPPORT=''
MJIT_TABS=''
MKDIR_P=''
MKMF_VERBOSE=''
NM='x86_64-apple-darwin13.4.0-nm'
NULLCMD=''
OBJCOPY='llvm-objcopy'
OBJDUMP='llvm-objdump'
OBJEXT=''
OUTFLAG=''
PACKAGE=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PLATFORM_DIR=''
POSTLINK=''
PRELOADENV=''
PREP=''
RANLIB='x86_64-apple-darwin13.4.0-ranlib'
RDOCTARGET=''
RI_BASE_NAME=''
RM=''
RMALL=''
RMDIR=''
RMDIRS=''
RPATHFLAG=''
RUBYW_BASE_NAME='rubyw'
RUBYW_INSTALL_NAME=''
RUBY_API_VERSION='$(MAJOR).$(MINOR)'
RUBY_BASE_NAME='ruby'
RUBY_DEVEL=''
RUBY_EXEC_PREFIX=''
RUBY_INSTALL_NAME=''
RUBY_LIB_VERSION=''
RUBY_LIB_VERSION_STYLE=''
RUBY_PROGRAM_VERSION='$(MAJOR).$(MINOR).$(TEENY)'
RUBY_SEARCH_PATH=''
RUBY_SO_NAME=''
RUBY_VERSION_NAME='${RUBY_BASE_NAME}-${ruby_version}'
RUNRUBY=''
RUNRUBY_COMMAND=''
RUSTC=''
SET_MAKE=''
SHELL='/bin/sh'
SOEXT=''
SOLIBS=''
STATIC=''
STRIP='x86_64-apple-darwin13.4.0-strip'
SYMBOL_PREFIX=''
TEENY='0'
TEST_RUNNABLE=''
THREAD_MODEL=''
TRY_LINK=''
UNIVERSAL_ARCHNAMES=''
UNIVERSAL_INTS=''
USE_RUBYGEMS=''
WASMOPT=''
WERRORFLAG=''
WINDRES=''
XCC_WRAPPER=''
XCFLAGS=''
XLDFLAGS=''
XRUBY=''
XRUBY_LIBDIR=''
XRUBY_LIBPATHENV_WRAPPER=''
XRUBY_RUBYHDRDIR=''
XRUBY_RUBYLIBDIR=''
X_COROUTINE_H=''
X_COROUTINE_SRC=''
YJIT_LIBS=''
YJIT_OBJ=''
YJIT_SUPPORT=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_LD=''
ac_ct_NM=''
ac_ct_OBJCOPY=''
ac_ct_OBJDUMP=''
ac_ct_STRIP=''
arch=''
archincludedir=''
archlibdir=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin13.4.0'
build_alias='x86_64-apple-darwin13.4.0'
build_cpu='x86_64'
build_os='darwin13.4.0'
build_vendor='apple'
cflags=''
cleanlibs=''
codesign=''
configure_args=''
cppflags=''
cxxflags=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
debugflags=''
docdir='${datarootdir}/doc/${PACKAGE}'
dsymutil=''
dvidir='${docdir}'
exec=''
exec_prefix='NONE'
host='x86_64-apple-darwin13.4.0'
host_alias='x86_64-apple-darwin13.4.0'
host_cpu='x86_64'
host_os='darwin13.4.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libdirname=''
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
optflags=''
pdfdir='${docdir}'
prefix='/Users/OliviaLee/.rubies/ruby-3.2.0'
program_transform_name='s&^&&'
psdir='${docdir}'
ridir=''
ruby_pc=''
ruby_version=''
rubyarchdir=''
rubyarchhdrdir=''
rubyarchprefix=''
rubyhdrdir=''
rubylibdir=''
rubylibprefix=''
rubysitearchprefix=''
rubyw_install_name=''
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
setup=''
sharedstatedir='${prefix}/com'
sitearch=''
sitearchdir=''
sitearchhdrdir=''
sitearchincludedir=''
sitearchlibdir=''
sitedir=''
sitehdrdir=''
sitelibdir=''
strict_warnflags=''
sysconfdir='${prefix}/etc'
target='x86_64-apple-darwin13.4.0'
target_alias=''
target_cpu='x86_64'
target_os='darwin13.4.0'
target_vendor='apple'
try_header=''
vendorarchdir=''
vendorarchhdrdir=''
vendordir=''
vendorhdrdir=''
vendorlibdir=''
warnflags=''
wasmoptflags=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 77
Please let me know! All I want to do is create a nice github pages site to apply for jobs :) Thank you!
I tried
RUBY_CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 3.2.0
I tried asdf, uninstalling and reinstalling homebrew and everything. Please let me know. Thank you!
The log indicates that you have clang --version with a value of 12.0.0 and that clang is targeting x86_64. An up-to-date version of macOS with up-to-date version of the Xcode Command Line Tools should have version 14.0.0 and it should target arm64.
Open a Terminal and run this command:
clang --version
You should see this:
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
If you do not then run this command to install the Command Line Tools:
xcode-select --install
If you are told the tools are already installed then make sure they are up to date:
softwareupdate -l
If they are installed and up to date then make sure that you are running Terminal without emulating x86_64 by opening a Terminal and running:
arch
If you see i386 then your Terminal is running with Rosetta emulation and that needs to be disabled so that all your commands run as native arm64 commands. To fix this:
Open Finder and browse to /Applications/Utilities
Right-click Terminal and click Get Info
In the window that opens uncheck the box Open using Rosetta
Quit Terminal completely (Terminal menu > Quit Terminal)
Re-open Terminal
Run arch again and confirm it says arm64
Retry installing Ruby

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....

GCC 5.1.0-4 cross compiler build fail

I'm following the osdev.org bare metal tutorial, and I'm currently stuck at the cross compiler.! I'm building from an arch distro.
It looks like it might be a problem with isl. I think the tutorial is based on an older version of gcc, cloog, isl, etc, so after a few tries I started over with new sources and left cloog and isl out of the source files (the tutorial says they are optional).
Also, the tutorial says there are compatibility issues with some cloog and isl implementations. I didn't know if that is for the machine I'm building from or if it's for the target, so I only installed cloog on my host machine, which supposedly brought along its own embedded isl according to the cloog page. ! Am I supposed to still install another isl (probably 12.2?) for the build process? Is that even my problem? There are red herring errors in the log, so I'm not sure I'm right to focus on the libisl.so.13 error at line 100 of the log.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GNU C Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ /home/imabadass/src/gcc-5.1.0/libgcc/configure --srcdir=../../../gcc-5.1.0/libgcc --cache-file=./config.cache --enable-multilib --with-cross-host=i686-pc-linux-gnu --prefix=/home/imabadass/opt/cross --disable-nls --without-headers --enable-languages=c,c++,lto --program-transform-name=s&^&i686-elf-& --disable-option-checking --with-target-subdir=i686-elf --build=i686-pc-linux-gnu --host=i686-elf --target=i686-elf
## --------- ##
## Platform. ##
## --------- ##
hostname = Worker
uname -m = i686
uname -r = 3.18.0-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri Feb 27 20:47:37 CST 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/imabadass/opt/cross/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/lib/jvm/default/bin
PATH: /usr/bin/site_perl
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2026: creating cache ./config.cache
configure:2232: checking build system type
configure:2246: result: i686-pc-linux-gnu
configure:2266: checking host system type
configure:2279: result: i686-pc-elf
configure:2382: checking for --enable-version-specific-runtime-libs
configure:2395: result: no
configure:2443: checking for a BSD-compatible install
configure:2511: result: /usr/bin/install -c
configure:2527: checking for gawk
configure:2554: result: gawk
configure:2654: checking for i686-elf-ar
configure:2681: result: /home/imabadass/opt/cross/i686-elf/bin/ar
configure:2746: checking for i686-elf-lipo
configure:2773: result: i686-elf-lipo
configure:2838: checking for i686-elf-nm
configure:2865: result: /home/imabadass/src/build-gcc/./gcc/nm
configure:2930: checking for i686-elf-ranlib
configure:2957: result: /home/imabadass/opt/cross/i686-elf/bin/ranlib
configure:3022: checking for i686-elf-strip
configure:3049: result: /home/imabadass/opt/cross/i686-elf/bin/strip
configure:3111: checking whether ln -s works
configure:3115: result: yes
configure:3132: checking for i686-elf-gcc
configure:3159: result: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include
configure:3428: checking for C compiler version
configure:3437: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include --version >&5
xgcc (GCC) 5.1.0
Copyright (C) 2015 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:3448: $? = 0
configure:3437: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include -v >&5
Reading specs from /home/imabadass/src/build-gcc/./gcc/specs
COLLECT_GCC=/home/imabadass/src/build-gcc/./gcc/xgcc
COLLECT_LTO_WRAPPER=/home/imabadass/src/build-gcc/./gcc/lto-wrapper
Target: i686-elf
Configured with: ../gcc-5.1.0/configure --target=i686-elf --prefix=/home/imabadass/opt/cross --disable-nls --enable-languages=c,c++ --without-headers
Thread model: single
gcc version 5.1.0 (GCC)
configure:3448: $? = 0
configure:3437: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include -V >&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3448: $? = 1
configure:3437: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include -qversion >&5
xgcc: error: unrecognized command line option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3448: $? = 1
configure:3464: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include -o conftest -g -O2 conftest.c >&5
/home/imabadass/src/build-gcc/./gcc/cc1: error while loading shared libraries: libisl.so.13: cannot open shared object file: No such file or directory
configure:3467: $? = 1
configure:3655: checking for suffix of object files
configure:3677: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include -c -g -O2 conftest.c >&5
/home/imabadass/src/build-gcc/./gcc/cc1: error while loading shared libraries: libisl.so.13: cannot open shared object file: No such file or directory
configure:3681: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3695: error: in `/home/imabadass/src/build-gcc/i686-elf/libgcc':
configure:3698: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=' /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include '
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-elf
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=i686-elf
ac_cv_host=i686-pc-elf
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AR=/home/imabadass/opt/cross/i686-elf/bin/ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=' /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include '
ac_cv_prog_LIPO=i686-elf-lipo
ac_cv_prog_NM=/home/imabadass/src/build-gcc/./gcc/nm
ac_cv_prog_RANLIB=/home/imabadass/opt/cross/i686-elf/bin/ranlib
ac_cv_prog_STRIP=/home/imabadass/opt/cross/i686-elf/bin/strip
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR='/home/imabadass/opt/cross/i686-elf/bin/ar'
AWK='gawk'
CC=' /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include '
CFLAGS='-g -O2'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='i686-elf-lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
NM='/home/imabadass/src/build-gcc/./gcc/nm'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU C Runtime Library'
PACKAGE_STRING='GNU C Runtime Library 1.0'
PACKAGE_TARNAME='libgcc'
PACKAGE_URL='http://www.gnu.org/software/libgcc/'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
PICFLAG='-fpic'
RANLIB='/home/imabadass/opt/cross/i686-elf/bin/ranlib'
SHELL='/bin/sh'
STRIP='/home/imabadass/opt/cross/i686-elf/bin/strip'
ac_ct_CC=''
accel_dir_suffix=''
asm_hidden_op=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_vendor='pc'
cpu_type=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
decimal_float=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
double_type_size=''
dvidir='${docdir}'
enable_decimal_float=''
enable_shared='yes'
enable_vtable_verify='no'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
force_explicit_eh_registry=''
host='i686-pc-elf'
host_alias='i686-elf'
host_cpu='i686'
host_noncanonical='i686-elf'
host_os='elf'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='../../../gcc-5.1.0/libgcc/..'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
long_double_type_size=''
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/imabadass/opt/cross'
program_transform_name='s&^&i686-elf-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sfp_machine_header=''
sharedstatedir='${prefix}/com'
slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
sysconfdir='${prefix}/etc'
target_alias='i686-elf'
target_noncanonical='i686-elf'
target_subdir='i686-elf'
thread_header=''
tm_defines=''
tm_file=''
tmake_file=''
toolexecdir='$(exec_prefix)/$(target_noncanonical)'
toolexeclibdir='$(toolexecdir)/lib'
vis_hide=''
with_aix_soname='aix'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
configure: exit 1
This is the first time I haven't found my answer from searching, so sorry about any noobie poster problems.
My understanding is that gcc-5.x no longer requires CLooG. It's recommended that you use isl-0.14 available here or here. You might find the current (gcc-5.1) instructions at Linux from Scratch helpful. There are a lot of configure options, as you are no doubt aware, so it's difficult to know the best options for your build, particularly if you're building a 'stage 1' (freestanding) gcc.

error: C compiler cannot create executables on Mac OSX 10.7.5 Lion

I have a similar problem to c compiler cannot create executable on mac. It looks like the final suggestion on that thread was to uninstall gcc. Is there any way around this without uninstalling gcc? I seem to remember installing gcc to make another piece of software work properly, and I'm afraid uninstalling it may cause other issues.
Any advice would be much appreciated!
Here is more information:
I'm running OSX 10.7.5 Lion, I have GCC version 4.2.1, and XCode 4.4.1 with the Command Line Tools installed.
I was trying to install an IRAF package called cfitsio when this error occurred, following the directions at http://heasarc.gsfc.nasa.gov/fitsio/mac_universal_binary.html:
unpack the cfitsio source code tar file
cd cfitsio
setenv CFLAGS "-arch ppc -arch i386 -g -O2"
Then proceed with the standard cfitsio build, i.e.:
./configure
make
make install
The problem is that I get errors at the ./configure step, having to do with gcc. Here is the config.log:
--------------Begin 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 configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = vpnls09.ctio.noao.edu
uname -m = x86_64
uname -r = 11.4.2
uname -s = Darwin
uname -v = Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~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.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~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: 165 tasks, 1106 threads, 8 processors
Load average: 0.39, Mach factor: 7.60
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: .
PATH: /Users/kaleida/anaconda/bin
PATH: /Users/kaleida/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /sw/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2107: checking build system type
configure:2121: result: x86_64-apple-darwin11.4.2
configure:2141: checking host system type
configure:2154: result: x86_64-apple-darwin11.4.2
configure:2174: checking target system type
configure:2187: result: x86_64-apple-darwin11.4.2
configure:2348: checking for gcc
configure:2364: found /usr/bin/gcc
configure:2375: result: gcc
configure:2604: checking for C compiler version
configure:2613: gcc --version >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.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:2624: $? = 0
configure:2613: gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/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.11~28/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.11.00)
configure:2624: $? = 0
configure:2613: gcc -V >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:2624: $? = 1
configure:2613: gcc -qversion >&5
i686-apple-darwin11-llvm-gcc-4.2: no input files
configure:2624: $? = 1
configure:2644: checking whether the C compiler works
configure:2666: gcc -arch ppc -arch i386 -g -O2 conftest.c >&5
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/23/wqjyjh2s0fb4_kss3f9cr_zc0000gn/T//ccFUu7Aa.out
configure:2670: $? = 255
configure:2708: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2713: error: in `/Users/kaleida/src/cfitsio':
configure:2715: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin11.4.2
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-arch ppc -arch i386 -g -O2'
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_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_host=x86_64-apple-darwin11.4.2
ac_cv_prog_ac_ct_CC=gcc
ac_cv_target=x86_64-apple-darwin11.4.2
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
ARCH=''
ARCHIVE=''
CC='gcc'
CFITSIO_MAJOR='3'
CFITSIO_MINOR='37'
CFITSIO_SHLIB=''
CFITSIO_SHLIB_SONAME=''
CFITSIO_SONAME='2'
CFLAGS='-arch ppc -arch i386 -g -O2'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
F77_WRAPPERS=''
FC=''
GCCVERSION=''
GREP=''
INSTALL_ROOT=''
LDFLAGS=''
LIBOBJS=''
LIBPRE=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SHELL='/bin/sh'
SHLIB_LD=''
SHLIB_SUFFIX=''
SSE_FLAGS=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin11.4.2'
build_alias=''
build_cpu='x86_64'
build_os='darwin11.4.2'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin11.4.2'
host_alias=''
host_cpu='x86_64'
host_os='darwin11.4.2'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
my_shmem=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-apple-darwin11.4.2'
target_alias=''
target_cpu='x86_64'
target_os='darwin11.4.2'
target_vendor='apple'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 77
--------------End config.log----------------------
Here is some more information about gcc on my machine:
[vpnls09:~] kaleida% which gcc
/usr/bin/gcc
[vpnls09:~] kaleida% gcc -version
i686-apple-darwin11-llvm-gcc-4.2: no input files
[vpnls09:~] kaleida% gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
I also tested gcc with a "Hello World" script:
[vpnls09:~/src] kaleida% more hello.c
/* hello.c - demo for os x */
#include<stdio.h>
int main(void){
printf("Hello world\n");
return 0;
}
[vpnls09:~/src] kaleida% gcc -o hello.o -c hello.c
[vpnls09:~/src] kaleida% make hello
cc hello.o -o hello
[vpnls09:~/src] kaleida% ./hello
Hello world
Any ideas for how to fix this issue?
Thanks in advance!

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

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.

Resources