A compile error occurred check non fatal errors for more information

Люди ! Помогите ! Пытаюсь записать "Program Block" в CPU 222 CN. Выдает ошибку "A compile error occurred, check non-fatal errors for more informstion" "Data Block" - записывает без ошибок. Пишу через "MicroWin 4.0.7", адаптер - "USB/PPI Multi-master cable". Есть подозрение на Flash. У 200-ых контроллеров операционка записана на ту-же Flash, что и программа пользователя, или можно попробовать заменить микросхему Flash памяти?

Kiteruner

Posts: 3
Joined: Mon Dec 22, 2008 10:57 am
Location: Baltia

Не могу записать 222 контроллер

Люди ! Помогите !
Пытаюсь записать «Program Block» в CPU 222 CN. Выдает ошибку «A compile error occurred, check non-fatal errors for more informstion» :( «Data Block» — записывает без ошибок. Пишу через «MicroWin 4.0.7», адаптер — «USB/PPI Multi-master cable». Есть подозрение на Flash.
У 200-ых контроллеров операционка записана на ту-же Flash, что и программа пользователя, или можно попробовать заменить микросхему Flash памяти?


Kiteruner

Posts: 3
Joined: Mon Dec 22, 2008 10:57 am
Location: Baltia

Post

by Kiteruner » Fri Feb 27, 2009 6:25 pm

Дополнительная информация.
После записи «Program blocka», даже пустого, считываю PLC> Information, выдает: «82 Illegal instruction, check instruction mnemonics». После PLC>Clear и дальнейшего PLC> Information — ошибок нет.


bilbo

Posts: 7
Joined: Fri Jul 04, 2008 3:08 pm
Location: Europe

Post

by bilbo » Wed Apr 22, 2009 7:17 am

Most likely you are trying to use instruction that is not supported by that CPU. There are some S7-200 instructions that are supported only on 224 or 226 CPUs. That is why Microwin compiles it succesfully and gives you no error, but when you try to download the 222 CPU checks all the instructions again. Check in manual about instruction set support by PLC.

к сожалению не могу написать все ето на Руский.
Извини. :oops:


smsasg

Posts: 44
Joined: Tue Apr 11, 2006 4:40 am
Location: Russia

Post

by smsasg » Wed Apr 22, 2009 9:00 am

Контроллер с буквами CN (Китайское издание) прописывается лишь при выборе китайского языка в MicroWin…


Old
December 16th, 2016, 04:18 AM

 
#1

Member

India

deno is offline

 

Join Date: Apr 2015

Location: GUJARAT

Posts: 76

micro win s7-200 cpu224 cn download error


hello friends and experts,
I am here along with question I hope someone help me.
I have cpu224 s7 200 PLC which I use in my new project . I have just write program in micro win v4 software and try to download the program in cpu224 cn . but it give below error.
A compile error occurred, check non-fatal error for more information»
my friend suggest me to change the software language to chinese and than try .but it not work and same error occurred.
my os is windows xp and I use ppi communication.
please suggest me solution

 

Reply With Quote

Old
December 16th, 2016, 07:09 AM

 
#2

Member

United Kingdom

BryanG is offline

 

Join Date: Feb 2005

Location: Manchester

Posts: 1,818

Can’t remember where you find it but there should be a report on what the non-fatal error is.

«check non-fatal error for more information»

 

Reply With Quote

Old
December 16th, 2016, 01:54 PM

 
#3

Member

India

deno is offline

 

Join Date: Apr 2015

Location: GUJARAT

Posts: 76

hi,
BryanG
I check PLC Information it show Non-fatal error 82 with a message «Illegal instruction, check instruction mnemonics» but I can’t understand what is it?or what it mean ?
please suggest what I do ?

 

Reply With Quote

Old
December 17th, 2016, 10:32 AM

 
#4

Member

India

deno is offline

 

Join Date: Apr 2015

Location: GUJARAT

Posts: 76

Quote:

Originally Posted by deno
View Post

hi,
BryanG
I check PLC Information it show Non-fatal error 82 with a message «Illegal instruction, check instruction mnemonics» but I can’t understand what is it?or what it mean ?
please suggest what I do ?

Any one having solution about this problem.

 

Reply With Quote

Old
December 17th, 2016, 11:50 AM

 
#5

Member

Finland

Lare is offline

 

Join Date: Jan 2006

Location: Finland

Posts: 1,859

 

Reply With Quote

Old
December 17th, 2016, 04:15 PM

 
#6

Member

United States

keithkyll is offline

 

Join Date: Jul 2005

Location: Heath, TX

Posts: 2,033

Lare, I think you wanted to show page one. Your link is page 2.
Quote from page one of thread 31705:
«If you want to download a program from a Siemens S7- 200 CN PLC.
You must have Microwin 4.0 + SP5, Windows Chinese language support loaded and chosen as input language.

And in Microwin tools > options > general select Chinese.
And then every written word will be question mark but you will be able to upload and download program.»

Links:
http://www.plctalk.net/qanda/showthread.php?t=105125

http://www.plctalk.net/qanda/showthread.php?t=31705

 

Reply With Quote

Old
December 18th, 2016, 04:30 AM

 
#7

Member

United Kingdom

BryanG is offline

 

Join Date: Feb 2005

Location: Manchester

Posts: 1,818

It may be because you have used an instruction in your program that isn’t available in that PLC, it may be that you have misused an instruction, it may be because you have the China version of the PLC. Either way MicroWin isn’t very helpful if the problem comes after the program has been compiled. I did hit something similar and you have to get creative to find the problem. First do a ‘Save As’ with you program and save under a new name, I added ‘test’ to the end of the name so that I would know that it was my test version. Now delete half the rungs in your test program. Try to download again and see if the error has gone away. By repeating this you can narrow it down to which rung is the problem. It doesn’t take too long and does find the problem.

 

Reply With Quote

Old
December 18th, 2016, 09:01 AM

 
#8

Member

India

deno is offline

 

Join Date: Apr 2015

Location: GUJARAT

Posts: 76

Quote:

Originally Posted by BryanG
View Post

It may be because you have used an instruction in your program that isn’t available in that PLC, it may be that you have misused an instruction, it may be because you have the China version of the PLC. Either way MicroWin isn’t very helpful if the problem comes after the program has been compiled. I did hit something similar and you have to get creative to find the problem. First do a ‘Save As’ with you program and save under a new name, I added ‘test’ to the end of the name so that I would know that it was my test version. Now delete half the rungs in your test program. Try to download again and see if the error has gone away. By repeating this you can narrow it down to which rung is the problem. It doesn’t take too long and does find the problem.

hi,
I have try the same but it not work for me same error occurred.
I just write only one rung in main and try to download but still it give me same error.
I can’t understand where I do mistake? Or where is the problem?

 

Reply With Quote

Old
December 18th, 2016, 09:07 AM

 
#9

Member

India

deno is offline

 

Join Date: Apr 2015

Location: GUJARAT

Posts: 76

Quote:

Originally Posted by keithkyll
View Post

Lare, I think you wanted to show page one. Your link is page 2.
Quote from page one of thread 31705:
«If you want to download a program from a Siemens S7- 200 CN PLC.
You must have Microwin 4.0 + SP5, Windows Chinese language support loaded and chosen as input language.

And in Microwin tools > options > general select Chinese.
And then every written word will be question mark but you will be able to upload and download program.»

Links:
http://www.plctalk.net/qanda/showthread.php?t=105125

http://www.plctalk.net/qanda/showthread.php?t=31705

Hi,
I have try it to change the language in software and os also but not solve my problem.
I have micro win sp8 and 9 Updates file but it will not installed due to older version file are not find during the installation.

I also want to know how I come to know the current sp of my micro win?

 

Reply With Quote

Old
December 18th, 2016, 05:43 PM

 
#10

Member

United States

keithkyll is offline

 

Join Date: Jul 2005

Location: Heath, TX

Posts: 2,033

See version under «Help, About».

The answers are in thread 31705.
Post #3 says you will get error 82 unless you do exactly what he says.
Post #7 is from someone who did it successfully.

 

Reply With Quote

#1 2016-06-06 19:44:16

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

[kinda solved] xen build / compliation error

hi everyone,

i’m trying to install xen on my system.

i tried installing it using yaourt, and then again manually  via git copy, and makepkg.

both throw a build error

non-fatal.c: In function 'init_nonfatal_mce_checker':
non-fatal.c:97:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
     if ( __get_cpu_var(poll_bankmask) == NULL )
     ^~
non-fatal.c:103:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  switch (c->x86_vendor) {
  ^~~~~~
cc1: all warnings being treated as errors
/home/nir/xen/xen/src/xen-4.5.1/xen/Rules.mk:168: recipe for target 'non-fatal.o' failed
make[6]: *** [non-fatal.o] Error 1
make[6]: Leaving directory '/home/nir/xen/xen/src/xen-4.5.1/xen/arch/x86/cpu/mcheck'
/home/nir/xen/xen/src/xen-4.5.1/xen/Rules.mk:156: recipe for target 'mcheck/built_in.o' failed
make[5]: *** [mcheck/built_in.o] Error 2
make[5]: Leaving directory '/home/nir/xen/xen/src/xen-4.5.1/xen/arch/x86/cpu'
/home/nir/xen/xen/src/xen-4.5.1/xen/Rules.mk:156: recipe for target 'cpu/built_in.o' failed
make[4]: *** [cpu/built_in.o] Error 2
make[4]: Leaving directory '/home/nir/xen/xen/src/xen-4.5.1/xen/arch/x86'
/home/nir/xen/xen/src/xen-4.5.1/xen/Rules.mk:156: recipe for target '/home/nir/xen/xen/src/xen-4.5.1/xen/arch/x86/built_in.o' failed
make[3]: *** [/home/nir/xen/xen/src/xen-4.5.1/xen/arch/x86/built_in.o] Error 2
make[3]: Leaving directory '/home/nir/xen/xen/src/xen-4.5.1/xen/arch/x86'
Makefile:100: recipe for target '/home/nir/xen/xen/src/xen-4.5.1/xen/xen' failed
make[2]: *** [/home/nir/xen/xen/src/xen-4.5.1/xen/xen] Error 2
make[2]: Leaving directory '/home/nir/xen/xen/src/xen-4.5.1/xen'
Makefile:26: recipe for target 'install' failed
make[1]: *** [install] Error 2
make[1]: Leaving directory '/home/nir/xen/xen/src/xen-4.5.1/xen'
Makefile:65: recipe for target 'install-xen' failed
make: *** [install-xen] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

iv’e found this  thread, but it didn’t really help…

forgive me for being a newbie, just built my first arch yesterday but I’m a quick learner smile

thanks for the help!

Last edited by israelisraeli (2016-06-08 12:32:41)

#2 2016-06-06 20:07:38

loqs
Member
Registered: 2014-03-06
Posts: 15,644

Re: [kinda solved] xen build / compliation error

#3 2016-06-06 20:17:06

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

Re: [kinda solved] xen build / compliation error

hi loqs,

thanks for your response!
i tried reading the links, but i’m not sure what information they provide or how to use it…

#4 2016-06-06 20:56:03

loqs
Member
Registered: 2014-03-06
Posts: 15,644

Re: [kinda solved] xen build / compliation error

israelisraeli wrote:

i tried reading the links, but i’m not sure what information they provide or how to use it…

From your first post

cc1: all warnings being treated as errors

My second link to GCC warning options documents that -Werror causes warnings to be treated as errors and would cause the above output to be generated.
My first link is to webinterface to the xen source in particular line 45 of xen/Rules.mk

CFLAGS += -Werror -Wredundant-decls -Wno-pointer-arith

which includes Werror
Now back to your first posy

non-fatal.c:97:5: error: this 'if' clause does not guard... [-Werror=misleading-indentation]

Werror=misleading-indentation is the same as Wmisleading-indentation +Werror (I have just documented a source of Werror )
So now to locate a source of Wmisleading-indentation
Config.mk
Line 40 of Config.mk

HOSTCFLAGS  = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer

Werror again ( missed that occurrence in my original reply ) and -Wall my second link documents -Wall turns on -Wmisleading-indentation (only for C/C++)
I have not covered the code that triggered the -Wmisleading-indentation warning but I hope that explains why the warning was active and why the warning is being treated as an error.
I also have not covered how to resolve the failing build you could either change the code the warning detects, remove the use of -Wmisleading-indentation or remove the use of -Werror.

#5 2016-06-07 08:49:36

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

Re: [kinda solved] xen build / compliation error

i hope i understood you correctly:

there is a bool flag array in one of the config files, one of them is called ‘Werror’ and if it’s turned on the build() will treat all warnnings as error. during my build() a Wmisleading-indentation warning turned on the Werror => throw error.

so you suggest someways to  work-around this error: either set ‘Werror’ off or set the specific warning checker off.

but why is this warring trowed in the first-place? can i find documentation on this warning? possibly something is miss-configured in my system?

thanks for your help!

#6 2016-06-07 08:57:30

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [kinda solved] xen build / compliation error

israelisraeli wrote:

but why is this warring trowed in the first-place? can i find documentation on this warning? possibly something is miss-configured in my system?

The misleading-indentation warning is new in gcc6.
https://gcc.gnu.org/gcc-6/porting_to.html
https://gcc.gnu.org/gcc-6/changes.html

Last edited by mis (2016-06-07 09:00:03)

#7 2016-06-07 10:38:24

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

Re: [kinda solved] xen build / compliation error

ok, i get it now — somewhere in the code some sloppy xen developer wrote

if(codition)
/intend/ do1()
/intend/ do2()

and the gcc compiler is clever enough to notice that only do1() is conditional and stop the build. from the documentation i understand that adding -Wno-misleading-indentation to the build flags should solve my issue.
first of all, thanks! i finally understand what’s the issue
one (hopefully) last noob question: i spent some time with the documentation time to figure out how to edit build flags, but i didn’t find it… (how do i add build flags?)

#8 2016-06-07 12:45:43

loqs
Member
Registered: 2014-03-06
Posts: 15,644

Re: [kinda solved] xen build / compliation error

israelisraeli wrote:

one (hopefully) last noob question: i spent some time with the documentation time to figure out how to edit build flags, but i didn’t find it… (how do i add build flags?)

I am assuming you are using the xen packagebuild from aur
PKGBUILD
line 20

options=(!buildflags !strip)

Specifies do not use the default build flags and do not strip binaries
line 129

export CFLAGS=-fno-caller-saves

I have not tested if modifying the CFLAGS would work for you.

#9 2016-06-07 17:52:25

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

Re: [kinda solved] xen build / compliation error

changing this line to

 export CFLAGS=-fno-caller-saves -Wno-misleading-indentation 

throws

==> Starting build()...
/tmp/yaourt-tmp-nir/aur-xen/./PKGBUILD: line 129: export: `-Wno-misleading-indentation': not a valid identifier
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build xen.

#10 2016-06-07 17:56:08

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [kinda solved] xen build / compliation error

try

export CFLAGS="-fno-caller-saves -Wno-misleading-indentation" 

note the quotes

#11 2016-06-07 18:43:23

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

Re: [kinda solved] xen build / compliation error

not quite the syntax yet…
makepkg:

configure: error: unrecognized option: `-Wno-misleading-indentation'
Try `./configure --help' for more information
==> ERROR: A failure occurred in build().
    Aborting...

yaourt

Makefile:170: recipe for target 'out/rom16.o' failed
make[6]: *** [out/rom16.o] Error 1
make[6]: Leaving directory '/tmp/yaourt-tmp-nir/aur-xen/src/xen-4.5.1/tools/firmware/seabios-dir-remote'
/tmp/yaourt-tmp-nir/aur-xen/src/xen-4.5.1/tools/firmware/../../tools/Rules.mk:116: recipe for target 'subdir-all-seabios-dir' failed
make[5]: *** [subdir-all-seabios-dir] Error 2
make[5]: Leaving directory '/tmp/yaourt-tmp-nir/aur-xen/src/xen-4.5.1/tools/firmware'
/tmp/yaourt-tmp-nir/aur-xen/src/xen-4.5.1/tools/firmware/../../tools/Rules.mk:111: recipe for target 'subdirs-all' failed
make[4]: *** [subdirs-all] Error 2
make[4]: Leaving directory '/tmp/yaourt-tmp-nir/aur-xen/src/xen-4.5.1/tools/firmware'
Makefile:38: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/tmp/yaourt-tmp-nir/aur-xen/src/xen-4.5.1/tools/firmware'
/tmp/yaourt-tmp-nir/aur-xen/src/xen-4.5.1/tools/../tools/Rules.mk:116: recipe for target 'subdir-install-firmware' failed
make[2]: *** [subdir-install-firmware] Error 2
make[2]: Leaving directory '/tmp/yaourt-tmp-nir/aur-xen/src/xen-4.5.1/tools'
/tmp/yaourt-tmp-nir/aur-xen/src/xen-4.5.1/tools/../tools/Rules.mk:111: recipe for target 'subdirs-install' failed
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory '/tmp/yaourt-tmp-nir/aur-xen/src/xen-4.5.1/tools'
Makefile:69: recipe for target 'install-tools' failed
make: *** [install-tools] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build xen.

Last edited by israelisraeli (2016-06-07 18:50:43)

#12 2016-06-07 19:06:33

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [kinda solved] xen build / compliation error

israelisraeli wrote:

not quite the syntax yet…
makepkg:

configure: error: unrecognized option: `-Wno-misleading-indentation'
Try `./configure --help' for more information
==> ERROR: A failure occurred in build().
    Aborting...

Seems you added it to the configure options. If you use the PKGBUILD from AUR only edit line 129.

Seems when you used yaourt you did that..
but there is an other error that doesn’t occure before, because compilation failed earlier with the misleading-indentation error.

#13 2016-06-07 20:26:06

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

Re: [kinda solved] xen build / compliation error

you’re right, iv’e fixed the pkgbuild in the first method and now i get the same «advanced» error as in yaourt. any ideas on this error code?

#14 2016-06-07 21:33:50

loqs
Member
Registered: 2014-03-06
Posts: 15,644

Re: [kinda solved] xen build / compliation error

What is the full output from makepkg now?

Makefile:170: recipe for target 'out/rom16.o' failed

possibly line 170 of Makefile

make[6]: Leaving directory '/tmp/yaourt-tmp-nir/aur-xen/src/xen-4.5.1/tools/firmware/seabios-dir-remote'

in the tools/firmware/seabios-dir-remote directory

If you just want a virtualization environment have you considered qemu as an alternative that comes prebuilt in the official repositories.

#15 2016-06-07 21:50:18

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

Re: [kinda solved] xen build / compliation error

full output

Makefile:170: recipe for target 'out/rom16.o' failed
make[6]: *** [out/rom16.o] Error 1
make[6]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools/firmware/seabios-dir-remote'
/home/nir/bld/xen/src/xen-4.5.1/tools/firmware/../../tools/Rules.mk:116: recipe for target 'subdir-all-seabios-dir' failed
make[5]: *** [subdir-all-seabios-dir] Error 2
make[5]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools/firmware'
/home/nir/bld/xen/src/xen-4.5.1/tools/firmware/../../tools/Rules.mk:111: recipe for target 'subdirs-all' failed
make[4]: *** [subdirs-all] Error 2
make[4]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools/firmware'
Makefile:38: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools/firmware'
/home/nir/bld/xen/src/xen-4.5.1/tools/../tools/Rules.mk:116: recipe for target 'subdir-install-firmware' failed
make[2]: *** [subdir-install-firmware] Error 2
make[2]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools'
/home/nir/bld/xen/src/xen-4.5.1/tools/../tools/Rules.mk:111: recipe for target 'subdirs-install' failed
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools'
Makefile:69: recipe for target 'install-tools' failed
make: *** [install-tools] Error 2
==> ERROR: A failure occurred in build().

i really wonder why do i encounter so many errors while installing it, i have a fresh build of arch, and the arch wiki simply says «install xen(aur)». maybe some of the packages in aur are outdated? will it be easier to compile from source — i just wonder if there aren’t any manual optimizations that need to be done in order to configure arch as DOM0.

i can cosider KVM/Quemo but i understand that it’s less mature and provides less features than xen…

my plan is to run arch for everyday use + coding / compiling and windows for gaming only (VGA passthrougth)

#16 2016-06-07 22:15:10

loqs
Member
Registered: 2014-03-06
Posts: 15,644

Re: [kinda solved] xen build / compliation error

israelisraeli wrote:

full output

Makefile:170: recipe for target 'out/rom16.o' failed
make[6]: *** [out/rom16.o] Error 1
make[6]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools/firmware/seabios-dir-remote'
/home/nir/bld/xen/src/xen-4.5.1/tools/firmware/../../tools/Rules.mk:116: recipe for target 'subdir-all-seabios-dir' failed
make[5]: *** [subdir-all-seabios-dir] Error 2
make[5]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools/firmware'
/home/nir/bld/xen/src/xen-4.5.1/tools/firmware/../../tools/Rules.mk:111: recipe for target 'subdirs-all' failed
make[4]: *** [subdirs-all] Error 2
make[4]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools/firmware'
Makefile:38: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools/firmware'
/home/nir/bld/xen/src/xen-4.5.1/tools/../tools/Rules.mk:116: recipe for target 'subdir-install-firmware' failed
make[2]: *** [subdir-install-firmware] Error 2
make[2]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools'
/home/nir/bld/xen/src/xen-4.5.1/tools/../tools/Rules.mk:111: recipe for target 'subdirs-install' failed
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory '/home/nir/bld/xen/src/xen-4.5.1/tools'
Makefile:69: recipe for target 'install-tools' failed
make: *** [install-tools] Error 2
==> ERROR: A failure occurred in build().

By full output I mean all output that is generated after you ran makepkg preferably including the command itself

israelisraeli wrote:

i really wonder why do i encounter so many errors while installing it, i have a fresh build of arch, and the arch wiki simply says «install xen(aur)». maybe some of the packages in aur are outdated? will it be easier to compile from source — i just wonder if there aren’t any manual optimizations that need to be done in order to configure arch as DOM0.

If this was caused for instance solely by the change to gcc6 that was added to the main repositories on 2016-05-02 so no one with an up to date system would have been able to build the package since then.
https://aur.archlinux.org/packages/xen/ was last updated 2015-07-04 missing releases 4.5.2,4.5.3,4.6.0 and 4.6.1.
AUR  packages are community maintained and many of them may be outdated.

israelisraeli wrote:

i can cosider KVM/Quemo but i understand that it’s less mature and provides less features than xen…

I do not know enough about the differences to comment on this

israelisraeli wrote:

my plan is to run arch for everyday use + coding / compiling and windows for gaming only (VGA passthrougth)

qemu should be capable of doing that (hardware allowing for the vga passthrough part)

#17 2016-06-07 22:28:44

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

Re: [kinda solved] xen build / compliation error

iv’e mannaged to build and install xen from this git
https://gitlab.com/johnth/aur-xen/commits/master
for now it’s probably good enough to try it out gain some experience, but i’m wondering if it’s a good habit

#18 2016-06-07 22:51:33

mis
Member
Registered: 2016-03-16
Posts: 234

Re: [kinda solved] xen build / compliation error

I’ve just seen that the package in AUR is marked as out-of-date since 2015-10-13.
Looking at the comments it seems the maintainer is working on updating it… though the newest comments are two month old.

#19 2016-06-08 13:29:47

israelisraeli
Member
From: jerusalem
Registered: 2016-06-06
Posts: 18

Re: [kinda solved] xen build / compliation error

thanks for all of your help anyway! smile

description title ms.date f1_keywords helpviewer_keywords ms.assetid

Learn more about: Fatal Error C1083

Fatal Error C1083

09/01/2017

C1083

C1083

97e52df3-e79c-4f85-8f1e-bbd1057d55e7

Cannot open filetype file: ‘file‘: message

The compiler generates a C1083 error when it can’t find a file it requires. There are many possible causes for this error. An incorrect include search path or missing or misnamed header files are the most common causes, but other file types and issues can also cause C1083. Here are some of the common reasons why the compiler generates this error.

The specified file name is wrong

The name of a file may be mistyped. For example,

#include <algorithm.h>

might not find the file you intend. Most C++ Standard Library header files do not have a .h file name extension. The <algorithm> header would not be found by this #include directive. To fix this issue, verify that the correct file name is entered, as in this example:

#include <algorithm>

Certain C Runtime Library headers are located in a subdirectory of the standard include directory. For example, to include sys/types.h, you must include the sys subdirectory name in the #include directive:

#include <sys/types.h>

The file is not included in the include search path

The compiler cannot find the file by using the search rules that are indicated by an #include or #import directive. For example, when a header file name is enclosed by quotation marks,

#include "myincludefile.h"

this tells the compiler to look for the file in the same directory that contains the source file first, and then look in other locations specified by the build environment. If the quotation marks contain an absolute path, the compiler only looks for the file at that location. If the quotation marks contain a relative path, the compiler looks for the file in the directory relative to the source directory.

If the name is enclosed by angle brackets,

#include <stdio.h>

the compiler follows a search path that is defined by the build environment, the /I compiler option, the /X compiler option, and the INCLUDE environment variable. For more information, including specific details about the search order used to find a file, see #include Directive (C/C++) and #import Directive.

If your include files are in another directory relative to your source directory, and you use a relative path in your include directives, you must use double quotes instead of angle brackets. For example, if your header file myheader.h is in a subdirectory of your project sources named headers, then this example fails to find the file and causes C1083:

#include <headersmyheader.h>

but this example works:

#include "headersmyheader.h"

Relative paths can also be used with directories on the include search path. If you add a directory to the INCLUDE environment variable or to your Include Directories path in Visual Studio, do not also add part of the path to the include directives. For example, if your header is located at pathexampleheadersmyheader.h, and you add pathexampleheaders to your Include Directories path in Visual Studio, but your #include directive refers to the file as

#include <headersmyheader.h>

then the file is not found. Use the correct path relative to the directory specified in the include search path. In this example, you could change the include search path to pathexample, or remove the headers path segment from the #include directive.

Third-party library issues and vcpkg

If you see this error when you are trying to configure a third-party library as part of your build, consider using vcpkg, a C++ package manager, to install and build the library. vcpkg supports a large and growing list of third-party libraries, and sets all the configuration properties and dependencies required for successful builds as part of your project.

The file is in your project, but not the include search path

Even when header files are listed in Solution Explorer as part of a project, the files are only found by the compiler when they are referred to by an #include or #import directive in a source file, and are located in an include search path. Different kinds of builds might use different search paths. The /X compiler option can be used to exclude directories from the include search path. This enables different builds to use different include files that have the same name, but are kept in different directories. This is an alternative to conditional compilation by using preprocessor commands. For more information about the /X compiler option, see /X (Ignore Standard Include Paths).

To fix this issue, correct the path that the compiler uses to search for the included or imported file. A new project uses default include search paths. You may have to modify the include search path to add a directory for your project. If you are compiling on the command line, add the path to the INCLUDE environment variable or the /I compiler option to specify the path to the file.

To set the include directory path in Visual Studio, open the project’s Property Pages dialog box. Select VC++ Directories under Configuration Properties in the left pane, and then edit the Include Directories property. For more information about the per-user and per-project directories searched by the compiler in Visual Studio, see VC++ Directories Property Page. For more information about the /I compiler option, see /I (Additional Include Directories).

The command line INCLUDE or LIB environment is not set

When the compiler is invoked on the command line, environment variables are often used to specify search paths. If the search path described by the INCLUDE or LIB environment variable is not set correctly, a C1083 error can be generated. We strongly recommend using a developer command prompt shortcut to set the basic environment for command line builds. For more information, see Build C/C++ on the Command Line. For more information about how to use environment variables, see How to: Use Environment Variables in a Build.

The file may be locked or in use

If you are using another program to edit or access the file, it may have the file locked. Try closing the file in the other program. Sometimes the other program can be Visual Studio itself, if you are using parallel compilation options. If turning off the parallel build option makes the error go away, then this is the problem. Other parallel build systems can also have this issue. Be careful to set file and project dependencies so build order is correct. In some cases, consider creating an intermediate project to force build dependency order for a common file that may be built by multiple projects. Sometimes antivirus programs temporarily lock recently changed files for scanning. If possible, consider excluding your project build directories from the antivirus scanner.

The wrong version of a file name is included

A C1083 error can also indicate that the wrong version of a file is included. For example, a build could include the wrong version of a file that has an #include directive for a header file that is not intended for that build. For example, certain files may only apply to x86 builds, or to Debug builds. When the header file is not found, the compiler generates a C1083 error. The fix for this problem is to use the correct file, not to add the header file or directory to the build.

The precompiled headers are not yet precompiled

When a project is configured to use precompiled headers, the relevant .pch files have to be created so that files that use the header contents can be compiled. For example, the pch.cpp file (stdafx.cpp in Visual Studio 2017 and earlier) is automatically created in the project directory for new projects. Compile that file first to create the precompiled header files. In the typical build process design, this is done automatically. For more information, see Creating Precompiled Header Files.

Additional causes

  • You have installed an SDK or third-party library, but you have not opened a new developer command prompt window after the SDK or library is installed. If the SDK or library adds files to the INCLUDE path, you may need to open a new developer command prompt window to pick up these environment variable changes.

  • The file uses managed code, but the compiler option /clr is not specified. For more information, see /clr (Common Language Runtime Compilation).

  • The file is compiled by using a different /analyze compiler option setting than is used to precompile the headers. When the headers for a project are precompiled, all should use the same /analyze settings. For more information, see /analyze (Code Analysis).

  • The file or directory was created by the Windows Subsystem for Linux, per-directory case sensitivity is enabled, and the specified case of a path or file does not match the case of the path or file on disk.

  • The file, the directory, or the disk is read-only.

  • Visual Studio or the command line tools do not have sufficient permissions to read the file or the directory. This can happen, for example, when the project files have different ownership than the process running Visual Studio or the command line tools. Sometimes this issue can be fixed by running Visual Studio or the developer command prompt as Administrator.

  • There are not enough file handles. Close some applications and then recompile. This condition is unusual under typical circumstances. However, it can occur when large projects are built on a computer that has limited physical memory.

Example

The following example generates a C1083 error when the header file "test.h" does not exist in the source directory or on the include search path.

// C1083.cpp
// compile with: /c
#include "test.h"   // C1083 test.h does not exist
#include "stdio.h"  // OK

For information about how to build C/C++ projects in the IDE or on the command line, and information about setting environment variables, see Projects and build systems.

See also

  • MSBuild Properties

I have a maven project forked and cloned from a git repo onto my eclipse. It is build on Java 8. The first thing i do is perform a

mvn clean install

But I get following failure message:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Maven ---
[INFO] Deleting /Users/vshukla/git/Prism/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Maven ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/vshukla/git/Prism/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ Maven ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 66 source files to /Users/vshukla/git/Prism/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/vshukla/git/Prism/src/main/java/PrenPost/scanUtility.java:[54,52] diamond operator is not supported in -source 1.5
  (use -source 7 or higher to enable diamond operator)
[ERROR] /Users/vshukla/git/Prism/src/main/java/main/AppUtility.java:[87,86] diamond operator is not supported in -source 1.5
  (use -source 7 or higher to enable diamond operator)
[ERROR] /Users/vshukla/git/Prism/src/main/java/PrenPost/ComparisionUtility.java:[58,52] diamond operator is not supported in -source 1.5
  (use -source 7 or higher to enable diamond operator)
[INFO] 3 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.266 s
[INFO] Finished at: 2017-03-01T12:11:27+05:30
[INFO] Final Memory: 13M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Maven: Compilation failure: Compilation failure:
[ERROR] /Users/vshukla/git/Prism/src/main/java/PrenPost/scanUtility.java:[54,52] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /Users/vshukla/git/Prism/src/main/java/main/AppUtility.java:[87,86] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] /Users/vshukla/git/Prism/src/main/java/PrenPost/ComparisionUtility.java:[58,52] diamond operator is not supported in -source 1.5
[ERROR] (use -source 7 or higher to enable diamond operator)
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]   http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

However, below is the build path details of the project which clearly has JRE — 8 set up:
build path

and the compilation set up:

Compliance level

No matter how many times I build the project, i get the same error. Even after cleaning the project and refreshing it from eclipse doesn’t help. Please guide.

UPDATE:

After adding the properties to set maven compiler plugin

<properties>
 <maven.compiler.source>1.8</maven.compiler.source>
 <maven.compiler.target>1.8</maven.compiler.target>
</properties>

,

am getting the below error:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Maven ---
[INFO] Deleting /Users/vshukla/git/Prism/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Maven ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/vshukla/git/Prism/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ Maven ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 66 source files to /Users/vshukla/git/Prism/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] /Users/vshukla/git/Prism/src/main/java/main/MainUITabbed.java: /Users/vshukla/git/Prism/src/main/java/main/MainUITabbed.java uses or overrides a deprecated API.
[WARNING] /Users/vshukla/git/Prism/src/main/java/main/MainUITabbed.java: Recompile with -Xlint:deprecation for details.
[WARNING] /Users/vshukla/git/Prism/src/main/java/main/MainUITabbed.java: Some input files use unchecked or unsafe operations.
[WARNING] /Users/vshukla/git/Prism/src/main/java/main/MainUITabbed.java: Recompile with -Xlint:unchecked for details.
[INFO] 4 warnings 
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/vshukla/git/Prism/src/main/java/main/MainUITabbed.java:[26,22] package com.apple.eawt does not exist
[ERROR] /Users/vshukla/git/Prism/src/main/java/main/MainUITabbed.java:[93,41] cannot find symbol
  symbol: class Application
[ERROR] /Users/vshukla/git/Prism/src/main/java/main/MainUITabbed.java:[93,67] cannot find symbol
  symbol: variable Application
[INFO] 3 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.591 s
[INFO] Finished at: 2017-03-01T13:09:47+05:30
[INFO] Final Memory: 21M/347M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Maven: Compilation failure: Compilation failure:
[ERROR] /Users/vshukla/git/Prism/src/main/java/main/MainUITabbed.java:[26,22] package com.apple.eawt does not exist
[ERROR] /Users/vshukla/git/Prism/src/main/java/main/MainUITabbed.java:[93,41] cannot find symbol
[ERROR] symbol: class Application
[ERROR] /Users/vshukla/git/Prism/src/main/java/main/MainUITabbed.java:[93,67] cannot find symbol
[ERROR] symbol: variable Application
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

And here is the code snippet giving the compilation error from MainUITabbed class:

import com.apple.eawt.Application;
public static void main(String[] args) {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            try {


                Application application = Application.getApplication(); // line 93

                ImageIcon imgicon = new ImageIcon(getClass().getResource(
                        "ICON.jpg"));
                Image img = imgicon.getImage();


                application.setDockIconImage(img);

                MainUITabbed frame = new MainUITabbed();
                frame.setVisible(true);
            } catch (Exception e) {
                e.printStackTrace();

            }
        }
    });
}

Понравилась статья? Поделить с друзьями:
  • 9cb2 ошибка bmw e60
  • A communication error occurred operation timed out the web server may be down
  • A client log file containing error information has been generated in terraria
  • 9cb1 ошибка bmw
  • A call to a d3d12 api failed with d3d hresult error code 887a0005