Skip to content

Commit bfa43f4

Browse files
authored
Merge pull request #650 from k-okada/add_gcc15
add test to check with gcc-15
2 parents bbdff64 + f7953a8 commit bfa43f4

File tree

9 files changed

+31
-22
lines changed

9 files changed

+31
-22
lines changed

.github/workflows/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
- DOCKER_IMAGE: debian:stretch
2424
- DOCKER_IMAGE: osrf/ubuntu_armhf:trusty
2525
- DOCKER_IMAGE: osrf/ubuntu_armhf:xenial
26+
- DOCKER_IMAGE: debian:sid
27+
- DOCKER_IMAGE: debian:sid
28+
USE_EXPERIMENTAL: TRUE
2629
fail-fast: false
2730

2831
runs-on: ubuntu-latest
@@ -42,10 +45,11 @@ jobs:
4245
export TRAVIS_BRANCH=${GITHUB_REF#refs/heads/}
4346
export TRAVIS_OS_NAME=linux
4447
export DOCKER_IMAGE=${{matrix.DOCKER_IMAGE}}
45-
if [[ "$DOCKER_IMAGE" == *"arm"* ]]; then sudo apt-get install -y -qq qemu-user-static git; fi
48+
export USE_EXPERIMENTAL=${{matrix.USE_EXPERIMENTAL}}
49+
if [[ "$DOCKER_IMAGE" == *"arm"* ]]; then sudo apt update -y -qq && sudo apt-get install -y -qq qemu-user-static git; fi
4650
if [[ "$DOCKER_IMAGE" == *"arm64v8"* ]]; then export QEMU_VOLUME="-v /usr/bin/qemu-aarch64-static:/usr/bin/qemu-aarch64-static"; export PLATFORM_OPTION="--platform linux/aarch64"; fi #
4751
echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME"
48-
docker run $PLATFORM_OPTION --rm $QEMU_VOLUME -v $CI_SOURCE_PATH:$CI_SOURCE_PATH -e "DOCKER_IMAGE=$DOCKER_IMAGE" -e "COLLISION_LIB=$COLLISION_LIB" -e "CI_SOURCE_PATH=$CI_SOURCE_PATH" -e "HOME=$HOME" -t $DOCKER_IMAGE sh -c "cd $CI_SOURCE_PATH; ./.travis.sh"
52+
docker run $PLATFORM_OPTION --rm $QEMU_VOLUME -v $CI_SOURCE_PATH:$CI_SOURCE_PATH -e "DOCKER_IMAGE=$DOCKER_IMAGE" -e "COLLISION_LIB=$COLLISION_LIB" -e "USE_EXPERIMENTAL=$USE_EXPERIMENTAL" -e "CI_SOURCE_PATH=$CI_SOURCE_PATH" -e "HOME=$HOME" -t $DOCKER_IMAGE sh -c "cd $CI_SOURCE_PATH; ./.travis.sh"
4953
5054
linux-arm:
5155
strategy:

.travis.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function travis_time_end {
2222

2323
travis_time_start setup.apt-get_update
2424
# Use archive repository for Debian Stretch
25-
if [[ "$DOCKER_IMAGE" == *"stretch" ]]; then
25+
if [[ "$DOCKER_IMAGE" == *"stretch" || "$DOCKER_IMAGE" == *"buster" ]]; then
2626
sed -i 's/[[:alpha:]]*.debian.org/archive.debian.org/' /etc/apt/sources.list
2727
sed -i '/stretch-updates/ s/^#*/#/' /etc/apt/sources.list
2828
fi
@@ -36,6 +36,13 @@ echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selecti
3636
#
3737
sudo apt-get install -qq -y git make gcc g++ libjpeg-dev libxext-dev libx11-dev libgl1-mesa-dev libglu1-mesa-dev libpq-dev libpng-dev xfonts-100dpi xfonts-75dpi pkg-config libbullet-dev # msttcorefonts could not install on 14.04 travis
3838
# sudo apt-get install -qq -y texlive-latex-base ptex-bin latex2html nkf poppler-utils || echo "ok" # 16.04 does ont have ptex bin
39+
40+
# test with latest GCC's
41+
if [[ "$USE_EXPERIMENTAL" == "true" ]]; then
42+
echo 'deb http://deb.debian.org/debian experimental main' | sudo tee /etc/apt/sources.list.d/experimental.list
43+
apt update -qq -y
44+
apt-get -qq -y -t=experimental install gcc g++
45+
fi
3946
travis_time_end
4047

4148
if [[ "$COLLISION_LIB" != "" ]]; then

irteus/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ all: defun.h $(LIBNR) $(LIBIRTEUS) $(LIBIRTEUSG) $(LIBIRTEUSX) $(LIBIRTEUSIMG) $
159159

160160
.PHONY: defun.h
161161
defun.h:
162-
echo '#include "eus.h"\n#undef defun\npointer TEST();\nvoid test(void) {register context *ctx; pointer mod; defun(ctx,"TEST",mod,TEST,NULL);}' > test.c
162+
echo '#include "eus.h"\n#undef defun\npointer TEST();\nvoid test(void) {register context *ctx; pointer mod; defun((context *)ctx,(char *)"TEST",(pointer)mod,(pointer(*)(context*,int,pointer*))TEST,(char *)NULL);}' > test.c
163163
echo "// redefine defun for update defun() API () https://github.com/euslisp/EusLisp/pull/116" > defun.h
164164
echo "#undef defun" >> defun.h
165165
$(CC) $(CFLAGS) $(WFLAGS) -c test.c $(OBJOPT) test.o || echo "#define defun(a, b, c, d, e) defun(a, b, c, d) // for EusLisp < 9.24" >> defun.h

irteus/eusbullet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545

4646
#include "eus.h"
4747

48-
extern pointer ___eusbullet();
48+
extern pointer ___eusbullet(context*,int,pointer*);
4949
static void register_eusbullet()
50-
{ add_module_initializer("___eusbullet", ___eusbullet);}
50+
{ add_module_initializer("___eusbullet", (pointer (*)(context*,int,pointer*))___eusbullet);}
5151

5252
extern eusinteger_t C_BT_MakeSphereModel(eusfloat_t r);
5353
extern eusinteger_t C_BT_MakeBoxModel(eusfloat_t xsize, eusfloat_t ysize, eusfloat_t zsize);

irteus/euspng.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
#include <png.h>
4747
#include "eus.h"
4848

49-
extern pointer ___euspng();
49+
extern pointer ___euspng(context*,int,pointer*);
5050
static void register_euspng()
51-
{ add_module_initializer("___euspng", ___euspng);}
51+
{ add_module_initializer("___euspng", (pointer (*)(context*,int,pointer*))___euspng);}
5252

5353
pointer PNG_READ_IMAGE(register context *ctx, int n, register pointer *argv)
5454
{

irteus/euspqp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545

4646
#include "eus.h"
4747

48-
extern pointer ___euspqp();
48+
extern pointer ___euspqp(context*,int,pointer*);
4949
static void register_euspqp()
50-
{ add_module_initializer("___euspqp", ___euspqp);}
50+
{ add_module_initializer("___euspqp", (pointer (*)(context*,int,pointer*))___euspqp);}
5151

5252
extern eusinteger_t PQP_MakeModel();
5353
extern void PQP_DeleteModel(eusinteger_t m);

irteus/irtc.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
#include "eus.h"
4545
#include "nr.h"
4646
#include <math.h>
47-
extern pointer ___irtc();
47+
extern pointer ___irtc(context*,int,pointer*);
4848
static void register_irtc()
49-
{ add_module_initializer("___irtc", ___irtc);}
49+
{ add_module_initializer("___irtc", (pointer (*)(context*,int,pointer*))___irtc);}
5050

5151
#define colsize(p) (intval(p->c.ary.dim[1]))
5252
#define rowsize(p) (intval(p->c.ary.dim[0]))
@@ -1029,11 +1029,10 @@ register pointer *argv;
10291029
}
10301030

10311031
#include "defun.h" // redefine defun for update defun() API
1032-
pointer ___irtc(ctx,n,argv, env)
1032+
pointer ___irtc(ctx,n,argv)
10331033
register context *ctx;
10341034
int n;
10351035
pointer argv[];
1036-
pointer env;
10371036
{
10381037
pointer mod=argv[0];
10391038
defun(ctx,"ROTM3*",mod,MATTIMES3,NULL);

irteus/irtgeoc.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#include "eus.h"
33
#include <math.h>
44

5-
extern pointer ___irtgeoc();
5+
extern pointer ___irtgeoc(context*,int,pointer*);
66
static void register_irtgeoc()
7-
{ add_module_initializer("___irtgeoc", ___irtgeoc);}
7+
{ add_module_initializer("___irtgeoc", (pointer (*)(context*,int,pointer*))___irtgeoc);}
88

99
//
1010
//
@@ -355,8 +355,8 @@ pointer C_ISNAN (ctx,n,argv)
355355
}
356356

357357
#include "defun.h" // redefine defun for update defun() API
358-
pointer ___irtgeoc(ctx,n, argv, env)
359-
register context *ctx;int n;pointer *argv;pointer env;
358+
pointer ___irtgeoc(ctx,n, argv)
359+
register context *ctx;int n;pointer *argv;
360360
{
361361
defun(ctx,"C-COORDS-TRANSFORM-VECTOR",argv[0],C_COORDS_TRNSFORM_VECTOR,NULL);
362362
defun(ctx,"C-MATRIX-ROW",argv[0],C_MATRIX_ROW,NULL);

irteus/irtglc.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646

4747
#include "eus.h"
4848

49-
extern pointer ___irtglc();
49+
extern pointer ___irtglc(context*,int,pointer*);
5050
static void register_irtglc()
51-
{ add_module_initializer("___irtglc", ___irtglc);}
51+
{ add_module_initializer("___irtglc", (pointer (*)(context*,int,pointer*))___irtglc);}
5252

5353
#define colsize(p) (intval(p->c.ary.dim[1]))
5454
#define rowsize(p) (intval(p->c.ary.dim[0]))
@@ -89,11 +89,10 @@ pointer CTRANSPOSE_IMAGE_ROWS(ctx,n,argv)
8989
return((pointer)dst);}}
9090

9191
#include "defun.h" // redefine defun for update defun() API
92-
pointer ___irtglc(ctx,n,argv,env)
92+
pointer ___irtglc(ctx,n,argv)
9393
register context *ctx;
9494
int n;
9595
pointer argv[];
96-
pointer env;
9796
{
9897
pointer mod=argv[0];
9998
defun(ctx,"CTRANSPOSE-IMAGE-ROWS",mod,CTRANSPOSE_IMAGE_ROWS,NULL);

0 commit comments

Comments
 (0)