open64 error when compiling on OS X 10.11.4

43 views
Skip to first unread message

Ara Winter

unread,
Jul 25, 2016, 3:29:53 PM7/25/16
to CLARK Users
Hello all,

I am trying to compile CLARK on my OS X 10.11.4 Powerbook with XCODE installed. I also install gcc through homebrew.

  When I run the ./install.sh I get the following error:

Aras-MacBook-Pro:CLARKSCV1.2.3 ara$ ./install.sh 

In file included from ./.dCLARK/main.cc:35:0:

./.dCLARK/./CLARK_hh.hh: In member function ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&)’:

./.dCLARK/./CLARK_hh.hh:599:41: error: there are no arguments to ‘open64’ that depend on a template parameter, so a declaration of ‘open64’ must be available [-fpermissive]

   fd = open64(_fileTofilesname, O_RDONLY);

                                         ^

./.dCLARK/./CLARK_hh.hh:599:41: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)

./.dCLARK/./CLARK_hh.hh: In instantiation of ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&) [with HKMERr = short unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’:

./.dCLARK/./CLARK_hh.hh:516:111:   required from ‘void CLARK<HKMERr>::run(const char*, const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&, const bool&) [with HKMERr = short unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’

./.dCLARK/main.cc:272:82:   required from here

./.dCLARK/./CLARK_hh.hh:599:41: error: ‘open64’ was not declared in this scope

./.dCLARK/./CLARK_hh.hh: In instantiation of ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&) [with HKMERr = unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’:

./.dCLARK/./CLARK_hh.hh:516:111:   required from ‘void CLARK<HKMERr>::run(const char*, const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&, const bool&) [with HKMERr = unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’

./.dCLARK/main.cc:282:102:   required from here

./.dCLARK/./CLARK_hh.hh:599:41: error: ‘open64’ was not declared in this scope

./.dCLARK/./CLARK_hh.hh: In instantiation of ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&) [with HKMERr = long long unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’:

./.dCLARK/./CLARK_hh.hh:516:111:   required from ‘void CLARK<HKMERr>::run(const char*, const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&, const bool&) [with HKMERr = long long unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’

./.dCLARK/main.cc:292:102:   required from here

./.dCLARK/./CLARK_hh.hh:599:41: error: ‘open64’ was not declared in this scope

In file included from ./.dCLARK/main.cc:35:0:

./.dCLARK/./CLARK_hh.hh: In member function ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&)’:

./.dCLARK/./CLARK_hh.hh:599:41: error: there are no arguments to ‘open64’ that depend on a template parameter, so a declaration of ‘open64’ must be available [-fpermissive]

   fd = open64(_fileTofilesname, O_RDONLY);

                                         ^

./.dCLARK/./CLARK_hh.hh:599:41: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)

./.dCLARK/./CLARK_hh.hh: In instantiation of ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&) [with HKMERr = short unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’:

./.dCLARK/./CLARK_hh.hh:516:111:   required from ‘void CLARK<HKMERr>::run(const char*, const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&, const bool&) [with HKMERr = short unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’

./.dCLARK/main.cc:272:82:   required from here

./.dCLARK/./CLARK_hh.hh:599:41: error: ‘open64’ was not declared in this scope

./.dCLARK/./CLARK_hh.hh: In instantiation of ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&) [with HKMERr = unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’:

./.dCLARK/./CLARK_hh.hh:516:111:   required from ‘void CLARK<HKMERr>::run(const char*, const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&, const bool&) [with HKMERr = unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’

./.dCLARK/main.cc:282:102:   required from here

./.dCLARK/./CLARK_hh.hh:599:41: error: ‘open64’ was not declared in this scope

./.dCLARK/./CLARK_hh.hh: In instantiation of ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&) [with HKMERr = long long unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’:

./.dCLARK/./CLARK_hh.hh:516:111:   required from ‘void CLARK<HKMERr>::run(const char*, const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&, const bool&) [with HKMERr = long long unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’

./.dCLARK/main.cc:292:102:   required from here

./.dCLARK/./CLARK_hh.hh:599:41: error: ‘open64’ was not declared in this scope

In file included from ./.dCLARK/main.cc:35:0:

./.dCLARK/./CLARK_hh.hh: In member function ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&)’:

./.dCLARK/./CLARK_hh.hh:599:41: error: there are no arguments to ‘open64’ that depend on a template parameter, so a declaration of ‘open64’ must be available [-fpermissive]

   fd = open64(_fileTofilesname, O_RDONLY);

                                         ^

./.dCLARK/./CLARK_hh.hh:599:41: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)

./.dCLARK/./CLARK_hh.hh: In instantiation of ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&) [with HKMERr = short unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’:

./.dCLARK/./CLARK_hh.hh:516:111:   required from ‘void CLARK<HKMERr>::run(const char*, const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&, const bool&) [with HKMERr = short unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’

./.dCLARK/main.cc:272:82:   required from here

./.dCLARK/./CLARK_hh.hh:599:41: error: ‘open64’ was not declared in this scope

./.dCLARK/./CLARK_hh.hh: In instantiation of ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&) [with HKMERr = unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’:

./.dCLARK/./CLARK_hh.hh:516:111:   required from ‘void CLARK<HKMERr>::run(const char*, const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&, const bool&) [with HKMERr = unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’

./.dCLARK/main.cc:282:102:   required from here

./.dCLARK/./CLARK_hh.hh:599:41: error: ‘open64’ was not declared in this scope

./.dCLARK/./CLARK_hh.hh: In instantiation of ‘void CLARK<HKMERr>::runSimple(const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&) [with HKMERr = long long unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’:

./.dCLARK/./CLARK_hh.hh:516:111:   required from ‘void CLARK<HKMERr>::run(const char*, const char*, const char*, const size_t&, const ITYPE&, const bool&, const bool&, const bool&) [with HKMERr = long long unsigned int; size_t = long unsigned int; ITYPE = unsigned int]’

./.dCLARK/main.cc:292:102:   required from here

./.dCLARK/./CLARK_hh.hh:599:41: error: ‘open64’ was not declared in this scope

mv: rename ./.dCLARK/CLARK to ./exe/CLARK: No such file or directory

mv: rename ./.dCLARK/CLARK-l to ./exe/CLARK-l: No such file or directory

mv: rename ./.dCLARK/CLARK-S to ./exe/CLARK-S: No such file or directory


I was wondering if anyone else is having this issue or if there is a work around?


Thanks!

ara

Rachid

unread,
Jul 25, 2016, 9:09:07 PM7/25/16
to CLARK Users
Thank you very much for reporting this, Ara!
Several of you have actually reported it, but this issue is now fixed.
 
Please feel free to download the package from the website (or by command line: 

Cheers,
Rachid
Reply all
Reply to author
Forward
0 new messages