Comments (20)
Gosh, seems like they changed erl_types API again in 19.3...
I will take a look ASAP.
from xmpp.
Hi.
What progress for this ?
How i can help you to fix this bug ?
from xmpp.
I'm a bit busy on another tasks.
If you absolutely need to compile the spec, you can install 19.2 and compile it there. The generated code will work in 19.3 anyway.
from xmpp.
do you have spare time to this task ? I also have the bug with erlang 19.3,wish you take some time to fix the bug .
from xmpp.
Compiling Erlang 19.2 is easy:
cd /tmp
curl -LO http://erlang.org/download/otp_src_19.2.tar.gz
tar -xzf otp_src_19.2.tar.gz
cd otp_src_19.2
./configure --without-termcap --disable-hipe --prefix=/opt/erlang-19.2
make
sudo make install
export PATH=/opt/erlang-19.2/bin ;# Before compiling the xmpp spec.
So I don't think this issue is urgent.
from xmpp.
See my comment: #9 (comment)
to automate building of extensions for xmpp
from xmpp.
I tried compile specs again for erlang 19.3.5
I made:
$ git clone https://github.com/processone/xmpp.git
$ make
$ make spec
And got this:
erl -noinput +B -pa ebin -pa deps/*/ebin -eval \
'case fxml_gen:compile("specs/xmpp_codec.spec", [{add_type_specs, xmpp_element}, {erl_dir, "src"}, {hrl_dir, "include"}]) of ok -> halt(0); _ -> halt(1) end.'
failed to compile "specs/xmpp_codec.spec": {'EXIT',
{{badmap,
{dict,1,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],
[],[],[],[],[],[]},
{{[],[],[],[],[],[],[],[],[],
[[{opaque,xmlel,[]}|
{{fxml,1,2,[]},type}]],
[],[],[],[],[],[]}}}},
[{maps,filter,
[#Fun<erl_types.11.61440706>,
{dict,1,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],
[],[],[],[],[],[],[]},
{{[],[],[],[],[],[],[],[],[],
[[{opaque,xmlel,[]}|
{{fxml,1,2,[]},type}]],
[],[],[],[],[],[]}}}],
[{file,"maps.erl"},{line,205}]},
{erl_types,
t_opaque_from_records,1,
[{file,"erl_types.erl"},
{line,770}]},
{fxml_gen,t_remote,2,
[{file,"src/fxml_gen.erl"},
{line,2827}]},
{fxml_gen,get_label_type,5,
[{file,"src/fxml_gen.erl"},
{line,2275}]},
{fxml_gen,
'-get_types/3-fun-0-',5,
[{file,"src/fxml_gen.erl"},
{line,2243}]},
{lists,map,2,
[{file,"lists.erl"},
{line,1239}]},
{fxml_gen,
'-get_types/3-fun-1-',5,
[{file,"src/fxml_gen.erl"},
{line,2241}]},
{lists,foldl,3,
[{file,"lists.erl"},
{line,1263}]}]}}
So isse still not fixed for master.
So pls reopen it.
Erlang is:
$erl
Erlang/OTP 19 [erts-8.3.5] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
from xmpp.
Works for me on 19.3
from xmpp.
So how i can localize problem ? any ideas ?
from xmpp.
Could you use same version of Erlang as me ?
from xmpp.
Install newer Erlang?
Also, I'm not sure why you constantly recompile the spec: the generated code wouldn't be different.
from xmpp.
i have my own custom tags so i forced to recompile xmpp every time.
from xmpp.
i have my own custom tags so i forced to recompile xmpp every time.
What for? The result will be the same.
from xmpp.
It's supposed that you compile your spec only once, then forget about it for several years or so.
from xmpp.
you uses standard tags from XMPP, but i have my own tags. So i need recompile code every time when i adds new tags for specification.
by the way it works for
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]
from xmpp.
So compile it on Erlang 20 and use the generated code on 19.3, what's the problem?
from xmpp.
I'm really not going to install all possible Erlang versions to check every minor release (the API breaks even between minor releases) any time soon, I have more important tasks.
from xmpp.
I used esl-erlang installation named as 19.3.6, don't know why it showed as 19.3.5.
Could you check it with this version of erlang ?
from xmpp.
We do not recommend using Erlang from Erlang Solutions, there are already 2 other issues detected when using it.
from xmpp.
Could you point me on some articles for this ? what issues detected ?
from xmpp.
Related Issues (20)
- Can't compile xmpp HOT 3
- [SCRAM] SCRAM-SHA-1-PLUS + SCRAM-SHA-256(-PLUS) + SCRAM-SHA-512(-PLUS) supports HOT 4
- XEP-0009 ? HOT 3
- Xmpp_idna was removed - breaks ejabberd builds using hex.pm HOT 8
- 19.09.1 does not load custom module HOT 17
- RFCs and XEPs support page with VERSION HOT 2
- compiling error HOT 1
- logger doesn't work on my module HOT 1
- ejabberd source compile throws deps/xmpp/include/xmpp.hrl:28: can't find include file "fxml.hrl" HOT 6
- make spec fails with Erlang/OTP 24 HOT 1
- Recommend to commit automatic files separately
- RFC 9266: Channel Bindings for TLS 1.3 support HOT 1
- Crash running "make spec" with Erlang 26 HOT 2
- Write a DOAP file for xmpp.org software page HOT 1
- Bug in SCRAM implementation HOT 5
- Wrong channel-bindings announced HOT 17
- Implement XEP-0474: SASL SCRAM Downgrade Protection HOT 3
- Implement XEP-0480: SASL Upgrade Tasks HOT 2
- make spec - error
- Error make spec HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmpp.