Portál AbcLinuxu, 25. dubna 2024 15:42


Dotaz: Chybící C preprocesor

21.10.2006 15:58 Peter-S | Levice
Chybící C preprocesor
Přečteno: 125×
Odpovědět | Admin
Ahoj. Tak sem tady zas. Chci se zeptat, kde je chyba, kdyz program make nenalezne zadny C preprocesor (cpp) set -e; for i in lib daemon modules man samples; do make -C $i all; done make[1]: Entering directory `/sources/blfs/autofs-4.1.4/lib' /usr/bin/rpcgen -h -o mount.h mount.x cannot find any C preprocessor (cpp) /usr/bin/rpcgen: C preprocessor failed with exit code 1 make[1]: *** [mount.h] Error 1 make[1]: Leaving directory `/sources/blfs/autofs-4.1.4/lib' make: *** [daemon] Error 2
All isn't all. There also exists "all + 1", too.
Nástroje: Začni sledovat (1) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

21.10.2006 16:00 Peter-S | Levice
Rozbalit Rozbalit vše Chybící C preprocesor
Odpovědět | | Sbalit | Link | Blokovat | Admin
Jeste jednou ten vypis logu...
set -e; for i in lib daemon modules man samples; do make -C $i all; done
make[1]: Entering directory `/sources/blfs/autofs-4.1.4/lib'
/usr/bin/rpcgen -h -o mount.h mount.x
cannot find any C preprocessor (cpp)
/usr/bin/rpcgen: C preprocessor failed with exit code 1
make[1]: *** [mount.h] Error 1
make[1]: Leaving directory `/sources/blfs/autofs-4.1.4/lib'
make: *** [daemon] Error 2
All isn't all. There also exists "all + 1", too.
21.10.2006 16:05 Michal Kubeček | skóre: 72 | Luštěnice
Rozbalit Rozbalit vše Re: Chybící C preprocesor
Odpovědět | | Sbalit | Link | Blokovat | Admin
A máte nainstalovaný překladač?
23.10.2006 06:38 Peter-S | Levice
Rozbalit Rozbalit vše Re: Chybící C preprocesor
Myslím, že ano. Mám nainstalovaný balíček GCC-3.4.3, a postupoval sem podle návodu (je to Linux From Scratch 6.2). Skusím jěště znovu nainstalovat GCC-3.4.3, možná to pomůže. Kdyby měl někdo zkušenosti, tak uvítám.
All isn't all. There also exists "all + 1", too.
23.10.2006 09:22 DNA
Rozbalit Rozbalit vše Re: Chybící C preprocesor
já zkušenost nemám, ale zkusil bych nainstalovat i cpp a g++
23.10.2006 12:09 Peter-S | Levice
Rozbalit Rozbalit vše Re: Chybící C preprocesor
Jak to myslis? Je to soucast GCC, nebo jsou to samostatne baliky? A prave se chystam nanovu vybudovat toolchain, cize casu zabiju hodne :-)... Davam GCC 4.0.3
All isn't all. There also exists "all + 1", too.
24.10.2006 09:45 DNA
Rozbalit Rozbalit vše Re: Chybící C preprocesor
v Debianu to mám odděleně, bohužel jsem si vypnul komp, takže se nedostanu k tomu abych se podíval jak to je (na pracovní stanici mám wxp alwaysunstable), ale při update se mi vypisují ty balíky zvlášť...
24.10.2006 11:53 Peter-S | Levice
Rozbalit Rozbalit vše Re: Chybící C preprocesor
Tak mě napadá otázka, jesti je vůbec ten preprocesor součástí balíku GCC... Dnes se k tomu moc nedostanu, ale zajímavá je jěště jedna věc (nepamatuju si to přesně): ve výpisu ./configure je něco takového, jako Checking gcc to compile c: gcc -e . Tak teď nevím, jestli mi schází jenom symlink, nebo jak to vyřešit.
All isn't all. There also exists "all + 1", too.
24.10.2006 12:10 DNA
Rozbalit Rozbalit vše Re: Chybící C preprocesor
fakt nemám tušení, bodnul by kompletní výpis toho co configure vrátí
26.10.2006 11:00 Peter-S | Levice
Rozbalit Rozbalit vše Vypis ./configure && make
peter@LFS:/sources/blfs/autofs-4.1.4$ ./configure --prefix=/ --mandir=/usr/share/man
checking for binaries in... /usr/bin:/bin:/usr/sbin:/sbin
checking for mount... /bin/mount
checking for umount... /bin/umount
checking for fsck.ext2... /sbin/fsck.ext2
checking for fsck.ext3... /sbin/fsck.ext3
checking if mount accepts the -s option... 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 ANSI C... none needed
checking for yp_match in -lnsl... yes
checking for res_query in -lresolv... yes
checking for hes_resolve in -lhesiod... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -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 rpcsvc/nis.h usability... yes
checking rpcsvc/nis.h presence... yes
checking for rpcsvc/nis.h... yes
checking for ldap_init in -lldap... no
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking whether gcc -fPIE works... yes
checking location of the init.d directory... /etc/rc.d/init.d
configure: creating ./config.status
config.status: creating Makefile.conf
config.status: creating include/config.h

