Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error in Mac OSX #17

Closed
krsachin opened this issue Dec 20, 2016 · 4 comments
Closed

compilation error in Mac OSX #17

krsachin opened this issue Dec 20, 2016 · 4 comments

Comments

@krsachin
Copy link

I had tried to install FREEC-10.2 on mac osx but its fail with following error. Could you help me on this issue?

/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.freec init
make[1]: Nothing to be done for `init'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.freec depend
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.freec all
c++ -O3 -g -DPROFILE_TRACE -Wall -m64 -c -o main.o main.cpp
c++ -O3 -g -DPROFILE_TRACE -Wall -m64 -c -o ConfigFile.o ConfigFile.cpp
c++ -O3 -g -DPROFILE_TRACE -Wall -m64 -c -o Chameleon.o Chameleon.cpp
c++ -O3 -g -DPROFILE_TRACE -Wall -m64 -c -o GenomeDensity.o GenomeDensity.cpp
c++ -O3 -g -DPROFILE_TRACE -Wall -m64 -c -o Help.o Help.cpp
c++ -O3 -g -DPROFILE_TRACE -Wall -m64 -c -o myFunc.o myFunc.cpp
myFunc.cpp:54:12: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
for (; c = *str++; ++jj) {
~~^~~~~~~~
myFunc.cpp:54:12: note: place parentheses around the assignment to silence this
warning
for (; c = *str++; ++jj) {
^
( )
myFunc.cpp:54:12: note: use '==' to turn this assignment into an equality
comparison
for (; c = *str++; ++jj) {
^
==
myFunc.cpp:281:13: error: use of undeclared identifier '_popen'; did you mean
'popen'?
_popen(command.c_str(), "r");
^~~~~~
popen
/usr/include/stdio.h:325:7: note: 'popen' declared here
FILE *popen(const char *, const char *) __DARWIN_ALIAS_STARTING(__MAC...
^
myFunc.cpp:289:5: error: use of undeclared identifier '_pclose'; did you mean
'pclose'?
_pclose(stream);
^~~~~~~
pclose
/usr/include/stdio.h:321:6: note: 'pclose' declared here
int pclose(FILE *) __swift_unavailable_on("Use posix_spawn APIs or ...
^
myFunc.cpp:309:5: error: use of undeclared identifier '_popen'; did you mean
'popen'?
_popen(command.c_str(), "r");
^~~~~~
popen
/usr/include/stdio.h:325:7: note: 'popen' declared here
FILE *popen(const char *, const char *) __DARWIN_ALIAS_STARTING(__MAC...
^
myFunc.cpp:318:5: error: use of undeclared identifier '_pclose'; did you mean
'pclose'?
_pclose(stream);
^~~~~~~
pclose
/usr/include/stdio.h:321:6: note: 'pclose' declared here
int pclose(FILE *) __swift_unavailable_on("Use posix_spawn APIs or ...
^
myFunc.cpp:357:5: error: use of undeclared identifier '_popen'; did you mean
'popen'?
_popen(command.c_str(), "r");
^~~~~~
popen
/usr/include/stdio.h:325:7: note: 'popen' declared here
FILE *popen(const char *, const char *) __DARWIN_ALIAS_STARTING(__MAC...
^
myFunc.cpp:370:26: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (toadd=strccnt(strs[4].c_str(), '^')) {
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
myFunc.cpp:370:26: note: place parentheses around the assignment to silence this
warning
if (toadd=strccnt(strs[4].c_str(), '^')) {
^
( )
myFunc.cpp:370:26: note: use '==' to turn this assignment into an equality
comparison
if (toadd=strccnt(strs[4].c_str(), '^')) {
^
==
myFunc.cpp:377:5: error: use of undeclared identifier '_pclose'; did you mean
'pclose'?
_pclose(stream);
^~~~~~~
pclose
/usr/include/stdio.h:321:6: note: 'pclose' declared here
int pclose(FILE *) __swift_unavailable_on("Use posix_spawn APIs or ...
^
myFunc.cpp:393:26: warning: using the result of an assignment as a condition
without parentheses [-Wparentheses]
if (toadd=strccnt(strs[4].c_str(), '^')) {
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
myFunc.cpp:393:26: note: place parentheses around the assignment to silence this
warning
if (toadd=strccnt(strs[4].c_str(), '^')) {
^
( )
myFunc.cpp:393:26: note: use '==' to turn this assignment into an equality
comparison
if (toadd=strccnt(strs[4].c_str(), '^')) {
^
==
3 warnings and 6 errors generated.
make[1]: *** [myFunc.o] Error 1
make: *** [all] Error 2

@sambrightman
Copy link

See #10

@valeu
Copy link
Contributor

valeu commented Dec 20, 2016

Thank you, Sam, and I advice using v10.3.

@valeu
Copy link
Contributor

valeu commented Dec 21, 2016

Does the latest version also generate errors?
https://github.com/BoevaLab/FREEC/archive/master.zip
or clone from https://github.com/BoevaLab/FREEC.git

@krsachin
Copy link
Author

Thanks!!
v10.3 is working.

@valeu valeu closed this as completed Jan 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants