I have two content node, one will show the above error message, how can i fix this ?
i am so confuse that i cannot deploy my app !
the stackoverflow show me this !
It looks like your post is mostly code; please add some more details.
oh my god, i don't know what to write
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr com.yahoo.jdisc.application.BundleInstallationException: Unable to cache bundle: file:/opt/vespa/lib/jars/asm-tree-9.2.jar
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat com.yahoo.jdisc.core.FelixFramework.installBundle(FelixFramework.java:90)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat com.yahoo.jdisc.core.ApplicationLoader.init(ApplicationLoader.java:118)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat com.yahoo.jdisc.core.StandaloneMain.run(StandaloneMain.java:43)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat com.yahoo.jdisc.core.StandaloneMain.main(StandaloneMain.java:34)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr Caused by: org.osgi.framework.BundleException: Unable to cache bundle: file:/opt/vespa/lib/jars/asm-tree-9.2.jar
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.Felix.installBundle(Felix.java:3258)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:147)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:120)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat com.yahoo.jdisc.core.FelixFramework.installBundle(FelixFramework.java:186)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat com.yahoo.jdisc.core.FelixFramework.installBundle(FelixFramework.java:196)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat com.yahoo.jdisc.core.FelixFramework.installBundle(FelixFramework.java:88)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \t... 3 more
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr Caused by: java.nio.file.FileSystemException: /opt/vespa/var/jdisc_container/f6caf3dba440ed3dedb384a9fb811435/bundlecache/felix-cache/bundle37/version0.0/bundle.jar: Structure needs cleaning
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat java.base/java.nio.file.Files.newOutputStream(Files.java:220)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.util.SecureAction.getOutputStream(SecureAction.java:555)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.cache.BundleCache.copyStreamToFile(BundleCache.java:545)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:170)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:76)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:819)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.cache.BundleArchive.reviseInternal(BundleArchive.java:491)
[2022-08-04 14:55:22.329] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:155)
[2022-08-04 14:55:22.330] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:456)
[2022-08-04 14:55:22.330] WARNING : metricsproxy-container stderr \tat org.apache.felix.framework.Felix.installBundle(Felix.java:3254)
[2022-08-04 14:55:22.330] WARNING : metricsproxy-container stderr \t... 8 more
[2022-08-04 14:55:22.334] INFO : config-sentinel sentinel.sentinel.service metricsproxy-container: incremented restart penalty to 510.000 seconds
[2022-08-04 14:55:22.334] INFO : config-sentinel sentinel.sentinel.service metricsproxy-container: will delay start by 508.938 seconds
It seems like Vespa cannot write to /opt/vespa/var/jdisc_container/f6caf3dba440ed3dedb384a9fb811435/bundlecache/felix-cache/bundle37/version0.0/bundle.jar - so something wrong with permissions of the file system / disk full?
As this is a cache, you can try to remove everything under bundlecache and see if it helps
Related
Here's my code:
#include <stdio.h>
int main(void) {
printf("Hello! \n");
return 0;
}
I call first cl /Fa test.c, then call ml test.asm and I get the errors:
LIBCMT.lib(default_local_stdio_options.obj) : error LNK2005:
___local_stdio_printf_options already defined in test.obj
libvcruntime.lib(undname.obj) : error LNK2005: ___local_stdio_printf_options already defined in test.obj
test.exe : fatal error LNK1169: one or more multiply defined symbols found
It works fine if I don't use printf. What am I doing wrong?
#include <stdio.h>
int main()
{
int a = 10, b = 15, c;
c = a + b;
printf("%d", c);
return 0;
}
Whenever I tried to compile it produce error
gcc.exe: error: instruction: No such file or directory
gcc.exe: error: Arthematic: No such file or directory
gcc.exe: error: declearation: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
Error code image
Your shell command is malformed. You used
gcc instruction Arthematic declearation.c -o instruction Arthematic declearation
when you should have used
gcc "instruction Arthematic declearation.c" -o "instruction Arthematic declearation"
Try to avoid using spaces in your file or directory name. If any of it contains spaces, than you should put it between "" marks.
I've been exploring emscripten by trying to compile some basic wasm example that uses 'sys/shm.h'
Here's the code I'm trying to compile:
#include <stdio.h>
#include <sys/shm.h>
int main(int argc, char *argv[]) {
key_t key = ftok("shmfile",65);
int shmid = shmget(key,1024,0666|IPC_CREAT);
char *str = (char*) shmat(shmid,(void*)0,0);
sprintf(str, "balhhh");
printf("Data in memory: %s\n",str);
shmdt(str);
return 0;
}
Here is my compilation output:
➜ wasm emcc --version
emcc (Emscripten gcc/clang-like replacement) 1.39.8 (commit 1458145cf4f3db0fb548343e6acab267eef8e4ef)
Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt)
This is free and open source software under the MIT license.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
➜ wasm emcc -o shared.html shared.c -s WASM=1 -s USE_PTHREADS=1
error: undefined symbol: ftok
warning: Link with `-s LLD_REPORT_UNDEFINED` to get more information on undefined symbols
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
error: undefined symbol: shmat
error: undefined symbol: shmdt
error: undefined symbol: shmget
Error: Aborting compilation due to previous errors
shared:ERROR: '/home/wave/Downloads/emsdk/node/12.9.1_64bit/bin/node /home/wave/Downloads/emsdk/upstream/emscripten/src/compiler.js /tmp/tmpiWE3Ei.txt' failed (1)
➜ wasm emcc -o shared.html shared.c -s WASM=1 -s USE_PTHREADS=1 -s LLD_REPORT_UNDEFINED
wasm-ld: error: /tmp/emscripten_temp_bNjvle/shared_0.o: undefined symbol: ftok
wasm-ld: error: /tmp/emscripten_temp_bNjvle/shared_0.o: undefined symbol: shmget
wasm-ld: error: /tmp/emscripten_temp_bNjvle/shared_0.o: undefined symbol: shmat
wasm-ld: error: /tmp/emscripten_temp_bNjvle/shared_0.o: undefined symbol: shmdt
wasm-ld: error: /home/wave/.emscripten_cache/wasm-obj/libc-mt.a(emscripten_pthread.c.o): undefined symbol: initPthreadsJS
shared:ERROR: '/home/wave/Downloads/emsdk/upstream/bin/wasm-ld -o /tmp/emscripten_temp_bNjvle/shared.wasm --lto-O0 /tmp/emscripten_temp_bNjvle/shared_0.o -L/home/wave/Downloads/emsdk/upstream/emscripten/system/local/lib -L/home/wave/Downloads/emsdk/upstream/emscripten/system/lib -L/home/wave/.emscripten_cache/wasm-obj /home/wave/.emscripten_cache/wasm-obj/libc-mt.a /home/wave/.emscripten_cache/wasm-obj/libcompiler_rt.a /home/wave/.emscripten_cache/wasm-obj/libc-wasm.a /home/wave/.emscripten_cache/wasm-obj/libdlmalloc-mt.a /home/wave/.emscripten_cache/wasm-obj/libpthread-mt.a /home/wave/.emscripten_cache/wasm-obj/libc_rt_wasm.a /home/wave/.emscripten_cache/wasm-obj/libsockets-mt.a --allow-undefined-file=/tmp/tmp5_bZ9l.undefined --import-memory --import-table --shared-memory -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr --strip-debug --export __wasm_call_ctors --export __data_end --export main --export __errno_location --export emscripten_get_global_libc --export __pthread_tsd_run_dtors --export __emscripten_pthread_data_constructor -z stack-size=5242880 --initial-memory=16777216 --no-entry --max-memory=16777216 --global-base=1024' failed (1)
I guess there is shared memory support in emscripten, but I just can't get wasm-ld to link it correctly.
Can anyone help?
Thanks,
Gal
Emscripten does not support SysV shared memory (the functions in sys/shm.h).
i am writing the following code in my netbeans sdk :
int main() {
printf("Hello World");
return 0;
}
and it gives me the following error :
make.exe[2]: *** [build/Debug/MinGW-Windows/fourier-transform.o] Error 1
make.exe[2]: Leaving directory
`/c/Users/As-/Documents/NetBeansProjects/CppApplication_1'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory
`/c/Users/As-/Documents/NetBeansProjects/CppApplication_1'
make.exe": *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 59s)
Any help in why is this error ?
Here is my code of Header File.
Header File name 16f877a.h
its code get from this link
My File name led.c
#include "16f877a.h" //IC selection
#fuses XT, NOWDT, NOPROTECT, NOLVP
#use delay (clock =20000000) //clock 20MHz
void main(){
while(1){
output_B(0xff); //hex to binary output on port B
delay_us(500); // delay = 500 x clock period.
output_B(0x00);
delay_us(500);
}
}
those files are located in same folder
/home/company/Documents/CCPP/PIC/LedProject
I use UBUNTU 12.04.
with gcc I compiled a simple hello world program and its runs correctly.
here is my command history in terminal
mkdir -p PIC/LedProject
cd PIC/LedProject/
gedit led.c
gcc -Wall -W -Werror led.c -o LedProC
and here is my error.please help me to sort this issue
In file included from led.c:1:0:
16f877a.h:91:0: error: ignoring #pragma maxram [-Werror=unknown-pragmas]
16f877a.h:99:0: error: ignoring #pragma memmap INDF_ADDR [-Werror=unknown-pragmas]
16f877a.h:100:0: error: ignoring #pragma memmap TMR0_ADDR [-Werror=unknown-pragmas]
16f877a.h:101:0: error: ignoring #pragma memmap PCL_ADDR [-Werror=unknown-pragmas]
16f877a.h:102:0: error: ignoring #pragma memmap STATUS_ADDR [-Werror=unknown-pragmas]
16f877a.h:103:0: error: ignoring #pragma memmap FSR_ADDR [-Werror=unknown-pragmas]
16f877a.h:104:0: error: ignoring #pragma memmap PORTA_ADDR [-Werror=unknown-pragmas]
16f877a.h:105:0: error: ignoring #pragma memmap PORTB_ADDR [-Werror=unknown-pragmas]
16f877a.h:106:0: error: ignoring #pragma memmap PORTC_ADDR [-Werror=unknown-pragmas]
16f877a.h:107:0: error: ignoring #pragma memmap PORTD_ADDR [-Werror=unknown-pragmas]
16f877a.h:108:0: error: ignoring #pragma memmap PORTE_ADDR [-Werror=unknown-pragmas]
16f877a.h:109:0: error: ignoring #pragma memmap PCLATH_ADDR [-Werror=unknown-pragmas]
16f877a.h:110:0: error: ignoring #pragma memmap INTCON_ADDR [-Werror=unknown-pragmas]
16f877a.h:111:0: error: ignoring #pragma memmap PIR1_ADDR [-Werror=unknown-pragmas]
16f877a.h:112:0: error: ignoring #pragma memmap PIR2_ADDR [-Werror=unknown-pragmas]
16f877a.h:113:0: error: ignoring #pragma memmap TMR1L_ADDR [-Werror=unknown-pragmas]
16f877a.h:114:0: error: ignoring #pragma memmap TMR1H_ADDR [-Werror=unknown-pragmas]
16f877a.h:115:0: error: ignoring #pragma memmap T1CON_ADDR [-Werror=unknown-pragmas]
16f877a.h:116:0: error: ignoring #pragma memmap TMR2_ADDR [-Werror=unknown-pragmas]
16f877a.h:117:0: error: ignoring #pragma memmap T2CON_ADDR [-Werror=unknown-pragmas]
16f877a.h:118:0: error: ignoring #pragma memmap SSPBUF_ADDR [-Werror=unknown-pragmas]
16f877a.h:119:0: error: ignoring #pragma memmap SSPCON_ADDR [-Werror=unknown-pragmas]
16f877a.h:120:0: error: ignoring #pragma memmap CCPR1L_ADDR [-Werror=unknown-pragmas]
16f877a.h:121:0: error: ignoring #pragma memmap CCPR1H_ADDR [-Werror=unknown-pragmas]
16f877a.h:122:0: error: ignoring #pragma memmap CCP1CON_ADDR [-Werror=unknown-pragmas]
16f877a.h:123:0: error: ignoring #pragma memmap RCSTA_ADDR [-Werror=unknown-pragmas]
16f877a.h:124:0: error: ignoring #pragma memmap TXREG_ADDR [-Werror=unknown-pragmas]
16f877a.h:125:0: error: ignoring #pragma memmap RCREG_ADDR [-Werror=unknown-pragmas]
16f877a.h:126:0: error: ignoring #pragma memmap CCPR2L_ADDR [-Werror=unknown-pragmas]
16f877a.h:127:0: error: ignoring #pragma memmap CCPR2H_ADDR [-Werror=unknown-pragmas]
16f877a.h:128:0: error: ignoring #pragma memmap CCP2CON_ADDR [-Werror=unknown-pragmas]
16f877a.h:129:0: error: ignoring #pragma memmap ADRESH_ADDR [-Werror=unknown-pragmas]
16f877a.h:130:0: error: ignoring #pragma memmap ADCON0_ADDR [-Werror=unknown-pragmas]
16f877a.h:131:0: error: ignoring #pragma memmap OPTION_REG_ADDR [-Werror=unknown-pragmas]
16f877a.h:132:0: error: ignoring #pragma memmap TRISA_ADDR [-Werror=unknown-pragmas]
16f877a.h:133:0: error: ignoring #pragma memmap TRISB_ADDR [-Werror=unknown-pragmas]
16f877a.h:134:0: error: ignoring #pragma memmap TRISC_ADDR [-Werror=unknown-pragmas]
16f877a.h:135:0: error: ignoring #pragma memmap TRISD_ADDR [-Werror=unknown-pragmas]
16f877a.h:136:0: error: ignoring #pragma memmap TRISE_ADDR [-Werror=unknown-pragmas]
16f877a.h:137:0: error: ignoring #pragma memmap PIE1_ADDR [-Werror=unknown-pragmas]
16f877a.h:138:0: error: ignoring #pragma memmap PIE2_ADDR [-Werror=unknown-pragmas]
16f877a.h:139:0: error: ignoring #pragma memmap PCON_ADDR [-Werror=unknown-pragmas]
16f877a.h:140:0: error: ignoring #pragma memmap SSPCON2_ADDR [-Werror=unknown-pragmas]
16f877a.h:141:0: error: ignoring #pragma memmap PR2_ADDR [-Werror=unknown-pragmas]
16f877a.h:142:0: error: ignoring #pragma memmap SSPADD_ADDR [-Werror=unknown-pragmas]
16f877a.h:143:0: error: ignoring #pragma memmap SSPSTAT_ADDR [-Werror=unknown-pragmas]
16f877a.h:144:0: error: ignoring #pragma memmap TXSTA_ADDR [-Werror=unknown-pragmas]
16f877a.h:145:0: error: ignoring #pragma memmap SPBRG_ADDR [-Werror=unknown-pragmas]
16f877a.h:146:0: error: ignoring #pragma memmap ADRESL_ADDR [-Werror=unknown-pragmas]
16f877a.h:147:0: error: ignoring #pragma memmap ADCON1_ADDR [-Werror=unknown-pragmas]
16f877a.h:148:0: error: ignoring #pragma memmap EEDATA_ADDR [-Werror=unknown-pragmas]
16f877a.h:149:0: error: ignoring #pragma memmap EEADR_ADDR [-Werror=unknown-pragmas]
16f877a.h:150:0: error: ignoring #pragma memmap EEDATH_ADDR [-Werror=unknown-pragmas]
16f877a.h:151:0: error: ignoring #pragma memmap EEADRH_ADDR [-Werror=unknown-pragmas]
16f877a.h:152:0: error: ignoring #pragma memmap EECON1_ADDR [-Werror=unknown-pragmas]
16f877a.h:153:0: error: ignoring #pragma memmap EECON2_ADDR [-Werror=unknown-pragmas]
16f877a.h:206:1: error: unknown type name ‘data’
16f877a.h:206:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before numeric constant
16f877a.h:207:1: error: unknown type name ‘sfr’
16f877a.h:207:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before numeric constant
16f877a.h:208:1: error: unknown type name ‘data’
16f877a.h:208:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before numeric constant
16f877a.h:209:1: error: unknown type name ‘sfr’
16f877a.h:209:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before numeric constant
16f877a.h:267:1: error: unknown type name ‘sbit’
16f877a.h:267:1: error: expected declaration specifiers or ‘...’ before ‘(’ token
16f877a.h:268:1: error: unknown type name ‘sbit’
16f877a.h:485:1: error: expected declaration specifiers or ‘...’ before ‘(’ token
16f877a.h:486:1: error: unknown type name ‘sbit’
16f877a.h:486:1: error: expected declaration specifiers or ‘...’ before ‘(’ token
led.c:2:2: error: invalid preprocessing directive #fuses
led.c:3:2: error: invalid preprocessing directive #use
led.c:4:6: error: return type of ‘main’ is not ‘int’ [-Werror=main]
led.c: In function ‘main’:
led.c:6:3: error: implicit declaration of function ‘output_B’ [-Werror=implicit-function-declaration]
led.c:7:3: error: implicit declaration of function ‘delay_us’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
bellvantage#BVPC00024:~/Documents/CCPP/PIC/LedProject$ mkdir -p PIC/LedProject
bellvantage#BVPC00024:~/Documents/CCPP/PIC/LedProject$ cd PIC/LedProject/
bellvantage#BVPC00024:~/Documents/CCPP/PIC/LedProject/PIC/LedProject$ gedit led.c
bellvantage#BVPC00024:~/Documents/CCPP/PIC/LedProject/PIC/LedProject$ gcc -Wall -W -Werror led.c -o LedProC
gcc: error: led.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
I refer this blog for my circuit
You are using source code that is not strictly C but an extension that includes many preprocessor commands like
#fuses XT, NOWDT, NOPROTECT, NOLVP
#use delay (clock =20000000) //clock 20MHz
These are use to configure a PIC processor. The complier for this C like language has a built in understanding of functions like
delay_us()
The compliant C compiler (gcc) you used has no understand of fuse, delay_us , etc. and so declares a host of errors.
If you goal is to program a PIC - which I think it is, using this type of C, go to MicroChip, CCS, or elsewhere and get their PIC C compiler.
If you goal is to program with your gcc on your UBUNTU machine, do not use code designed for PICs.
BTW: There may exist cross-compilers for PIC that compile on your UBUNTU, but I am not aware.
Search the questions for gcc PIC cross-compiler and you may find it answered.