peter@LFS:/sources/blfs/autofs-4.1.4$ make set -e; for i in lib daemon modules man samples; do make -C $i all; done make[1]: Entering directory `/sources/blfs/autofs-4.1.4/lib' gcc -O3 -fomit-frame-pointer -Wall -I../include -fPIC -D_GNU_SOURCE -DHAVE_TCP_WRAPPER -DNFS3_SUPPORTED -c cache.c /usr/bin/rpcgen -h -o mount.h mount.x cannot find any C preprocessor (cpp) /usr/bin/rpcgen: C preprocessor failed with exit code 1 make[1]: *** [mount.h] Error 1 make[1]: Leaving directory `/sources/blfs/autofs-4.1.4/lib' make: *** [daemon] Error 2
All isn't all. There also exists "all + 1", too.
26.10.2006 12:43 Petr Šobáň | skóre: 80 | blog: soban | Olomouc
Rozbalit Rozbalit vše Re: Vypis ./configure && make
No tak si ten preprocessor doinstaluj.

Já ho na FC mám taky v samostatném balíčku.
[petr@soban ~]$ rpm -qa | grep cpp
cpp-4.1.1-30
[petr@soban ~]$ 
Případně ho skus spustit pokud tam je co vypíše za chybu.
[petr@soban ~]$ cpp --help
Usage: cpp [options] file...
Options:
  -pass-exit-codes         Exit with highest error code from a phase
  --help                   Display this information
  --target-help            Display target specific command line options
  (Use '-v --help' to display command line options of sub-processes)
  -dumpspecs               Display all of the built in spec strings

........

26.10.2006 13:59 Peter-S | Levice
Rozbalit Rozbalit vše Re: Vypis ./configure && make
ale co pak znamena tento vypis ./configure ?

...
checking how to run the C preprocessor... gcc -E
...

neni to spusob, jak spustit ten preprocesor?
All isn't all. There also exists "all + 1", too.
26.10.2006 14:10 Petr Šobáň | skóre: 80 | blog: soban | Olomouc
Rozbalit Rozbalit vše Re: Vypis ./configure && make
Krucinál a to je takovej problém skusit zda tam ten cpp je a zda se spustí když napíšeš

cpp --help <ENTER>

já těžko můžu vědět zda ten make volá cpp nebo gcc -E a nebo ten gcc volá externí cpp atd....

Prostě rač se bude zjištovat co kdo volá než aby se zjistilo zda cpp šlape a je nainstalované.

Nejdříve si tam doinstaluj cpp a potom se budeme bavit o tom když to ten cpp znovu nenajde.
26.10.2006 23:27 Peter-S | Levice
Rozbalit Rozbalit vše Re: Vypis ./configure && make
Takze, nic sem nedoinstalovaval, cpp tam je - cpp --help hodi tohle:
Usage: cpp [options] file...
Options:
  -pass-exit-codes         Exit with highest error code from a phase
  --help                   Display this information
  --target-help            Display target specific command line options
  (Use '-v --help' to display command line options of sub-processes)
  -dumpspecs               Display all of the built in spec strings
...
All isn't all. There also exists "all + 1", too.
27.10.2006 00:26 Petr Šobáň | skóre: 80 | blog: soban | Olomouc
Rozbalit Rozbalit vše Re: Vypis ./configure && make
Tak skuste nepoužívat /usr/bin/rpcgen možná ten tav vnáší problém.
27.10.2006 07:13 Peter-S | Levice
Rozbalit Rozbalit vše Re: Vypis ./configure && make
No jo, ale jak? Nejsem až tak zdatný, abych si troufnul upravit Makefile nebo konfigurační soubor... Neexistuje nějaký parametr, ako make předat lokaci cpp?
All isn't all. There also exists "all + 1", too.
27.10.2006 09:52 mike
Rozbalit Rozbalit vše Re: Vypis ./configure && make
ln -s `which cpp` /lib/cpp
27.10.2006 11:52 DNA
Rozbalit Rozbalit vše Re: Vypis ./configure && make
na téhle stránce - http://wiki.linuxfromscratch.org/blfs/ticket/1768 - píšou tohle:
adding this step before running 'make' or './configure' tells rpc to look for cpp in '/usr/bin': 

sed -i 's:\(RPCGEN = .*\)$/\1 -Y /usr/bin:' lib/Makefile 
27.10.2006 12:24 Peter-S | Levice
Rozbalit Rozbalit vše Re: Vypis ./configure && make
DNA, na wiki mě opravdu hledat nenapadlo. Díky, jěště zkusím, co to udělá :-)
All isn't all. There also exists "all + 1", too.
29.10.2006 22:17 Peter-S | Levice
Rozbalit Rozbalit vše Re: Vypis ./configure && make
no jo, ale při zadání příkazu vyjde s chybou (nemohu bohužel reprodukovat, protože nejsem na stroji, kde je ten systém...), něco s chybnou syntaxí sed-u :-(
All isn't all. There also exists "all + 1", too.
27.10.2006 09:51 mike
Rozbalit Rozbalit vše Re: Vypis ./configure && make
a bude si to "hacko" vytvaret rucne? :)
27.10.2006 00:29 thingie
Rozbalit Rozbalit vše Re: Vypis ./configure && make
Taky, mimo jiné.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.