Firmware: A-410 [01 Apr. 2014] | A-400 [12 Mar. 2014] | C-300 [13 Feb. 2014] | A-300 [24 Feb. 2014] | C-200 [11 July 2013] | A-200/A-210 [11 July 2013] | Popbox V8 [3 Dec 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
[200] Problem compiling gambas2
08-31-2011, 11:34 AM
Post: #1
Problem compiling gambas2
i'm trying to compile gambas2 from svn and i'm running into an error.

env vars
Code:
PATH=/share/Apps/local/bin:$PATH;export PATH
LD_LIBRARY_PATH=/lib:/opt/syb/sigma/bdj:/opt/syb/sigma/bdj/jvm/lib:/opt/syb/sigma/bdj/bdj/lib:/opt/syb/app/lib:/opt/syb/sigma/lib:/usr/local/lib:/share/Apps/local/lib;export LD_LIBRARY_PATH
MANPATH=$MANPATH:/share/Apps/local/share/man;export MANPATH
CFLAGS="-I/share/Apps/local/include -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2";export CFLAGS
CXXFLAGS="-EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2";export CXXFLAGS
LDFLAGS="-L/share/Apps/local/lib -EL -fPIC -Wl,-rpath -Wl,/opt/syb/sigma/lib -Wl,-rpath -Wl,/opt/syb/app/lib -Wl,-rpath -Wl,/nmt/apps/lib -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/share/Apps/local/lib -march=74kf2_1 -mtune=74kf2_1 -mdspr2";export LDFLAGS
CPPFLAGS="-EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2";export CPPFLAGS
ASFLAGS="-El -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2";export ASFLAGS
PKG_CONFIG_PATH=/share/Apps/local/lib/pkgconfig;export PKG_CONFIG_PATH
CC="gcc -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2 -I/share/Apps/local/include";export CC
CXX="g++ -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2 -I/share/Apps/local/include";export CXX
AR="/share/Apps/local/bin/ar";export AR
NM="/share/Apps/local/bin/nm";export NM
STRIP="/share/Apps/local/bin/strip";export STRIP
LD="/share/Apps/local/bin/ld";export LD
RANLIB="/share/Apps/local/bin/ranlib";export RANLIB

Config error from console
Code:
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/share/Dev/install/gambas/2.0/main':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
configure: error: ./configure failed for main

Matching line from config.log
Code:
configure:5684: checking if mt is a manifest tool
configure:5690: mt '-?'
mt: unrecognized opcode -?
configure:5698: result: no
configure:6330: checking how to run the C preprocessor
configure:6361: gcc -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2 -I/share/Apps/local/include -E -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2 conftest.c
configure:6361: $? = 0
configure:6375: gcc -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2 -I/share/Apps/local/include -E -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2 conftest.c
conftest.c:9: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:6375: $? = 1
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.  */
| #include <ac_nonexistent.h>
configure:6400: result: gcc -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2 -I/share/Apps/local/include -E
configure:6420: gcc -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2 -I/share/Apps/local/include -E -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2 conftest.c
configure:6420: $? = 0
configure:6434: gcc -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2 -I/share/Apps/local/include -E -EL -fPIC -march=74kf2_1 -mtune=74kf2_1 -mdspr2 conftest.c
conftest.c:9: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:6434: $? = 1
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.  */
| #include <ac_nonexistent.h>

Is this an obvious error (like i forget something)?
Find all posts by this user
Add Thank You Quote this message in a reply
08-31-2011, 05:21 PM
Post: #2
RE: Problem compiling gambas2
Is the executable build? Do you use make, automake or something else?

It may just be an error indicating a test to check whether non-existent headers can be detected, which should fail.
But it says terminated, so if it's not built perhaps you need to check some flags (I can't see anything strange about them, but then I'm noobie compiler...) and perhaps have a look at the AC_* macros, are they supported by the autoconf version you use?

The condfefs.h PACKAGE_* are empty, is that correct? Or is that just a dummy file generated by the configure?

(Sorry for my amateur compiling advice and questions)

Audio, video, disco - I hear, I see, I learn.
Wiki. Wiki? Wiki!
Find all posts by this user
Add Thank You Quote this message in a reply
09-01-2011, 07:59 AM
Post: #3
RE: Problem compiling gambas2
sorry for the limited info here.

i used the latest svn build 2.0 which i synced.
following the description i did ./reconf-all and that when i ran into the issue.
After searching for a long long time i finally found that the g++ package was missing. Now reconfiguring work but still holds on a mysql error which i posted here http://www.networkedmediatank.com/showth...#pid505701
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [400] Problem installing perl modules from cpan Kanman 1 452 02-22-2014 03:09 AM
Last Post: Kanman
  [200] OPKG - CUPS and DBUS installation problem flegarr 0 534 12-27-2013 10:29 PM
Last Post: flegarr
  [200] Cross-compiling CUPS davep27 8 6,918 06-10-2013 05:48 AM
Last Post: nyk.mat
  [300] csi-lite installation problem DreamT 2 1,150 05-16-2013 01:03 AM
Last Post: jhmiller
  [200] Compiling SqueezeSlave for C200 papaiannis 15 5,119 12-21-2012 04:54 PM
Last Post: papaiannis
  [200] Error compiling Mono.Net snamds 3 2,498 05-14-2012 08:52 PM
Last Post: snamds
  [200] problem starting web service under Apps/AppInit jluc2808 0 1,654 05-08-2012 01:50 PM
Last Post: jluc2808
  [200] [apps] Compiling qt4.7.4 XEvent definition problem in qt libs KidE79 7 3,553 10-14-2011 11:09 AM
Last Post: KidE79
  [200] Problem changing href with setAttribute pbolson 0 1,285 09-23-2011 07:27 PM
Last Post: pbolson
  [200] [PROBLEM] GAYA and Transmission stryker74 0 1,141 07-19-2011 12:42 PM
Last Post: stryker74

Forum Jump: