[Solved] gcc 4.5.1 error
I installed gcc 4.5.1 but get error when I try to compile this test program:
#include <stdio.h>
int main()
printf("GCC Works");
The errors I get:
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../crt1.o: In function `_start':
(.text+0xc): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../crt1.o: In function `_start':
(.text+0x11): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
Is that caused by broken packages? Please help me.
EDIT: I think it is caused by glibc, that I installed manually from the Packages section.
Last edited by CheatCat (2010-09-18 19:14:31)
If you install the Arch packages via pacman there won't be a problem, so it must be the manually installed glibc.
Last edited by loafer (2010-09-18 19:12:50)
Similar Messages
-
[solved] gcc version error during update
I'm trying to do a full system upgrade but whenever I start it I get the below error ":: gcc-gcj: requires gcc=4.5.1" although it appears I have gcc version 4.5.1 any ideas on what might be causing this?
oli / $ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
archlinuxfr is up to date
:: Starting full system upgrade...
:: Replace pycairo with extra/python2-cairo? [Y/n]
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: gcc-gcj: requires gcc=4.5.1
oli / $ gcc --version
gcc (GCC) 4.5.1
Copyright (C) 2010 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.
Last edited by cani (2011-01-27 16:24:39)Remember where you got gcc-gcj from?
That's your problem. Not GCC. Check your error again, and read where it says
:: gcc-gcj: requires gcc=4.5.1
There's little point in checking the gcc version prior to the upgrade. You're querying the installed gcc, and that will always be the version gcc-gcj needs. The whole upgrade, in fact, chokes because the new gcc will not be 4.5.1 anymore.
Please use code tags for output of commands run in a terminal. -
How do i solve - cannot access web server - error message when creating a project in 4.5 with PHP
Screenshot of how it looks when i try to show a ms access form inside a iframe:
http://oi58.tinypic.com/2vj4ish.jpg -
Hello, icloud receive messages from gilly hicks, but does not receive messages from another personal account... this is happening me since one week and i dont know how to solve this.... error in the mail delivery system says not valid IPv4
SMTP error from remote mail server after RCPT TO:<[email protected]>:
host mx6.me.com.akadns.net [17.158.8.114]: 550 5.7.0 Blocked - see https://support.proofpoint.com/dnsbl-lookup.cgi?ip=184.173.9.56:
[email protected]
i do alse receive from gmail....
please help... what is happening!!!!Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app. I am certain other applications also need this information. Although lengthy, I could not find a more comprehensive place to retrieve this information. Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
When a solution is found please mark the post that solves your issue.
Every problem has a solution! -
I need this specific version of gcc, so I got the old PKDBUILD from svn, see below. However when gcc compiles I run into this compile error:
TARGET_CPU_DEFAULT="" \
HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
/bin/sh ../../gcc-4.1.2/gcc/mkconfig.sh tconfig.h
./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -L/home/chelg/tmp/abs/gcc-4.1/src/gcc-build/gcc/../ld -O2 -O2 -march=i686 -mtune=generic -O2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. -I../../gcc-4.1.2/gcc/../include -I../../gcc-4.1.2/gcc/../libcpp/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -fno-omit-frame-pointer \
-c ../../gcc-4.1.2/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
../../gcc-4.1.2/gcc/crtstuff.c:1: error: bad value (generic) for -mtune= switch
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/home/chelg/tmp/abs/gcc-4.1/src/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/home/chelg/tmp/abs/gcc-4.1/src/gcc-build/gcc'
make: *** [bootstrap] Error 2
==> ERROR: Build Failed.
Aborting...
Here is the PKGBUILD I use:
# $Id: PKGBUILD,v 1.60 2007/02/14 14:53:50 jgc Exp $
# Maintainer: Jan de Groot <[email protected]>
pkgname=gcc
pkgver=4.1.2
pkgrel=3
pkgdesc="The GNU Compiler Collection"
arch=(i686 x86_64)
url="http://gcc.gnu.org"
depends=('glibc' 'binutils>=2.17')
options=('!libtool')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,objc}-${pkgver}.tar.bz2
ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man-4.0.0.tar.bz2
DW_CFA_val.patch
gcc_pure64.patch)
md5sums=('2af3fb599635219171c6ae1f3034888a' '75c6d5fa3415d614314caf0f509e8933'
'abda05c0ab99059e8f9e7a625361fd87' '2be86d2117c8fa7f9ec2845cc0660ab1'
'078680c207f7cd490044d4a53edf158d' '1ceaa49e3a1d9f984ecc2893c43f7425')
build() {
export MAKEFLAGS="-j1"
cd ${startdir}/src/gcc-${pkgver}
# Don't install libiberty
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
if [ "${CARCH}" = "x86_64" ]; then
patch -Np1 -i ../gcc_pure64.patch || return 1
fi
patch -Np0 -i ${startdir}/src/DW_CFA_val.patch || return 1
# Don't run fixincludes
sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
mkdir ../gcc-build
cd ../gcc-build
../gcc-${pkgver}/configure --prefix=/usr --enable-shared \
--enable-languages=c,c++,objc --enable-threads=posix \
--enable-__cxa_atexit --disable-multilib --libdir=/usr/lib \
--libexecdir=/usr/lib --enable-clocale=gnu
make bootstrap || return 1
make DESTDIR=${startdir}/pkg install || return 1
mkdir -p ${startdir}/pkg/lib
(cd ${startdir}/pkg/lib; ln -s ../usr/bin/cpp)
(cd ${startdir}/pkg/usr/bin; ln -sf gcc cc; ln -sf g++ c++)
# install the libstdc++ man pages
mkdir -p ${startdir}/pkg/usr/man/man3
install -m644 ${startdir}/src/man/man3/* ${startdir}/pkg/usr/man/man3/
Last edited by Phlogiston (2009-02-27 20:08:37)or here you go:
# $Id: PKGBUILD,v 1.60 2007/02/14 14:53:50 jgc Exp $
# Maintainer: Jan de Groot <[email protected]>
pkgname=gcc-4.1
pkgver=4.1.2
pkgrel=3
pkgdesc="The GNU Compiler Collection"
arch=(i686 x86_64)
url="http://gcc.gnu.org"
depends=('glibc' 'binutils>=2.17')
options=('!libtool')
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++,objc}-${pkgver}.tar.bz2
ftp://gcc.gnu.org/pub/gcc/libstdc++/doxygen/libstdc++-man-4.0.0.tar.bz2
DW_CFA_val.patch
gcc_pure64.patch)
md5sums=('2af3fb599635219171c6ae1f3034888a' '75c6d5fa3415d614314caf0f509e8933'
'abda05c0ab99059e8f9e7a625361fd87' '2be86d2117c8fa7f9ec2845cc0660ab1'
'078680c207f7cd490044d4a53edf158d' '1ceaa49e3a1d9f984ecc2893c43f7425')
build() {
export MAKEFLAGS="-j1"
cd ${startdir}/src/gcc-${pkgver}
# Don't install libiberty
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
if [ "${CARCH}" = "x86_64" ]; then
patch -Np1 -i ../gcc_pure64.patch || return 1
fi
patch -Np0 -i ${startdir}/src/DW_CFA_val.patch || return 1
# Don't run fixincludes
sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
mkdir ../gcc-build
cd ../gcc-build
../gcc-${pkgver}/configure --prefix=/opt/gcc-4.1 --enable-shared \
--enable-languages=c,c++,objc --enable-threads=posix \
--enable-__cxa_atexit --disable-multilib \
--enable-clocale=gnu
make bootstrap || return 1
make DESTDIR=${startdir}/pkg install || return 1
mkdir -p ${startdir}/pkg/lib
# (cd ${startdir}/pkg/lib; ln -s ../usr/bin/cpp)
# (cd ${startdir}/pkg/usr/bin; ln -sf gcc cc; ln -sf g++ c++)
# install the libstdc++ man pages
mkdir -p ${startdir}/pkg/usr/man/man3
install -m644 ${startdir}/src/man/man3/* ${startdir}/pkg/usr/man/man3/ -
[SOLVED] gcc: error: unrecognized command line option '-V'
Hi.. this is my first post but I always read the forum to solve my problem! ;) thank you to all!!!! sorry for my bad english in advanced...
This is my problem:
I have Archlinux x86_64 with Gnome (last version).
I try to install the driver for my printer epson sx218 but when I compile the bash show:
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
now, I see the config.log file and I see the line:
gcc: error: unrecognized command line option '-V'
my makepkg.conf:
# /etc/makepkg.conf
# SOURCE ACQUISITION
#-- The download utilities that makepkg should use to acquire sources
# Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
'rsync::/usr/bin/rsync --no-motd -z %u %o'
'scp::/usr/bin/scp -C %u %o')
# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget
# ARCHITECTURE, COMPILE FLAGS
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
#-- Compiler and Linker Flags
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl, -O1,--sort-common,--as-needed,-z,relro"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j2"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
# BUILD ENVIRONMENT
# Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
# A negated environment option will do the opposite of the comments below.
#-- fakeroot: Allow building packages as a non-root user
#-- distcc: Use the Distributed C/C++/ObjC compiler
#-- color: Colorize output messages
#-- ccache: Use ccache to cache compilation
#-- check: Run the check() function if present in the PKGBUILD
#-- sign: Generate PGP signature file
BUILDENV=(fakeroot !distcc color !ccache check !sign)
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg
# GLOBAL PACKAGE OPTIONS
# These are default values for the options=() settings
# Default: OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
# A negated option will do the opposite of the comments below.
#-- strip: Strip symbols from binaries/libraries
#-- docs: Save doc directories specified by DOC_DIRS
#-- libtool: Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs: Leave empty directories in packages
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge: Remove files specified by PURGE_TARGETS
#-- upx: Compress binary executable files using UPX
#-- debug: Add debugging flags as specified in DEBUG_* variables
OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !upx !debug)
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
# PACKAGE OUTPUT
# Default: put built package and cached source in build directory
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <[email protected]>"
#-- Specify a key to use for package signing
#GPGKEY=""
# COMPRESSION DEFAULTS
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
# EXTENSION DEFAULTS
# WARNING: Do NOT modify these variables unless you know what you are
# doing.
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'
# vim: set ft=sh ts=2 sw=2 et:
this is my full 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 epson-inkjet-printer-filter configure 1.0.0, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure LDFLAGS=-Wl, -O1,--sort-common,--as-needed,-z,relro -Wl,--no-as-needed --prefix=/opt/epson-inkjet-printer-workforce-320-sx218
## Platform. ##
hostname = localhost
uname -m = x86_64
uname -r = 3.9.3-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Sun May 19 22:50:29 CEST 2013
/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: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/bin/core_perl
## Core tests. ##
configure:1989: checking for a BSD-compatible install
configure:2045: result: /usr/bin/install -c
configure:2056: checking whether build environment is sane
configure:2099: result: yes
configure:2127: checking for a thread-safe mkdir -p
configure:2166: result: /usr/bin/mkdir -p
configure:2179: checking for gawk
configure:2195: found /usr/bin/gawk
configure:2206: result: gawk
configure:2217: checking whether make sets $(MAKE)
configure:2238: result: yes
configure:2480: checking for gcc
configure:2496: found /usr/bin/gcc
configure:2507: result: gcc
configure:2745: checking for C compiler version
configure:2752: gcc --version >&5
gcc (GCC) 4.8.0 20130502 (prerelease)
Copyright (C) 2013 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:2755: $? = 0
configure:2762: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.8-20130502/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib --disable-libssp --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.8.0 20130502 (prerelease) (GCC)
configure:2765: $? = 0
configure:2772: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2775: $? = 1
configure:2798: checking for C compiler default output file name
configure:2825: gcc -march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl, -O1,--sort-common,--as-needed,-z,relro -Wl,--no-as-needed conftest.c >&5
cc1: error: argument to '-O' should be a non-negative integer, 'g', 's' or 'fast'
configure:2828: $? = 1
configure:2866: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "epson-inkjet-printer-filter"
| #define PACKAGE_TARNAME "epson-inkjet-printer-filter"
| #define PACKAGE_VERSION "1.0.0"
| #define PACKAGE_STRING "epson-inkjet-printer-filter 1.0.0"
| #define PACKAGE_BUGREPORT "epson@localdomain"
| #define PACKAGE "epson-inkjet-printer-filter"
| #define VERSION "1.0.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2873: error: C compiler cannot create executables
See `config.log' for more details.
## Cache variables. ##
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-D_FORTIFY_SOURCE=2
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl, -O1,--sort-common,--as-needed,-z,relro -Wl,--no-as-needed'
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_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
## Output variables. ##
ACLOCAL='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run tar'
AR=''
AUTOCONF='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run autoconf'
AUTOHEADER='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run autoheader'
AUTOMAKE='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run automake-1.10'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4'
CORE_LIBRARY_PATH=''
CORE_RESOURCE_PATH=''
CPP=''
CPPFLAGS='-D_FORTIFY_SOURCE=2'
CUPS_IMAGE_LIBS=''
CUPS_LIBS=''
CUPS_SERVER_DIR=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-march=native -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DL_LIBS=''
DSYMUTIL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS='-Wl, -O1,--sort-common,--as-needed,-z,relro -Wl,--no-as-needed'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run makeinfo'
NMEDIT=''
OBJEXT=''
PACKAGE='epson-inkjet-printer-filter'
PACKAGE_BUGREPORT='epson@localdomain'
PACKAGE_NAME='epson-inkjet-printer-filter'
PACKAGE_STRING='epson-inkjet-printer-filter 1.0.0'
PACKAGE_TARNAME='epson-inkjet-printer-filter'
PACKAGE_VERSION='1.0.0'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STDCPP_LIBS=''
STRIP=''
VERSION='1.0.0'
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
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}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /home/liberato/Scaricati/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/usr/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/opt/epson-inkjet-printer-workforce-320-sx218'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## confdefs.h. ##
#define PACKAGE_NAME "epson-inkjet-printer-filter"
#define PACKAGE_TARNAME "epson-inkjet-printer-filter"
#define PACKAGE_VERSION "1.0.0"
#define PACKAGE_STRING "epson-inkjet-printer-filter 1.0.0"
#define PACKAGE_BUGREPORT "epson@localdomain"
#define PACKAGE "epson-inkjet-printer-filter"
#define VERSION "1.0.0"
configure: exit 77
any idea to solve? I searched around but can not find anything.. :'(
Last edited by liberato83 (2013-05-24 13:25:18)Are you using AUR https://aur.archlinux.org/packages/epso … 320-sx218/ ?
I updated the PKGBUILD to remove the line that says 'gcc -V >&5' from the configure file
libtoolize
sed -i 's/gcc -V >&5//' configure
chmod +x configure
but it still doesn't build:
==> Starting build()...
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for dlopen in -ldl... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for vprintf... yes
checking for _doprnt... no
checking for memset... yes
checking for strdup... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/raster/Makefile
config.status: creating src/raster/blendSource/Makefile
config.status: creating src/memory/Makefile
config.status: creating src/pagemanager/Makefile
config.status: creating src/filteropt/Makefile
config.status: creating config.h
config.status: executing depfiles commands
cd . && /bin/sh /home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run automake-1.10 --gnu
/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing: line 54: automake-1.10: command not found
WARNING: `automake-1.10' is missing on your system. You should only need it if
you modified `Makefile.am', `acinclude.m4' or `configure.ac'.
You might want to install the `Automake' and `Perl' packages.
Grab them from any GNU archive site.
cd . && /bin/sh ./config.status Makefile
config.status: creating Makefile
cd . && /bin/sh /home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/missing --run autoheader
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make all-recursive
make[1]: Entering directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0'
Making all in src
make[2]: Entering directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src'
cd .. && /bin/sh ./config.status src/Makefile depfiles
config.status: creating src/Makefile
config.status: executing depfiles commands
make[2]: Leaving directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src'
make[2]: Entering directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src'
Making all in memory
make[3]: Entering directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src/memory'
cd ../.. && /bin/sh ./config.status src/memory/Makefile depfiles
config.status: creating src/memory/Makefile
config.status: executing depfiles commands
make[3]: Leaving directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src/memory'
make[3]: Entering directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src/memory'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../ -D_FORTIFY_SOURCE=2 -fsigned-char -O2 -MT memory.lo -MD -MP -MF .deps/memory.Tpo -c -o memory.lo memory.c
../../libtool: line 482: CDPATH: command not found
libtool: Version mismatch error. This is libtool 2.4.2, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2
libtool: and run autoconf again.
make[3]: *** [memory.lo] Error 63
make[3]: Leaving directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src/memory'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/karol/test/foo/epson-inkjet-printer-workforce-320-sx218/src/epson-inkjet-printer-filter-1.0.0'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting... -
[SOLVED] GCC returns error, even though the code works.
# Edit: 0740 // 7.1.14
# Thanks to Hurricane for his answer.
# If you came here with the same question, simply replace 'gcc' with 'g++'.
# Many thanks to all who answered.
I'm new to arch but have used GCC on windows before. I decided to try a simple hello world program (~/code/hello.cpp) but when I went to make an executable, I get the following error:
[simple@arch ~]$ gcc ~/code/hello.cpp -o ~/code/exe/hello
/tmp/ccUO8tkq.o: In function `main':
hello.cpp:(.text+0xa): undefined reference to `std::cout'
hello.cpp:(.text+0xf): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
hello.cpp:(.text+0x14): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
hello.cpp:(.text+0x1c): undefined reference to `std::ostream::operator<<(std::ostream& (*)(std::ostream&))'
/tmp/ccUO8tkq.o: In function `__static_initialization_and_destruction_0(int, int)':
hello.cpp:(.text+0x4a): undefined reference to `std::ios_base::Init::Init()'
hello.cpp:(.text+0x59): undefined reference to `std::ios_base::Init::~Init()'
collect2: error: ld returned 1 exit status
For reference, here is the code in hello.cpp
#include <iostream>
using namespace std;
int main()
cout << "Hello world!" << endl;
return 0;
I've tried to make sense of the error, but I don't understand it.
Any help is greatly appreciated. Thank you.
Last edited by simplesquare (2014-01-05 12:41:55)g++ ~/code/hello.cpp -o ~/code/exe/hello
That should do the trick.
GCC is just a front-end that chooses the right compiler depending on the suffix of the file(s) being passed in.
The problem with using GCC to compile a C++ program is that it' won't link C++ by default. If you noticed,
what returned the error was ld, which is the GNU linker. -
[solved]gcc broken after pacman update - libcloog-isl.2.so
Hi,
After a pacman update my gcc broke. When compiling it gives this error:
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/cc1: error while loading shared libraries: libcloog-isl.so.2: cannot open shared object file: No such file or directory
gcc -v output:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.6-20111223/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --enable-multilib --disable-libssp --disable-libstdcxx-pch --enable-checking=release --with-fpmath=sse
Thread model: posix
gcc version 4.6.2 20111223 (prerelease) (GCC)
and ls /usr/lib/*cloog* output:
/usr/lib/libcloog-isl.a /usr/lib/libcloog-isl.so /usr/lib/libcloog-isl.so.3 /usr/lib/libcloog-isl.so.3.0.0
uname -a:
Linux willem-arch 3.2.4-1-ARCH #1 SMP PREEMPT Sat Feb 4 10:53:01 CET 2012 x86_64 Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz GenuineIntel GNU/Linux
How can I fix this? I already tried installen cloog with pacman but that doesn't help.
edit:
I solved the problem. There was an issue with my pacman.conf. Multilib wasn't properly enabled after the pacman4 transition.
Last edited by pientertje (2012-02-08 09:47:25)I'm using multilib.
@Allan
more fully than pacman -Syu? Or is my mirror not up to date?
edit:
I solved the problem. There was an issue with my pacman.conf. Multilib wasn't properly enabled after the pacman4 transition.
Last edited by pientertje (2012-02-08 09:46:40) -
[SOLVED] gcc-4.6 cannot find -lgcc
I am trying to get the MSP430 development toolchain (gcc-msp430, msp430-libc, msp430-binutils, msp430mcu, mspdebug) installed in a fresh Arch Linux install.
For this I need gcc46, because gcc-msp430 doesn't build with GCC 4.8. I successfully built gcc46 from AUR using the PKGBUILD from here, but it cannot compile anything, not even a Hello World program:
/tmp $ gcc-4.6 -o hello hello.c
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
I tried the PKGBUILDs from here, which are recommended in the AUR page for gcc-msp430, but still doesn't work.
What to do?
Last edited by Renan Birck (2013-11-05 20:23:42)Renan Birck wrote:It works! Marking as solved. Thanks!
How did you compile gcc-msp430 ? I've tryed but it failed the ./configure of libgcc
make[2]: uscita dalla directory "/home/campo/System/Aur/gcc-msp430/src/build/gcc"
Checking multilib configuration for libgcc...
mkdir -p -- msp430/libgcc
Configuring in msp430/libgcc
configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking build system type... i686-pc-linux-gnu
checking host system type... msp430-unknown-none
checking for msp430-ar... msp430-ar
checking for msp430-lipo... msp430-lipo
checking for msp430-nm... /home/campo/System/Aur/gcc-msp430/src/build/./gcc/nm
checking for msp430-ranlib... msp430-ranlib
checking for msp430-strip... msp430-strip
checking whether ln -s works... yes
checking for msp430-gcc... /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include
checking for suffix of object files... configure: error: in `/home/campo/System/Aur/gcc-msp430/src/build/msp430/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:12255: set di istruzioni per l'obiettivo "configure-target-libgcc" non riuscito
make[1]: *** [configure-target-libgcc] Errore 1
make[1]: uscita dalla directory "/home/campo/System/Aur/gcc-msp430/src/build"
Makefile:872: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
==> ERRORE: Si è verificato un errore in build().
L'operazione sta per essere interrotta...
makepkg 454,81s user 23,85s system 93% cpu 8:34,53 total
I checked the config.log but I didn't find anything :
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/campo/System/Aur/gcc-msp430/src/gcc-4.6.3/libgcc/configure --cache-file=./config.cache --enable-multilib --with-cross-host=i686-pc-linux-gnu --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --disable-libssp --disable-nls --with-gnu-as --with-gnu-ld --with-as=/usr/bin/msp430-as --with-ld=/usr/bin/msp430-ld --with-pkgversion=mspgcc_20120406 --enable-languages=c,c++,lto --program-transform-name=s&^&msp430-& --disable-option-checking --with-target-subdir=msp430 --build=i686-pc-linux-gnu --host=msp430 --target=msp430 --srcdir=/home/campo/System/Aur/gcc-msp430/src/gcc-4.6.3/libgcc
## Platform. ##
hostname = enterprise
uname -m = i686
uname -r = 3.12.0-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Wed Nov 6 09:22:18 CET 2013
/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: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /opt/android-sdk/platform-tools
PATH: /opt/android-sdk/tools
PATH: /usr/local/xenon/bin
PATH: /usr/local/xenon/usr/bin
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl
PATH: /usr/local/xenon/bin
PATH: /usr/local/xenon/usr/bin
PATH: /opt/android-sdk/tools
PATH: /platform-tools
## Core tests. ##
configure:1742: creating cache ./config.cache
configure:1903: checking for --enable-version-specific-runtime-libs
configure:1916: result: no
configure:1964: checking for a BSD-compatible install
configure:2032: result: /usr/bin/install -c
configure:2048: checking for gawk
configure:2075: result: gawk
configure:2095: checking build system type
configure:2109: result: i686-pc-linux-gnu
configure:2129: checking host system type
configure:2142: result: msp430-unknown-none
configure:2245: checking for msp430-ar
configure:2272: result: msp430-ar
configure:2337: checking for msp430-lipo
configure:2364: result: msp430-lipo
configure:2429: checking for msp430-nm
configure:2456: result: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/nm
configure:2521: checking for msp430-ranlib
configure:2548: result: msp430-ranlib
configure:2613: checking for msp430-strip
configure:2640: result: msp430-strip
configure:2702: checking whether ln -s works
configure:2706: result: yes
configure:2723: checking for msp430-gcc
configure:2750: result: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include
configure:3019: checking for C compiler version
configure:3028: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include --version >&5
xgcc (mspgcc_20120406) 4.6.3 20120301 (mspgcc LTS 20120406 unpatched)
Copyright (C) 2011 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:3039: $? = 0
configure:3028: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include -v >&5
Reading specs from /home/campo/System/Aur/gcc-msp430/src/build/./gcc/specs
Reading specs from /usr/msp430/lib/msp430mcu.spec
COLLECT_GCC=/home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc
COLLECT_LTO_WRAPPER=/home/campo/System/Aur/gcc-msp430/src/build/./gcc/lto-wrapper
Target: msp430
Configured with: /home/campo/System/Aur/gcc-msp430/src/gcc-4.6.3/configure CFLAGS_FOR_TARGET=-Os --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --disable-libssp --disable-nls --target=msp430 --enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-as=/usr/bin/msp430-as --with-ld=/usr/bin/msp430-ld --with-pkgversion=mspgcc_20120406
Thread model: single
gcc version 4.6.3 20120301 (mspgcc LTS 20120406 unpatched) (mspgcc_20120406)
configure:3039: $? = 0
configure:3028: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include -V >&5
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3028: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include -qversion >&5
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3055: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include -o conftest -Os conftest.c >&5
Known MCU names:
msp1
msp2
msp430x110
msp430x112
msp430x1101
msp430x1111
msp430x1121
msp430x1122
msp430x1132
msp430x122
msp430x123
msp430x1222
msp430x1232
msp430x133
msp430x135
msp430x1331
msp430x1351
msp430x147
msp430x148
msp430x149
msp430x155
msp430x156
msp430x157
msp430x167
msp430x168
msp430x169
msp430x1610
msp430x1611
msp430x1612
msp430x2101
msp430x2111
msp430x2121
msp430x2131
msp430x311
msp430x312
msp430x313
msp430x314
msp430x315
msp430x323
msp430x325
msp430x336
msp430x337
msp430x412
msp430x413
msp430x415
msp430x417
msp430xE423
msp430xE425
msp430xE427
msp430xW423
msp430xW425
msp430xW427
msp430xG437
msp430xG438
msp430xG439
msp430x435
msp430x436
msp430x437
msp430x447
msp430x448
msp430x449
Assembler messages:
Fatal error: unknown MCU: cpu=430
configure:3058: $? = 1
configure:3246: checking for suffix of object files
configure:3268: /home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include -c -Os conftest.c >&5
Known MCU names:
msp1
msp2
msp430x110
msp430x112
msp430x1101
msp430x1111
msp430x1121
msp430x1122
msp430x1132
msp430x122
msp430x123
msp430x1222
msp430x1232
msp430x133
msp430x135
msp430x1331
msp430x1351
msp430x147
msp430x148
msp430x149
msp430x155
msp430x156
msp430x157
msp430x167
msp430x168
msp430x169
msp430x1610
msp430x1611
msp430x1612
msp430x2101
msp430x2111
msp430x2121
msp430x2131
msp430x311
msp430x312
msp430x313
msp430x314
msp430x315
msp430x323
msp430x325
msp430x336
msp430x337
msp430x412
msp430x413
msp430x415
msp430x417
msp430xE423
msp430xE425
msp430xE427
msp430xW423
msp430xW425
msp430xW427
msp430xG437
msp430xG438
msp430xG439
msp430x435
msp430x436
msp430x437
msp430x447
msp430x448
msp430x449
Assembler messages:
Fatal error: unknown MCU: cpu=430
configure:3272: $? = 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:3286: error: in `/home/campo/System/Aur/gcc-msp430/src/build/msp430/libgcc':
configure:3289: 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/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include '
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-Os
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=msp430
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=msp430
ac_cv_host=msp430-unknown-none
ac_cv_prog_AR=msp430-ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC='/home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include '
ac_cv_prog_LIPO=msp430-lipo
ac_cv_prog_NM=/home/campo/System/Aur/gcc-msp430/src/build/./gcc/nm
ac_cv_prog_RANLIB=msp430-ranlib
ac_cv_prog_STRIP=msp430-strip
## Output variables. ##
AR='msp430-ar'
AWK='gawk'
CC='/home/campo/System/Aur/gcc-msp430/src/build/./gcc/xgcc -B/home/campo/System/Aur/gcc-msp430/src/build/./gcc/ -B/usr/msp430/bin/ -B/usr/msp430/lib/ -isystem /usr/msp430/include -isystem /usr/msp430/sys-include '
CFLAGS='-Os'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='msp430-lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
NM='/home/campo/System/Aur/gcc-msp430/src/build/./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=':'
RANLIB='msp430-ranlib'
SHELL='/bin/sh'
STRIP='msp430-strip'
ac_ct_CC=''
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'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
decimal_float=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_decimal_float=''
enable_shared='yes'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
host='msp430-unknown-none'
host_alias='msp430'
host_cpu='msp430'
host_noncanonical='msp430'
host_os='none'
host_subdir='.'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='/home/campo/System/Aur/gcc-msp430/src/gcc-4.6.3/libgcc/..'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='/usr/share/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s&^&msp430-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sharedstatedir='${prefix}/com'
slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
sysconfdir='${prefix}/etc'
target_alias='msp430'
target_noncanonical='msp430'
target_subdir='msp430'
tmake_file=''
toolexecdir='$(exec_prefix)/$(target_noncanonical)'
toolexeclibdir='$(toolexecdir)/lib'
vis_hide=''
## 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
Can you help me ? -
[SOLVED] cross compiling libopenfst makepkg error
Hello there,
I am trying to cross compile openfst on my 64 bit arch setup since it is taking too long on my raspberry pi (which also happily runs arch). I thought I would be ok with the following makepkg to get me a binary package which I could transfer to my pi and then install with pacman-U:
# Maintainer: Christoph Drexler <chrdr at gmx dot at>
pkgname=openfst
pkgver=1.4.1
pkgrel=1
pkgdesc="Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)"
arch=('i686' 'x86_64' 'armv6h')
url="http://www.openfst.org/"
license=('APACHE')
depends=('gcc-libs' 'glibc')
options=(!libtool)
source=("http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/${pkgname}-${pkgver}.tar.gz")
md5sums=('ca8f1730b9b9b281e515611fa9ae23c0')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
#export CXX=arm-linux-gnueabi-g++
#export CC=arm-linux-gnueabi-gcc
# Options according to http://openfst.cs.nyu.edu/twiki/bin/view/FST/ReadMe
OPTIONS="--prefix=/usr --disable-dependency-tracking"
OPTIONS+=" --enable-bin" # Enable fst::script and command-line binaries; Default: yes
OPTIONS+=" --enable-compact-fsts" # Enable all CompactFst classes; Default: no
OPTIONS+=" --enable-const-fsts" # Enable all ConstFst classes; Default: no
OPTIONS+=" --enable-far" # Enable FAR (FST Archive) extension; Default: no
OPTIONS+=" --enable-linear-fsts" # Enable Linear{Tagger,Classifier}Fst extensions; Default: no
OPTIONS+=" --enable-lookahead-fsts" # Enable LookAheadFst classes; Default: no
OPTIONS+=" --enable-pdt" # Experimental push-down transducer extensions; Default: no
OPTIONS+=" --host=arm-linux-gnueabi" # Experimental push-down transducer extensions; Default: no
OPTIONS+=" --build=x86_64" # Experimental push-down transducer extensions; Default: no
LIBS="-ldl" ./configure $OPTIONS
make
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
(basically adding the host and build option)
However, I get an error in the output:
==> Making package: openfst 1.4.1-1 (Sun Jan 11 16:13:22 CET 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found openfst-1.4.1.tar.gz
==> Validating source files with md5sums...
openfst-1.4.1.tar.gz ... Passed
==> Extracting sources...
-> Extracting openfst-1.4.1.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-gnueabi-strip... arm-linux-gnueabi-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-gnueabi-g++... arm-linux-gnueabi-g++
checking whether the C++ compiler works... no
configure: error: in `/home/tom/openfst-1.4.1/src/openfst-1.4.1':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
==> ERROR: A failure occurred in build().
Aborting...
the error being that the C++ compiler cannot create excecutables makes sense since they are not meant to be excecuted on x86_64 but for armv6h (cross compilation). I have checked with arm-linux-gnueabi-g++ and its excecutables I can run on my pi so this should be ok. I am guessing that I am either missing an option to disable the compiler check, or I should change the configure script and remove this check, but I cannot figure out how to do either...
//edit: I'm not sure this topic is in the right place btw, maybe it should be in scripting...
Last edited by tomzooi (2015-01-11 18:23:35)that seems to do the trick, I'm not gonna test it since my pi just finished compiling it locally (which took 12+hours or so), but the compile seems to work since they are not excecutable on 64 bit, so pkgbuild for raspi cross compilation using makepkg -s:
# Maintainer: Christoph Drexler <chrdr at gmx dot at>
pkgname=openfst
pkgver=1.4.1
pkgrel=1
pkgdesc="Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)"
arch=('i686' 'x86_64' 'armv6h')
url="http://www.openfst.org/"
license=('APACHE')
depends=('gcc-libs' 'glibc')
options=(!libtool !buildflags)
source=("http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/${pkgname}-${pkgver}.tar.gz")
md5sums=('ca8f1730b9b9b281e515611fa9ae23c0')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# Options according to http://openfst.cs.nyu.edu/twiki/bin/view/FST/ReadMe
OPTIONS="--prefix=/usr --disable-dependency-tracking"
OPTIONS+=" --enable-bin" # Enable fst::script and command-line binaries; Default: yes
OPTIONS+=" --enable-compact-fsts" # Enable all CompactFst classes; Default: no
OPTIONS+=" --enable-const-fsts" # Enable all ConstFst classes; Default: no
OPTIONS+=" --enable-far" # Enable FAR (FST Archive) extension; Default: no
OPTIONS+=" --enable-linear-fsts" # Enable Linear{Tagger,Classifier}Fst extensions; Default: no
OPTIONS+=" --enable-lookahead-fsts" # Enable LookAheadFst classes; Default: no
OPTIONS+=" --enable-pdt" # Experimental push-down transducer extensions; Default: no
OPTIONS+=" --host=arm-linux-gnueabi" # Experimental push-down transducer extensions; Default: no
OPTIONS+=" --build=x86_64" # Experimental push-down transducer extensions; Default: no
LIBS="-ldl" ./configure $OPTIONS
make
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
to get some stuff which I think I can ignore:
strip: Unable to recognise the format of the input file `./usr/bin/fstprint'
strip: Unable to recognise the format of the input file `./usr/bin/farprintstrings'
strip: Unable to recognise the format of the input file `./usr/bin/fstmap'
strip: Unable to recognise the format of the input file `./usr/bin/fstsynchronize'
strip: Unable to recognise the format of the input file `./usr/bin/fstdraw'
strip: Unable to recognise the format of the input file `./usr/bin/fstepsnormalize'
strip: Unable to recognise the format of the input file `./usr/bin/fstdisambiguate'
strip: Unable to recognise the format of the input file `./usr/bin/fstunion'
strip: Unable to recognise the format of the input file `./usr/bin/pdtexpand'
strip: Unable to recognise the format of the input file `./usr/bin/fstminimize'
strip: Unable to recognise the format of the input file `./usr/bin/fsttopsort'
strip: Unable to recognise the format of the input file `./usr/bin/pdtreplace'
strip: Unable to recognise the format of the input file `./usr/bin/fstreverse'
strip: Unable to recognise the format of the input file `./usr/bin/fstsymbols'
strip: Unable to recognise the format of the input file `./usr/bin/farequal'
strip: Unable to recognise the format of the input file `./usr/bin/fstequal'
strip: Unable to recognise the format of the input file `./usr/bin/fstcompile'
strip: Unable to recognise the format of the input file `./usr/bin/fstshortestpath'
strip: Unable to recognise the format of the input file `./usr/bin/farinfo'
strip: Unable to recognise the format of the input file `./usr/bin/fstrandgen'
strip: Unable to recognise the format of the input file `./usr/bin/fstshortestdistance'
strip: Unable to recognise the format of the input file `./usr/bin/fstarcsort'
strip: Unable to recognise the format of the input file `./usr/bin/fstrmepsilon'
strip: Unable to recognise the format of the input file `./usr/bin/fstconvert'
strip: Unable to recognise the format of the input file `./usr/bin/fstreplace'
strip: Unable to recognise the format of the input file `./usr/bin/farcompilestrings'
strip: Unable to recognise the format of the input file `./usr/bin/fstencode'
strip: Unable to recognise the format of the input file `./usr/bin/fstpush'
strip: Unable to recognise the format of the input file `./usr/bin/pdtshortestpath'
strip: Unable to recognise the format of the input file `./usr/bin/fstinfo'
strip: Unable to recognise the format of the input file `./usr/bin/fstrelabel'
strip: Unable to recognise the format of the input file `./usr/bin/fstinvert'
strip: Unable to recognise the format of the input file `./usr/bin/fstconcat'
strip: Unable to recognise the format of the input file `./usr/bin/fstintersect'
strip: Unable to recognise the format of the input file `./usr/bin/pdtreverse'
strip: Unable to recognise the format of the input file `./usr/bin/fstclosure'
strip: Unable to recognise the format of the input file `./usr/bin/fstdeterminize'
strip: Unable to recognise the format of the input file `./usr/bin/fstcompose'
strip: Unable to recognise the format of the input file `./usr/bin/fstlinear'
strip: Unable to recognise the format of the input file `./usr/bin/pdtcompose'
strip: Unable to recognise the format of the input file `./usr/bin/farcreate'
strip: Unable to recognise the format of the input file `./usr/bin/fstdifference'
strip: Unable to recognise the format of the input file `./usr/bin/fstloglinearapply'
strip: Unable to recognise the format of the input file `./usr/bin/fstprune'
strip: Unable to recognise the format of the input file `./usr/bin/pdtinfo'
strip: Unable to recognise the format of the input file `./usr/bin/fstproject'
strip: Unable to recognise the format of the input file `./usr/bin/farextract'
strip: Unable to recognise the format of the input file `./usr/bin/fstequivalent'
strip: Unable to recognise the format of the input file `./usr/bin/fstconnect'
strip: Unable to recognise the format of the input file `./usr/bin/fstreweight'
strip: Unable to recognise the format of the input file `./usr/lib/libfst.so.3.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact8_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact8_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstfar.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/const16-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact8_weighted_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/arc_lookahead-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/const64-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstlinearscript.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact16_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact16_unweighted-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstlookahead.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/linear_classifier-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/linear_tagger-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact16_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstcompact.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/olabel_lookahead-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/const8-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact16_weighted_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact16_unweighted_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact64_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstconst.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/ilabel_lookahead-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact64_unweighted-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact64_weighted_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstfarscript.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact8_unweighted_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstpdtscript.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact8_unweighted-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact64_unweighted_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact64_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/libfstscript.so.1.0.0'
I will check soon I hope , for now will mark it as solved. -
[SOLVED] GCC multilib: cannot find shared library
Hi,
I'm trying to compile a systemc program to a 32-bit executable on arch x86_64. I'm using GCC multilib. Program compiles fine, but I get the following error when trying to run.
/home/[myusername]/workspace/systemc_test/Debug/systemc_test: error while loading shared libraries: libsystemc-2.3.1.so: cannot open shared object file: No such file or directory
Compiler:
g++ -std=c++0x -DSC_INCLUDE_DYNAMIC_PROCESSES -I/usr/local/systemc/include -O0 -g3 -Wall -c -fmessage-length=0 -m32 -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.cpp"
Linker:
g++ -L/usr/local/systemc/lib-linux -m32 -o "systemc_test" ./main.o -lsystemc
ls /usr/local/systemc/lib-linux/
libsystemc-2.3.1.so libsystemc.a libsystemc.la libsystemc.so pkgconfig
What am I doing wrong? For the record, this works fine on Ubuntu (64-bit with multilib) using the same version of the systemc library, compiled and installed in exactly the same manner.
Thanks!
Last edited by kamz (2014-08-04 02:38:02)You're correct -- doesn't find that path.
ldd systemc_test
linux-gate.so.1 (0xf77ac000)
libsystemc-2.3.1.so => not found
libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf768f000)
libm.so.6 => /usr/lib32/libm.so.6 (0xf7643000)
libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7628000)
libc.so.6 => /usr/lib32/libc.so.6 (0xf7465000)
/lib/ld-linux.so.2 (0xf77ad000)
Adding /usr/local/systemc/lib-linux to LD_LIBRARY_PATH solves the problem. I used a script under /etc/profile.d/ to set this at session start, so I now consider this solved. Out of curiousity, is it possible to avoid having to do this? -
Solve oracle multimedia post upgrade errors
Hello,
I performed and out of place upgrade from oracle 10.2.0.4 to 11.2.0.4.
when I run the postupgrade script i have issues on oracle multimedia that i cannot solve.. it is about shared memory. I followed all the recommendations suggested on the pre-upgrade script.
SQL> @/oracle/product/11.2.0.4/dbhome_1/rdbms/admin/utlu112s.sql
Oracle Database 11.2 Post-Upgrade Status Tool 10-03-2014 15:06:57
Component Current Version Elapsed Time
Name Status Number HH:MM:SS
Oracle Server
. VALID 11.2.0.4.0 00:14:07
JServer JAVA Virtual Machine
. VALID 11.2.0.4.0 00:11:08
Oracle Workspace Manager
. VALID 11.2.0.4.0 00:00:48
Oracle Enterprise Manager
. VALID 11.2.0.4.0 00:09:58
Oracle XDK
. VALID 11.2.0.4.0 00:02:48
Oracle Text
. VALID 11.2.0.4.0 00:00:59
Oracle XML Database
. VALID 11.2.0.4.0 00:05:45
Oracle Database Java Packages
. VALID 11.2.0.4.0 00:00:20
Oracle Multimedia
. ORA-00604: error occurred at recursive SQL level 1 ORA-04031: unable to
allocate 32 bytes of shared memory ("shared pool","select col#, grantee#,
privi...","KGLH0^34b96f2","kglHeapInitialize:temp")
ORA-06512: at
"SYS.DBMS_JAVA", line 655
ORA-06512: at line 1
. ORA-04031: unable to allocate 32 bytes of shared memory ("shared
pool","select col#, grantee#,
privi...","KGLH0^34b96f2","kglHeapInitialize:temp")
ORA-06512: at
"SYS.DBMS_JAVA", line 655
ORA-06512: at line 1
. col#, grantee#, privi...","KGLH0^34b96f2","kglHeapInitialize:temp")
ORA-06512: at "SYS.DBMS_JAVA", line 655
ORA-06512: at line 1
. ORA-06512: at "SYS.DBMS_JAVA", line 655 ORA-06512: at line 1
. ORA-06512: at line 1
. ORA-00604: error occurred at recursive SQL level 1 ORA-04031: unable to
allocate 136 bytes of shared memory ("shared pool","select
i.obj#,i.ts#,i.file#,...","KGLH0^4006e26c","wds: qksmmGetWorkArea")
ORA-06512:
at "SYS.DBMS_JAVA", line 655
ORA-06512: at line 1
. ORA-04031: unable to allocate 136 bytes of shared memory ("shared
pool","select i.obj#,i.ts#,i.file#,...","KGLH0^4006e26c","wds:
qksmmGetWorkArea")
ORA-06512: at "SYS.DBMS_JAVA", line 655
ORA-06512: at line 1
. i.obj#,i.ts#,i.file#,...","KGLH0^4006e26c","wds: qksmmGetWorkArea")
ORA-06512: at "SYS.DBMS_JAVA", line 655
ORA-06512: at line 1
. ORA-06512: at "SYS.DBMS_JAVA", line 655 ORA-06512: at line 1
. ORA-06512: at line 1
. ORA-04045: errors during recompilation/revalidation of
ORDSYS./f87ac59f_DicomEngine
ORA-04031: unable to allocate 32 bytes of shared
memory ("shared pool","ALTER JAVA CLASS
"ORDSYS"."/...","KGLH0^1182baa5","kglHeapInitialize:temp")
ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945
ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
line 276
ORA-06512: at line 1
. ORDSYS./f87ac59f_DicomEngine ORA-04031: unable to allocate 32 bytes of
shared memory ("shared pool","ALTER JAVA CLASS
"ORDSYS"."/...","KGLH0^1182baa5","kglHeapInitialize:temp")
ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945
ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
line 276
ORA-06512: at line 1
. ORA-04031: unable to allocate 32 bytes of shared memory ("shared
pool","ALTER JAVA CLASS
"ORDSYS"."/...","KGLH0^1182baa5","kglHeapInitialize:temp")
ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945
ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
line 276
ORA-06512: at line 1
. JAVA CLASS "ORDSYS"."/...","KGLH0^1182baa5","kglHeapInitialize:temp")
ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945
ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN", line 276
ORA-06512: at line 1
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945 ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN", line 276
ORA-06512: at line 1
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 276 ORA-06512: at line 1
. ORA-06512: at line 1
. ORA-53051: no editDataModel session found ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306
ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
line 125
ORA-06512: at line 14805
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306 ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN", line 125
ORA-06512: at line 14805
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 125 ORA-06512: at line 14805
. ORA-06512: at line 14805
. ORA-53051: no editDataModel session found ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306
ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
line 125
ORA-06512: at line 67
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306 ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN", line 125
ORA-06512: at line 67
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 125 ORA-06512: at line 67
. INVALID 11.2.0.4.0 00:55:05
Spatial
. OPTION OFF 10.2.0.4.0 00:00:00
Oracle Expression Filter
. VALID 11.2.0.4.0 00:00:16
Oracle Rules Manager
. VALID 11.2.0.4.0 00:00:14
Final Actions
. 00:01:34
Total Upgrade Time: 01:43:11
PL/SQL procedure successfully completed.
thank you
Mario.I explicity set up the sga_target to 668MB as suggested by the pre-upgrade script.
see the output of preugrade tool:
SQL> @/oracle/utlu112i.sql
Oracle Database 11.2 Pre-Upgrade Information Tool 10-02-2014 17:24:25
Script Version: 11.2.0.4.0 Build: 001
Database:
--> name: FUELPLUS
--> version: 10.2.0.4.0
--> compatible: 10.2.0.3.0
--> blocksize: 8192
--> platform: Solaris Operating System (x86-64)
--> timezone file: V4
Tablespaces: [make adjustments in the current environment]
--> SYSTEM tablespace is adequate for the upgrade.
.... minimum required size: 1071 MB
--> UNDOTBS1 tablespace is adequate for the upgrade.
.... minimum required size: 400 MB
--> SYSAUX tablespace is adequate for the upgrade.
.... minimum required size: 804 MB
--> TEMP tablespace is adequate for the upgrade.
.... minimum required size: 60 MB
Flashback: OFF
Update Parameters: [Update Oracle Database 11.2 init.ora or spfile]
Note: Pre-upgrade tool was run on a lower version 64-bit database.
--> If Target Oracle is 32-Bit, refer here for Update Parameters:
WARNING: --> "sga_target" needs to be increased to at least 484 MB
--> If Target Oracle is 64-Bit, refer here for Update Parameters:
WARNING: --> "sga_target" needs to be increased to at least 668 MB
Renamed Parameters: [Update Oracle Database 11.2 init.ora or spfile]
-- No renamed parameters found. No changes are required.
Obsolete/Deprecated Parameters: [Update Oracle Database 11.2 init.ora or spfile]
--> cursor_space_for_time 11.1 DEPRECATED
--> background_dump_dest 11.1 DEPRECATED replaced by "diagnostic_dest"
--> user_dump_dest 11.1 DEPRECATED replaced by "diagnostic_dest"
--> cursor_space_for_time 11.2 DEPRECATED
Components: [The following database components will be upgraded or installed]
--> Oracle Catalog Views [upgrade] VALID
--> Oracle Packages and Types [upgrade] VALID
--> JServer JAVA Virtual Machine [upgrade] VALID
--> Oracle XDK for Java [upgrade] VALID
--> Oracle Workspace Manager [upgrade] VALID
--> EM Repository [upgrade] VALID
--> Oracle Text [upgrade] VALID
--> Oracle XML Database [upgrade] VALID
--> Oracle Java Packages [upgrade] VALID
--> Oracle interMedia [upgrade] VALID
--> Spatial [upgrade] VALID
--> Data Mining [upgrade] VALID
--> Expression Filter [upgrade] VALID
--> Rule Manager [upgrade] VALID
Miscellaneous Warnings
WARNING: --> Database is using a timezone file older than version 14.
.... After the release migration, it is recommended that DBMS_DST package
.... be used to upgrade the 10.2.0.4.0 database timezone version
.... to the latest version which comes with the new release.
WARNING: --> Database contains INVALID objects prior to upgrade.
.... The list of invalid SYS/SYSTEM objects was written to
.... registry$sys_inv_objs.
.... The list of non-SYS/SYSTEM objects was written to
.... registry$nonsys_inv_objs.
.... Use utluiobj.sql after the upgrade to identify any new invalid
.... objects due to the upgrade.
.... USER PUBLIC has 1 INVALID objects.
WARNING: --> EM Database Control Repository exists in the database.
.... Direct downgrade of EM Database Control is not supported. Refer to the
.... Upgrade Guide for instructions to save the EM data prior to upgrade.
WARNING: --> Your recycle bin is turned on and currently contains no objects.
.... Because it is REQUIRED that the recycle bin be empty prior to upgrading
.... and your recycle bin is turned on, you may need to execute the command:
PURGE DBA_RECYCLEBIN
.... prior to executing your upgrade to confirm the recycle bin is empty.
WARNING: --> JOB_QUEUE_PROCESS value must be updated
.... Your current setting of "10" is too low.
.... Starting with Oracle Database 11g Release 2 (11.2), setting
.... JOB_QUEUE_PROCESSES to 0 causes both DBMS_SCHEDULER and
.... DBMS_JOB jobs to not run. Previously, setting JOB_QUEUE_PROCESSES
.... to 0 caused DBMS_JOB jobs to not run, but DBMS_SCHEDULER jobs were
.... unaffected and would still run. This parameter must be updated to
.... a value greater than 48 (default value is 1000) prior to upgrade.
.... Not doing so will affect the running of utlrp.sql after the upgrade
Recommendations
Oracle recommends gathering dictionary statistics prior to
upgrading the database.
To gather dictionary statistics execute the following command
while connected as SYSDBA:
EXECUTE dbms_stats.gather_dictionary_stats;
Oracle recommends reviewing any defined events prior to upgrading.
To view existing non-default events execute the following commands
while connected AS SYSDBA:
Events:
SELECT (translate(value,chr(13)||chr(10),' ')) FROM sys.v$parameter2
WHERE UPPER(name) ='EVENT' AND isdefault='FALSE'
Trace Events:
SELECT (translate(value,chr(13)||chr(10),' ')) from sys.v$parameter2
WHERE UPPER(name) = '_TRACE_EVENTS' AND isdefault='FALSE'
Changes will need to be made in the init.ora or spfile.
SQL> SPOOL OFF
here are the last 100 lines of upgrade.log
ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
line 276
ORA-06512: at line 1
. JAVA CLASS "ORDSYS"."/...","KGLH0^1182baa5","kglHeapInitialize:temp")
ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945
ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN", line 276
ORA-06512: at line 1
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6945 ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN", line 276
ORA-06512: at line 1
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 276 ORA-06512: at line 1
. ORA-06512: at line 1
. ORA-53051: no editDataModel session found ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306
ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
line 125
ORA-06512: at line 14805
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306 ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN", line 125
ORA-06512: at line 14805
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 125 ORA-06512: at line 14805
. ORA-06512: at line 14805
. ORA-53051: no editDataModel session found ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306
ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN",
line 125
ORA-06512: at line 67
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN_PRV", line 6306 ORA-06512: at
"ORDSYS.ORD_DICOM_ADMIN", line 125
ORA-06512: at line 67
. ORA-06512: at "ORDSYS.ORD_DICOM_ADMIN", line 125 ORA-06512: at line 67
. INVALID 11.2.0.4.0 00:55:05
Spatial
. OPTION OFF 10.2.0.4.0 00:00:00
Oracle Expression Filter
. VALID 11.2.0.4.0 00:00:16
Oracle Rules Manager
. VALID 11.2.0.4.0 00:00:14
Final Actions
. 00:01:34
Total Upgrade Time: 01:43:11
PL/SQL procedure successfully completed.
SQL>
SQL> SET SERVEROUTPUT OFF
SQL> SET VERIFY ON
SQL> commit;
Commit complete.
SQL>
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL>
SQL>
SQL> DOC
DOC>#######################################################################
DOC>#######################################################################
DOC>
DOC> The above sql script is the final step of the upgrade. Please
DOC> review any errors in the spool log file. If there are any errors in
DOC> the spool file, consult the Oracle Database Upgrade Guide for
DOC> troubleshooting recommendations.
DOC>
DOC> Next restart for normal operation, and then run utlrp.sql to
DOC> recompile any invalid application objects.
DOC>
DOC> If the source database had an older time zone version prior to
DOC> upgrade, then please run the DBMS_DST package. DBMS_DST will upgrade
DOC> TIMESTAMP WITH TIME ZONE data to use the latest time zone file shipped
DOC> with Oracle.
DOC>
DOC>#######################################################################
DOC>#######################################################################
DOC>#
SQL>
SQL> Rem Set errorlogging off
SQL> SET ERRORLOGGING OFF;
SQL>
SQL> REM END OF CATUPGRD.SQL
SQL>
SQL> REM bug 12337546 - Exit current sqlplus session at end of catupgrd.sql.
SQL> REM This forces user to start a new sqlplus session in order
SQL> REM to connect to the upgraded db.
SQL> exit -
[Solved] Help needed to interpret errors (python)
Have the following code (Haven't written it my self and don't know much about how it does what it's supposed to do.):
#!/usr/bin/python
import sys
import os
import re
import logging
import json
if sys.version_info < (3, 0):
from urllib2 import Request
from urllib2 import urlopen
from urlparse import urlparse
else:
from urllib.request import Request
from urllib.request import urlopen
from urllib.parse import urlparse
raw_input = input
useragent = 'Mozilla/5.0'
headers = {'User-Agent': useragent}
intro = """
Usage: drdown.py url
This script finds the stream URL from a dr.dk page so you can
download the tv program.
def fetch(url):
"""Download body from url"""
req = Request(url, headers=headers)
response = urlopen(req)
body = response.read()
response.close()
# convert to string - it is easier to convert here
if isinstance(body, bytes):
body = body.decode('utf8')
return body
class StreamExtractor:
def __init__(self, url):
self.url = url.lower()
self.urlp = urlparse(self.url)
def get_stream_data(self):
"""supply a URL to a video page on dr.dk and get back a streaming
url"""
if self.urlp.netloc not in ('dr.dk', 'www.dr.dk'):
raise Exception("Must be an URL from dr.dk")
self.html = fetch(self.url)
logging.info("Player fetched: " + self.url)
# Standalone show?
if self.urlp.path.startswith('/tv/se/'):
return self.get_stream_data_from_standalone()
# Bonanza?
elif self.urlp.path.startswith('/bonanza/'):
return self.get_stream_data_from_bonanza()
# Live tv?
elif self.urlp.path.startswith('/tv/live'):
return self.get_stream_data_from_live()
else:
return self.get_stream_data_from_series()
def get_stream_data_from_rurl(self, rurl):
"""Helper method to parse resource JSON document"""
body = fetch(rurl)
resource_data = json.loads(body)
qualities = resource_data.get('links')
# sort by quality
qualities = sorted(qualities, key=lambda x: x['bitrateKbps'],
reverse=True)
stream_data = qualities[0]
stream_url = stream_data.get('uri')
logging.info("Stream data fetched: " + stream_url)
playpath, filename = self.get_metadata_from_stream_url(stream_url)
stream_data = {'stream_url': stream_url,
'playpath': playpath,
'filename': filename,
'is_live': False}
return stream_data
def get_metadata_from_stream_url(self, stream_url):
"""Helper method to extacts playpath and filename suggestion from a
rtmp url"""
parsed = urlparse(stream_url)
playpath_s = parsed.path.split('/')[2:]
playpath = '/'.join(playpath_s)
# rerun to split the parameter
path = urlparse(parsed.path).path
filename = path.split('/')[-1]
return playpath, filename
def get_stream_data_from_standalone(self):
"""Extracts stream data from a normal single program page.
The data is hidden in a resource URL, that we need to download
and parse.
mu_regex = re.compile('resource: "([^"]+)"')
m = mu_regex.search(self.html)
if m and m.groups():
resource_meta_url = m.groups()[0]
return self.get_stream_data_from_rurl(resource_meta_url)
def get_stream_data_from_bonanza(self):
"""Finds stream URL from bonanza section. Just pick up the first RTMP
url.
stream_regex = re.compile('rtmp://.*?\.mp4')
m = stream_regex.search(self.html)
if m and m.group():
stream_url = m.group()
else:
raise Exception("Could not find Bonanza stream URL")
playpath, filename = self.get_metadata_from_stream_url(stream_url)
stream_data = {'stream_url': stream_url,
'playpath': playpath,
'filename': filename,
'is_live': False}
return stream_data
def get_stream_data_from_live(self):
stream_url = 'rtmp://livetv.gss.dr.dk/live'
quality = '3'
playpaths = {'dr1': 'livedr01astream',
'dr2': 'livedr02astream',
'dr-ramasjang': 'livedr05astream',
'dr-k': 'livedr04astream',
'dr-update-2': 'livedr03astream',
'dr3': 'livedr06astream'}
urlend = self.urlp.path.split('/')[-1]
playpath = playpaths.get(urlend)
filename = 'live.mp4'
if playpath:
playpath += quality
filename = urlend + '.mp4'
stream_data = {'stream_url': stream_url,
'playpath': playpath,
'filename': filename,
'is_live': True}
return stream_data
def get_stream_data_from_series(self):
"""dr.dk has a special player for multi episode series. This is the
fall back parser, as there seems to be no pattern in the URL."""
slug_regex = re.compile('seriesSlug=([^"]+)"')
m = slug_regex.search(self.html)
if m and m.groups():
slug_id = m.groups()[0]
else:
raise Exception("Could not find program slug")
logging.info("found slug: " + slug_id)
program_meta_url = 'http://www.dr.dk/nu/api/programseries/%s/videos'\
% slug_id
body = fetch(program_meta_url)
program_data = json.loads(body)
if not program_data:
raise Exception("Could not find data about the program series")
fragment = self.urlp.fragment
if fragment.startswith('/'):
fragment = fragment[1:]
fragment = fragment.split('/')
video_id = fragment[0]
logging.info("Video ID: " + video_id)
video_data = None
if video_id:
for item in program_data:
if item['id'] == int(video_id):
video_data = item
if not video_data:
video_data = program_data[0]
resource_meta_url = video_data.get('videoResourceUrl')
return self.get_stream_data_from_rurl(resource_meta_url)
def generate_cmd(self):
"""Build command line to download stream with the rtmpdump tool"""
sdata = self.get_stream_data()
if not sdata:
return "Not found"
filename = sdata['filename']
custom_filename = raw_input("Type another filename or press <enter> to keep default [%s]: " % filename)
if custom_filename:
filename = custom_filename
cmd_live = 'rtmpdump --live --rtmp="%s" --playpath="%s" -o %s'
cmd_rec = 'rtmpdump -e --rtmp="%s" --playpath="%s" -o %s'
if sdata['is_live'] is True:
cmd = cmd_live % (sdata['stream_url'], sdata['playpath'], filename)
else:
cmd = cmd_rec % (sdata['stream_url'], sdata['playpath'], filename)
return cmd
def main():
if len(sys.argv) > 1:
url = sys.argv[1]
extractor = StreamExtractor(url)
cmd = extractor.generate_cmd()
os.system(cmd)
else:
print(intro)
if __name__ == "__main__":
main()
When I run the script with an appropriate URL as parameter, I get this:
Traceback (most recent call last):
File "./drdown.py", line 243, in <module>
main()
File "./drdown.py", line 235, in main
cmd = extractor.generate_cmd()
File "./drdown.py", line 211, in generate_cmd
sdata = self.get_stream_data()
File "./drdown.py", line 65, in get_stream_data
return self.get_stream_data_from_standalone()
File "./drdown.py", line 123, in get_stream_data_from_standalone
return self.get_stream_data_from_rurl(resource_meta_url)
File "./drdown.py", line 87, in get_stream_data_from_rurl
reverse=True)
TypeError: 'NoneType' object is not iterable
I should note that I didn't expect it to work out of the box, but so far I've been unable even to figure out what the problem is, no less solve it.
I've tried my best to go through the code, looking for typos and such, but I haven't had any luck and much of what happens I don't really understand.
So please, if you can, I'd very much appreciate a little help.
Best regards.
NB:
Some might conclude that this script does something illegal. In actuality that is not so, just make that clear. Also, testing from outside Denmark, will probably not be possible.
Last edited by zacariaz (2013-11-08 18:00:33)Trilby wrote:
zacariaz wrote:Have the following code (Haven't written it my self and don't know much about how it does what it's supposed to do.)
You know a lot more than we do: like where you then found this code, and what it is supposed to do.
My only first thought without looking through random code that allegedly serves some unknown purpose and comes from some unknown source is that the shebang is ambiguous: it may be a python 2 script while /usr/bin/python is now python 3.
I've pretty much concluded that python 3.3 is the right choice, sp that should not be a problem, as for what it does, it uses "rtmpdump" to record or "rip" video from a danish site "dr.dk", which is a public service television network.
I have it from reliable sources that this actually works, or at least did at some point, on Windows machines, but of course i'm on linux, and that complicated matters.
All in all, as I understand it, what the script really does, is retrieving the relevant rtmp link. The rest is up to "rmtpdump" which I should be able to manage.
In any case, I'm not really that concerned with learning what the script does at this point, but rather what the error mean.
The only actual error description I see is: "TypeError: 'NoneType' object is not iterable" and I haven't a clue what that implies. I've read through the script, but haven't been able to find any obvious flaws.. -
[Solved] Grub not displaying menu, error messages from grub-mkconfig
Hi I'm new
I have (or rather, am trying to setup) a dual boot with Windows 8.1 and Arch, with each OS on separate SSDs.
Windows 8.1 already installed, Arch installation (seems to have) has gone smoothly. However, when I remove the installation usb, and try to boot, I get a command line prompt:
grub >_
...instead of a menu. I tried typing 'boot', but got 'you need to load the kernel first'. So I cannot access my arch installation without chrooting (or knowing how to compile the kernel in the command line, which I could not find after a lot of searching)
I followed the documentation in the Beginner's Guide and the GRUB page for installing and configuring GRUB. This is UEFI (grub2), not BIOS (grub legacy).
pacman -S grub efibootmgr
grub-install --target=x86S64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck
No error messages. I also installed os-prober for kicks. When I went to generate the config file (as recommended for beginners), I got a torrent of what I interpreted to be error messages, not just copacetic output:
grub-mkconfig -o /boot/grub/grub.cfg
resulted in:
click this link for error messages
(sorry about the image. I had to shutdown and reboot into my windows partition, since I still can't arch it up. If any/all of you have a better way to reproduce output and feel it pertinent, I'm all ears)
so upon exiting chroot and rebooting, grub boots up to the above effect; no menu is displayed. And I am sad panda.
Background Information:
Partition scheme:
/dev/sda1 - BIOS boot partition (I didn't read carefully, lol)
/dev/sda2 - EFI System Partition - mounted to /mnt/boot when chrooting in
/dev/sda3 - Root partition - mounted to /mnt/ when chrooting in
/dev/sda4 - Home partition - mounted to /mnt/home when chrooting in
The installation and configuration described above was done in chroot with the above partition scheme
I originally had issues booting into UEFI mode with the arch iso (written to a usb stick for the initial install). The boot would hang at 'triggering uevents'. I ultimately fixed this by pressing 'e' in the bootloader menu (also grub, I believe) and prepended
linux /boot/vmlinux-linux root=UUID=978e3e81-8048-4ae1-8a06-aa727458e8ff nomodeset nouveau.modeset=0
It then (successfully triggered uevents? and) booted normally
ALSO:
This is a custom built pc.
Hardware:
intel i7 4930K
ASUS Sabertooth X79 mobo
ASUS GTX 780 Ti gpu
ballistix sport DDR3 RAM (4 x 8 GB)
3 x 128 GB SSD (ADATA P900)
1 x 2 TB HDD (Toshiba, 7200 rpm)
Hey, if you made it to the bottom of this post, I really appreciate you taking the time out of your day. Thank you!
Last edited by Otsdarva (2014-06-09 03:22:25)I realized that since I was not using EFISTUB, I could not mount the ESP to /boot; it had to be /boot/efi. A quick remount-reinstall of grub, then rerunning grub-mkconfig solved the issue.
Also, regarding WonderWoofy's suggestion: I learned by trying gummiboot that for whatever reason the kernel hadn't compiled properly when I ran
pacstrap /mnt base base-devel
Fixed via
pacman -S linux
Thanks for your help, everybody! -
How to solve the "Method invocation failed" error in script?
Hello,
I'm trying to modify the script that enumerates all the txt (csv) files on folder and deletes empty columns, but with no luck. The script is working when I execute it on single csv file. But when I put script on loop, it generates errors:
Method invocation failed because [System.Management.Automation.PSCustomObject] does not contain a method named 'split'.
At C:\scripts\populate.ps1:25 char:1
+ $b = $line.split(",")
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (split:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
The script looks the following:
$files = Get-ChildItem C:\scripts\Results\csv\* -include *.txt
#Process files by performing a search and replace
foreach ($infile in $files)
$infilen = 'C:\scripts\Results\csv\'+[io.path]::GetFileName($infile)
$infile = import-csv $infilen
##remove blank coloumns##
$cStore = @() # array to store used column numbers
$rNumber = 0
foreach ($line in $infile)
if ($rNumber -eq 0)
{# ignore header
else
$b = $line.split(",")
$fieldNum = 0
foreach ($field in $b)
if ($field -ne '')
if ($cStore -notcontains $fieldNum) {$cStore += $fieldNum}
$fieldNum += 1
$rNumber +=1
# array $cStore now contains column numbers with values
$cStore = $cStore | sort
foreach ($line in $infile)
$nLine = ""
$c = $line.split(",")
foreach ($ar in $cStore)
$nLine += $c[$ar]+","
# remove trailing ,
$nLine = $nLine.Substring(0, $nLine.Length-1)
$fnFriendly = [io.path]::GetFileNameWithoutExtension($infile)
$result=$fnFriendly+'cl.txt'
Write-Output $nLine >> $result
Also I have found the explanation on this error on this
link but it seems this is not the case. Can you help to solve this?
Thanks!You are importing a CSV file which implies that you are creating an object (pscustomobject) and each item in that object is represented by $line. The issue is that this $line has multiple properties (for each column of the CSV) that you need to decide
on which one to split:
$c = $line.propertyname.split(",")
I'm not sure, but it seems that if you are trying to split by a comma, then maybe you are assuming that you did something similar to a
get-content on the file in which the original approach that you have done would work.
Boe Prox
Blog |
Twitter
PoshWSUS |
PoshPAIG | PoshChat |
PoshEventUI
PowerShell Deep Dives Book
Maybe you are looking for
-
My iMac G5/1.9 17-Inch: Identifiers; iSight - MA063LL/A - PowerMac12,1 - A1144 - 2081, will not boot to an internal Hard Disc (HD). Does boot to a Leopard System Install DVD but then does not recognize the HD (neither does Disk Utilities) for System
-
How do i put a Picture in LiveType?
How can i put a picture as a background?
-
Real Simple, if "United States" is chosen on my dropdown, I would like a certain textbox to dissappear. I have tried all of these syntax, but nothing will work, please help: if(xfa.event.newTexT == 'United States'){ txtTempID.presence = "hidden"; or
-
Reservation is created for item category N
Hi friends, While attaching the material to activity in Cj20n, Reservation is created for that material but the thing is that it ia a non stock material and also I done default item category as N (non stock item) in T.ID OPS8 and attached it to netwo
-
Windows 2008 R2 TS VPN connection closed when another user logs in
Hi. I have a W 2008 R2 Ent. server with TS I have VPN on the TS configured with a L2TP/Ipsec connection to connect to a customer site Users will remote into the server, and make a VPN connection (click on shortcut to start VPN) and access the custome